@ncino/web-components 15.0.0 → 15.1.1
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/_slds/icons/action-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/action-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/custom-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/custom-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/doctype-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/doctype-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/standard-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/standard-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/svg/symbols.svg +1 -1
- package/dist/_slds/icons/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/symbols.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols.svg +1 -1
- package/dist/_virtual/AsymmetricMatcher.js +1 -0
- package/dist/_virtual/ConvertAnsi.js +1 -0
- package/dist/_virtual/DOMCollection.js +1 -0
- package/dist/_virtual/DOMElement.js +1 -0
- package/dist/_virtual/Immutable.js +1 -0
- package/dist/_virtual/ReactElement.js +1 -0
- package/dist/_virtual/ReactTestComponent.js +1 -0
- package/dist/_virtual/alertRole.js +1 -0
- package/dist/_virtual/alertdialogRole.js +1 -0
- package/dist/_virtual/applicationRole.js +1 -0
- package/dist/_virtual/ariaAbstractRoles.js +1 -0
- package/dist/_virtual/ariaDpubRoles.js +1 -0
- package/dist/_virtual/ariaGraphicsRoles.js +1 -0
- package/dist/_virtual/ariaLiteralRoles.js +1 -0
- package/dist/_virtual/ariaPropsMap.js +1 -0
- package/dist/_virtual/articleRole.js +1 -0
- package/dist/_virtual/axe.js +1 -1
- package/dist/_virtual/bannerRole.js +1 -0
- package/dist/_virtual/blockquoteRole.js +1 -0
- package/dist/_virtual/buttonRole.js +1 -0
- package/dist/_virtual/captionRole.js +1 -0
- package/dist/_virtual/cellRole.js +1 -0
- package/dist/_virtual/checkboxRole.js +1 -0
- package/dist/_virtual/codeRole.js +1 -0
- package/dist/_virtual/collections.js +1 -0
- package/dist/_virtual/columnheaderRole.js +1 -0
- package/dist/_virtual/comboboxRole.js +1 -0
- package/dist/_virtual/commandRole.js +1 -0
- package/dist/_virtual/complementaryRole.js +1 -0
- package/dist/_virtual/compositeRole.js +1 -0
- package/dist/_virtual/contentinfoRole.js +1 -0
- package/dist/_virtual/definitionRole.js +1 -0
- package/dist/_virtual/deletionRole.js +1 -0
- package/dist/_virtual/dialogRole.js +1 -0
- package/dist/_virtual/directoryRole.js +1 -0
- package/dist/_virtual/docAbstractRole.js +1 -0
- package/dist/_virtual/docAcknowledgmentsRole.js +1 -0
- package/dist/_virtual/docAfterwordRole.js +1 -0
- package/dist/_virtual/docAppendixRole.js +1 -0
- package/dist/_virtual/docBacklinkRole.js +1 -0
- package/dist/_virtual/docBiblioentryRole.js +1 -0
- package/dist/_virtual/docBibliographyRole.js +1 -0
- package/dist/_virtual/docBibliorefRole.js +1 -0
- package/dist/_virtual/docChapterRole.js +1 -0
- package/dist/_virtual/docColophonRole.js +1 -0
- package/dist/_virtual/docConclusionRole.js +1 -0
- package/dist/_virtual/docCoverRole.js +1 -0
- package/dist/_virtual/docCreditRole.js +1 -0
- package/dist/_virtual/docCreditsRole.js +1 -0
- package/dist/_virtual/docDedicationRole.js +1 -0
- package/dist/_virtual/docEndnoteRole.js +1 -0
- package/dist/_virtual/docEndnotesRole.js +1 -0
- package/dist/_virtual/docEpigraphRole.js +1 -0
- package/dist/_virtual/docEpilogueRole.js +1 -0
- package/dist/_virtual/docErrataRole.js +1 -0
- package/dist/_virtual/docExampleRole.js +1 -0
- package/dist/_virtual/docFootnoteRole.js +1 -0
- package/dist/_virtual/docForewordRole.js +1 -0
- package/dist/_virtual/docGlossaryRole.js +1 -0
- package/dist/_virtual/docGlossrefRole.js +1 -0
- package/dist/_virtual/docIndexRole.js +1 -0
- package/dist/_virtual/docIntroductionRole.js +1 -0
- package/dist/_virtual/docNoterefRole.js +1 -0
- package/dist/_virtual/docNoticeRole.js +1 -0
- package/dist/_virtual/docPagebreakRole.js +1 -0
- package/dist/_virtual/docPagelistRole.js +1 -0
- package/dist/_virtual/docPartRole.js +1 -0
- package/dist/_virtual/docPrefaceRole.js +1 -0
- package/dist/_virtual/docPrologueRole.js +1 -0
- package/dist/_virtual/docPullquoteRole.js +1 -0
- package/dist/_virtual/docQnaRole.js +1 -0
- package/dist/_virtual/docSubtitleRole.js +1 -0
- package/dist/_virtual/docTipRole.js +1 -0
- package/dist/_virtual/docTocRole.js +1 -0
- package/dist/_virtual/documentRole.js +1 -0
- package/dist/_virtual/domMap.js +1 -0
- package/dist/_virtual/elementRoleMap.js +1 -0
- package/dist/_virtual/emphasisRole.js +1 -0
- package/dist/_virtual/escapeHTML.js +1 -0
- package/dist/_virtual/feedRole.js +1 -0
- package/dist/_virtual/figureRole.js +1 -0
- package/dist/_virtual/formRole.js +1 -0
- package/dist/_virtual/genericRole.js +1 -0
- package/dist/_virtual/graphicsDocumentRole.js +1 -0
- package/dist/_virtual/graphicsObjectRole.js +1 -0
- package/dist/_virtual/graphicsSymbolRole.js +1 -0
- package/dist/_virtual/gridRole.js +1 -0
- package/dist/_virtual/gridcellRole.js +1 -0
- package/dist/_virtual/groupRole.js +1 -0
- package/dist/_virtual/headingRole.js +1 -0
- package/dist/_virtual/imgRole.js +1 -0
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -0
- package/dist/_virtual/index3.js +1 -0
- package/dist/_virtual/index4.js +1 -0
- package/dist/_virtual/index5.js +1 -0
- package/dist/_virtual/index6.js +1 -0
- package/dist/_virtual/index7.js +1 -0
- package/dist/_virtual/index8.js +1 -0
- package/dist/_virtual/inputRole.js +1 -0
- package/dist/_virtual/insertionRole.js +1 -0
- package/dist/_virtual/iterationDecorator.js +1 -0
- package/dist/_virtual/iteratorProxy.js +1 -0
- package/dist/_virtual/landmarkRole.js +1 -0
- package/dist/_virtual/linkRole.js +1 -0
- package/dist/_virtual/listRole.js +1 -0
- package/dist/_virtual/listboxRole.js +1 -0
- package/dist/_virtual/listitemRole.js +1 -0
- package/dist/_virtual/logRole.js +1 -0
- package/dist/_virtual/lz-string.js +1 -0
- package/dist/_virtual/lz-string2.js +1 -0
- package/dist/_virtual/mainRole.js +1 -0
- package/dist/_virtual/markRole.js +1 -0
- package/dist/_virtual/markup.js +1 -0
- package/dist/_virtual/marqueeRole.js +1 -0
- package/dist/_virtual/mathRole.js +1 -0
- package/dist/_virtual/menuRole.js +1 -0
- package/dist/_virtual/menubarRole.js +1 -0
- package/dist/_virtual/menuitemRole.js +1 -0
- package/dist/_virtual/menuitemcheckboxRole.js +1 -0
- package/dist/_virtual/menuitemradioRole.js +1 -0
- package/dist/_virtual/meterRole.js +1 -0
- package/dist/_virtual/navigationRole.js +1 -0
- package/dist/_virtual/noneRole.js +1 -0
- package/dist/_virtual/noteRole.js +1 -0
- package/dist/_virtual/optionRole.js +1 -0
- package/dist/_virtual/paragraphRole.js +1 -0
- package/dist/_virtual/presentationRole.js +1 -0
- package/dist/_virtual/progressbarRole.js +1 -0
- package/dist/_virtual/radioRole.js +1 -0
- package/dist/_virtual/radiogroupRole.js +1 -0
- package/dist/_virtual/rangeRole.js +1 -0
- package/dist/_virtual/react-is.production.min.js +1 -0
- package/dist/_virtual/regionRole.js +1 -0
- package/dist/_virtual/roleElementMap.js +1 -0
- package/dist/_virtual/rolesMap.js +1 -0
- package/dist/_virtual/roletypeRole.js +1 -0
- package/dist/_virtual/rowRole.js +1 -0
- package/dist/_virtual/rowgroupRole.js +1 -0
- package/dist/_virtual/rowheaderRole.js +1 -0
- package/dist/_virtual/scrollbarRole.js +1 -0
- package/dist/_virtual/searchRole.js +1 -0
- package/dist/_virtual/searchboxRole.js +1 -0
- package/dist/_virtual/sectionRole.js +1 -0
- package/dist/_virtual/sectionheadRole.js +1 -0
- package/dist/_virtual/selectRole.js +1 -0
- package/dist/_virtual/separatorRole.js +1 -0
- package/dist/_virtual/sliderRole.js +1 -0
- package/dist/_virtual/spinbuttonRole.js +1 -0
- package/dist/_virtual/statusRole.js +1 -0
- package/dist/_virtual/strongRole.js +1 -0
- package/dist/_virtual/structureRole.js +1 -0
- package/dist/_virtual/subscriptRole.js +1 -0
- package/dist/_virtual/superscriptRole.js +1 -0
- package/dist/_virtual/switchRole.js +1 -0
- package/dist/_virtual/tabRole.js +1 -0
- package/dist/_virtual/tableRole.js +1 -0
- package/dist/_virtual/tablistRole.js +1 -0
- package/dist/_virtual/tabpanelRole.js +1 -0
- package/dist/_virtual/termRole.js +1 -0
- package/dist/_virtual/textboxRole.js +1 -0
- package/dist/_virtual/timeRole.js +1 -0
- package/dist/_virtual/timerRole.js +1 -0
- package/dist/_virtual/toolbarRole.js +1 -0
- package/dist/_virtual/tooltipRole.js +1 -0
- package/dist/_virtual/treeRole.js +1 -0
- package/dist/_virtual/treegridRole.js +1 -0
- package/dist/_virtual/treeitemRole.js +1 -0
- package/dist/_virtual/widgetRole.js +1 -0
- package/dist/_virtual/windowRole.js +1 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/gator/button.gator.js +23 -10
- package/dist/components/button-card/button-card.js +1 -1
- package/dist/components/button-card/gator/button-card.gator.js +37 -20
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
- package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +1 -1
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/popover/gator/popover.gator.js +1 -1
- package/dist/components/skip-link/gator/base/skip-link.gator.js +1 -1
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/dist/node_modules/.pnpm/@testing-library_dom@10.4.1/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js +44 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/deserialize.js +1 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/serialize.js +1 -0
- package/dist/node_modules/.pnpm/{@vitest_expect@4.1.1 → @vitest_expect@4.1.10}/node_modules/@vitest/expect/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/{@vitest_pretty-format@4.1.1 → @vitest_pretty-format@4.1.10}/node_modules/@vitest/pretty-format/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js +12 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.10/node_modules/@vitest/snapshot/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.10/node_modules/@vitest/spy/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/diff.js +42 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/display.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/helpers.js +2 -0
- package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/source-map.js +2 -2
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/ariaPropsMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/domMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/elementRoleMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/articleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/captionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/cellRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/codeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/documentRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/feedRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/figureRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/formRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/genericRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/groupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/headingRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/imgRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/linkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/logRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mainRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/markRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mathRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/meterRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noneRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/optionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radioRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/regionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/statusRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/strongRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/switchRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tableRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/termRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timerRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/index.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/roleElementMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/rolesMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iterationDecorator.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iteratorProxy.js +1 -0
- package/dist/node_modules/.pnpm/axe-core@4.12.1/node_modules/axe-core/axe.js +20 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
- package/dist/node_modules/.pnpm/color-name@2.1.1/node_modules/color-name/index.js +1 -0
- package/dist/node_modules/.pnpm/color-parse@2.0.2/node_modules/color-parse/index.js +1 -1
- package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/lite/index.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name-and-description.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/getRole.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/SetLike.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/array.from.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/util.js +1 -0
- package/dist/node_modules/.pnpm/hast-util-to-dom@4.0.1/node_modules/hast-util-to-dom/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/util/wrap.js +1 -1
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +1 -1
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/format.js +1 -0
- package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +2 -2
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/isValid.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/metadata.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/parse.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
- package/dist/node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js +1 -1
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/collections.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.js +4 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ConvertAnsi.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMCollection.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMElement.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/Immutable.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactElement.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactTestComponent.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/markup.js +2 -0
- package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/html.js +1 -1
- package/dist/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +1 -0
- package/dist/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.production.min.js +1 -0
- package/dist/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-2HVKLHKJ.js +6 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-A26ZOLVJ.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-ZCFV7BZB.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-DRQKCCAG.js} +1 -1
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-EUVGDK4H.js +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-IMSF75WX.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-KK3JJ3E4.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-POMIZRJL.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-MFQQ5L5I.js} +1 -1
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-7YGTGCDG.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-SC67XZST.js} +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-SNLGT2ZI.js +11 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-W6Y3UHOT.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-V2VKKSMQ.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-X5VVFFFE.js} +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/core-events/index.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/instrumenter/index.js +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/test/index.js +105 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js +11 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +8 -0
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/index.slds.scss.js +1 -1
- package/dist/types/components/button/button.d.ts +14 -0
- package/dist/types/components/button/gator/button.gator.d.ts +10 -0
- package/dist/types/components/button-card/button-card.d.ts +15 -0
- package/dist/types/components/button-card/gator/button-card.gator.d.ts +12 -0
- package/dist/utils/storybook-actions.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +26 -26
- package/web-types.json +36 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.1/node_modules/@vitest/runner/dist/chunk-artifact.js +0 -12
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.1/node_modules/@vitest/snapshot/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.1/node_modules/@vitest/spy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/diff.js +0 -42
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/display.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/error.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/helpers.js +0 -2
- package/dist/node_modules/.pnpm/axe-core@4.11.1/node_modules/axe-core/axe.js +0 -20
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/format.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -2
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/isPossible.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/isValid.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/metadata.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/parse.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-JVRDBUUP.js +0 -6
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-SZQXB3JV.js +0 -11
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-XLJZ7AOP.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/channels/index.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-events/index.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/test/index.js +0 -152
- package/dist/node_modules/.pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/benchmark.D0SlKNbZ.js +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/test.CBQUpOM3.js +0 -10
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +0 -8
- /package/dist/node_modules/.pnpm/{@ungap_structured-clone@1.3.0 → @ungap_structured-clone@1.3.3}/node_modules/@ungap/structured-clone/esm/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@ungap_structured-clone@1.3.0 → @ungap_structured-clone@1.3.3}/node_modules/@ungap/structured-clone/esm/types.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/offset.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/serialize.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/timers.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/index.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/aria.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/find.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/normalize.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/create.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/defined-info.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/info.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/merge.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/schema.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/types.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xlink.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xml.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xmlns.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-3LY4VQVK.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-6XWLIJQL.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-Q5RYDXT3.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-QGGIYUMM.js} +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a → vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d}/node_modules/vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a → vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d}/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as c}from"../../../../utils/decorators/custom-element-decorator.js";import{autoUpdate as m,computePosition as f,flip as _,shift as g}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as c}from"../../../../utils/decorators/custom-element-decorator.js";import{autoUpdate as m,computePosition as f,flip as _,shift as g}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{ref as l}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{handleDataTestid as h}from"../../../../utils/datatestid-utils.js";import{NjcMenu as w}from"../menu.js";import b from"../../../../packages/styles/dist/tokens/primitive.tokens.css.js";import v from"../../../../packages/styles/dist/tokens/semantic.tokens.css.js";import A from"../../../../packages/web-components/src/components/menu/base/gator/menu.gator.scss.js";import"../../menu-item/gator/menu-item.gator.js";import{unsafeCSS as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var y=Object.getOwnPropertyDescriptor,I=(t,e,n,i)=>{for(var o=i>1?void 0:i?y(e,n):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(o)||o);return o};let r=class extends w{constructor(){super(...arguments),this._dropdownRef=l(),this._wasOpenAtPointerDown=!1,this._handlePopoverToggle=t=>{const e=t.newState==="open";this.open=e,this._button?.setAttribute("aria-expanded",e?"true":"false"),e?this.assignPosition():(this._cleanupAutoUpdate?.(),this._cleanupAutoUpdate=void 0,this._dropdownRef.value?.removeAttribute("data-positioned"))}}render(){return p`
|
|
2
2
|
<div class="gator-dropdown-trigger">
|
|
3
3
|
<slot @slotchange="${this.handleTriggerSlotChange}" name="trigger"></slot>
|
|
4
4
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{within as h,waitFor as d,expect as e,userEvent as
|
|
1
|
+
import{within as h,waitFor as d,expect as e,userEvent as l}from"../../../node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/test/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const r=async({canvasElement:w,step:t})=>{const i=h(w);let s,o,c,n;await t("Scenario: Nested Panel Functionality",async()=>{await t("GIVEN the Story renders with the first panel open and the second panel closed",async()=>{s=await i.findByTestId("first-panel"),o=p(s,"first-panel-panel"),c=await i.findByTestId("second-panel"),n=p(c,"second-panel-panel"),await d(()=>e(o).toBeVisible()),e(n).not.toBeVisible()}),await t("WHEN I click on the list item with nested content to open the second panel",async()=>{i.getByTestId("list-item-with-nested").click()}),await t("THEN the second panel is opened relative to the first panel",async()=>{await d(()=>e(n).toBeVisible());const a=o?.offsetWidth;e(window.getComputedStyle(n).left).toBe(`${a}px`)}),await t("WHEN I click the collapse button in the first panel",async()=>{const a=i.getByText("Collapse");await l.click(a)}),await t("THEN I expect the second panel to have moved with the first panel",async()=>{e(window.getComputedStyle(o).width).toBe("56px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click the expand button in the first panel",async()=>{const a=i.getByTestId("expand-button");await l.click(a)}),await t("THEN I expect the first panel to expand and the second panel to move with it",async()=>{e(window.getComputedStyle(o).width).toBe("280px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click on the close button in the second panel",async()=>{const a=i.getByTestId("close-button");await l.click(a)}),await t("THEN I expect the second panel to be closed",async()=>{n.addEventListener("animationend",()=>{e(n).not.toBeVisible()},{once:!0})})})};export{r as nestedPanelTests};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcPopover as f}from"../popover.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as u}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as d}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as m}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as g}from"../../../utils/decorators/custom-element-decorator.js";import v from"../../../packages/web-components/src/components/popover/gator/popover.gator.scss.js";import b from"../../../packages/web-components/src/components/popover/popover.scss.js";import _ from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import y from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{autoUpdate as P,computePosition as E,autoPlacement as O}from"../../../node_modules/.pnpm/@floating-ui_dom@1.
|
|
1
|
+
import{NjcPopover as f}from"../popover.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as u}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as d}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as m}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as g}from"../../../utils/decorators/custom-element-decorator.js";import v from"../../../packages/web-components/src/components/popover/gator/popover.gator.scss.js";import b from"../../../packages/web-components/src/components/popover/popover.scss.js";import _ from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import y from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{autoUpdate as P,computePosition as E,autoPlacement as O}from"../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as p}from"../../../consts/key-constants.js";import{msg as k}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var w=Object.getOwnPropertyDescriptor,$=(t,e,i,s)=>{for(var o=s>1?void 0:s?w(e,i):e,r=t.length-1,n;r>=0;r--)(n=t[r])&&(o=n(o)||o);return o};let c=class extends f{render(){return a`
|
|
2
2
|
<div
|
|
3
3
|
${m(this._popoverRef)}
|
|
4
4
|
id="${this.popoverId}"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as f}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{msg as u}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{customElement as c}from"../../../../utils/decorators/custom-element-decorator.js";import{createRef as h,ref as m}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{autoUpdate as y,computePosition as d}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as f}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{msg as u}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{customElement as c}from"../../../../utils/decorators/custom-element-decorator.js";import{createRef as h,ref as m}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{autoUpdate as y,computePosition as d}from"../../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{KEY_CONSTANTS as g}from"../../../../consts/key-constants.js";import L from"../../../../packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js";import{NgcComponent as k}from"../../../../utils/components/ngc-component.js";import{unsafeCSS as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var _=Object.defineProperty,S=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,b=Reflect.get,i=(t,s,r,l)=>{for(var o=l>1?void 0:l?S(s,r):s,p=t.length-1,a;p>=0;p--)(a=t[p])&&(o=(l?a(s,r,o):a(o))||o);return l&&o&&_(s,r,o),o},R=(t,s,r)=>b(E(t),r,s);let e=class extends k{constructor(){super(...arguments),this.variant="button",this.target="",this.text="",this.placement="right",this.xOffset=0,this.yOffset=0,this.referenceElement="",this._skipLinkRef=h()}render(){return f`
|
|
2
2
|
<div
|
|
3
3
|
${m(this._skipLinkRef)}
|
|
4
4
|
@focusin="${this.showSkipLink}"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcTooltip as c}from"../tooltip.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as d}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as f}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as m}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as h}from"../../../utils/decorators/custom-element-decorator.js";import a from"../../../packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js";import u from"../../../packages/web-components/src/components/tooltip/tooltip.scss.js";import b from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import g from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{autoUpdate as y,computePosition as P}from"../../../node_modules/.pnpm/@floating-ui_dom@1.
|
|
1
|
+
import{NjcTooltip as c}from"../tooltip.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as d}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as f}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as m}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as h}from"../../../utils/decorators/custom-element-decorator.js";import a from"../../../packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js";import u from"../../../packages/web-components/src/components/tooltip/tooltip.scss.js";import b from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import g from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{autoUpdate as y,computePosition as P}from"../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var _=Object.getOwnPropertyDescriptor,v=(t,i,e,r)=>{for(var s=r>1?void 0:r?_(i,e):i,n=t.length-1,l;n>=0;n--)(l=t[n])&&(s=l(s)||s);return s};let o=class extends c{constructor(){super(...arguments),this._portaledPopup=null}render(){return d`
|
|
2
2
|
<div ${m(this._tooltipRef)} class="gator-tooltip ${this.nubbinPositionClass}" role="tooltip" id="${this.tooltipId}">
|
|
3
3
|
<div class="gator-tooltip-body">
|
|
4
4
|
<slot></slot>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcTooltip as u}from"../tooltip.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as f}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import m from"../../../packages/web-components/src/index.slds.scss.js";import b from"../../../packages/web-components/src/components/tooltip/tooltip.scss.js";import{autoUpdate as d,computePosition as h}from"../../../node_modules/.pnpm/@floating-ui_dom@1.
|
|
1
|
+
import{NjcTooltip as u}from"../tooltip.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{ref as f}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import m from"../../../packages/web-components/src/index.slds.scss.js";import b from"../../../packages/web-components/src/components/tooltip/tooltip.scss.js";import{autoUpdate as d,computePosition as h}from"../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var _=Object.getOwnPropertyDescriptor,v=(t,e,o,n)=>{for(var s=n>1?void 0:n?_(e,o):e,i=t.length-1,l;i>=0;i--)(l=t[i])&&(s=l(s)||s);return s};let r=class extends u{render(){return a`
|
|
2
2
|
<div data-id="tooltip" ${f(this._tooltipRef)} class="slds-popover slds-popover_tooltip ${this.nubbinPositionClass}" role="tooltip">
|
|
3
3
|
<div class="slds-popover__body">
|
|
4
4
|
<slot></slot>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getSideAxis as T,getAlignmentAxis as W,getSide as F,getAlignment as D,evaluate as j,getPaddingObject as q,rectToClientRect as X,getOppositePlacement as z,getExpandedPlacements as G,getOppositeAxisPlacements as H,getAlignmentSides as N,getAxisLength as J,clamp as K,getOppositeAxis as Q,placements as I,getOppositeAlignmentPlacement as Z}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function Y(t,l,m){let{reference:n,floating:e}=t;const i=T(l),a=W(l),o=J(a),u=F(l),y=i==="y",g=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2,c=n[o]/2-e[o]/2;let r;switch(u){case"top":r={x:g,y:n.y-e.height};break;case"bottom":r={x:g,y:n.y+n.height};break;case"right":r={x:n.x+n.width,y:s};break;case"left":r={x:n.x-e.width,y:s};break;default:r={x:n.x,y:n.y}}const f=D(l);return f&&(r[a]+=c*(f==="end"?1:-1)*(m&&y?-1:1)),r}async function ee(t,l){var m;l===void 0&&(l={});const{x:n,y:e,platform:i,rects:a,elements:o,strategy:u}=t,{boundary:y="clippingAncestors",rootBoundary:g="viewport",elementContext:s="floating",altBoundary:c=!1,padding:r=0}=j(l,t),f=q(r),h=o[c?s==="floating"?"reference":"floating":s],d=X(await i.getClippingRect({element:(m=await(i.isElement==null?void 0:i.isElement(h)))==null||m?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:y,rootBoundary:g,strategy:u})),w=s==="floating"?{x:n,y:e,width:a.floating.width,height:a.floating.height}:a.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),A=await(i.isElement==null?void 0:i.isElement(p))&&await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1},P=X(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:w,offsetParent:p,strategy:u}):w);return{top:(d.top-P.top+f.top)/A.y,bottom:(P.bottom-d.bottom+f.bottom)/A.y,left:(d.left-P.left+f.left)/A.x,right:(P.right-d.right+f.right)/A.x}}const te=50,ie=async(t,l,m)=>{const{placement:n="bottom",strategy:e="absolute",middleware:i=[],platform:a}=m,o=a.detectOverflow?a:{...a,detectOverflow:ee},u=await(a.isRTL==null?void 0:a.isRTL(l));let y=await a.getElementRects({reference:t,floating:l,strategy:e}),{x:g,y:s}=Y(y,n,u),c=n,r=0;const f={};for(let x=0;x<i.length;x++){const h=i[x];if(!h)continue;const{name:d,fn:w}=h,{x:p,y:A,data:P,reset:O}=await w({x:g,y:s,initialPlacement:n,placement:c,strategy:e,middlewareData:f,rects:y,platform:o,elements:{reference:t,floating:l}});g=p??g,s=A??s,f[d]={...f[d],...P},O&&r<te&&(r++,typeof O=="object"&&(O.placement&&(c=O.placement),O.rects&&(y=O.rects===!0?await a.getElementRects({reference:t,floating:l,strategy:e}):O.rects),{x:g,y:s}=Y(y,c,u)),x=-1)}return{x:g,y:s,placement:c,strategy:e,middlewareData:f}};function ne(t,l,m){return(t?[...m.filter(e=>D(e)===t),...m.filter(e=>D(e)!==t)]:m.filter(e=>F(e)===e)).filter(e=>t?D(e)===t||(l?Z(e)!==e:!1):!0)}const oe=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(l){var m,n,e;const{rects:i,middlewareData:a,placement:o,platform:u,elements:y}=l,{crossAxis:g=!1,alignment:s,allowedPlacements:c=I,autoAlignment:r=!0,...f}=j(t,l),x=s!==void 0||c===I?ne(s||null,r,c):c,h=((m=a.autoPlacement)==null?void 0:m.index)||0,d=x[h];if(d==null)return{};if(o!==d)return{reset:{placement:x[0]}};const w=await u.detectOverflow(l,f),p=N(d,i,await(u.isRTL==null?void 0:u.isRTL(y.floating))),A=[w[F(d)],w[p[0]],w[p[1]]],P=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:d,overflows:A}],O=x[h+1];if(O)return{data:{index:h+1,overflows:P},reset:{placement:O}};const B=P.map(v=>{const R=D(v.placement);return[v.placement,R&&g?v.overflows.slice(0,2).reduce((_,$)=>_+$,0):v.overflows[0],v.overflows]}).sort((v,R)=>v[1]-R[1]),C=((e=B.filter(v=>v[2].slice(0,D(v[0])?2:3).every(R=>R<=0))[0])==null?void 0:e[0])||B[0][0];return C!==o?{data:{index:h+1,overflows:P},reset:{placement:C}}:{}}}},ae=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(l){var m,n;const{placement:e,middlewareData:i,rects:a,initialPlacement:o,platform:u,elements:y}=l,{mainAxis:g=!0,crossAxis:s=!0,fallbackPlacements:c,fallbackStrategy:r="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:x=!0,...h}=j(t,l);if((m=i.arrow)!=null&&m.alignmentOffset)return{};const d=F(e),w=T(o),p=F(o)===o,A=await(u.isRTL==null?void 0:u.isRTL(y.floating)),P=c||(p||!x?[z(o)]:G(o)),O=f!=="none";!c&&O&&P.push(...H(o,x,f,A));const B=[o,...P],M=await u.detectOverflow(l,h),C=[];let v=((n=i.flip)==null?void 0:n.overflows)||[];if(g&&C.push(M[d]),s){const k=N(e,a,A);C.push(M[k[0]],M[k[1]])}if(v=[...v,{placement:e,overflows:C}],!C.every(k=>k<=0)){var R,_;const k=(((R=i.flip)==null?void 0:R.index)||0)+1,V=B[k];if(V&&(!(s==="alignment"?w!==T(V):!1)||v.every(b=>T(b.placement)===w?b.overflows[0]>0:!0)))return{data:{index:k,overflows:v},reset:{placement:V}};let L=(_=v.filter(E=>E.overflows[0]<=0).sort((E,b)=>E.overflows[1]-b.overflows[1])[0])==null?void 0:_.placement;if(!L)switch(r){case"bestFit":{var $;const E=($=v.filter(b=>{if(O){const S=T(b.placement);return S===w||S==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(S=>S>0).reduce((S,U)=>S+U,0)]).sort((b,S)=>b[1]-S[1])[0])==null?void 0:$[0];E&&(L=E);break}case"initialPlacement":L=o;break}if(e!==L)return{reset:{placement:L}}}return{}}}},se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(l){const{x:m,y:n,placement:e,platform:i}=l,{mainAxis:a=!0,crossAxis:o=!1,limiter:u={fn:w=>{let{x:p,y:A}=w;return{x:p,y:A}}},...y}=j(t,l),g={x:m,y:n},s=await i.detectOverflow(l,y),c=T(e),r=Q(c);let f=g[r],x=g[c];const h=(w,p)=>K(p+s[w==="y"?"top":"left"],p,p-s[w==="y"?"bottom":"right"]);a&&(f=h(r,f)),o&&(x=h(c,x));const d=u.fn({...l,[r]:f,[c]:x});return{...d,data:{x:d.x-m,y:d.y-n,enabled:{[r]:a,[c]:o}}}}}};export{oe as autoPlacement,ie as computePosition,ee as detectOverflow,ae as flip,X as rectToClientRect,se as shift};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{computePosition as st,flip as rt,shift as ct,autoPlacement as lt}from"../../../../../@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{rectToClientRect as J,floor as W,createCoords as v,round as S,max as T,min as M}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as N,isElement as R,getDocumentElement as C,getWindow as x,isHTMLElement as F,getComputedStyle as b,isTopLayer as _,getParentNode as D,isLastTraversableNode as A,isTableElement as ft,isContainingBlock as Q,getContainingBlock as ut,getNodeName as $,isOverflowElement as Y,getNodeScroll as z,isWebKit as Z,getFrameElement as k}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function tt(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=F(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=S(o)!==r||S(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function P(t){return R(t)?t:t.contextElement}function E(t){const e=P(t);if(!F(e))return v(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=tt(e);let s=(r?S(o.width):o.width)/n,c=(r?S(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const at=v(0);function et(t){const e=x(t);return!Z()||!e.visualViewport?at:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ht(t,e,o){return e===void 0&&(e=!1),!!o&&e&&o===x(t)}function L(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=P(t);let s=v(1);e&&(n?R(n)&&(s=E(n)):s=E(t));const c=ht(r,o,n)?et(r):v(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r&&n){const d=x(r),h=R(n)?x(n):n;let y=d,p=k(y);for(;p&&h!==y;){const w=E(p),g=p.getBoundingClientRect(),m=b(p),O=g.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,V=g.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;f*=w.x,l*=w.y,u*=w.x,a*=w.y,f+=O,l+=V,y=x(p),p=k(y)}}return J({width:u,height:a,x:f,y:l})}function B(t,e){const o=z(t).scrollLeft;return e?e.left+o:L(C(t)).left+o}function ot(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-B(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function dt(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=C(n),c=e?_(e.floating):!1;if(n===s||c&&r)return o;let f={scrollLeft:0,scrollTop:0},l=v(1);const u=v(0),a=F(n);if((a||!r)&&(($(n)!=="body"||Y(s))&&(f=z(n)),a)){const h=L(n);l=E(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const d=s&&!a&&!r?ot(s,f):v(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+u.x+d.x,y:o.y*l.y-f.scrollTop*l.y+u.y+d.y}}function gt(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function pt(t){const e=z(t),o=t.ownerDocument.body,n=T(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=T(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-e.scrollLeft+B(t);const s=-e.scrollTop;return b(o).direction==="rtl"&&(r+=T(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:r,y:s}}const wt=25;function yt(t,e,o){o===void 0&&(o="viewport");const n=o==="layoutViewport",i=x(t),r=C(t),s=i.visualViewport;let c=r.clientWidth,f=r.clientHeight,l=0,u=0;if(s){const d=!Z()||e==="fixed";n?d||(l=-s.offsetLeft,u=-s.offsetTop):(c=s.width,f=s.height,d&&(l=s.offsetLeft,u=s.offsetTop))}if(B(r)<=0){const d=r.ownerDocument,h=d.body,y=getComputedStyle(h),p=d.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-p),g=getComputedStyle(r).scrollbarGutter==="stable both-edges"?w/2:w;g<=wt&&(c-=g)}return{width:c,height:f,x:l,y:u}}function mt(t,e){const o=L(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=E(t),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=n*r.y;return{width:s,height:c,x:f,y:l}}function G(t,e,o){let n;if(e==="viewport"||e==="layoutViewport")n=yt(t,o,e);else if(e==="document")n=pt(C(t));else if(R(e))n=mt(e,o);else{const i=et(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function vt(t,e){const o=e.get(t);if(o)return o;let n=N(t,[],!1).filter(c=>R(c)&&$(c)!=="body"),i=null;const r=b(t).position==="fixed";let s=r?D(t):t;for(;R(s)&&!A(s);){const c=b(s),f=Q(s),l=i?i.position:r?"fixed":"";!f&&(l==="fixed"||l==="absolute"&&c.position==="static")?n=n.filter(a=>a!==s):i=c,s=D(s)}return e.set(t,n),n}function xt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?_(e)?[]:vt(e,this._c):[].concat(o),n],c=G(e,s[0],i);let f=c.top,l=c.right,u=c.bottom,a=c.left;for(let d=1;d<s.length;d++){const h=G(e,s[d],i);f=T(h.top,f),l=M(h.right,l),u=M(h.bottom,u),a=T(h.left,a)}return{width:l-a,height:u-f,x:a,y:f}}function Rt(t){const{width:e,height:o}=tt(t);return{width:e,height:o}}function bt(t,e,o){const n=F(e),i=C(e),r=o==="fixed",s=L(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=v(0);if((n||!r)&&(($(e)!=="body"||Y(i))&&(c=z(e)),n)){const d=L(e,!0,r,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}!n&&i&&(f.x=B(i));const l=i&&!n&&!r?ot(i,c):v(0),u=s.left+c.scrollLeft-f.x-l.x,a=s.top+c.scrollTop-f.y-l.y;return{x:u,y:a,width:s.width,height:s.height}}function I(t){return b(t).position==="static"}function j(t,e){if(!F(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return C(t)===o&&(o=o.ownerDocument.body),o}function nt(t,e){const o=x(t);if(_(t))return o;if(!F(t)){let i=D(t);for(;i&&!A(i);){if(R(i)&&!I(i))return i;i=D(i)}return o}let n=j(t,e);for(;n&&ft(n)&&I(n);)n=j(n,e);return n&&A(n)&&I(n)&&!Q(n)?o:n||ut(t)||o}const Ct=async function(t){const e=this.getOffsetParent||nt,o=this.getDimensions,n=await o(t.floating);return{reference:bt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lt(t){return b(t).direction==="rtl"}const Ot={convertOffsetParentRelativeRectToViewportRelativeRect:dt,getDocumentElement:C,getClippingRect:xt,getOffsetParent:nt,getElementRects:Ct,getClientRects:gt,getDimensions:Rt,getScale:E,isElement:R,isRTL:Lt};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Tt(t,e,o){let n=null,i;const r=C(t);function s(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function c(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),s();const d=t.getBoundingClientRect(),{left:h,top:y,width:p,height:w}=d;if(u||e(),!p||!w)return;const g=W(y),m=W(r.clientWidth-(h+p)),O=W(r.clientHeight-(y+w)),V=W(h),X={rootMargin:-g+"px "+-m+"px "+-O+"px "+-V+"px",threshold:T(0,M(1,a))||1};let q=!0;function K(U){const H=U[0].intersectionRatio;if(!it(d,t.getBoundingClientRect()))return c();if(H!==a){if(!q)return c();H?c(!1,H):i=setTimeout(()=>{c(!1,1e-7)},1e3)}q=!1}try{n=new IntersectionObserver(K,{...X,root:r.ownerDocument})}catch{n=new IntersectionObserver(K,X)}n.observe(t)}const f=x(t),l=()=>c(o);return f.addEventListener("resize",l),c(!0),()=>{f.removeEventListener("resize",l),s()}}function Dt(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=P(t),u=i||r?[...l?N(l):[],...e?N(e):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o),r&&g.addEventListener("resize",o)});const a=l&&c?Tt(l,o,r):null;let d=-1,h=null;s&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===l&&h&&e&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(e)})),o()}),l&&!f&&h.observe(l),e&&h.observe(e));let y,p=f?L(t):null;f&&w();function w(){const g=L(t);p&&!it(p,g)&&o(),p=g,y=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(m=>{i&&m.removeEventListener("scroll",o),r&&m.removeEventListener("resize",o)}),a?.(),(g=h)==null||g.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const zt=lt,Bt=ct,Vt=rt,Ht=(t,e,o)=>{const n=new Map,i=o??{},r={...Ot,...i.platform,_c:n};return st(t,e,{...i,platform:r})};export{zt as autoPlacement,Dt as autoUpdate,Ht as computePosition,Vt as flip,N as getOverflowAncestors,Ot as platform,Bt as shift};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function u(){return typeof window<"u"}function a(t){return m(t)?(t.nodeName||"").toLowerCase():"#document"}function i(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function L(t){var n;return(n=(m(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function m(t){return u()?t instanceof Node||t instanceof i(t).Node:!1}function h(t){return u()?t instanceof Element||t instanceof i(t).Element:!1}function g(t){return u()?t instanceof HTMLElement||t instanceof i(t).HTMLElement:!1}function p(t){return!u()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof i(t).ShadowRoot}function y(t){const{overflow:n,overflowX:r,overflowY:c,display:e}=S(t);return/auto|scroll|overlay|hidden|clip/.test(n+c+r)&&e!=="inline"&&e!=="contents"}function _(t){return/^(table|td|th)$/.test(a(t))}function T(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const v=/transform|translate|scale|rotate|perspective|filter/,C=/paint|layout|strict|content/,o=t=>!!t&&t!=="none";let s;function D(t){const n=h(t)?S(t):t;return o(n.transform)||o(n.translate)||o(n.scale)||o(n.rotate)||o(n.perspective)||!R()&&(o(n.backdropFilter)||o(n.filter))||v.test(n.willChange||"")||C.test(n.contain||"")}function W(t){let n=f(t);for(;g(n)&&!N(n);){if(D(n))return n;if(T(n))return null;n=f(n)}return null}function R(){return s==null&&(s=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),s}function N(t){return/^(html|body|#document)$/.test(a(t))}function S(t){return i(t).getComputedStyle(t)}function $(t){return h(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function f(t){if(a(t)==="html")return t;const n=t.assignedSlot||t.parentNode||p(t)&&t.host||L(t);return p(n)?n.host:n}function b(t){const n=f(t);return N(n)?(t.ownerDocument||t).body:g(n)&&y(n)?n:b(n)}function w(t,n,r){var c;n===void 0&&(n=[]),r===void 0&&(r=!0);const e=b(t),E=e===((c=t.ownerDocument)==null?void 0:c.body),l=i(e);if(E){const d=k(l);return n.concat(l,l.visualViewport||[],y(e)?e:[],d&&r?w(d):[])}else return n.concat(e,w(e,[],r))}function k(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}export{S as getComputedStyle,W as getContainingBlock,L as getDocumentElement,k as getFrameElement,b as getNearestOverflowAncestor,a as getNodeName,$ as getNodeScroll,w as getOverflowAncestors,f as getParentNode,i as getWindow,D as isContainingBlock,h as isElement,g as isHTMLElement,N as isLastTraversableNode,m as isNode,y as isOverflowElement,p as isShadowRoot,_ as isTableElement,T as isTopLayer,R as isWebKit};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const p=["top","right","bottom","left"],u=["start","end"],$=p.reduce((t,n)=>t.concat(n,n+"-"+u[0],n+"-"+u[1]),[]),h=Math.min,b=Math.max,w=Math.round,C=Math.floor,j=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function L(t,n,e){return b(t,h(n,e))}function E(t,n){return typeof t=="function"?t(n):t}function g(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function x(t){return t==="x"?"y":"x"}function A(t){return t==="y"?"height":"width"}function P(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function y(t){return x(P(t))}function R(t,n,e){e===void 0&&(e=!1);const i=m(t),o=y(t),r=A(o);let c=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(c=l(c)),[c,l(c)]}function T(t){const n=l(t);return[s(t),n,s(n)]}function s(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const f=["left","right"],a=["right","left"],O=["top","bottom"],M=["bottom","top"];function S(t,n,e){switch(t){case"top":case"bottom":return e?n?a:f:n?f:a;case"left":case"right":return n?O:M;default:return[]}}function k(t,n,e,i){const o=m(t);let r=S(g(t),e==="start",i);return o&&(r=r.map(c=>c+"-"+o),n&&(r=r.concat(r.map(s)))),r}function l(t){const n=g(t);return d[n]+t.slice(n.length)}function _(t){var n,e,i,o;return{top:(n=t.top)!=null?n:0,right:(e=t.right)!=null?e:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function q(t){return typeof t!="number"?_(t):{top:t,right:t,bottom:t,left:t}}function v(t){const{x:n,y:e,width:i,height:o}=t;return{width:i,height:o,top:e,left:n,right:n+i,bottom:e+o,x:n,y:e}}export{u as alignments,L as clamp,j as createCoords,E as evaluate,_ as expandPaddingObject,C as floor,m as getAlignment,y as getAlignmentAxis,R as getAlignmentSides,A as getAxisLength,T as getExpandedPlacements,s as getOppositeAlignmentPlacement,x as getOppositeAxis,k as getOppositeAxisPlacements,l as getOppositePlacement,q as getPaddingObject,g as getSide,P as getSideAxis,b as max,h as min,$ as placements,v as rectToClientRect,w as round,p as sides};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{b as Me}from"../../../../../../../../_virtual/index.js";import*as yr from"../../../../../../../../_virtual/index.js";import{computeAccessibleDescription as qe}from"../../../../../../dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.js";import{computeAccessibleName as fe}from"../../../../../../dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.js";import{l as A}from"../../../../../../../../_virtual/index2.js";import it from"../../../../../../../../_virtual/lz-string.js";var ee={};function Ne(e){return e.replace(/</g,"<").replace(/>/g,">")}const at=(e,t,n,o,r,l,i)=>{const a=o+n.indent,s=n.colors;return e.map(u=>{const c=t[u];let f=i(c,n,a,r,l);return typeof c!="string"&&(f.indexOf(`
|
|
2
|
+
`)!==-1&&(f=n.spacingOuter+a+f+n.spacingOuter+o),f="{"+f+"}"),n.spacingInner+o+s.prop.open+u+s.prop.close+"="+s.value.open+f+s.value.close}).join("")},st=3,ut=(e,t,n,o,r,l)=>e.map(i=>{const a=typeof i=="string"?Le(i,t):l(i,t,n,o,r);return a===""&&typeof i=="object"&&i!==null&&i.nodeType!==st?"":t.spacingOuter+n+a}).join(""),Le=(e,t)=>{const n=t.colors.content;return n.open+Ne(e)+n.close},ct=(e,t)=>{const n=t.colors.comment;return n.open+"<!--"+Ne(e)+"-->"+n.close},ft=(e,t,n,o,r)=>{const l=o.colors.tag;return l.open+"<"+e+(t&&l.close+t+o.spacingOuter+r+l.open)+(n?">"+l.close+n+o.spacingOuter+r+l.open+"</"+e:(t&&!o.min?"":" ")+"/")+">"+l.close},dt=(e,t)=>{const n=t.colors.tag;return n.open+"<"+e+n.close+" …"+n.open+" />"+n.close},pt=1,Pe=3,Fe=8,Re=11,bt=/^((HTML|SVG)\w*)?Element$/,ke=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},yt=e=>{const t=e.constructor.name,{nodeType:n}=e;return n===pt&&(bt.test(t)||ke(e))||n===Pe&&t==="Text"||n===Fe&&t==="Comment"||n===Re&&t==="DocumentFragment"};function mt(e){return e.nodeType===Pe}function vt(e){return e.nodeType===Fe}function Y(e){return e.nodeType===Re}function gt(e){return{test:t=>{var n;return((t==null||(n=t.constructor)==null?void 0:n.name)||ke(t))&&yt(t)},serialize:(t,n,o,r,l,i)=>{if(mt(t))return Le(t.data,n);if(vt(t))return ct(t.data,n);const a=Y(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>n.maxDepth?dt(a,n):ft(a,at(Y(t)?[]:Array.from(t.attributes).map(s=>s.name).sort(),Y(t)?{}:Array.from(t.attributes).reduce((s,u)=>(s[u.name]=u.value,s),{}),n,o+n.indent,r,l,i),ut(Array.prototype.slice.call(t.childNodes||t.children).filter(e),n,o+n.indent,r,l,i),n,o)}}}let je=null,de=null,pe=null;try{const e=module&&module.require;de=e.call(module,"fs").readFileSync,pe=e.call(module,"@babel/code-frame").codeFrameColumns,je=e.call(module,"picocolors")}catch{}function Et(e){const t=e.indexOf("(")+1,n=e.indexOf(")"),o=e.slice(t,n),r=o.split(":"),[l,i,a]=[r[0],parseInt(r[1],10),parseInt(r[2],10)];let s="";try{s=de(l,"utf-8")}catch{return""}const u=pe(s,{start:{line:i,column:a}},{highlightCode:!0,linesBelow:0});return je.dim(o)+`
|
|
3
|
+
`+u+`
|
|
4
|
+
`}function ht(){if(!de||!pe)return"";const t=new Error().stack.split(`
|
|
5
|
+
`).slice(1).find(n=>!n.includes("node_modules/"));return Et(t)}const We=3;function Z(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function be(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function ze(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function B(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(n){return typeof n=="object"?n===null?"null":n.constructor.name:typeof n}}const Tt=()=>{if(typeof process>"u")return!1;let e;try{var t;const n=(t=ee)==null?void 0:t.COLORS;n&&(e=JSON.parse(n))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:wt}=Me.plugins,At=1,It=8;function xt(e){return e.nodeType!==It&&(e.nodeType!==At||!e.matches(y().defaultIgnore))}function Q(e,t,n){if(n===void 0&&(n={}),e||(e=be().body),typeof t!="number"&&(t=typeof process<"u"&&typeof ee<"u"&&ee.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let o=typeof e;if(o==="object"?o=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+o);const{filterNode:r=xt,...l}=n,i=Me.format(e,{plugins:[gt(r),wt],printFunctionName:!1,highlight:Tt(),...l});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}const Ie=function(){const e=ht();console.log(e?Q(...arguments)+`
|
|
6
|
+
|
|
7
|
+
`+e:Q(...arguments))};let N={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const n=Q(t),o=new Error([e,"Ignored nodes: comments, "+N.defaultIgnore+`
|
|
8
|
+
`+n].filter(Boolean).join(`
|
|
9
|
+
|
|
10
|
+
`));return o.name="TestingLibraryElementError",o},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function St(e){try{return N._disableExpensiveErrorDiagnostics=!0,e()}finally{N._disableExpensiveErrorDiagnostics=!1}}function hr(e){typeof e=="function"&&(e=e(N)),N={...N,...e}}function y(){return N}const Bt=["button","meter","output","progress","select","textarea","input"];function Ue(e){return Bt.includes(e.nodeName.toLowerCase())?"":e.nodeType===We?e.textContent:Array.from(e.childNodes).map(t=>Ue(t)).join("")}function te(e){let t;return e.tagName.toLowerCase()==="label"?t=Ue(e):t=e.value||e.textContent,t}function Ve(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!Ct(e))return[];const n=e.ownerDocument.querySelectorAll("label");return Array.from(n).filter(o=>o.control===e)}function Ct(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function He(e,t,n){let{selector:o="*"}=n===void 0?{}:n;const r=t.getAttribute("aria-labelledby"),l=r?r.split(" "):[];return l.length?l.map(i=>{const a=e.querySelector('[id="'+i+'"]');return a?{content:te(a),formControl:null}:{content:"",formControl:null}}):Array.from(Ve(t)).map(i=>{const a=te(i),u=Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(c=>c.matches(o))[0];return{content:a,formControl:u}})}function $e(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function k(e,t,n,o){if(typeof e!="string")return!1;$e(n);const r=o(e);return typeof n=="string"||typeof n=="number"?r.toLowerCase().includes(n.toString().toLowerCase()):typeof n=="function"?n(r,t):Qe(n,r)}function S(e,t,n,o){if(typeof e!="string")return!1;$e(n);const r=o(e);return n instanceof Function?n(r,t):n instanceof RegExp?Qe(n,r):r===String(n)}function Ge(e){let{trim:t=!0,collapseWhitespace:n=!0}=e===void 0?{}:e;return o=>{let r=o;return r=t?r.trim():r,r=n?r.replace(/\s+/g," "):r,r}}function F(e){let{trim:t,collapseWhitespace:n,normalizer:o}=e;if(!o)return Ge({trim:t,collapseWhitespace:n});if(typeof t<"u"||typeof n<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return o}function Qe(e,t){const n=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),n}function J(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===We&&!!t.textContent).map(t=>t.textContent).join("")}const Ot=Dt(A.elementRoles);function Xe(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function ye(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:n=Xe}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let r=e;for(;r;){if(n(r))return!0;r=r.parentElement}return!1}function me(e){for(const{match:t,roles:n}of Ot)if(t(e))return[...n];return[]}function Dt(e){function t(i){let{name:a,attributes:s}=i;return""+a+s.map(u=>{let{name:c,value:f,constraints:d=[]}=u;const g=d.indexOf("undefined")!==-1,v=d.indexOf("set")!==-1;return typeof f<"u"?"["+c+'="'+f+'"]':g?":not(["+c+"])":v?"["+c+"]:not(["+c+'=""])':"["+c+"]"}).join("")}function n(i){let{attributes:a=[]}=i;return a.length}function o(i,a){let{specificity:s}=i,{specificity:u}=a;return u-s}function r(i){let{attributes:a=[]}=i;const s=a.findIndex(c=>c.value&&c.name==="type"&&c.value==="text");s>=0&&(a=[...a.slice(0,s),...a.slice(s+1)]);const u=t({...i,attributes:a});return c=>s>=0&&c.type!=="text"?!1:c.matches(u)}let l=[];for(const[i,a]of e.entries())l=[...l,{match:r(i),roles:Array.from(a),specificity:n(i)}];return l.sort(o)}function Mt(e,t){let{hidden:n=!1}=t===void 0?{}:t;function o(r){return[r,...Array.from(r.children).reduce((l,i)=>[...l,...o(i)],[])]}return o(e).filter(r=>n===!1?ye(r)===!1:!0).reduce((r,l)=>{let i=[];return l.hasAttribute("role")?i=l.getAttribute("role").split(" ").slice(0,1):i=me(l),i.reduce((a,s)=>Array.isArray(a[s])?{...a,[s]:[...a[s],l]}:{...a,[s]:[l]},r)},{})}function Je(e,t){let{hidden:n,includeDescription:o}=t;const r=Mt(e,{hidden:n});return Object.entries(r).filter(l=>{let[i]=l;return i!=="generic"}).map(l=>{let[i,a]=l;const s="-".repeat(50),u=a.map(c=>{const f='Name "'+fe(c,{computedStyleSupportsPseudoElements:y().computedStyleSupportsPseudoElements})+`":
|
|
11
|
+
`,d=Q(c.cloneNode(!1));if(o){const g='Description "'+qe(c,{computedStyleSupportsPseudoElements:y().computedStyleSupportsPseudoElements})+`":
|
|
12
|
+
`;return""+f+g+d}return""+f+d}).join(`
|
|
13
|
+
|
|
14
|
+
`);return i+`:
|
|
15
|
+
|
|
16
|
+
`+u+`
|
|
17
|
+
|
|
18
|
+
`+s}).join(`
|
|
19
|
+
`)}const Tr=function(e,t){let{hidden:n=!1}=t===void 0?{}:t;return console.log(Je(e,{hidden:n}))};function qt(e){return e.tagName==="OPTION"?e.selected:H(e,"aria-selected")}function Nt(e){return e.getAttribute("aria-busy")==="true"}function Lt(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:H(e,"aria-checked")}function Pt(e){return H(e,"aria-pressed")}function Ft(e){var t,n;return(t=(n=H(e,"aria-current"))!=null?n:e.getAttribute("aria-current"))!=null?t:!1}function Rt(e){return H(e,"aria-expanded")}function H(e,t){const n=e.getAttribute(t);if(n==="true")return!0;if(n==="false")return!1}function kt(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function jt(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function Wt(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function zt(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function Ut(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const xe=Ge();function Vt(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Se(e){return new RegExp(Vt(e.toLowerCase()),"i")}function C(e,t,n,o){let{variant:r,name:l}=o,i="";const a={},s=[["Role","TestId"].includes(e)?n:Se(n)];l&&(a.name=Se(l)),e==="Role"&&ye(t)&&(a.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
20
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
21
|
+
`),Object.keys(a).length>0&&s.push(a);const u=r+"By"+e;return{queryName:e,queryMethod:u,queryArgs:s,variant:r,warning:i,toString(){i&&console.warn(i);let[c,f]=s;return c=typeof c=="string"?"'"+c+"'":c,f=f?", { "+Object.entries(f).map(d=>{let[g,v]=d;return g+": "+v}).join(", ")+" }":"",u+"("+c+f+")"}}}function O(e,t,n){return n&&(!t||t.toLowerCase()===e.toLowerCase())}function ne(e,t,n){var o,r;if(t===void 0&&(t="get"),e.matches(y().defaultIgnore))return;const l=(o=e.getAttribute("role"))!=null?o:(r=me(e))==null?void 0:r[0];if(l!=="generic"&&O("Role",n,l))return C("Role",e,l,{variant:t,name:fe(e,{computedStyleSupportsPseudoElements:y().computedStyleSupportsPseudoElements})});const i=He(document,e).map(d=>d.content).join(" ");if(O("LabelText",n,i))return C("LabelText",e,i,{variant:t});const a=e.getAttribute("placeholder");if(O("PlaceholderText",n,a))return C("PlaceholderText",e,a,{variant:t});const s=xe(J(e));if(O("Text",n,s))return C("Text",e,s,{variant:t});if(O("DisplayValue",n,e.value))return C("DisplayValue",e,xe(e.value),{variant:t});const u=e.getAttribute("alt");if(O("AltText",n,u))return C("AltText",e,u,{variant:t});const c=e.getAttribute("title");if(O("Title",n,c))return C("Title",e,c,{variant:t});const f=e.getAttribute(y().testIdAttribute);if(O("TestId",n,f))return C("TestId",e,f,{variant:t})}function G(e,t){e.stack=t.stack.replace(t.message,e.message)}function Ht(e,t){let{container:n=be(),timeout:o=y().asyncUtilTimeout,showOriginalStackTrace:r=y().showOriginalStackTrace,stackTraceError:l,interval:i=50,onTimeout:a=u=>(Object.defineProperty(u,"message",{value:y().getElementError(u.message,n).message}),u),mutationObserverOptions:s={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,c)=>{let f,d,g,v=!1,p="idle";const h=setTimeout($,o),E=Z();if(E){const{unstable_advanceTimersWrapper:m}=y();for(M();!v;){if(!Z()){const T=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");r||G(T,l),c(T);return}if(await m(async()=>{jest.advanceTimersByTime(i)}),v)break;M()}}else{try{B(n)}catch(T){c(T);return}d=setInterval(W,i);const{MutationObserver:m}=ze(n);g=new m(W),g.observe(n,s),M()}function x(m,T){v=!0,clearTimeout(h),E||(clearInterval(d),g.disconnect()),m?c(m):u(T)}function W(){if(Z()){const m=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return r||G(m,l),c(m)}else return M()}function M(){if(p!=="pending")try{const m=St(e);typeof m?.then=="function"?(p="pending",m.then(T=>{p="resolved",x(null,T)},T=>{p="rejected",f=T})):x(null,m)}catch(m){f=m}}function $(){let m;f?(m=f,!r&&m.name==="TestingLibraryElementError"&&G(m,l)):(m=new Error("Timed out in waitFor."),r||G(m,l)),x(a(m),null)}})}function Ke(e,t){const n=new Error("STACK_TRACE_MESSAGE");return y().asyncWrapper(()=>Ht(e,{stackTraceError:n,...t}))}function ve(e,t){return y().getElementError(e,t)}function ge(e,t){return ve(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function j(e,t,n,o){let{exact:r=!0,collapseWhitespace:l,trim:i,normalizer:a}=o===void 0?{}:o;const s=r?S:k,u=F({collapseWhitespace:l,trim:i,normalizer:a});return Array.from(t.querySelectorAll("["+e+"]")).filter(c=>s(c.getAttribute(e),c,n,u))}function $t(e,t,n,o){const r=j(e,t,n,o);if(r.length>1)throw ge("Found multiple elements by ["+e+"="+n+"]",t);return r[0]||null}function z(e,t){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),l=1;l<o;l++)r[l-1]=arguments[l];const i=e(n,...r);if(i.length>1){const a=i.map(s=>ve(null,s).message).join(`
|
|
22
|
+
|
|
23
|
+
`);throw ge(t(n,...r)+`
|
|
24
|
+
|
|
25
|
+
Here are the matching elements:
|
|
26
|
+
|
|
27
|
+
`+a,n)}return i[0]||null}}function Ye(e,t){return y().getElementError(`A better query is available, try this:
|
|
28
|
+
`+e.toString()+`
|
|
29
|
+
`,t)}function Ze(e,t){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),l=1;l<o;l++)r[l-1]=arguments[l];const i=e(n,...r);if(!i.length)throw y().getElementError(t(n,...r),n);return i}}function U(e){return(t,n,o,r)=>Ke(()=>e(t,n,o),{container:t,...r})}const L=(e,t,n)=>function(o){for(var r=arguments.length,l=new Array(r>1?r-1:0),i=1;i<r;i++)l[i-1]=arguments[i];const a=e(o,...l),[{suggest:s=y().throwSuggestions}={}]=l.slice(-1);if(a&&s){const u=ne(a,n);if(u&&!t.endsWith(u.queryName))throw Ye(u.toString(),o)}return a},w=(e,t,n)=>function(o){for(var r=arguments.length,l=new Array(r>1?r-1:0),i=1;i<r;i++)l[i-1]=arguments[i];const a=e(o,...l),[{suggest:s=y().throwSuggestions}={}]=l.slice(-1);if(a.length&&s){const u=[...new Set(a.map(c=>{var f;return(f=ne(c,n))==null?void 0:f.toString()}))];if(u.length===1&&!t.endsWith(ne(a[0],n).queryName))throw Ye(u[0],o)}return a};function D(e,t,n){const o=L(z(e,t),e.name,"query"),r=Ze(e,n),l=z(r,t),i=L(l,e.name,"get"),a=w(r,e.name.replace("query","get"),"getAll"),s=U(w(r,e.name,"findAll")),u=U(L(l,e.name,"find"));return[o,a,i,s,u]}var wr=Object.freeze({__proto__:null,getElementError:ve,wrapAllByQueryWithSuggestion:w,wrapSingleQueryWithSuggestion:L,getMultipleElementsFoundError:ge,queryAllByAttribute:j,queryByAttribute:$t,makeSingleQuery:z,makeGetAllQuery:Ze,makeFindQuery:U,buildQueries:D});function Gt(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:te(t)})).filter(t=>{let{textToMatch:n}=t;return n!==null})}const Qt=function(e,t,n){let{exact:o=!0,trim:r,collapseWhitespace:l,normalizer:i}=n===void 0?{}:n;const a=o?S:k,s=F({collapseWhitespace:l,trim:r,normalizer:i});return Gt(e).filter(c=>{let{node:f,textToMatch:d}=c;return a(d,f,t,s)}).map(c=>{let{node:f}=c;return f})},V=function(e,t,n){let{selector:o="*",exact:r=!0,collapseWhitespace:l,trim:i,normalizer:a}=n===void 0?{}:n;B(e);const s=r?S:k,u=F({collapseWhitespace:l,trim:i,normalizer:a}),c=Array.from(e.querySelectorAll("*")).filter(f=>Ve(f).length||f.hasAttribute("aria-labelledby")).reduce((f,d)=>{const g=He(e,d,{selector:o});g.filter(p=>!!p.formControl).forEach(p=>{s(p.content,p.formControl,t,u)&&p.formControl&&f.push(p.formControl)});const v=g.filter(p=>!!p.content).map(p=>p.content);return s(v.join(" "),d,t,u)&&f.push(d),v.length>1&&v.forEach((p,h)=>{s(p,d,t,u)&&f.push(d);const E=[...v];E.splice(h,1),E.length>1&&s(E.join(" "),d,t,u)&&f.push(d)}),f},[]).concat(j("aria-label",e,t,{exact:r,normalizer:u}));return Array.from(new Set(c)).filter(f=>f.matches(o))},P=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];const l=V(e,t,...o);if(!l.length){const i=Qt(e,t,...o);if(i.length){const a=i.map(s=>Xt(e,s)).filter(s=>!!s);throw a.length?y().getElementError(a.map(s=>"Found a label with the text of: "+t+", however the element associated with this label (<"+s+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+s+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
30
|
+
|
|
31
|
+
`),e):y().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw y().getElementError("Unable to find a label with the text of: "+t,e)}return l};function Xt(e,t){const n=t.getAttribute("for");if(!n)return null;const o=e.querySelector('[id="'+n+'"]');return o?o.tagName.toLowerCase():null}const _e=(e,t)=>"Found multiple elements with the text of: "+t,Jt=L(z(V,_e),V.name,"query"),et=z(P,_e),Kt=U(w(P,P.name,"findAll")),Yt=U(L(et,P.name,"find")),Zt=w(P,P.name,"getAll"),_t=L(et,P.name,"get"),en=w(V,V.name,"queryAll"),re=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B(t[0]),j("placeholder",...t)},tn=(e,t)=>"Found multiple elements with the placeholder text of: "+t,nn=(e,t)=>"Unable to find an element with the placeholder text of: "+t,rn=w(re,re.name,"queryAll"),[on,ln,an,sn,un]=D(re,tn,nn),oe=function(e,t,n){let{selector:o="*",exact:r=!0,collapseWhitespace:l,trim:i,ignore:a=y().defaultIgnore,normalizer:s}=n===void 0?{}:n;B(e);const u=r?S:k,c=F({collapseWhitespace:l,trim:i,normalizer:s});let f=[];return typeof e.matches=="function"&&e.matches(o)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(o))].filter(d=>!a||!d.matches(a)).filter(d=>u(J(d),d,t,c))},cn=(e,t)=>"Found multiple elements with the text: "+t,fn=function(e,t,n){n===void 0&&(n={});const{collapseWhitespace:o,trim:r,normalizer:l,selector:i}=n,s=F({collapseWhitespace:o,trim:r,normalizer:l})(t.toString()),u=s!==t.toString(),c=(i??"*")!=="*";return"Unable to find an element with the text: "+(u?s+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+i+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},dn=w(oe,oe.name,"queryAll"),[pn,bn,yn,mn,vn]=D(oe,cn,fn),le=function(e,t,n){let{exact:o=!0,collapseWhitespace:r,trim:l,normalizer:i}=n===void 0?{}:n;B(e);const a=o?S:k,s=F({collapseWhitespace:r,trim:l,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(f=>f.selected).some(f=>a(J(f),f,t,s)):a(u.value,u,t,s))},gn=(e,t)=>"Found multiple elements with the display value: "+t+".",En=(e,t)=>"Unable to find an element with the display value: "+t+".",hn=w(le,le.name,"queryAll"),[Tn,wn,An,In,xn]=D(le,gn,En),Sn=/^(img|input|area|.+-.+)$/i,ie=function(e,t,n){return n===void 0&&(n={}),B(e),j("alt",e,t,n).filter(o=>Sn.test(o.tagName))},Bn=(e,t)=>"Found multiple elements with the alt text: "+t,Cn=(e,t)=>"Unable to find an element with the alt text: "+t,On=w(ie,ie.name,"queryAll"),[Dn,Mn,qn,Nn,Ln]=D(ie,Bn,Cn),Pn=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},ae=function(e,t,n){let{exact:o=!0,collapseWhitespace:r,trim:l,normalizer:i}=n===void 0?{}:n;B(e);const a=o?S:k,s=F({collapseWhitespace:r,trim:l,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>a(u.getAttribute("title"),u,t,s)||Pn(u)&&a(J(u),u,t,s))},Fn=(e,t)=>"Found multiple elements with the title: "+t+".",Rn=(e,t)=>"Unable to find an element with the title: "+t+".",kn=w(ae,ae.name,"queryAll"),[jn,Wn,zn,Un,Vn]=D(ae,Fn,Rn),se=function(e,t,n){let{hidden:o=y().defaultHidden,name:r,description:l,queryFallbacks:i=!1,selected:a,busy:s,checked:u,pressed:c,current:f,level:d,expanded:g,value:{now:v,min:p,max:h,text:E}={}}=n===void 0?{}:n;if(B(e),a!==void 0){var x;if(((x=A.roles.get(t))==null?void 0:x.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(s!==void 0){var W;if(((W=A.roles.get(t))==null?void 0:W.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var M;if(((M=A.roles.get(t))==null?void 0:M.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(c!==void 0){var $;if((($=A.roles.get(t))==null?void 0:$.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var m;if(((m=A.roles.get(t))==null?void 0:m.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(d!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(v!==void 0){var T;if(((T=A.roles.get(t))==null?void 0:T.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(h!==void 0){var he;if(((he=A.roles.get(t))==null?void 0:he.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(p!==void 0){var Te;if(((Te=A.roles.get(t))==null?void 0:Te.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(E!==void 0){var we;if(((we=A.roles.get(t))==null?void 0:we.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(g!==void 0){var Ae;if(((Ae=A.roles.get(t))==null?void 0:Ae.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const K=new WeakMap;function rt(b){return K.has(b)||K.set(b,Xe(b)),K.get(b)}return Array.from(e.querySelectorAll(Hn(t))).filter(b=>{if(b.hasAttribute("role")){const R=b.getAttribute("role");if(i)return R.split(" ").filter(Boolean).some(lt=>lt===t);const[ot]=R.split(" ");return ot===t}return me(b).some(R=>R===t)}).filter(b=>{if(a!==void 0)return a===qt(b);if(s!==void 0)return s===Nt(b);if(u!==void 0)return u===Lt(b);if(c!==void 0)return c===Pt(b);if(f!==void 0)return f===Ft(b);if(g!==void 0)return g===Rt(b);if(d!==void 0)return d===kt(b);if(v!==void 0||h!==void 0||p!==void 0||E!==void 0){let I=!0;if(v!==void 0&&I&&(I=v===jt(b)),h!==void 0&&I&&(I=h===Wt(b)),p!==void 0&&I&&(I=p===zt(b)),E!==void 0){var q;I&&(I=S((q=Ut(b))!=null?q:null,b,E,R=>R))}return I}return!0}).filter(b=>r===void 0?!0:S(fe(b,{computedStyleSupportsPseudoElements:y().computedStyleSupportsPseudoElements}),b,r,q=>q)).filter(b=>l===void 0?!0:S(qe(b,{computedStyleSupportsPseudoElements:y().computedStyleSupportsPseudoElements}),b,l,q=>q)).filter(b=>o===!1?ye(b,{isSubtreeInaccessible:rt})===!1:!0)};function Hn(e){var t;const n='*[role~="'+e+'"]',o=(t=A.roleElements.get(e))!=null?t:new Set,r=new Set(Array.from(o).map(l=>{let{name:i}=l;return i}));return[n].concat(Array.from(r)).join(",")}const tt=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},$n=function(e,t,n){let{name:o}=n===void 0?{}:n;return'Found multiple elements with the role "'+t+'"'+tt(o)},Gn=function(e,t,n){let{hidden:o=y().defaultHidden,name:r,description:l}=n===void 0?{}:n;if(y()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+tt(r);let i="";Array.from(e.children).forEach(c=>{i+=Je(c,{hidden:o,includeDescription:l!==void 0})});let a;i.length===0?o===!1?a="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":a="There are no available roles.":a=(`
|
|
32
|
+
Here are the `+(o===!1?"accessible":"available")+` roles:
|
|
33
|
+
|
|
34
|
+
`+i.replace(/\n/g,`
|
|
35
|
+
`).replace(/\n\s\s\n/g,`
|
|
36
|
+
|
|
37
|
+
`)+`
|
|
38
|
+
`).trim();let s="";r===void 0?s="":typeof r=="string"?s=' and name "'+r+'"':s=" and name `"+r+"`";let u="";return l===void 0?u="":typeof l=="string"?u=' and description "'+l+'"':u=" and description `"+l+"`",(`
|
|
39
|
+
Unable to find an `+(o===!1?"accessible ":"")+'element with the role "'+t+'"'+s+u+`
|
|
40
|
+
|
|
41
|
+
`+a).trim()},Qn=w(se,se.name,"queryAll"),[Xn,Jn,Kn,Yn,Zn]=D(se,$n,Gn),Ee=()=>y().testIdAttribute,ue=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B(t[0]),j(Ee(),...t)},_n=(e,t)=>"Found multiple elements by: ["+Ee()+'="'+t+'"]',er=(e,t)=>"Unable to find an element by: ["+Ee()+'="'+t+'"]',tr=w(ue,ue.name,"queryAll"),[nr,rr,or,lr,ir]=D(ue,_n,er);var ce=Object.freeze({__proto__:null,queryAllByLabelText:en,queryByLabelText:Jt,getAllByLabelText:Zt,getByLabelText:_t,findAllByLabelText:Kt,findByLabelText:Yt,queryByPlaceholderText:on,queryAllByPlaceholderText:rn,getByPlaceholderText:an,getAllByPlaceholderText:ln,findAllByPlaceholderText:sn,findByPlaceholderText:un,queryByText:pn,queryAllByText:dn,getByText:yn,getAllByText:bn,findAllByText:mn,findByText:vn,queryByDisplayValue:Tn,queryAllByDisplayValue:hn,getByDisplayValue:An,getAllByDisplayValue:wn,findAllByDisplayValue:In,findByDisplayValue:xn,queryByAltText:Dn,queryAllByAltText:On,getByAltText:qn,getAllByAltText:Mn,findAllByAltText:Nn,findByAltText:Ln,queryByTitle:jn,queryAllByTitle:kn,getByTitle:zn,getAllByTitle:Wn,findAllByTitle:Un,findByTitle:Vn,queryByRole:Xn,queryAllByRole:Qn,getAllByRole:Jn,getByRole:Kn,findAllByRole:Yn,findByRole:Zn,queryByTestId:nr,queryAllByTestId:tr,getByTestId:or,getAllByTestId:rr,findAllByTestId:lr,findByTestId:ir});function ar(e,t,n){return t===void 0&&(t=ce),n===void 0&&(n={}),Object.keys(t).reduce((o,r)=>{const l=t[r];return o[r]=l.bind(null,e),o},n)}const nt=e=>!e||Array.isArray(e)&&!e.length;function Be(e){if(nt(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function Ar(e,t){const n=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Be(e);const r=(Array.isArray(e)?e:[e]).map(l=>{let i=l.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(l)?l:null});e=()=>r.map(l=>l()).filter(Boolean)}return Be(e()),Ke(()=>{let o;try{o=e()}catch(r){if(r.name==="TestingLibraryElementError")return;throw r}if(!nt(o))throw n},t)}const Ce={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Oe={doubleClick:"dblClick"};function X(e,t){return y().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function _(e,t,n,o){let{EventType:r="Event",defaultInit:l={}}=o===void 0?{}:o;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const i={...l,...n},{target:{value:a,files:s,...u}={}}=i;a!==void 0&&sr(t,a),s!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:s}),Object.assign(t,u);const c=ze(t),f=c[r]||c.Event;let d;if(typeof f=="function")d=new f(e,i);else{d=c.document.createEvent(r);const{bubbles:v,cancelable:p,detail:h,...E}=i;d.initEvent(e,v,p,h),Object.keys(E).forEach(x=>{d[x]=E[x]})}return["dataTransfer","clipboardData"].forEach(v=>{const p=i[v];typeof p=="object"&&(typeof c.DataTransfer=="function"?Object.defineProperty(d,v,{value:Object.getOwnPropertyNames(p).reduce((h,E)=>(Object.defineProperty(h,E,{value:p[E]}),h),new c.DataTransfer)}):Object.defineProperty(d,v,{value:p}))}),d}Object.keys(Ce).forEach(e=>{const{EventType:t,defaultInit:n}=Ce[e],o=e.toLowerCase();_[e]=(r,l)=>_(o,r,l,{EventType:t,defaultInit:n}),X[e]=(r,l)=>X(r,_[e](r,l))});function sr(e,t){const{set:n}=Object.getOwnPropertyDescriptor(e,"value")||{},o=Object.getPrototypeOf(e),{set:r}=Object.getOwnPropertyDescriptor(o,"value")||{};if(r&&n!==r)r.call(e,t);else if(n)n.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Oe).forEach(e=>{const t=Oe[e];X[e]=function(){return X[t](...arguments)}});function ur(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
42
|
+
`)}function cr(e){return it.compressToEncodedURIComponent(ur(e))}function fr(e){return"https://testing-playground.com/#markup="+cr(e)}const dr=(e,t,n)=>Array.isArray(e)?e.forEach(o=>Ie(o,t,n)):Ie(e,t,n),pr=function(e){if(e===void 0&&(e=be().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=fr(e.innerHTML);return console.log(`Open this URL in your browser
|
|
43
|
+
|
|
44
|
+
`+t),t},De={debug:dr,logTestingPlaygroundURL:pr},Ir=typeof document<"u"&&document.body?ar(document.body,ce,De):Object.keys(ce).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),De);export{D as buildQueries,hr as configure,_ as createEvent,Nn as findAllByAltText,In as findAllByDisplayValue,Kt as findAllByLabelText,sn as findAllByPlaceholderText,Yn as findAllByRole,lr as findAllByTestId,mn as findAllByText,Un as findAllByTitle,Ln as findByAltText,xn as findByDisplayValue,Yt as findByLabelText,un as findByPlaceholderText,Zn as findByRole,ir as findByTestId,vn as findByText,Vn as findByTitle,X as fireEvent,Mn as getAllByAltText,wn as getAllByDisplayValue,Zt as getAllByLabelText,ln as getAllByPlaceholderText,Jn as getAllByRole,rr as getAllByTestId,bn as getAllByText,Wn as getAllByTitle,qn as getByAltText,An as getByDisplayValue,_t as getByLabelText,an as getByPlaceholderText,Kn as getByRole,or as getByTestId,yn as getByText,zn as getByTitle,y as getConfig,Ge as getDefaultNormalizer,ve as getElementError,ge as getMultipleElementsFoundError,J as getNodeText,ar as getQueriesForElement,Mt as getRoles,ne as getSuggestedQuery,ye as isInaccessible,Ie as logDOM,Tr as logRoles,U as makeFindQuery,Ze as makeGetAllQuery,z as makeSingleQuery,Q as prettyDOM,yr as prettyFormat,ce as queries,On as queryAllByAltText,j as queryAllByAttribute,hn as queryAllByDisplayValue,en as queryAllByLabelText,rn as queryAllByPlaceholderText,Qn as queryAllByRole,tr as queryAllByTestId,dn as queryAllByText,kn as queryAllByTitle,Dn as queryByAltText,$t as queryByAttribute,Tn as queryByDisplayValue,Jt as queryByLabelText,on as queryByPlaceholderText,Xn as queryByRole,nr as queryByTestId,pn as queryByText,jn as queryByTitle,wr as queryHelpers,Ir as screen,Ke as waitFor,Ar as waitForElementToBeRemoved,ar as within,w as wrapAllByQueryWithSuggestion,L as wrapSingleQueryWithSuggestion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BIGINT as l,ERROR as p,SET as E,MAP as I,REGEXP as g,DATE as y,OBJECT as R,ARRAY as T,VOID as b,PRIMITIVE as h}from"./types.js";const i=typeof self=="object"?self:globalThis,w=(a,u)=>{switch(a){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+a)}return new i[a](u)},A=(a,u)=>{const s=(r,o)=>(a.set(o,r),r),c=r=>{if(a.has(r))return a.get(r);const[o,t]=u[r];switch(o){case h:case b:return s(t,r);case T:{const e=s([],r);for(const n of t)e.push(c(n));return e}case R:{const e=s({},r);for(const[n,f]of t)e[c(n)]=c(f);return e}case y:return s(new Date(t),r);case g:{const{source:e,flags:n}=t;return s(new RegExp(e,n),r)}case I:{const e=s(new Map,r);for(const[n,f]of t)e.set(c(n),c(f));return e}case E:{const e=s(new Set,r);for(const n of t)e.add(c(n));return e}case p:{const{name:e,message:n}=t;return s(typeof i[e]=="function"?w(e,n):new Error(n),r)}case l:return s(BigInt(t),r);case"BigInt":return s(Object(BigInt(t)),r);case"ArrayBuffer":return s(new Uint8Array(t).buffer,t);case"DataView":{const{buffer:e}=new Uint8Array(t);return s(new DataView(e),t)}}return s(w(o,t),r)};return c},D=a=>A(new Map,a)(0);export{D as deserialize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SET as O,MAP as m,REGEXP as A,DATE as T,OBJECT as b,ARRAY as S,PRIMITIVE as w,BIGINT as I,ERROR as R,VOID as x}from"./types.js";const p="",{toString:k}={},{keys:N}=Object,g=e=>{const f=typeof e;if(f!=="object"||!e)return[w,f];const i=k.call(e).slice(8,-1);switch(i){case"Array":return[S,p];case"Object":return[b,p];case"Date":return[T,p];case"RegExp":return[A,p];case"Map":return[m,p];case"Set":return[O,p];case"DataView":return[S,i]}return i.includes("Array")?[S,i]:e instanceof Error?[R,e.name||"Error"]:[b,i]},h=([e,f])=>e===w&&(f==="function"||f==="symbol"),B=(e,f,i,E)=>{const c=(r,o)=>{const s=E.push(r)-1;return i.set(o,s),s},y=r=>{if(i.has(r))return i.get(r);let[o,s]=g(r);switch(o){case w:{let t=r;switch(s){case"bigint":o=I,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return c([x],r)}return c([o,t],r)}case S:{if(s){let n=r;return s==="DataView"?n=new Uint8Array(r.buffer):s==="ArrayBuffer"&&(n=new Uint8Array(r)),c([s,[...n]],r)}const t=[],a=c([o,t],r);for(const n of r)t.push(y(n));return a}case b:{if(s)switch(s){case"BigInt":return c([s,r.toString()],r);case"Boolean":case"Number":case"String":return c([s,r.valueOf()],r)}if(f&&"toJSON"in r)return y(r.toJSON());const t=[],a=c([o,t],r);for(const n of N(r))(e||!h(g(r[n])))&&t.push([y(n),y(r[n])]);return a}case T:return c([o,isNaN(r.getTime())?p:r.toISOString()],r);case A:{const{source:t,flags:a}=r;return c([o,{source:t,flags:a}],r)}case m:{const t=[],a=c([o,t],r);for(const[n,d]of r)(e||!(h(g(n))||h(g(d))))&&t.push([y(n),y(d)]);return a}case O:{const t=[],a=c([o,t],r);for(const n of r)(e||!h(g(n)))&&t.push(y(n));return a}}const{message:u}=r;return c([o,{name:s,message:u}],r)};return y},M=(e,{json:f,lossy:i}={})=>{const E=[];return B(!(f||i),!!f,new Map,E)(e),E};export{M as serialize};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{diff as I,printDiffOrStringify as
|
|
1
|
+
import{diff as I,printDiffOrStringify as Ct}from"../../../../../@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/diff.js";import{stringify as j}from"../../../../../@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/display.js";import{getType as pt,noop as dt,isObject as q,assertTypes as O,ordinal as A}from"../../../../../@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/helpers.js";import v from"../../../../../tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.js";import{isMockFunction as V}from"../../../../../@vitest_spy@4.1.10/node_modules/@vitest/spy/dist/index.js";import{processError as St}from"../../../../../@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js";import{use as At,util as C}from"../../../../../chai@6.2.2/node_modules/chai/index.js";const de=(e,t)=>{function r(f,u){t.addProperty(e.Assertion.prototype,f,function(){const h=e.Assertion.prototype[u];if(!h)throw new Error(`Cannot delegate to ${String(u)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return h.call(this)})}function c(f,u,...h){t.addProperty(e.Assertion.prototype,f,function(){const m=e.Assertion.prototype[u];if(!m)throw new Error(`Cannot delegate to ${String(u)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return m.call(this,...h)})}function a(f,u){t.addMethod(e.Assertion.prototype,f,function(...h){const m=e.Assertion.prototype[u];if(!m)throw new Error(`Cannot delegate to ${String(u)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return m.call(this,...h)})}r("called","toHaveBeenCalled"),r("calledOnce","toHaveBeenCalledOnce"),c("calledTwice","toHaveBeenCalledTimes",2),c("calledThrice","toHaveBeenCalledTimes",3),a("callCount","toHaveBeenCalledTimes"),a("calledWith","toHaveBeenCalledWith"),a("calledOnceWith","toHaveBeenCalledExactlyOnceWith"),a("lastCalledWith","toHaveBeenLastCalledWith"),a("nthCalledWith","toHaveBeenNthCalledWith"),a("returned","toHaveReturned"),a("returnedWith","toHaveReturnedWith"),a("returnedTimes","toHaveReturnedTimes"),a("lastReturnedWith","toHaveLastReturnedWith"),a("nthReturnedWith","toHaveNthReturnedWith"),a("calledBefore","toHaveBeenCalledBefore"),a("calledAfter","toHaveBeenCalledAfter")},k=Symbol.for("matchers-object"),P=Symbol.for("$$jest-matchers-object"),mt=Symbol.for("expect-global"),gt=Symbol.for("asymmetric-matchers-object"),me={toSatisfy(e,t,r){const{printReceived:c,printExpected:a,matcherHint:f}=this.utils,u=t(e);return{pass:u,message:()=>u?`${f(".not.toSatisfy","received","")}
|
|
2
2
|
|
|
3
3
|
Expected value to not satisfy:
|
|
4
4
|
${r||a(t)}
|
|
@@ -20,20 +20,20 @@ Expected value to be one of:
|
|
|
20
20
|
${f(t)}
|
|
21
21
|
|
|
22
22
|
Received:
|
|
23
|
-
${a(e)}`}}},D=v.green,G=v.red,
|
|
24
|
-
`:"",f=`${e} has value: ${r(t)}`;return a+f}function
|
|
23
|
+
${a(e)}`}}},D=v.green,G=v.red,Bt=v.inverse,It=v.bold,M=v.dim;function Pt(e,t="received",r="expected",c={}){const{comment:a="",isDirectExpectCall:f=!1,isNot:u=!1,promise:h="",secondArgument:m="",expectedColor:n=D,receivedColor:o=G,secondArgumentColor:s=D}=c;let i="",l="expect";return!f&&t!==""&&(i+=M(`${l}(`)+o(t),l=")"),h!==""&&(i+=M(`${l}.`)+h,l=""),u&&(i+=`${M(`${l}.`)}not`,l=""),e.includes(".")?l+=e:(i+=M(`${l}.`)+e,l=""),r===""?l+="()":(i+=M(`${l}(`)+n(r),m&&(i+=M(", ")+s(m)),l=")"),a!==""&&(l+=` // ${a}`),l!==""&&(i+=M(l)),i}const Rt="·";function yt(e){return e.replace(/\s+$/gm,t=>Rt.repeat(t.length))}function qt(e){return G(yt(j(e)))}function kt(e){return D(yt(j(e)))}function bt(){return{EXPECTED_COLOR:D,RECEIVED_COLOR:G,INVERTED_COLOR:Bt,BOLD_WEIGHT:It,DIM_COLOR:M,diff:I,matcherHint:Pt,printReceived:qt,printExpected:kt,printDiffOrStringify:Ct,printWithType:Dt}}function Dt(e,t,r){const c=pt(t),a=c!=="null"&&c!=="undefined"?`${e} has type: ${c}
|
|
24
|
+
`:"",f=`${e} has value: ${r(t)}`;return a+f}function ge(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${pt(e)}"`);globalThis[P].customEqualityTesters.push(...e)}function z(){return globalThis[P].customEqualityTesters}function g(e,t,r,c){return r=r||[],B(e,t,[],[],r,c?Et:Wt)}function Z(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&T("Function",e.asymmetricMatch)}function Ht(e,t,r){const c=Z(e),a=Z(t);if(!(c&&a)){if(c)return e.asymmetricMatch(t,r);if(a)return t.asymmetricMatch(e,r)}}function S(e){if(typeof Error.isError=="function")return Error.isError(e);switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function B(e,t,r,c,a,f){let u=!0;const h=Ht(e,t,a);if(h!==void 0)return h;const m={equals:g};for(let p=0;p<a.length;p++){const d=a[p].call(m,e,t,a);if(d!==void 0)return d}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;const n=Object.prototype.toString.call(e);if(n!==Object.prototype.toString.call(t))return!1;switch(n){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{const p=+e,d=+t;return p===d||Number.isNaN(p)&&Number.isNaN(d)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(tt(e)&&tt(t))return e.isEqualNode(t);let o=r.length;for(;o--;){if(r[o]===e)return c[o]===t;if(c[o]===t)return!1}if(r.push(e),c.push(t),n==="[object Array]"&&e.length!==t.length)return!1;if(S(e)&&S(t))try{return Lt(e,t,r,c,a,f)}finally{r.pop(),c.pop()}const s=Q(e,f);let i,l=s.length;if(Q(t,f).length!==l)return!1;for(;l--;)if(i=s[l],u=f(t,i)&&B(e[i],t[i],r,c,a,f),!u)return!1;return r.pop(),c.pop(),u}function Lt(e,t,r,c,a,f){let u=Object.prototype.toString.call(e)===Object.prototype.toString.call(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&(u&&=B(e.cause,t.cause,r,c,a,f)),e instanceof AggregateError&&t instanceof AggregateError&&(u&&=B(e.errors,t.errors,r,c,a,f)),u&&=B({...e},{...t},r,c,a,f),u}function Q(e,t){const r=[];for(const c in e)t(e,c)&&r.push(c);return r.concat(Object.getOwnPropertySymbols(e).filter(c=>Object.getOwnPropertyDescriptor(e,c).enumerable))}function Wt(e,t){return Et(e,t)&&e[t]!==void 0}function Et(e,t){return Object.hasOwn(e,t)}function T(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function tt(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}const $t="@@__IMMUTABLE_KEYED__@@",wt="@@__IMMUTABLE_SET__@@",Vt="@@__IMMUTABLE_LIST__@@",H="@@__IMMUTABLE_ORDERED__@@",Ft="@@__IMMUTABLE_RECORD__@@";function Yt(e){return!!(e&&e[$t]&&!e[H])}function Ut(e){return!!(e&&e[wt]&&!e[H])}function L(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Jt(e){return!!(e&&L(e)&&e[Vt])}function Gt(e){return!!(e&&L(e)&&e[$t]&&e[H])}function zt(e){return!!(e&&L(e)&&e[wt]&&e[H])}function Kt(e){return!!(e&&L(e)&&e[Ft])}const xt=Symbol.iterator;function et(e){return!!(e!=null&&e[xt])}function x(e,t,r=[],c=[],a=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!et(e)||!et(t))return;if(e.constructor!==t.constructor)return!1;let f=c.length;for(;f--;)if(c[f]===e)return a[f]===t;c.push(e),a.push(t);const u=[...r.filter(n=>n!==x),h];function h(n,o){return x(n,o,[...r],[...c],[...a])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(T("Set",e)||Ut(e)){let n=!0;for(const o of e)if(!t.has(o)){let s=!1;for(const i of t)g(o,i,u)===!0&&(s=!0);if(s===!1){n=!1;break}}return c.pop(),a.pop(),n}else if(T("Map",e)||Yt(e)){let n=!0;for(const o of e)if(!t.has(o[0])||!g(o[1],t.get(o[0]),u)){let s=!1;for(const i of t){const l=g(o[0],i[0],u);let p=!1;l===!0&&(p=g(o[1],i[1],u)),p===!0&&(s=!0)}if(s===!1){n=!1;break}}return c.pop(),a.pop(),n}}const m=t[xt]();for(const n of e){const o=m.next();if(o.done||!g(n,o.value,u))return!1}if(!m.next().done)return!1;if(!Jt(e)&&!Gt(e)&&!zt(e)&&!Kt(e)){const n=Object.entries(e),o=Object.entries(t);if(!g(n,o,u))return!1}return c.pop(),a.pop(),!0}function K(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.hasOwn(e,t)||K(Object.getPrototypeOf(e),t)}function Xt(e){return q(e)&&!S(e)&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Set)&&!(e instanceof Map)}function R(e,t,r=[]){const c=r.filter(f=>f!==R),a=(f=new WeakMap)=>(u,h)=>{if(Xt(h))return Object.keys(h).every(m=>{if(h[m]!=null&&typeof h[m]=="object"){if(f.has(h[m]))return g(u[m],h[m],c);f.set(h[m],!0)}const n=u!=null&&K(u,m)&&g(u[m],h[m],[...c,a(f)]);return f.delete(h[m]),n})};return a()(e,t)}function nt(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function ot(e,t){let r=e,c=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),c=new DataView(t)}catch{return}}if(r.byteLength!==c.byteLength)return!1;for(let a=0;a<r.byteLength;a++)if(r.getUint8(a)!==c.getUint8(a))return!1;return!0}function U(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;const c=Object.keys(e),a=Object.keys(t),f=r.filter(u=>u!==U);return g(e,t,f,!0)&&g(c,a)}function Zt(e,t="#{this}",r="#{exp}"){const c=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${c}
|
|
25
25
|
|
|
26
26
|
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
27
27
|
|
|
28
28
|
Expected: ${t}
|
|
29
29
|
Received: serializes to the same string
|
|
30
|
-
`:c}function
|
|
31
|
-
`,m].join(""))}}),{then(h,m){return u=!0,t.then(h,m)},catch(h){return u=!0,t.catch(h)},finally(h){return u=!0,t.finally(h)},[Symbol.toStringTag]:"Promise"}}return t}function J(e,t){e.result||={state:"fail"},e.result.state="fail",e.result.errors||=[],e.result.errors.push(
|
|
32
|
-
(${p} matching ${p===1?"property":"properties"} omitted from actual)`;throw new r(y,{showDiff:!0,expected:n,actual:l})}}),a("toMatch",function(n){const o=this._obj;if(typeof o!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof o}`);return this.assert(typeof n=="string"?o.includes(n):o.match(n),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",n,o)}),a("toContain",function(n){const o=this._obj;if(typeof Node<"u"&&o instanceof Node){if(!(n instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof n}`);return this.assert(o.contains(n),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",n,o)}if(typeof DOMTokenList<"u"&&o instanceof DOMTokenList){M(n,"class name",["string"]);const i=t.flag(this,"negate")?o.value.replace(n,"").trim():`${o.value} ${n}`;return this.assert(o.contains(n),`expected "${o.value}" to contain "${n}"`,`expected "${o.value}" not to contain "${n}"`,i,o.value)}return typeof o=="string"&&typeof n=="string"?this.assert(o.includes(n),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",n,o):(o!=null&&typeof o!="string"&&t.flag(this,"object",Array.from(o)),this.contain(n))}),a("toContainEqual",function(n){const o=t.flag(this,"object"),s=Array.from(o).findIndex(i=>g(i,n,c));this.assert(s!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",n)}),a("toBeTruthy",function(){const n=t.flag(this,"object");this.assert(!!n,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,n)}),a("toBeFalsy",function(){const n=t.flag(this,"object");this.assert(!n,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,n)}),a("toBeGreaterThan",function(n){const o=this._obj;return M(o,"actual",["number","bigint"]),M(n,"expected",["number","bigint"]),this.assert(o>n,`expected ${o} to be greater than ${n}`,`expected ${o} to be not greater than ${n}`,n,o,!1)}),a("toBeGreaterThanOrEqual",function(n){const o=this._obj;return M(o,"actual",["number","bigint"]),M(n,"expected",["number","bigint"]),this.assert(o>=n,`expected ${o} to be greater than or equal to ${n}`,`expected ${o} to be not greater than or equal to ${n}`,n,o,!1)}),a("toBeLessThan",function(n){const o=this._obj;return M(o,"actual",["number","bigint"]),M(n,"expected",["number","bigint"]),this.assert(o<n,`expected ${o} to be less than ${n}`,`expected ${o} to be not less than ${n}`,n,o,!1)}),a("toBeLessThanOrEqual",function(n){const o=this._obj;return M(o,"actual",["number","bigint"]),M(n,"expected",["number","bigint"]),this.assert(o<=n,`expected ${o} to be less than or equal to ${n}`,`expected ${o} to be not less than or equal to ${n}`,n,o,!1)}),a("toBeNaN",function(){const n=t.flag(this,"object");this.assert(Number.isNaN(n),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,n)}),a("toBeUndefined",function(){const n=t.flag(this,"object");this.assert(n===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,n)}),a("toBeNull",function(){const n=t.flag(this,"object");this.assert(n===null,"expected #{this} to be null","expected #{this} not to be null",null,n)}),a("toBeNullable",function(){const n=t.flag(this,"object");this.assert(n==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,n)}),a("toBeDefined",function(){const n=t.flag(this,"object");this.assert(typeof n<"u","expected #{this} to be defined","expected #{this} to be undefined",n)}),a("toBeTypeOf",function(n){const o=typeof this._obj,s=n===o;return this.assert(s,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",n,o)}),a("toBeInstanceOf",function(n){return this.instanceOf(n)}),a("toHaveLength",function(n){return this.have.length(n)}),a("toHaveProperty",function(...n){Array.isArray(n[0])&&(n[0]=n[0].map(E=>String(E).replace(/([.[\]])/g,"\\$1")).join("."));const o=this._obj,[s,i]=n,l=()=>Object.hasOwn(o,s)?{value:o[s],exists:!0}:t.getPathInfo(o,s),{value:p,exists:d}=l(),y=d&&(n.length===1||g(i,p,c)),b=n.length===1?"":` with value ${t.objDisplay(i)}`;return this.assert(y,`expected #{this} to have property "${s}"${b}`,`expected #{this} to not have property "${s}"${b}`,i,d?p:void 0)}),a("toBeCloseTo",function(n,o=2){const s=this._obj;let i=!1,l=0,p=0;return n===Number.POSITIVE_INFINITY&&s===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY&&s===Number.NEGATIVE_INFINITY?i=!0:(l=10**-o/2,p=Math.abs(s-n),i=p<l),this.assert(i,`expected #{this} to be close to #{exp}, received difference is ${p}, but expected ${l}`,`expected #{this} to not be close to #{exp}, received difference is ${p}, but expected ${l}`,n,s,!1)});function f(n){if(!V(n._obj))throw new TypeError(`${t.inspect(n._obj)} is not a spy or a call to a spy!`)}function u(n){return f(n),n._obj}a(["toHaveBeenCalledTimes","toBeCalledTimes"],function(n){const o=u(this),s=o.getMockName(),i=o.mock.calls.length;return this.assert(i===n,`expected "${s}" to be called #{exp} times, but got ${i} times`,`expected "${s}" to not be called #{exp} times`,n,i,!1)}),a("toHaveBeenCalledOnce",function(){const n=u(this),o=n.getMockName(),s=n.mock.calls.length;return this.assert(s===1,`expected "${o}" to be called once, but got ${s} times`,`expected "${o}" to not be called once`,1,s,!1)}),a(["toHaveBeenCalled","toBeCalled"],function(){const n=u(this),o=n.getMockName(),s=n.mock.calls.length,i=s>0,l=t.flag(this,"negate");let p=t.getMessage(this,[i,`expected "${o}" to be called at least once`,`expected "${o}" to not be called at all, but actually been called ${s} times`,!0,i]);if(i&&l&&(p=Y(n,p)),i&&l||!i&&!l)throw new r(p)});function h(n,o){return n.length===o.length&&n.every((s,i)=>g(s,o[i],[...c,x]))}a(["toHaveBeenCalledWith","toBeCalledWith"],function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.some(d=>h(d,n)),l=t.flag(this,"negate"),p=t.getMessage(this,[i,`expected "${s}" to be called with arguments: #{exp}`,`expected "${s}" to not be called with arguments: #{exp}`,n]);if(i&&l||!i&&!l)throw new r(Y(o,p,n))}),a("toHaveBeenCalledExactlyOnceWith",function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.length,p=o.mock.calls.some(b=>h(b,n))&&i===1,d=t.flag(this,"negate"),y=t.getMessage(this,[p,`expected "${s}" to be called once with arguments: #{exp}`,`expected "${s}" to not be called once with arguments: #{exp}`,n]);if(p&&d||!p&&!d)throw new r(Y(o,y,n))}),a("toHaveBeenNthCalledWith",function(n,...o){const s=u(this),i=s.getMockName(),l=s.mock.calls[n-1],p=s.mock.calls.length,d=n<=p;this.assert(l&&h(l,o),`expected ${S(n)} "${i}" call to have been called with #{exp}${d?"":`, but called only ${p} times`}`,`expected ${S(n)} "${i}" call to not have been called with #{exp}`,o,l,d)}),a("toHaveBeenLastCalledWith",function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.at(-1);this.assert(i&&h(i,n),`expected last "${s}" call to have been called with #{exp}`,`expected last "${s}" call to not have been called with #{exp}`,n,i)});function m(n,o,s){const i=n.mock.invocationCallOrder,l=o.mock.invocationCallOrder;return i.length===0?!s:l.length===0?!1:i[0]<l[0]}a(["toHaveBeenCalledBefore"],function(n,o=!0){const s=u(this);if(!V(n))throw new TypeError(`${t.inspect(n)} is not a spy or a call to a spy`);this.assert(m(s,n,o),`expected "${s.getMockName()}" to have been called before "${n.getMockName()}"`,`expected "${s.getMockName()}" to not have been called before "${n.getMockName()}"`,n,s)}),a(["toHaveBeenCalledAfter"],function(n,o=!0){const s=u(this);if(!V(n))throw new TypeError(`${t.inspect(n)} is not a spy or a call to a spy`);this.assert(m(n,s,o),`expected "${s.getMockName()}" to have been called after "${n.getMockName()}"`,`expected "${s.getMockName()}" to not have been called after "${n.getMockName()}"`,n,s)}),a(["toThrow","toThrowError"],function(n){if(typeof n=="string"||typeof n>"u"||n instanceof RegExp)return this.throws(n===""?/^$/:n);const o=this._obj,s=t.flag(this,"promise"),i=t.flag(this,"negate");let l=null;if(s==="rejects")l=o;else if(s==="resolves"&&typeof o!="function"){if(i)return;{const d=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(d,y,t.flag(this,"ssfi"))}}else{let d=!1;try{o()}catch(y){d=!0,l=y}if(!d&&!i){const y=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}if(typeof n=="function"){const d=n.name||n.prototype.constructor.name;return this.assert(l&&l instanceof n,`expected error to be instance of ${d}`,`expected error not to be instance of ${d}`,n,l)}if(A(n)){const d=g(l,n,[...c,x]);return this.assert(d,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",n,l)}if(typeof n=="object"&&"asymmetricMatch"in n&&typeof n.asymmetricMatch=="function"){const d=n;return this.assert(l&&d.asymmetricMatch(l),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",d,l)}const p=g(l,n,[...c,x]);return this.assert(p,"expected a thrown value to equal #{exp}","expected a thrown value not to equal #{exp}",n,l)}),[{name:"toHaveResolved",condition:n=>n.mock.settledResults.length>0&&n.mock.settledResults.some(({type:o})=>o==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:n=>n.mock.calls.length>0&&n.mock.results.some(({type:o})=>o!=="throw"),action:"called"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(){const i=u(this),l=i.getMockName(),p=o(i);this.assert(p,`expected "${l}" to be successfully ${s} at least once`,`expected "${l}" to not be successfully ${s}`,p,!p,!1)})}),[{name:"toHaveResolvedTimes",condition:(n,o)=>n.mock.settledResults.reduce((s,{type:i})=>i==="fulfilled"?++s:s,0)===o,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(n,o)=>n.mock.results.reduce((s,{type:i})=>i==="throw"?s:++s,0)===o,action:"called"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),p=l.getMockName(),d=o(l,i);this.assert(d,`expected "${p}" to be successfully ${s} ${i} times`,`expected "${p}" to not be successfully ${s} ${i} times`,`expected resolved times: ${i}`,`received resolved times: ${d}`,!1)})}),[{name:"toHaveResolvedWith",condition:(n,o)=>n.mock.settledResults.some(({type:s,value:i})=>s==="fulfilled"&&g(o,i)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(n,o)=>n.mock.results.some(({type:s,value:i})=>s==="return"&&g(o,i)),action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),p=o(l,i),d=t.flag(this,"negate");if(p&&d||!p&&!d){const y=l.getMockName(),b=t.getMessage(this,[p,`expected "${y}" to ${s} with: #{exp} at least once`,`expected "${y}" to not ${s} with: #{exp}`,i]),E=s==="return"?l.mock.results:l.mock.settledResults;throw new r(ne(l,E,b,i))}})}),[{name:"toHaveLastResolvedWith",condition:(n,o)=>{const s=n.mock.settledResults.at(-1);return!!(s&&s.type==="fulfilled"&&g(s.value,o))},action:"resolve"},{name:"toHaveLastReturnedWith",condition:(n,o)=>{const s=n.mock.results.at(-1);return!!(s&&s.type==="return"&&g(s.value,o))},action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),d=(s==="return"?l.mock.results:l.mock.settledResults).at(-1),y=l.getMockName();this.assert(o(l,i),`expected last "${y}" call to ${s} #{exp}`,`expected last "${y}" call to not ${s} #{exp}`,i,d?.value)})}),[{name:"toHaveNthResolvedWith",condition:(n,o,s)=>{const i=n.mock.settledResults[o-1];return i&&i.type==="fulfilled"&&g(i.value,s)},action:"resolve"},{name:"toHaveNthReturnedWith",condition:(n,o,s)=>{const i=n.mock.results[o-1];return i&&i.type==="return"&&g(i.value,s)},action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i,l){const p=u(this),d=p.getMockName(),b=(s==="return"?p.mock.results:p.mock.settledResults)[i-1],E=`${S(i)} call`;this.assert(o(p,i,l),`expected ${E} "${d}" call to ${s} #{exp}`,`expected ${E} "${d}" call to not ${s} #{exp}`,l,b?.value)})}),a("withContext",function(n){for(const o in n)t.flag(this,o,n[o]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){const o=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",o);const s=t.flag(this,"vitest-test"),i=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof i?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof i}'.`);const l=new Proxy(this,{get:(p,d,y)=>{const b=Reflect.get(p,d,y);return typeof b!="function"?b instanceof e.Assertion?l:b:(...E)=>{t.flag(this,"_name",d);const C=Promise.resolve(i).then(w=>(t.flag(this,"object",w),b.call(this,...E)),w=>{const $=new r(`promise rejected "${t.inspect(w)}" instead of resolving`,{showDiff:!1});throw $.cause=w,$}).catch(w=>{throw A(w)&&o.stack&&(w.stack=o.stack.replace(o.message,w.message)),w});return ut(s,C,lt(t,this,!!E.length),o,t.flag(this,"soft"))}}});return l}),t.addProperty(e.Assertion.prototype,"rejects",function(){const o=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",o);const s=t.flag(this,"vitest-test"),i=t.flag(this,"object"),l=typeof i=="function"?i():i;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof l?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof l}'.`);const p=new Proxy(this,{get:(d,y,b)=>{const E=Reflect.get(d,y,b);return typeof E!="function"?E instanceof e.Assertion?p:E:(...C)=>{t.flag(this,"_name",y);const w=Promise.resolve(l).then($=>{throw new r(`promise resolved "${t.inspect($)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:$})},$=>(t.flag(this,"object",$),E.call(this,...C))).catch($=>{throw A($)&&o.stack&&($.stack=o.stack.replace(o.message,$.message)),$});return ut(s,w,lt(t,this,!!C.length),o,t.flag(this,"soft"))}}});return p})};function Y(e,t,r){return e.mock.calls.length&&(t+=v.gray(`
|
|
30
|
+
`:c}function Qt(e,t){return`${t} ${e}${t===1?"":"s"}`}function F(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function te(e,t,r){let c=0;const a=(f=new WeakMap)=>(u,h)=>{if(Array.isArray(u)){if(Array.isArray(h)&&h.length===u.length)return h.map((m,n)=>a(f)(u[n],m))}else{if(u instanceof Date)return u;if(q(u)&&q(h)){if(g(u,h,[...r,x,R]))return h;const m={};f.set(u,m),typeof u.constructor=="function"&&typeof u.constructor.name=="string"&&Object.defineProperty(m,"constructor",{enumerable:!1,value:u.constructor});for(const n of F(u))K(h,n)?m[n]=f.has(u[n])?f.get(u[n]):a(f)(u[n],h[n]):f.has(u[n])||(c+=1,q(u[n])&&(c+=F(u[n]).length),a(f)(u[n],h[n]));if(F(m).length>0)return m}}return u};return{subset:a()(e,t),stripped:c}}function ee(e){return!!e&&(typeof e=="object"||typeof e=="function")&&e["~standard"]&&typeof e["~standard"].validate=="function"}if(!Object.hasOwn(globalThis,k)){const e=new WeakMap,t=Object.create(null),r=[],c=Object.create(null);Object.defineProperty(globalThis,k,{get:()=>e}),Object.defineProperty(globalThis,P,{configurable:!0,get:()=>({state:e.get(globalThis[mt]),matchers:t,customEqualityTesters:r})}),Object.defineProperty(globalThis,gt,{get:()=>c})}function vt(e){return globalThis[k].get(e)}function ye(e,t){const r=globalThis[k],c=r.get(t)||{},a=Object.defineProperties(c,{...Object.getOwnPropertyDescriptors(c),...Object.getOwnPropertyDescriptors(e)});r.set(t,a)}class N{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,r=!1){this.sample=t,this.inverse=r}getMatcherContext(t){return{...vt(t||globalThis[mt]),equals:g,isNot:this.inverse,customTesters:z(),utils:{...bt(),diff:I,stringify:j,iterableEquality:x,subsetEquality:R}}}}N.prototype[Symbol.for("chai/inspect")]=function(e){const t=j(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};class rt extends N{constructor(t,r=!1){if(!T("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){const r=T("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}}class ne extends N{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class st extends N{constructor(t,r=!1){super(t,r)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.hasOwn(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}getProperties(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(r=>Object.getOwnPropertyDescriptor(t,r)?.enumerable)]}asymmetricMatch(t,r){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let c=!0;const a=this.getProperties(this.sample);for(const f of a){if(!this.hasProperty(t,f)){c=!1;break}const u=this.sample[f],h=t[f];if(!g(u,h,r)){c=!1;break}}return this.inverse?!c:c}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}}class it extends N{constructor(t,r=!1){super(t,r)}asymmetricMatch(t,r){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const c=this.sample.length===0||Array.isArray(t)&&this.sample.every(a=>t.some(f=>g(a,f,r)));return this.inverse?!c:c}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class oe extends N{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;const c=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return c?c[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}}class at extends N{constructor(t,r=!1){if(!T("String",t)&&!T("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){const r=T("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}}class ct extends N{precision;constructor(t,r=2,c=!1){if(!T("Number",t))throw new Error("Expected is not a Number");if(!T("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=c,this.precision=r}asymmetricMatch(t){if(!T("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${Qt("digit",this.precision)})`].join(" ")}}class lt extends N{result;constructor(t,r=!1){if(!ee(t))throw new TypeError("SchemaMatching expected to receive a Standard Schema.");super(t,r)}asymmetricMatch(t){const r=this.sample["~standard"].validate(t);if(r instanceof Promise)throw new TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=r;const c=!this.result.issues||this.result.issues.length===0;return this.inverse?!c:c}toString(){return`Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return"object"}toAsymmetricMatcher(){const{utils:t}=this.getMatcherContext();return(this.result?.issues||[]).length>0?`${this.toString()} ${t.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}}const be=(e,t)=>{t.addMethod(e.expect,"anything",()=>new ne),t.addMethod(e.expect,"any",r=>new oe(r)),t.addMethod(e.expect,"stringContaining",r=>new rt(r)),t.addMethod(e.expect,"objectContaining",r=>new st(r)),t.addMethod(e.expect,"arrayContaining",r=>new it(r)),t.addMethod(e.expect,"stringMatching",r=>new at(r)),t.addMethod(e.expect,"closeTo",(r,c)=>new ct(r,c)),t.addMethod(e.expect,"schemaMatching",r=>new lt(r)),e.expect.not={stringContaining:r=>new rt(r,!0),objectContaining:r=>new st(r,!0),arrayContaining:r=>new it(r,!0),stringMatching:r=>new at(r,!0),closeTo:(r,c)=>new ct(r,c,!0),schemaMatching:r=>new lt(r,!0)}};function ut(e,t,r){const c=e.flag(t,"soft")?".soft":"",a=e.flag(t,"negate")?"not.":"",f=`${e.flag(t,"_name")}(${r?"expected":""})`,u=e.flag(t,"promise"),h=u?`.${u}`:"";return`expect${c}(actual)${h}.${a}${f}`}function ft(e,t,r,c,a){const f=e;if(f&&t instanceof Promise){t=t.finally(()=>{if(!f.promises)return;const h=f.promises.indexOf(t);h!==-1&&f.promises.splice(h,1)}),f.promises||(f.promises=[]),a&&(t=t.then(dt,h=>{J(f,h)})),f.promises.push(t);let u=!1;return f.onFinished??=[],f.onFinished.push(()=>{if(!u){const m=(globalThis.__vitest_worker__?.onFilterStackTrace||(n=>n||""))(c.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in the next Vitest major. ",`Please remember to await the assertion.
|
|
31
|
+
`,m].join(""))}}),{then(h,m){return u=!0,t.then(h,m)},catch(h){return u=!0,t.catch(h)},finally(h){return u=!0,t.finally(h)},[Symbol.toStringTag]:"Promise"}}return t}function J(e,t){e.result||={state:"fail"},e.result.state="fail",e.result.errors||=[],e.result.errors.push(St(t))}function Tt(e,t,r){return function(...c){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,c);const a=e.flag(this,"vitest-test");if(!a)throw new Error("expect.soft() can only be used inside a test");try{const f=r.apply(this,c);return f&&typeof f=="object"&&typeof f.then=="function"?f.then(dt,u=>{J(a,u)}):f}catch(f){J(a,f)}}}const Ee=(e,t)=>{const{AssertionError:r}=e,c=z();function a(n,o){const s=i=>{const l=Tt(t,i,o);t.addMethod(e.Assertion.prototype,i,l),t.addMethod(globalThis[P].matchers,i,l)};Array.isArray(n)?n.forEach(i=>s(i)):s(n)}["throw","throws","Throw"].forEach(n=>{t.overwriteMethod(e.Assertion.prototype,n,o=>function(...s){const i=t.flag(this,"promise"),l=t.flag(this,"object"),p=t.flag(this,"negate");if(i==="rejects")t.flag(this,"object",()=>{throw l});else if(i==="resolves"&&typeof l!="function"){if(p)return;{const d=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(d,y,t.flag(this,"ssfi"))}}o.apply(this,s)})}),a("withTest",function(n){return t.flag(this,"vitest-test",n),this}),a("toEqual",function(n){const o=t.flag(this,"object"),s=g(o,n,[...c,x]);return this.assert(s,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",n,o)}),a("toStrictEqual",function(n){const o=t.flag(this,"object"),s=g(o,n,[...c,x,nt,U,ot],!0);return this.assert(s,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",n,o)}),a("toBe",function(n){const o=this._obj,s=Object.is(o,n);let i="";return s||(g(o,n,[...c,x,nt,U,ot],!0)?i="toStrictEqual":g(o,n,[...c,x])&&(i="toEqual")),this.assert(s,Zt(i),"expected #{this} not to be #{exp} // Object.is equality",n,o)}),a("toMatchObject",function(n){const o=this._obj,s=g(o,n,[...c,x,R]),i=t.flag(this,"negate"),{subset:l,stripped:p}=te(o,n,c);if(s&&i||!s&&!i){const d=t.getMessage(this,[s,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",n,l,!1]),y=p===0?d:`${d}
|
|
32
|
+
(${p} matching ${p===1?"property":"properties"} omitted from actual)`;throw new r(y,{showDiff:!0,expected:n,actual:l})}}),a("toMatch",function(n){const o=this._obj;if(typeof o!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof o}`);return this.assert(typeof n=="string"?o.includes(n):o.match(n),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",n,o)}),a("toContain",function(n){const o=this._obj;if(typeof Node<"u"&&o instanceof Node){if(!(n instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof n}`);return this.assert(o.contains(n),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",n,o)}if(typeof DOMTokenList<"u"&&o instanceof DOMTokenList){O(n,"class name",["string"]);const i=t.flag(this,"negate")?o.value.replace(n,"").trim():`${o.value} ${n}`;return this.assert(o.contains(n),`expected "${o.value}" to contain "${n}"`,`expected "${o.value}" not to contain "${n}"`,i,o.value)}return typeof o=="string"&&typeof n=="string"?this.assert(o.includes(n),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",n,o):(o!=null&&typeof o!="string"&&t.flag(this,"object",Array.from(o)),this.contain(n))}),a("toContainEqual",function(n){const o=t.flag(this,"object"),s=Array.from(o).findIndex(i=>g(i,n,c));this.assert(s!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",n)}),a("toBeTruthy",function(){const n=t.flag(this,"object");this.assert(!!n,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,n)}),a("toBeFalsy",function(){const n=t.flag(this,"object");this.assert(!n,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,n)}),a("toBeGreaterThan",function(n){const o=this._obj;return O(o,"actual",["number","bigint"]),O(n,"expected",["number","bigint"]),this.assert(o>n,`expected ${o} to be greater than ${n}`,`expected ${o} to be not greater than ${n}`,n,o,!1)}),a("toBeGreaterThanOrEqual",function(n){const o=this._obj;return O(o,"actual",["number","bigint"]),O(n,"expected",["number","bigint"]),this.assert(o>=n,`expected ${o} to be greater than or equal to ${n}`,`expected ${o} to be not greater than or equal to ${n}`,n,o,!1)}),a("toBeLessThan",function(n){const o=this._obj;return O(o,"actual",["number","bigint"]),O(n,"expected",["number","bigint"]),this.assert(o<n,`expected ${o} to be less than ${n}`,`expected ${o} to be not less than ${n}`,n,o,!1)}),a("toBeLessThanOrEqual",function(n){const o=this._obj;return O(o,"actual",["number","bigint"]),O(n,"expected",["number","bigint"]),this.assert(o<=n,`expected ${o} to be less than or equal to ${n}`,`expected ${o} to be not less than or equal to ${n}`,n,o,!1)}),a("toBeNaN",function(){const n=t.flag(this,"object");this.assert(Number.isNaN(n),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,n)}),a("toBeUndefined",function(){const n=t.flag(this,"object");this.assert(n===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,n)}),a("toBeNull",function(){const n=t.flag(this,"object");this.assert(n===null,"expected #{this} to be null","expected #{this} not to be null",null,n)}),a("toBeNullable",function(){const n=t.flag(this,"object");this.assert(n==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,n)}),a("toBeDefined",function(){const n=t.flag(this,"object");this.assert(typeof n<"u","expected #{this} to be defined","expected #{this} to be undefined",n)}),a("toBeTypeOf",function(n){const o=typeof this._obj,s=n===o;return this.assert(s,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",n,o)}),a("toBeInstanceOf",function(n){return this.instanceOf(n)}),a("toHaveLength",function(n){return this.have.length(n)}),a("toHaveProperty",function(...n){Array.isArray(n[0])&&(n[0]=n[0].map(E=>String(E).replace(/([.[\]])/g,"\\$1")).join("."));const o=this._obj,[s,i]=n,l=()=>Object.hasOwn(o,s)?{value:o[s],exists:!0}:t.getPathInfo(o,s),{value:p,exists:d}=l(),y=d&&(n.length===1||g(i,p,c)),b=n.length===1?"":` with value ${t.objDisplay(i)}`;return this.assert(y,`expected #{this} to have property "${s}"${b}`,`expected #{this} to not have property "${s}"${b}`,i,d?p:void 0)}),a("toBeCloseTo",function(n,o=2){const s=this._obj;let i=!1,l=0,p=0;return n===Number.POSITIVE_INFINITY&&s===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY&&s===Number.NEGATIVE_INFINITY?i=!0:(l=10**-o/2,p=Math.abs(s-n),i=p<l),this.assert(i,`expected #{this} to be close to #{exp}, received difference is ${p}, but expected ${l}`,`expected #{this} to not be close to #{exp}, received difference is ${p}, but expected ${l}`,n,s,!1)});function f(n){if(!V(n._obj))throw new TypeError(`${t.inspect(n._obj)} is not a spy or a call to a spy!`)}function u(n){return f(n),n._obj}a(["toHaveBeenCalledTimes","toBeCalledTimes"],function(n){const o=u(this),s=o.getMockName(),i=o.mock.calls.length;return this.assert(i===n,`expected "${s}" to be called #{exp} times, but got ${i} times`,`expected "${s}" to not be called #{exp} times`,n,i,!1)}),a("toHaveBeenCalledOnce",function(){const n=u(this),o=n.getMockName(),s=n.mock.calls.length;return this.assert(s===1,`expected "${o}" to be called once, but got ${s} times`,`expected "${o}" to not be called once`,1,s,!1)}),a(["toHaveBeenCalled","toBeCalled"],function(){const n=u(this),o=n.getMockName(),s=n.mock.calls.length,i=s>0,l=t.flag(this,"negate");let p=t.getMessage(this,[i,`expected "${o}" to be called at least once`,`expected "${o}" to not be called at all, but actually been called ${s} times`,!0,i]);if(i&&l&&(p=Y(n,p)),i&&l||!i&&!l)throw new r(p)});function h(n,o){return n.length===o.length&&n.every((s,i)=>g(s,o[i],[...c,x]))}a(["toHaveBeenCalledWith","toBeCalledWith"],function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.some(d=>h(d,n)),l=t.flag(this,"negate"),p=t.getMessage(this,[i,`expected "${s}" to be called with arguments: #{exp}`,`expected "${s}" to not be called with arguments: #{exp}`,n]);if(i&&l||!i&&!l)throw new r(Y(o,p,n))}),a("toHaveBeenCalledExactlyOnceWith",function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.length,p=o.mock.calls.some(b=>h(b,n))&&i===1,d=t.flag(this,"negate"),y=t.getMessage(this,[p,`expected "${s}" to be called once with arguments: #{exp}`,`expected "${s}" to not be called once with arguments: #{exp}`,n]);if(p&&d||!p&&!d)throw new r(Y(o,y,n))}),a("toHaveBeenNthCalledWith",function(n,...o){const s=u(this),i=s.getMockName(),l=s.mock.calls[n-1],p=s.mock.calls.length,d=n<=p;this.assert(l&&h(l,o),`expected ${A(n)} "${i}" call to have been called with #{exp}${d?"":`, but called only ${p} times`}`,`expected ${A(n)} "${i}" call to not have been called with #{exp}`,o,l,d)}),a("toHaveBeenLastCalledWith",function(...n){const o=u(this),s=o.getMockName(),i=o.mock.calls.at(-1);this.assert(i&&h(i,n),`expected last "${s}" call to have been called with #{exp}`,`expected last "${s}" call to not have been called with #{exp}`,n,i)});function m(n,o,s){const i=n.mock.invocationCallOrder,l=o.mock.invocationCallOrder;return i.length===0?!s:l.length===0?!1:i[0]<l[0]}a(["toHaveBeenCalledBefore"],function(n,o=!0){const s=u(this);if(!V(n))throw new TypeError(`${t.inspect(n)} is not a spy or a call to a spy`);this.assert(m(s,n,o),`expected "${s.getMockName()}" to have been called before "${n.getMockName()}"`,`expected "${s.getMockName()}" to not have been called before "${n.getMockName()}"`,n,s)}),a(["toHaveBeenCalledAfter"],function(n,o=!0){const s=u(this);if(!V(n))throw new TypeError(`${t.inspect(n)} is not a spy or a call to a spy`);this.assert(m(n,s,o),`expected "${s.getMockName()}" to have been called after "${n.getMockName()}"`,`expected "${s.getMockName()}" to not have been called after "${n.getMockName()}"`,n,s)}),a(["toThrow","toThrowError"],function(n){if(typeof n=="string"||typeof n>"u"||n instanceof RegExp)return this.throws(n===""?/^$/:n);const o=this._obj,s=t.flag(this,"promise"),i=t.flag(this,"negate");let l=null;if(s==="rejects")l=o;else if(s==="resolves"&&typeof o!="function"){if(i)return;{const d=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(d,y,t.flag(this,"ssfi"))}}else{let d=!1;try{o()}catch(y){d=!0,l=y}if(!d&&!i){const y=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}if(typeof n=="function"){const d=n.name||n.prototype.constructor.name;return this.assert(l&&l instanceof n,`expected error to be instance of ${d}`,`expected error not to be instance of ${d}`,n,l)}if(S(n)){const d=g(l,n,[...c,x]);return this.assert(d,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",n,l)}if(typeof n=="object"&&"asymmetricMatch"in n&&typeof n.asymmetricMatch=="function"){const d=n;return this.assert(l&&d.asymmetricMatch(l),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",d,l)}const p=g(l,n,[...c,x]);return this.assert(p,"expected a thrown value to equal #{exp}","expected a thrown value not to equal #{exp}",n,l)}),[{name:"toHaveResolved",condition:n=>n.mock.settledResults.length>0&&n.mock.settledResults.some(({type:o})=>o==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:n=>n.mock.calls.length>0&&n.mock.results.some(({type:o})=>o!=="throw"),action:"called"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(){const i=u(this),l=i.getMockName(),p=o(i);this.assert(p,`expected "${l}" to be successfully ${s} at least once`,`expected "${l}" to not be successfully ${s}`,p,!p,!1)})}),[{name:"toHaveResolvedTimes",condition:(n,o)=>n.mock.settledResults.reduce((s,{type:i})=>i==="fulfilled"?++s:s,0)===o,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(n,o)=>n.mock.results.reduce((s,{type:i})=>i==="throw"?s:++s,0)===o,action:"called"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),p=l.getMockName(),d=o(l,i);this.assert(d,`expected "${p}" to be successfully ${s} ${i} times`,`expected "${p}" to not be successfully ${s} ${i} times`,`expected resolved times: ${i}`,`received resolved times: ${d}`,!1)})}),[{name:"toHaveResolvedWith",condition:(n,o)=>n.mock.settledResults.some(({type:s,value:i})=>s==="fulfilled"&&g(o,i)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(n,o)=>n.mock.results.some(({type:s,value:i})=>s==="return"&&g(o,i)),action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),p=o(l,i),d=t.flag(this,"negate");if(p&&d||!p&&!d){const y=l.getMockName(),b=t.getMessage(this,[p,`expected "${y}" to ${s} with: #{exp} at least once`,`expected "${y}" to not ${s} with: #{exp}`,i]),E=s==="return"?l.mock.results:l.mock.settledResults;throw new r(re(l,E,b,i))}})}),[{name:"toHaveLastResolvedWith",condition:(n,o)=>{const s=n.mock.settledResults.at(-1);return!!(s&&s.type==="fulfilled"&&g(s.value,o))},action:"resolve"},{name:"toHaveLastReturnedWith",condition:(n,o)=>{const s=n.mock.results.at(-1);return!!(s&&s.type==="return"&&g(s.value,o))},action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i){const l=u(this),d=(s==="return"?l.mock.results:l.mock.settledResults).at(-1),y=l.getMockName();this.assert(o(l,i),`expected last "${y}" call to ${s} #{exp}`,`expected last "${y}" call to not ${s} #{exp}`,i,d?.value)})}),[{name:"toHaveNthResolvedWith",condition:(n,o,s)=>{const i=n.mock.settledResults[o-1];return i&&i.type==="fulfilled"&&g(i.value,s)},action:"resolve"},{name:"toHaveNthReturnedWith",condition:(n,o,s)=>{const i=n.mock.results[o-1];return i&&i.type==="return"&&g(i.value,s)},action:"return"}].forEach(({name:n,condition:o,action:s})=>{a(n,function(i,l){const p=u(this),d=p.getMockName(),b=(s==="return"?p.mock.results:p.mock.settledResults)[i-1],E=`${A(i)} call`;this.assert(o(p,i,l),`expected ${E} "${d}" call to ${s} #{exp}`,`expected ${E} "${d}" call to not ${s} #{exp}`,l,b?.value)})}),a("withContext",function(n){for(const o in n)t.flag(this,o,n[o]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){const o=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",o);const s=t.flag(this,"vitest-test"),i=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof i?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof i}'.`);const l=new Proxy(this,{get:(p,d,y)=>{const b=Reflect.get(p,d,y);return typeof b!="function"?b instanceof e.Assertion?l:b:(...E)=>{t.flag(this,"_name",d);const _=Promise.resolve(i).then(w=>(t.flag(this,"object",w),b.call(this,...E)),w=>{const $=new r(`promise rejected "${t.inspect(w)}" instead of resolving`,{showDiff:!1});throw $.cause=w,$}).catch(w=>{throw S(w)&&o.stack&&(w.stack=o.stack.replace(o.message,w.message)),w});return ft(s,_,ut(t,this,!!E.length),o,t.flag(this,"soft"))}}});return l}),t.addProperty(e.Assertion.prototype,"rejects",function(){const o=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",o);const s=t.flag(this,"vitest-test"),i=t.flag(this,"object"),l=typeof i=="function"?i():i;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof l?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof l}'.`);const p=new Proxy(this,{get:(d,y,b)=>{const E=Reflect.get(d,y,b);return typeof E!="function"?E instanceof e.Assertion?p:E:(..._)=>{t.flag(this,"_name",y);const w=Promise.resolve(l).then($=>{throw new r(`promise resolved "${t.inspect($)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:$})},$=>(t.flag(this,"object",$),E.call(this,..._))).catch($=>{throw S($)&&o.stack&&($.stack=o.stack.replace(o.message,$.message)),$});return ft(s,w,ut(t,this,!!_.length),o,t.flag(this,"soft"))}}});return p})};function Y(e,t,r){return e.mock.calls.length&&(t+=v.gray(`
|
|
33
33
|
|
|
34
34
|
Received:
|
|
35
35
|
|
|
36
|
-
${e.mock.calls.map((c,a)=>{let f=v.bold(` ${
|
|
36
|
+
${e.mock.calls.map((c,a)=>{let f=v.bold(` ${A(a+1)} ${e.getMockName()} call:
|
|
37
37
|
|
|
38
38
|
`);return r?f+=I(r,c,{omitAnnotationLines:!0}):f+=j(c).split(`
|
|
39
39
|
`).map(u=>` ${u}`).join(`
|
|
@@ -42,11 +42,11 @@ ${e.mock.calls.map((c,a)=>{let f=v.bold(` ${S(a+1)} ${e.getMockName()} call:
|
|
|
42
42
|
`)}`)),t+=v.gray(`
|
|
43
43
|
|
|
44
44
|
Number of calls: ${v.bold(e.mock.calls.length)}
|
|
45
|
-
`),t}function
|
|
45
|
+
`),t}function re(e,t,r,c){return t.length&&(r+=v.gray(`
|
|
46
46
|
|
|
47
47
|
Received:
|
|
48
48
|
|
|
49
|
-
${t.map((a,f)=>{let u=v.bold(` ${
|
|
49
|
+
${t.map((a,f)=>{let u=v.bold(` ${A(f+1)} ${e.getMockName()} call return:
|
|
50
50
|
|
|
51
51
|
`);return c?u+=I(c,a.value,{omitAnnotationLines:!0}):u+=j(a).split(`
|
|
52
52
|
`).map(h=>` ${h}`).join(`
|
|
@@ -55,4 +55,4 @@ ${t.map((a,f)=>{let u=v.bold(` ${S(f+1)} ${e.getMockName()} call return:
|
|
|
55
55
|
`)}`)),r+=v.gray(`
|
|
56
56
|
|
|
57
57
|
Number of calls: ${v.bold(e.mock.calls.length)}
|
|
58
|
-
`),r}function
|
|
58
|
+
`),r}function se(e,t){const r=e._obj,c=C.flag(e,"negate"),a=C.flag(e,"promise")||"",f=C.flag(e,"message"),u={...bt(),diff:I,stringify:j,iterableEquality:x,subsetEquality:R};let h=C.flag(e,"vitest-test");const m=h?.fullTestName??"";h?.type!=="test"&&(h=void 0);const n={...vt(t),currentTestName:m,customTesters:z(),isNot:c,utils:u,promise:a,equals:g,suppressedErrors:[],soft:C.flag(e,"soft"),poll:C.flag(e,"poll"),assertion:e};return Object.assign(n,{task:h}),{state:n,isNot:c,obj:r,customMessage:f}}class ht extends Error{constructor(t,r,c,a){super(t),this.actual=r,this.expected=c,this.__vitest_error_context__=a}}function ie(e,t,r){return(c,a)=>{Object.entries(r).forEach(([f,u])=>{function h(...s){const{state:i,isNot:l,obj:p,customMessage:d}=se(this,t),y=u.call(i,p,...s);if(y&&typeof y=="object"&&typeof y.then=="function")return y.then(({pass:X,message:Nt,actual:Ot,expected:Mt,meta:jt})=>{if(X&&l||!X&&!l){const _t=(d?`${d}: `:"")+Nt();throw new ht(_t,Ot,Mt,{assertionName:f,meta:jt})}});const{pass:b,message:E,actual:_,expected:w,meta:$}=y;if(b&&l||!b&&!l){const W=(d?`${d}: `:"")+E();throw new ht(W,_,w,{assertionName:f,meta:$})}}const m=Tt(a,f,h);if(a.addMethod(globalThis[P].matchers,f,m),a.addMethod(e.Assertion.prototype,f,m),u.__vitest_poll_takeover__){const s=e.Assertion.prototype[f];Object.defineProperty(s,"__vitest_poll_takeover__",{value:!0})}class n extends N{constructor(i=!1,...l){super(l,i)}asymmetricMatch(i){const{pass:l}=u.call(this.getMatcherContext(t),i,...this.sample);return this.inverse?!l:l}toString(){return`${this.inverse?"not.":""}${f}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(i=>j(i)).join(", ")}>`}}const o=(...s)=>new n(!1,...s);Object.defineProperty(t,f,{configurable:!0,enumerable:!0,value:o,writable:!0}),Object.defineProperty(t.not,f,{configurable:!0,enumerable:!0,value:(...s)=>new n(!0,...s),writable:!0}),Object.defineProperty(globalThis[gt],f,{configurable:!0,enumerable:!0,value:o,writable:!0})})}}const $e=(e,t)=>{t.addMethod(e.expect,"extend",(r,c)=>{At(ie(e,r,c))})};export{gt as ASYMMETRIC_MATCHERS_OBJECT,oe as Any,ne as Anything,it as ArrayContaining,N as AsymmetricMatcher,de as ChaiStyleAssertions,mt as GLOBAL_EXPECT,P as JEST_MATCHERS_OBJECT,be as JestAsymmetricMatchers,Ee as JestChaiExpect,$e as JestExtend,k as MATCHERS_OBJECT,st as ObjectContaining,lt as SchemaMatching,rt as StringContaining,at as StringMatching,ge as addCustomEqualityTesters,ot as arrayBufferEquality,ut as createAssertionMessage,me as customMatchers,g as equals,Zt as generateToBeMessage,F as getObjectKeys,te as getObjectSubset,vt as getState,T as isA,Z as isAsymmetric,S as isError,Yt as isImmutableUnorderedKeyed,Ut as isImmutableUnorderedSet,ee as isStandardSchema,x as iterableEquality,Qt as pluralize,ft as recordAsyncExpect,ye as setState,U as sparseArrayEquality,R as subsetEquality,nt as typeEquality,Tt as wrapAssertion};
|