From 32f8a78263c2a11805a5d43444c81697963d5bf4 Mon Sep 17 00:00:00 2001 From: alimpens <37216945+alimpens@users.noreply.github.com> Date: Wed, 29 Nov 2023 10:05:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Amsterda?= =?UTF-8?q?m/design-system@b56d1bc03fbf1c23095cb4cb0f833497608a394d=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/Color-6VNJS4EI-8FMNEuoO.js | 1 + .../assets/Color-6VNJS4EI-tTpzLVKP.js | 2 - .../assets/Color-6VNJS4EI-tTpzLVKP.js.map | 1 - .../assets/DocsRenderer-NNNQARDV-5gWMai6N.js | 7 + .../assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js | 8 - .../DocsRenderer-NNNQARDV-Aiqs-xN5.js.map | 1 - .../assets/WithTooltip-4HIR6TLV-4C0Q63Em.js | 2 - .../WithTooltip-4HIR6TLV-4C0Q63Em.js.map | 1 - .../assets/WithTooltip-V3YHNWJZ-vJYlT89d.js | 1 + .../assets/_commonjsHelpers-4gQjN7DL.js | 1 - .../assets/_commonjsHelpers-4gQjN7DL.js.map | 1 - demo-develop/assets/axe-enb-Yovf.js | 1 - demo-develop/assets/axe-enb-Yovf.js.map | 1 - ...xtfU.js => breakpoint.stories-3EcDJWSk.js} | 5 +- .../assets/breakpoint.stories-oLczxtfU.js.map | 1 - demo-develop/assets/config-ozdib8zA.js.map | 1 - demo-develop/assets/entry-preview-OIOrqgri.js | 1 + ...b8zA.js => entry-preview-docs-eqAS1v0x.js} | 75 ++-- ...O88K.js => formatter-SWP5E3XI-C7d0jCE7.js} | 5 +- .../assets/formatter-SWP5E3XI-QjtqO88K.js.map | 1 - .../assets/grid.stories-MGRzvgVM.js.map | 1 - ...s-MGRzvgVM.js => grid.stories-iGIKmBa6.js} | 5 +- demo-develop/assets/iframe-F2LxRYXW.js | 7 + demo-develop/assets/iframe-sPG83acy.js | 8 - demo-develop/assets/iframe-sPG83acy.js.map | 1 - demo-develop/assets/index-4g5l5LRQ.js | 9 + demo-develop/assets/index-6QkflbW1.js | 2 - demo-develop/assets/index-6QkflbW1.js.map | 1 - demo-develop/assets/index-7RSFs7Cb.js | 35 -- demo-develop/assets/index-7RSFs7Cb.js.map | 1 - .../{index-MVO-xk_1.js => index-Dbo06S9W.js} | 3 +- demo-develop/assets/index-MVO-xk_1.js.map | 1 - demo-develop/assets/index-MVbLLYTZ.js | 3 + demo-develop/assets/index-PPLHz8o0.js | 1 - demo-develop/assets/index-PPLHz8o0.js.map | 1 - demo-develop/assets/index-SG-Z78AQ.js | 372 +++++++++++++++++ demo-develop/assets/index-aKxH7ZY0.js.map | 1 - demo-develop/assets/index-iT8Z8hhO.js | 373 ------------------ demo-develop/assets/index-iT8Z8hhO.js.map | 1 - demo-develop/assets/index-jmm5gWkb.js | 24 ++ demo-develop/assets/index-kkodseRa.js | 1 + .../{index-aKxH7ZY0.js => index-ogXoivrg.js} | 3 +- ... interactive-elements.stories-7W9d0V9x.js} | 5 +- ...teractive-elements.stories-ZlRABLY_.js.map | 1 - .../introduction.stories-2In95NnB.js.map | 1 - ...nB.js => introduction.stories-6jrWcWtp.js} | 5 +- .../assets/jsx-runtime-0GPuVWNr.js.map | 1 - ...me-0GPuVWNr.js => jsx-runtime-vNq4Oc-g.js} | 3 +- .../assets/language.stories-Ky7L1AH1.js.map | 1 - ...7L1AH1.js => language.stories-V5V2Es-h.js} | 5 +- .../assets/license.stories-J8S961KV.js.map | 1 - ...8S961KV.js => license.stories-XL2tQqlH.js} | 5 +- .../assets/notice.stories-TTvM2W36.js.map | 1 - ...TTvM2W36.js => notice.stories-cWADL8wP.js} | 5 +- demo-develop/assets/preview--mFVG3pj.js | 8 - demo-develop/assets/preview--mFVG3pj.js.map | 1 - demo-develop/assets/preview-70qxeh8F.js | 27 ++ demo-develop/assets/preview-DTC9-PN8.js | 7 + demo-develop/assets/preview-Fi7DQdoQ.js | 2 - demo-develop/assets/preview-Fi7DQdoQ.js.map | 1 - demo-develop/assets/preview-J7ZNVipj.js | 2 - demo-develop/assets/preview-J7ZNVipj.js.map | 1 - demo-develop/assets/preview-MdQXpms2.js | 1 + demo-develop/assets/preview-OnO0tzRj.js | 17 + demo-develop/assets/preview-S_5I-mL2.js | 8 - demo-develop/assets/preview-S_5I-mL2.js.map | 1 - demo-develop/assets/preview-VI2eoWmp.js | 1 + demo-develop/assets/preview-Y7vvrhHd.js.map | 1 - demo-develop/assets/preview-_PuUsqGv.js | 2 - demo-develop/assets/preview-_PuUsqGv.js.map | 1 - ...review-z_l9a9HW.js => preview-bEa2SesL.js} | 7 +- demo-develop/assets/preview-bJSO6fK3.js.map | 1 - demo-develop/assets/preview-gnTYGUb5.js | 2 - demo-develop/assets/preview-gnTYGUb5.js.map | 1 - demo-develop/assets/preview-n-8i_lle.js | 7 + demo-develop/assets/preview-rx_G7Yy2.js | 1 - demo-develop/assets/preview-rx_G7Yy2.js.map | 1 - ...review-bJSO6fK3.js => preview-u8M_OEO2.js} | 3 +- ...review-Y7vvrhHd.js => preview-wm7zCcxo.js} | 9 +- demo-develop/assets/preview-z_l9a9HW.js.map | 1 - .../react-18-ba7OOUbL.js} | 3 +- demo-develop/assets/react-18-e2qAuQ2N.js | 2 - demo-develop/assets/react-18-e2qAuQ2N.js.map | 1 - .../syntaxhighlighter-NMPM6SWI-Sc-jW8n0.js | 2 - ...syntaxhighlighter-NMPM6SWI-Sc-jW8n0.js.map | 1 - .../syntaxhighlighter-V7JZZA35-1x5_KrTc.js | 1 + ...aVGT.js => typography.stories-Mmxhoje9.js} | 5 +- .../assets/typography.stories-jjgCaVGT.js.map | 1 - ...d1bc03fbf1c23095cb4cb0f833497608a394d.txt} | 0 demo-develop/iframe.html | 6 +- demo-develop/index.html | 3 +- demo-develop/project.json | 2 +- .../sb-addons/a11y-9/manager-bundle.js | 2 +- .../sb-addons/config-10/manager-bundle.js | 4 +- .../essentials-actions-2/manager-bundle.js | 2 +- .../manager-bundle.js | 8 +- .../essentials-controls-1/manager-bundle.js | 123 ++---- .../essentials-measure-6/manager-bundle.js | 2 +- .../essentials-outline-7/manager-bundle.js | 2 +- .../essentials-toolbars-5/manager-bundle.js | 2 +- .../essentials-viewport-4/manager-bundle.js | 2 +- .../interactions-8/manager-bundle.js | 33 +- .../sb-addons/links-0/manager-bundle.js | 2 +- .../WithTooltip-4HIR6TLV-YPPZ2DMB.js | 1 - .../WithTooltip-V3YHNWJZ-LVYLGZW2.js | 1 + demo-develop/sb-manager/chunk-2IXBUOFS.js | 7 + .../chunk-DSMMRWXC.js} | 46 +-- demo-develop/sb-manager/chunk-FWZ33S65.js | 9 - .../chunk-INSKDKQB.js} | 12 +- demo-develop/sb-manager/chunk-NGTUFCUO.js | 9 + demo-develop/sb-manager/chunk-SZNM6KS3.js | 7 - .../sb-manager/globals-module-info.js | 1 + demo-develop/sb-manager/globals.js | 2 +- demo-develop/sb-manager/index.js | 2 +- demo-develop/sb-manager/runtime.js | 2 +- ...=> syntaxhighlighter-V7JZZA35-DXZCI2WR.js} | 2 +- demo-develop/sb-preview/globals.js | 2 +- demo-develop/sb-preview/runtime.js | 32 +- ...jojMvWkT.js => Accordion.docs-AlXsi1Y_.js} | 5 +- .../assets/Accordion.docs-jojMvWkT.js.map | 1 - .../assets/Accordion.stories-_Wxedikv.js.map | 1 - ...edikv.js => Accordion.stories-olB5iwlq.js} | 3 +- ...ocs-kmLyXcqG.js => Alert.docs-RrsgoSqW.js} | 7 +- .../assets/Alert.docs-kmLyXcqG.js.map | 1 - .../assets/Alert.stories-SbEPtb9q.js.map | 1 - ...-SbEPtb9q.js => Alert.stories-eEyzOkO4.js} | 3 +- ...-cn-WD.js => AspectRatio.docs-I1wp4Ho_.js} | 5 +- .../assets/AspectRatio.docs-Oj-cn-WD.js.map | 1 - .../AspectRatio.stories-DbgTBjIm.js.map | 1 - ...jIm.js => AspectRatio.stories-iNWAhOcF.js} | 9 +- ...GGUUK6C.js => Blockquote.docs-iU-UKN6N.js} | 5 +- .../assets/Blockquote.docs-jGGUUK6C.js.map | 1 - ...KGDV.js => Blockquote.stories-Im8VtCWV.js} | 3 +- .../assets/Blockquote.stories-jacxKGDV.js.map | 1 - .../assets/Breadcrumb.docs-MNl96mzN.js.map | 1 - ...Nl96mzN.js => Breadcrumb.docs-zxu1gRuz.js} | 5 +- .../assets/Breadcrumb.stories-KxviIQcV.js.map | 1 - ...IQcV.js => Breadcrumb.stories-hS-nKGlr.js} | 3 +- .../assets/Button.docs-avTmHJ6Q.js.map | 1 - ...cs-avTmHJ6Q.js => Button.docs-c4KkSNal.js} | 5 +- ...2ivHVANs.js => Button.stories-0pVyUwow.js} | 3 +- .../assets/Button.stories-2ivHVANs.js.map | 1 - .../assets/Card.docs-7x2lZ0uQ.js.map | 1 - ...docs-7x2lZ0uQ.js => Card.docs-JZmoYv16.js} | 5 +- ...s-ql5ZhmMc.js => Card.stories-GcJo72jA.js} | 5 +- .../assets/Card.stories-ql5ZhmMc.js.map | 1 - .../assets/Checkbox.docs-h3VX6lkL.js.map | 1 - ...-h3VX6lkL.js => Checkbox.docs-igwdhl3I.js} | 5 +- ...YN5I7x.js => Checkbox.stories-jfAMW0Zn.js} | 3 +- .../assets/Checkbox.stories-pSYN5I7x.js.map | 1 - .../assets/Color-6VNJS4EI-bQeASXKe.js | 1 + .../assets/Color-6VNJS4EI-rTtrjuFt.js | 2 - .../assets/Color-6VNJS4EI-rTtrjuFt.js.map | 1 - .../assets/Dialog.docs-FozN-iQp.js.map | 1 - ...cs-FozN-iQp.js => Dialog.docs-M8lkNbDg.js} | 7 +- .../assets/Dialog.stories-4AhRciB5.js.map | 1 - ...4AhRciB5.js => Dialog.stories-CwxFgD8r.js} | 3 +- .../assets/DocsRenderer-NNNQARDV-a3_nVB_d.js | 7 + .../assets/DocsRenderer-NNNQARDV-yPXG3cN_.js | 8 - .../DocsRenderer-NNNQARDV-yPXG3cN_.js.map | 1 - ...cs-lMrOQbit.js => Footer.docs-V5FclkxM.js} | 5 +- .../assets/Footer.docs-lMrOQbit.js.map | 1 - ...xhgl4RhX.js => Footer.stories-Wm7puaHa.js} | 3 +- .../assets/Footer.stories-xhgl4RhX.js.map | 1 - .../assets/FormLabel.docs-Tx5i7CGM.js | 5 - .../assets/FormLabel.docs-Tx5i7CGM.js.map | 1 - .../assets/FormLabel.docs-gIXUlaAx.js | 4 + ...rKL4v.js => FormLabel.stories-1NK0smEq.js} | 3 +- .../assets/FormLabel.stories-I01rKL4v.js.map | 1 - .../assets/Grid.docs-FQykiYQv.js.map | 1 - ...docs-FQykiYQv.js => Grid.docs-ZbxvHVcB.js} | 5 +- ...s-xlnBqEkO.js => Grid.stories-6rO1s1dT.js} | 5 +- .../assets/Grid.stories-xlnBqEkO.js.map | 1 - ...-pFsX5ZIW.js => GridCell.docs-U_NRhqCq.js} | 5 +- .../assets/GridCell.docs-pFsX5ZIW.js.map | 1 - .../assets/GridCell.stories-2z3gIQAZ.js.map | 1 - ...3gIQAZ.js => GridCell.stories-xzO6jO-C.js} | 3 +- ...s-r-_qV0Bi.js => Heading.docs-K0dzyt6t.js} | 5 +- .../assets/Heading.docs-r-_qV0Bi.js.map | 1 - .../assets/Heading.stories-2b6daHt_.js.map | 1 - ...b6daHt_.js => Heading.stories-AFcf3QH1.js} | 3 +- .../assets/Highlight.docs-XGlZhT4n.js.map | 1 - ...XGlZhT4n.js => Highlight.docs-o2JJEvgv.js} | 5 +- ...dsOBL.js => Highlight.stories-eZvhr8ON.js} | 11 +- .../assets/Highlight.stories-yaVdsOBL.js.map | 1 - ...docs-z4rHIim2.js => Icon.docs-DgDifaqv.js} | 7 +- .../assets/Icon.docs-z4rHIim2.js.map | 1 - .../assets/Icon.stories-DvSHkdC-.js.map | 1 - ...s-DvSHkdC-.js => Icon.stories-fOUPlXGL.js} | 5 +- ...ocs-xQexICKF.js => Image.docs-iRnSb598.js} | 5 +- .../assets/Image.docs-xQexICKF.js.map | 1 - ...-UTACeANV.js => Image.stories-CVBrRJvZ.js} | 3 +- .../assets/Image.stories-UTACeANV.js.map | 1 - .../assets/Link.docs-8oIyFqYu.js.map | 1 - ...docs-8oIyFqYu.js => Link.docs-T2SyqWMg.js} | 5 +- ...s-s9EqKzFl.js => Link.stories-Dj_6ztEX.js} | 5 +- .../assets/Link.stories-s9EqKzFl.js.map | 1 - ...docs-XrXyfGcy.js => Logo.docs-RH45rDBo.js} | 9 +- .../assets/Logo.docs-XrXyfGcy.js.map | 1 - .../assets/Logo.stories-mBkHjdDF.js.map | 1 - ...s-mBkHjdDF.js => Logo.stories-tN9aKeli.js} | 7 +- ...dx50ua.js => OrderedList.docs-F0rue3Zm.js} | 9 +- .../assets/OrderedList.docs-Sydx50ua.js.map | 1 - ...Aok.js => OrderedList.stories-BwDPCthx.js} | 3 +- .../OrderedList.stories-tZnBIAok.js.map | 1 - ...bsyDjB.js => PageHeading.docs-BUowrmJA.js} | 7 +- .../assets/PageHeading.docs-v3bsyDjB.js.map | 1 - ...KY7.js => PageHeading.stories-YIHRYQ2K.js} | 3 +- .../PageHeading.stories-nUerNKY7.js.map | 1 - ...-QuGLPBMm.js => PageMenu.docs-01mL0MZQ.js} | 5 +- .../assets/PageMenu.docs-QuGLPBMm.js.map | 1 - ...COfMbV.js => PageMenu.stories-XWLvNPyZ.js} | 3 +- .../assets/PageMenu.stories-yACOfMbV.js.map | 1 - ...96E7bsS.js => Pagination.docs-1zBbifu5.js} | 7 +- .../assets/Pagination.docs-U96E7bsS.js.map | 1 - .../assets/Pagination.stories-9AMr8ZOs.js.map | 1 - ...8ZOs.js => Pagination.stories-xrAGqZih.js} | 3 +- ...lE3BLqNs.js => Paragraph.docs-XDuVbCx4.js} | 5 +- .../assets/Paragraph.docs-lE3BLqNs.js.map | 1 - .../assets/Paragraph.stories-3QBJ4Rq_.js.map | 1 - ...J4Rq_.js => Paragraph.stories-uSbO22-F.js} | 3 +- ...cs-W0Cyb1Uj.js => Screen.docs-5HHiJ8dS.js} | 5 +- .../assets/Screen.docs-W0Cyb1Uj.js.map | 1 - .../assets/Screen.stories-Vw2vm3Nc.js.map | 1 - ...Vw2vm3Nc.js => Screen.stories-r_fBaflz.js} | 3 +- ...cs-uGuoHo9F.js => Switch.docs-VSklL3tv.js} | 5 +- .../assets/Switch.docs-uGuoHo9F.js.map | 1 - .../assets/Switch.stories-WxhuLfXq.js.map | 1 - ...WxhuLfXq.js => Switch.stories-oz1W9RUk.js} | 3 +- ...xLLB9V.js => TopTaskLink.docs-JS8ZlqzJ.js} | 7 +- .../assets/TopTaskLink.docs-euxLLB9V.js.map | 1 - .../TopTaskLink.stories-0Cpmzzzz.js.map | 1 - ...zzz.js => TopTaskLink.stories-4A47_wyL.js} | 3 +- ...mUaI.js => UnorderedList.docs-7pA8sYJm.js} | 7 +- .../assets/UnorderedList.docs-HNQwmUaI.js.map | 1 - ...b.js => UnorderedList.stories-4eVCRKk0.js} | 3 +- .../UnorderedList.stories-Mp1Q_Peb.js.map | 1 - ...UM6.js => VisuallyHidden.docs-jfeva7cV.js} | 5 +- .../VisuallyHidden.docs-rApEVUM6.js.map | 1 - ....js => VisuallyHidden.stories-VB_mRYan.js} | 3 +- .../VisuallyHidden.stories-rFzfdcZm.js.map | 1 - .../assets/WithTooltip-4HIR6TLV-VFeHXvWe.js | 2 - .../WithTooltip-4HIR6TLV-VFeHXvWe.js.map | 1 - .../assets/WithTooltip-V3YHNWJZ-kL5GZl6J.js | 1 + .../assets/_commonjsHelpers-4gQjN7DL.js | 1 - .../assets/_commonjsHelpers-4gQjN7DL.js.map | 1 - .../storybook-react/assets/axe-enb-Yovf.js | 1 - .../assets/axe-enb-Yovf.js.map | 1 - .../assets/config-xInHTLBB.js.map | 1 - .../assets/entry-preview-OIOrqgri.js | 1 + ...TLBB.js => entry-preview-docs-eqAS1v0x.js} | 75 ++-- .../assets/extends-dGVwEr9R.js | 1 - .../assets/extends-dGVwEr9R.js.map | 1 - ...pMUb.js => formatter-SWP5E3XI-DI5jyjBS.js} | 5 +- .../assets/formatter-SWP5E3XI-szqVpMUb.js.map | 1 - .../storybook-react/assets/iframe-3pKo2c-1.js | 7 + .../storybook-react/assets/iframe-g3z-EM4v.js | 8 - .../assets/iframe-g3z-EM4v.js.map | 1 - .../storybook-react/assets/index-4g5l5LRQ.js | 1 - .../assets/index-4g5l5LRQ.js.map | 1 - .../storybook-react/assets/index-Dbo06S9W.js | 1 - .../assets/index-Dbo06S9W.js.map | 1 - .../storybook-react/assets/index-IjZvmUne.js | 373 ------------------ .../assets/index-IjZvmUne.js.map | 1 - .../storybook-react/assets/index-MVbLLYTZ.js | 3 + .../storybook-react/assets/index-PPLHz8o0.js | 1 - .../assets/index-PPLHz8o0.js.map | 1 - .../storybook-react/assets/index-_Tgs2MTN.js | 372 +++++++++++++++++ .../assets/index-aKxH7ZY0.js.map | 1 - .../storybook-react/assets/index-f2OjG03D.js | 27 -- .../assets/index-f2OjG03D.js.map | 1 - .../storybook-react/assets/index-jmm5gWkb.js | 24 ++ .../storybook-react/assets/index-kkodseRa.js | 1 - .../assets/index-kkodseRa.js.map | 1 - .../{index-aKxH7ZY0.js => index-ogXoivrg.js} | 3 +- ....esm-hT88P2ih.js => index.esm-dJjQNqS8.js} | 3 +- .../assets/index.esm-hT88P2ih.js.map | 1 - .../assets/preview-70qxeh8F.js | 27 ++ .../assets/preview-DqshgJbu.js | 8 - .../assets/preview-DqshgJbu.js.map | 1 - .../assets/preview-Fi7DQdoQ.js | 2 - .../assets/preview-Fi7DQdoQ.js.map | 1 - .../assets/preview-J7ZNVipj.js | 2 - .../assets/preview-J7ZNVipj.js.map | 1 - .../assets/preview-MdQXpms2.js | 1 + .../assets/preview-OnO0tzRj.js | 17 + .../assets/preview-VI2eoWmp.js | 1 + .../assets/preview-Y7vvrhHd.js.map | 1 - .../assets/preview-_PuUsqGv.js | 2 - .../assets/preview-_PuUsqGv.js.map | 1 - .../assets/preview-_mWStPcz.js | 7 + ...review-z_l9a9HW.js => preview-bEa2SesL.js} | 7 +- .../assets/preview-bJSO6fK3.js.map | 1 - .../assets/preview-fha2A_lo.js | 1 - .../assets/preview-fha2A_lo.js.map | 1 - .../assets/preview-gnTYGUb5.js | 2 - .../assets/preview-gnTYGUb5.js.map | 1 - .../assets/preview-q4tR331A.js | 8 - .../assets/preview-q4tR331A.js.map | 1 - ...review-bJSO6fK3.js => preview-u8M_OEO2.js} | 3 +- .../assets/preview-vWmRt89j.js | 7 + ...review-Y7vvrhHd.js => preview-wm7zCcxo.js} | 9 +- .../assets/preview-z_l9a9HW.js.map | 1 - .../assets/react-18-6f2S3HzO.js.map | 1 - .../assets/react-18-ba7OOUbL.js | 1 + .../syntaxhighlighter-NMPM6SWI-KsbBOG4J.js | 2 - ...syntaxhighlighter-NMPM6SWI-KsbBOG4J.js.map | 1 - .../syntaxhighlighter-V7JZZA35-kh1ip1nM.js | 1 + demo-develop/storybook-react/iframe.html | 6 +- demo-develop/storybook-react/index.html | 3 +- demo-develop/storybook-react/project.json | 2 +- .../sb-addons/a11y-9/manager-bundle.js | 2 +- .../sb-addons/config-10/manager-bundle.js | 4 +- .../essentials-actions-2/manager-bundle.js | 2 +- .../manager-bundle.js | 8 +- .../essentials-controls-1/manager-bundle.js | 123 ++---- .../essentials-measure-6/manager-bundle.js | 2 +- .../essentials-outline-7/manager-bundle.js | 2 +- .../essentials-toolbars-5/manager-bundle.js | 2 +- .../essentials-viewport-4/manager-bundle.js | 2 +- .../interactions-8/manager-bundle.js | 33 +- .../sb-addons/links-0/manager-bundle.js | 2 +- .../WithTooltip-4HIR6TLV-YPPZ2DMB.js | 1 - .../WithTooltip-V3YHNWJZ-LVYLGZW2.js | 1 + .../sb-manager/chunk-2IXBUOFS.js | 7 + .../sb-manager/chunk-DSMMRWXC.js} | 46 +-- .../sb-manager/chunk-FWZ33S65.js | 9 - .../sb-manager/chunk-INSKDKQB.js} | 12 +- .../sb-manager/chunk-NGTUFCUO.js | 9 + .../sb-manager/chunk-SZNM6KS3.js | 7 - .../sb-manager/globals-module-info.js | 1 + .../storybook-react/sb-manager/globals.js | 2 +- .../storybook-react/sb-manager/index.js | 2 +- .../storybook-react/sb-manager/runtime.js | 2 +- ...=> syntaxhighlighter-V7JZZA35-DXZCI2WR.js} | 2 +- .../storybook-react/sb-preview/globals.js | 2 +- .../storybook-react/sb-preview/runtime.js | 32 +- 337 files changed, 1460 insertions(+), 1739 deletions(-) create mode 100644 demo-develop/assets/Color-6VNJS4EI-8FMNEuoO.js delete mode 100644 demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js delete mode 100644 demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js.map create mode 100644 demo-develop/assets/DocsRenderer-NNNQARDV-5gWMai6N.js delete mode 100644 demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js delete mode 100644 demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js.map delete mode 100644 demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js delete mode 100644 demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js.map create mode 100644 demo-develop/assets/WithTooltip-V3YHNWJZ-vJYlT89d.js delete mode 100644 demo-develop/assets/_commonjsHelpers-4gQjN7DL.js.map delete mode 100644 demo-develop/assets/axe-enb-Yovf.js.map rename demo-develop/assets/{breakpoint.stories-oLczxtfU.js => breakpoint.stories-3EcDJWSk.js} (67%) delete mode 100644 demo-develop/assets/breakpoint.stories-oLczxtfU.js.map delete mode 100644 demo-develop/assets/config-ozdib8zA.js.map create mode 100644 demo-develop/assets/entry-preview-OIOrqgri.js rename demo-develop/assets/{config-ozdib8zA.js => entry-preview-docs-eqAS1v0x.js} (63%) rename demo-develop/assets/{formatter-SWP5E3XI-QjtqO88K.js => formatter-SWP5E3XI-C7d0jCE7.js} (96%) delete mode 100644 demo-develop/assets/formatter-SWP5E3XI-QjtqO88K.js.map delete mode 100644 demo-develop/assets/grid.stories-MGRzvgVM.js.map rename demo-develop/assets/{grid.stories-MGRzvgVM.js => grid.stories-iGIKmBa6.js} (95%) create mode 100644 demo-develop/assets/iframe-F2LxRYXW.js delete mode 100644 demo-develop/assets/iframe-sPG83acy.js delete mode 100644 demo-develop/assets/iframe-sPG83acy.js.map create mode 100644 demo-develop/assets/index-4g5l5LRQ.js delete mode 100644 demo-develop/assets/index-6QkflbW1.js delete mode 100644 demo-develop/assets/index-6QkflbW1.js.map delete mode 100644 demo-develop/assets/index-7RSFs7Cb.js delete mode 100644 demo-develop/assets/index-7RSFs7Cb.js.map rename demo-develop/assets/{index-MVO-xk_1.js => index-Dbo06S9W.js} (79%) delete mode 100644 demo-develop/assets/index-MVO-xk_1.js.map create mode 100644 demo-develop/assets/index-MVbLLYTZ.js delete mode 100644 demo-develop/assets/index-PPLHz8o0.js.map create mode 100644 demo-develop/assets/index-SG-Z78AQ.js delete mode 100644 demo-develop/assets/index-aKxH7ZY0.js.map delete mode 100644 demo-develop/assets/index-iT8Z8hhO.js delete mode 100644 demo-develop/assets/index-iT8Z8hhO.js.map create mode 100644 demo-develop/assets/index-jmm5gWkb.js create mode 100644 demo-develop/assets/index-kkodseRa.js rename demo-develop/assets/{index-aKxH7ZY0.js => index-ogXoivrg.js} (63%) rename demo-develop/assets/{interactive-elements.stories-ZlRABLY_.js => interactive-elements.stories-7W9d0V9x.js} (92%) delete mode 100644 demo-develop/assets/interactive-elements.stories-ZlRABLY_.js.map delete mode 100644 demo-develop/assets/introduction.stories-2In95NnB.js.map rename demo-develop/assets/{introduction.stories-2In95NnB.js => introduction.stories-6jrWcWtp.js} (91%) delete mode 100644 demo-develop/assets/jsx-runtime-0GPuVWNr.js.map rename demo-develop/assets/{jsx-runtime-0GPuVWNr.js => jsx-runtime-vNq4Oc-g.js} (88%) delete mode 100644 demo-develop/assets/language.stories-Ky7L1AH1.js.map rename demo-develop/assets/{language.stories-Ky7L1AH1.js => language.stories-V5V2Es-h.js} (73%) delete mode 100644 demo-develop/assets/license.stories-J8S961KV.js.map rename demo-develop/assets/{license.stories-J8S961KV.js => license.stories-XL2tQqlH.js} (96%) delete mode 100644 demo-develop/assets/notice.stories-TTvM2W36.js.map rename demo-develop/assets/{notice.stories-TTvM2W36.js => notice.stories-cWADL8wP.js} (74%) delete mode 100644 demo-develop/assets/preview--mFVG3pj.js delete mode 100644 demo-develop/assets/preview--mFVG3pj.js.map create mode 100644 demo-develop/assets/preview-70qxeh8F.js create mode 100644 demo-develop/assets/preview-DTC9-PN8.js delete mode 100644 demo-develop/assets/preview-Fi7DQdoQ.js delete mode 100644 demo-develop/assets/preview-Fi7DQdoQ.js.map delete mode 100644 demo-develop/assets/preview-J7ZNVipj.js delete mode 100644 demo-develop/assets/preview-J7ZNVipj.js.map create mode 100644 demo-develop/assets/preview-MdQXpms2.js create mode 100644 demo-develop/assets/preview-OnO0tzRj.js delete mode 100644 demo-develop/assets/preview-S_5I-mL2.js delete mode 100644 demo-develop/assets/preview-S_5I-mL2.js.map create mode 100644 demo-develop/assets/preview-VI2eoWmp.js delete mode 100644 demo-develop/assets/preview-Y7vvrhHd.js.map delete mode 100644 demo-develop/assets/preview-_PuUsqGv.js delete mode 100644 demo-develop/assets/preview-_PuUsqGv.js.map rename demo-develop/assets/{preview-z_l9a9HW.js => preview-bEa2SesL.js} (51%) delete mode 100644 demo-develop/assets/preview-bJSO6fK3.js.map delete mode 100644 demo-develop/assets/preview-gnTYGUb5.js delete mode 100644 demo-develop/assets/preview-gnTYGUb5.js.map create mode 100644 demo-develop/assets/preview-n-8i_lle.js delete mode 100644 demo-develop/assets/preview-rx_G7Yy2.js.map rename demo-develop/assets/{preview-bJSO6fK3.js => preview-u8M_OEO2.js} (92%) rename demo-develop/assets/{preview-Y7vvrhHd.js => preview-wm7zCcxo.js} (62%) delete mode 100644 demo-develop/assets/preview-z_l9a9HW.js.map rename demo-develop/{storybook-react/assets/react-18-6f2S3HzO.js => assets/react-18-ba7OOUbL.js} (81%) delete mode 100644 demo-develop/assets/react-18-e2qAuQ2N.js delete mode 100644 demo-develop/assets/react-18-e2qAuQ2N.js.map delete mode 100644 demo-develop/assets/syntaxhighlighter-NMPM6SWI-Sc-jW8n0.js delete mode 100644 demo-develop/assets/syntaxhighlighter-NMPM6SWI-Sc-jW8n0.js.map create mode 100644 demo-develop/assets/syntaxhighlighter-V7JZZA35-1x5_KrTc.js rename demo-develop/assets/{typography.stories-jjgCaVGT.js => typography.stories-Mmxhoje9.js} (95%) delete mode 100644 demo-develop/assets/typography.stories-jjgCaVGT.js.map rename demo-develop/{035ca08842ee8ad955b260fb26693fe739801df4.txt => b56d1bc03fbf1c23095cb4cb0f833497608a394d.txt} (100%) delete mode 100644 demo-develop/sb-manager/WithTooltip-4HIR6TLV-YPPZ2DMB.js create mode 100644 demo-develop/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js create mode 100644 demo-develop/sb-manager/chunk-2IXBUOFS.js rename demo-develop/{storybook-react/sb-manager/chunk-DAJ4OSDJ.js => sb-manager/chunk-DSMMRWXC.js} (56%) delete mode 100644 demo-develop/sb-manager/chunk-FWZ33S65.js rename demo-develop/{storybook-react/sb-manager/chunk-NFZCBIX3.js => sb-manager/chunk-INSKDKQB.js} (95%) create mode 100644 demo-develop/sb-manager/chunk-NGTUFCUO.js delete mode 100644 demo-develop/sb-manager/chunk-SZNM6KS3.js create mode 100644 demo-develop/sb-manager/globals-module-info.js rename demo-develop/sb-manager/{syntaxhighlighter-NMPM6SWI-GZTSOZ5L.js => syntaxhighlighter-V7JZZA35-DXZCI2WR.js} (54%) rename demo-develop/storybook-react/assets/{Accordion.docs-jojMvWkT.js => Accordion.docs-AlXsi1Y_.js} (93%) delete mode 100644 demo-develop/storybook-react/assets/Accordion.docs-jojMvWkT.js.map delete mode 100644 demo-develop/storybook-react/assets/Accordion.stories-_Wxedikv.js.map rename demo-develop/storybook-react/assets/{Accordion.stories-_Wxedikv.js => Accordion.stories-olB5iwlq.js} (96%) rename demo-develop/storybook-react/assets/{Alert.docs-kmLyXcqG.js => Alert.docs-RrsgoSqW.js} (69%) delete mode 100644 demo-develop/storybook-react/assets/Alert.docs-kmLyXcqG.js.map delete mode 100644 demo-develop/storybook-react/assets/Alert.stories-SbEPtb9q.js.map rename demo-develop/storybook-react/assets/{Alert.stories-SbEPtb9q.js => Alert.stories-eEyzOkO4.js} (95%) rename demo-develop/storybook-react/assets/{AspectRatio.docs-Oj-cn-WD.js => AspectRatio.docs-I1wp4Ho_.js} (75%) delete mode 100644 demo-develop/storybook-react/assets/AspectRatio.docs-Oj-cn-WD.js.map delete mode 100644 demo-develop/storybook-react/assets/AspectRatio.stories-DbgTBjIm.js.map rename demo-develop/storybook-react/assets/{AspectRatio.stories-DbgTBjIm.js => AspectRatio.stories-iNWAhOcF.js} (76%) rename demo-develop/storybook-react/assets/{Blockquote.docs-jGGUUK6C.js => Blockquote.docs-iU-UKN6N.js} (73%) delete mode 100644 demo-develop/storybook-react/assets/Blockquote.docs-jGGUUK6C.js.map rename demo-develop/storybook-react/assets/{Blockquote.stories-jacxKGDV.js => Blockquote.stories-Im8VtCWV.js} (91%) delete mode 100644 demo-develop/storybook-react/assets/Blockquote.stories-jacxKGDV.js.map delete mode 100644 demo-develop/storybook-react/assets/Breadcrumb.docs-MNl96mzN.js.map rename demo-develop/storybook-react/assets/{Breadcrumb.docs-MNl96mzN.js => Breadcrumb.docs-zxu1gRuz.js} (75%) delete mode 100644 demo-develop/storybook-react/assets/Breadcrumb.stories-KxviIQcV.js.map rename demo-develop/storybook-react/assets/{Breadcrumb.stories-KxviIQcV.js => Breadcrumb.stories-hS-nKGlr.js} (93%) delete mode 100644 demo-develop/storybook-react/assets/Button.docs-avTmHJ6Q.js.map rename demo-develop/storybook-react/assets/{Button.docs-avTmHJ6Q.js => Button.docs-c4KkSNal.js} (84%) rename demo-develop/storybook-react/assets/{Button.stories-2ivHVANs.js => Button.stories-0pVyUwow.js} (92%) delete mode 100644 demo-develop/storybook-react/assets/Button.stories-2ivHVANs.js.map delete mode 100644 demo-develop/storybook-react/assets/Card.docs-7x2lZ0uQ.js.map rename demo-develop/storybook-react/assets/{Card.docs-7x2lZ0uQ.js => Card.docs-JZmoYv16.js} (81%) rename demo-develop/storybook-react/assets/{Card.stories-ql5ZhmMc.js => Card.stories-GcJo72jA.js} (89%) delete mode 100644 demo-develop/storybook-react/assets/Card.stories-ql5ZhmMc.js.map delete mode 100644 demo-develop/storybook-react/assets/Checkbox.docs-h3VX6lkL.js.map rename demo-develop/storybook-react/assets/{Checkbox.docs-h3VX6lkL.js => Checkbox.docs-igwdhl3I.js} (83%) rename demo-develop/storybook-react/assets/{Checkbox.stories-pSYN5I7x.js => Checkbox.stories-jfAMW0Zn.js} (92%) delete mode 100644 demo-develop/storybook-react/assets/Checkbox.stories-pSYN5I7x.js.map create mode 100644 demo-develop/storybook-react/assets/Color-6VNJS4EI-bQeASXKe.js delete mode 100644 demo-develop/storybook-react/assets/Color-6VNJS4EI-rTtrjuFt.js delete mode 100644 demo-develop/storybook-react/assets/Color-6VNJS4EI-rTtrjuFt.js.map delete mode 100644 demo-develop/storybook-react/assets/Dialog.docs-FozN-iQp.js.map rename demo-develop/storybook-react/assets/{Dialog.docs-FozN-iQp.js => Dialog.docs-M8lkNbDg.js} (74%) delete mode 100644 demo-develop/storybook-react/assets/Dialog.stories-4AhRciB5.js.map rename demo-develop/storybook-react/assets/{Dialog.stories-4AhRciB5.js => Dialog.stories-CwxFgD8r.js} (97%) create mode 100644 demo-develop/storybook-react/assets/DocsRenderer-NNNQARDV-a3_nVB_d.js delete mode 100644 demo-develop/storybook-react/assets/DocsRenderer-NNNQARDV-yPXG3cN_.js delete mode 100644 demo-develop/storybook-react/assets/DocsRenderer-NNNQARDV-yPXG3cN_.js.map rename demo-develop/storybook-react/assets/{Footer.docs-lMrOQbit.js => Footer.docs-V5FclkxM.js} (65%) delete mode 100644 demo-develop/storybook-react/assets/Footer.docs-lMrOQbit.js.map rename demo-develop/storybook-react/assets/{Footer.stories-xhgl4RhX.js => Footer.stories-Wm7puaHa.js} (97%) delete mode 100644 demo-develop/storybook-react/assets/Footer.stories-xhgl4RhX.js.map delete mode 100644 demo-develop/storybook-react/assets/FormLabel.docs-Tx5i7CGM.js delete mode 100644 demo-develop/storybook-react/assets/FormLabel.docs-Tx5i7CGM.js.map create mode 100644 demo-develop/storybook-react/assets/FormLabel.docs-gIXUlaAx.js rename demo-develop/storybook-react/assets/{FormLabel.stories-I01rKL4v.js => FormLabel.stories-1NK0smEq.js} (83%) delete mode 100644 demo-develop/storybook-react/assets/FormLabel.stories-I01rKL4v.js.map delete mode 100644 demo-develop/storybook-react/assets/Grid.docs-FQykiYQv.js.map rename demo-develop/storybook-react/assets/{Grid.docs-FQykiYQv.js => Grid.docs-ZbxvHVcB.js} (88%) rename demo-develop/storybook-react/assets/{Grid.stories-xlnBqEkO.js => Grid.stories-6rO1s1dT.js} (92%) delete mode 100644 demo-develop/storybook-react/assets/Grid.stories-xlnBqEkO.js.map rename demo-develop/storybook-react/assets/{GridCell.docs-pFsX5ZIW.js => GridCell.docs-U_NRhqCq.js} (86%) delete mode 100644 demo-develop/storybook-react/assets/GridCell.docs-pFsX5ZIW.js.map delete mode 100644 demo-develop/storybook-react/assets/GridCell.stories-2z3gIQAZ.js.map rename demo-develop/storybook-react/assets/{GridCell.stories-2z3gIQAZ.js => GridCell.stories-xzO6jO-C.js} (95%) rename demo-develop/storybook-react/assets/{Heading.docs-r-_qV0Bi.js => Heading.docs-K0dzyt6t.js} (82%) delete mode 100644 demo-develop/storybook-react/assets/Heading.docs-r-_qV0Bi.js.map delete mode 100644 demo-develop/storybook-react/assets/Heading.stories-2b6daHt_.js.map rename demo-develop/storybook-react/assets/{Heading.stories-2b6daHt_.js => Heading.stories-AFcf3QH1.js} (95%) delete mode 100644 demo-develop/storybook-react/assets/Highlight.docs-XGlZhT4n.js.map rename demo-develop/storybook-react/assets/{Highlight.docs-XGlZhT4n.js => Highlight.docs-o2JJEvgv.js} (72%) rename demo-develop/storybook-react/assets/{Highlight.stories-yaVdsOBL.js => Highlight.stories-eZvhr8ON.js} (81%) delete mode 100644 demo-develop/storybook-react/assets/Highlight.stories-yaVdsOBL.js.map rename demo-develop/storybook-react/assets/{Icon.docs-z4rHIim2.js => Icon.docs-DgDifaqv.js} (83%) delete mode 100644 demo-develop/storybook-react/assets/Icon.docs-z4rHIim2.js.map delete mode 100644 demo-develop/storybook-react/assets/Icon.stories-DvSHkdC-.js.map rename demo-develop/storybook-react/assets/{Icon.stories-DvSHkdC-.js => Icon.stories-fOUPlXGL.js} (78%) rename demo-develop/storybook-react/assets/{Image.docs-xQexICKF.js => Image.docs-iRnSb598.js} (72%) delete mode 100644 demo-develop/storybook-react/assets/Image.docs-xQexICKF.js.map rename demo-develop/storybook-react/assets/{Image.stories-UTACeANV.js => Image.stories-CVBrRJvZ.js} (86%) delete mode 100644 demo-develop/storybook-react/assets/Image.stories-UTACeANV.js.map delete mode 100644 demo-develop/storybook-react/assets/Link.docs-8oIyFqYu.js.map rename demo-develop/storybook-react/assets/{Link.docs-8oIyFqYu.js => Link.docs-T2SyqWMg.js} (87%) rename demo-develop/storybook-react/assets/{Link.stories-s9EqKzFl.js => Link.stories-Dj_6ztEX.js} (90%) delete mode 100644 demo-develop/storybook-react/assets/Link.stories-s9EqKzFl.js.map rename demo-develop/storybook-react/assets/{Logo.docs-XrXyfGcy.js => Logo.docs-RH45rDBo.js} (82%) delete mode 100644 demo-develop/storybook-react/assets/Logo.docs-XrXyfGcy.js.map delete mode 100644 demo-develop/storybook-react/assets/Logo.stories-mBkHjdDF.js.map rename demo-develop/storybook-react/assets/{Logo.stories-mBkHjdDF.js => Logo.stories-tN9aKeli.js} (81%) rename demo-develop/storybook-react/assets/{OrderedList.docs-Sydx50ua.js => OrderedList.docs-F0rue3Zm.js} (79%) delete mode 100644 demo-develop/storybook-react/assets/OrderedList.docs-Sydx50ua.js.map rename demo-develop/storybook-react/assets/{OrderedList.stories-tZnBIAok.js => OrderedList.stories-BwDPCthx.js} (98%) delete mode 100644 demo-develop/storybook-react/assets/OrderedList.stories-tZnBIAok.js.map rename demo-develop/storybook-react/assets/{PageHeading.docs-v3bsyDjB.js => PageHeading.docs-BUowrmJA.js} (73%) delete mode 100644 demo-develop/storybook-react/assets/PageHeading.docs-v3bsyDjB.js.map rename demo-develop/storybook-react/assets/{PageHeading.stories-nUerNKY7.js => PageHeading.stories-YIHRYQ2K.js} (92%) delete mode 100644 demo-develop/storybook-react/assets/PageHeading.stories-nUerNKY7.js.map rename demo-develop/storybook-react/assets/{PageMenu.docs-QuGLPBMm.js => PageMenu.docs-01mL0MZQ.js} (77%) delete mode 100644 demo-develop/storybook-react/assets/PageMenu.docs-QuGLPBMm.js.map rename demo-develop/storybook-react/assets/{PageMenu.stories-yACOfMbV.js => PageMenu.stories-XWLvNPyZ.js} (95%) delete mode 100644 demo-develop/storybook-react/assets/PageMenu.stories-yACOfMbV.js.map rename demo-develop/storybook-react/assets/{Pagination.docs-U96E7bsS.js => Pagination.docs-1zBbifu5.js} (67%) delete mode 100644 demo-develop/storybook-react/assets/Pagination.docs-U96E7bsS.js.map delete mode 100644 demo-develop/storybook-react/assets/Pagination.stories-9AMr8ZOs.js.map rename demo-develop/storybook-react/assets/{Pagination.stories-9AMr8ZOs.js => Pagination.stories-xrAGqZih.js} (84%) rename demo-develop/storybook-react/assets/{Paragraph.docs-lE3BLqNs.js => Paragraph.docs-XDuVbCx4.js} (86%) delete mode 100644 demo-develop/storybook-react/assets/Paragraph.docs-lE3BLqNs.js.map delete mode 100644 demo-develop/storybook-react/assets/Paragraph.stories-3QBJ4Rq_.js.map rename demo-develop/storybook-react/assets/{Paragraph.stories-3QBJ4Rq_.js => Paragraph.stories-uSbO22-F.js} (94%) rename demo-develop/storybook-react/assets/{Screen.docs-W0Cyb1Uj.js => Screen.docs-5HHiJ8dS.js} (64%) delete mode 100644 demo-develop/storybook-react/assets/Screen.docs-W0Cyb1Uj.js.map delete mode 100644 demo-develop/storybook-react/assets/Screen.stories-Vw2vm3Nc.js.map rename demo-develop/storybook-react/assets/{Screen.stories-Vw2vm3Nc.js => Screen.stories-r_fBaflz.js} (91%) rename demo-develop/storybook-react/assets/{Switch.docs-uGuoHo9F.js => Switch.docs-VSklL3tv.js} (80%) delete mode 100644 demo-develop/storybook-react/assets/Switch.docs-uGuoHo9F.js.map delete mode 100644 demo-develop/storybook-react/assets/Switch.stories-WxhuLfXq.js.map rename demo-develop/storybook-react/assets/{Switch.stories-WxhuLfXq.js => Switch.stories-oz1W9RUk.js} (91%) rename demo-develop/storybook-react/assets/{TopTaskLink.docs-euxLLB9V.js => TopTaskLink.docs-JS8ZlqzJ.js} (77%) delete mode 100644 demo-develop/storybook-react/assets/TopTaskLink.docs-euxLLB9V.js.map delete mode 100644 demo-develop/storybook-react/assets/TopTaskLink.stories-0Cpmzzzz.js.map rename demo-develop/storybook-react/assets/{TopTaskLink.stories-0Cpmzzzz.js => TopTaskLink.stories-4A47_wyL.js} (95%) rename demo-develop/storybook-react/assets/{UnorderedList.docs-HNQwmUaI.js => UnorderedList.docs-7pA8sYJm.js} (77%) delete mode 100644 demo-develop/storybook-react/assets/UnorderedList.docs-HNQwmUaI.js.map rename demo-develop/storybook-react/assets/{UnorderedList.stories-Mp1Q_Peb.js => UnorderedList.stories-4eVCRKk0.js} (95%) delete mode 100644 demo-develop/storybook-react/assets/UnorderedList.stories-Mp1Q_Peb.js.map rename demo-develop/storybook-react/assets/{VisuallyHidden.docs-rApEVUM6.js => VisuallyHidden.docs-jfeva7cV.js} (55%) delete mode 100644 demo-develop/storybook-react/assets/VisuallyHidden.docs-rApEVUM6.js.map rename demo-develop/storybook-react/assets/{VisuallyHidden.stories-rFzfdcZm.js => VisuallyHidden.stories-VB_mRYan.js} (88%) delete mode 100644 demo-develop/storybook-react/assets/VisuallyHidden.stories-rFzfdcZm.js.map delete mode 100644 demo-develop/storybook-react/assets/WithTooltip-4HIR6TLV-VFeHXvWe.js delete mode 100644 demo-develop/storybook-react/assets/WithTooltip-4HIR6TLV-VFeHXvWe.js.map create mode 100644 demo-develop/storybook-react/assets/WithTooltip-V3YHNWJZ-kL5GZl6J.js delete mode 100644 demo-develop/storybook-react/assets/_commonjsHelpers-4gQjN7DL.js.map delete mode 100644 demo-develop/storybook-react/assets/axe-enb-Yovf.js.map delete mode 100644 demo-develop/storybook-react/assets/config-xInHTLBB.js.map create mode 100644 demo-develop/storybook-react/assets/entry-preview-OIOrqgri.js rename demo-develop/storybook-react/assets/{config-xInHTLBB.js => entry-preview-docs-eqAS1v0x.js} (63%) delete mode 100644 demo-develop/storybook-react/assets/extends-dGVwEr9R.js.map rename demo-develop/storybook-react/assets/{formatter-SWP5E3XI-szqVpMUb.js => formatter-SWP5E3XI-DI5jyjBS.js} (96%) delete mode 100644 demo-develop/storybook-react/assets/formatter-SWP5E3XI-szqVpMUb.js.map create mode 100644 demo-develop/storybook-react/assets/iframe-3pKo2c-1.js delete mode 100644 demo-develop/storybook-react/assets/iframe-g3z-EM4v.js delete mode 100644 demo-develop/storybook-react/assets/iframe-g3z-EM4v.js.map delete mode 100644 demo-develop/storybook-react/assets/index-4g5l5LRQ.js.map delete mode 100644 demo-develop/storybook-react/assets/index-Dbo06S9W.js.map delete mode 100644 demo-develop/storybook-react/assets/index-IjZvmUne.js delete mode 100644 demo-develop/storybook-react/assets/index-IjZvmUne.js.map create mode 100644 demo-develop/storybook-react/assets/index-MVbLLYTZ.js delete mode 100644 demo-develop/storybook-react/assets/index-PPLHz8o0.js.map create mode 100644 demo-develop/storybook-react/assets/index-_Tgs2MTN.js delete mode 100644 demo-develop/storybook-react/assets/index-aKxH7ZY0.js.map delete mode 100644 demo-develop/storybook-react/assets/index-f2OjG03D.js delete mode 100644 demo-develop/storybook-react/assets/index-f2OjG03D.js.map create mode 100644 demo-develop/storybook-react/assets/index-jmm5gWkb.js delete mode 100644 demo-develop/storybook-react/assets/index-kkodseRa.js.map rename demo-develop/storybook-react/assets/{index-aKxH7ZY0.js => index-ogXoivrg.js} (63%) rename demo-develop/storybook-react/assets/{index.esm-hT88P2ih.js => index.esm-dJjQNqS8.js} (99%) delete mode 100644 demo-develop/storybook-react/assets/index.esm-hT88P2ih.js.map create mode 100644 demo-develop/storybook-react/assets/preview-70qxeh8F.js delete mode 100644 demo-develop/storybook-react/assets/preview-DqshgJbu.js delete mode 100644 demo-develop/storybook-react/assets/preview-DqshgJbu.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-Fi7DQdoQ.js delete mode 100644 demo-develop/storybook-react/assets/preview-Fi7DQdoQ.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-J7ZNVipj.js delete mode 100644 demo-develop/storybook-react/assets/preview-J7ZNVipj.js.map create mode 100644 demo-develop/storybook-react/assets/preview-MdQXpms2.js create mode 100644 demo-develop/storybook-react/assets/preview-OnO0tzRj.js create mode 100644 demo-develop/storybook-react/assets/preview-VI2eoWmp.js delete mode 100644 demo-develop/storybook-react/assets/preview-Y7vvrhHd.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-_PuUsqGv.js delete mode 100644 demo-develop/storybook-react/assets/preview-_PuUsqGv.js.map create mode 100644 demo-develop/storybook-react/assets/preview-_mWStPcz.js rename demo-develop/storybook-react/assets/{preview-z_l9a9HW.js => preview-bEa2SesL.js} (51%) delete mode 100644 demo-develop/storybook-react/assets/preview-bJSO6fK3.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-fha2A_lo.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-gnTYGUb5.js delete mode 100644 demo-develop/storybook-react/assets/preview-gnTYGUb5.js.map delete mode 100644 demo-develop/storybook-react/assets/preview-q4tR331A.js delete mode 100644 demo-develop/storybook-react/assets/preview-q4tR331A.js.map rename demo-develop/storybook-react/assets/{preview-bJSO6fK3.js => preview-u8M_OEO2.js} (92%) create mode 100644 demo-develop/storybook-react/assets/preview-vWmRt89j.js rename demo-develop/storybook-react/assets/{preview-Y7vvrhHd.js => preview-wm7zCcxo.js} (62%) delete mode 100644 demo-develop/storybook-react/assets/preview-z_l9a9HW.js.map delete mode 100644 demo-develop/storybook-react/assets/react-18-6f2S3HzO.js.map create mode 100644 demo-develop/storybook-react/assets/react-18-ba7OOUbL.js delete mode 100644 demo-develop/storybook-react/assets/syntaxhighlighter-NMPM6SWI-KsbBOG4J.js delete mode 100644 demo-develop/storybook-react/assets/syntaxhighlighter-NMPM6SWI-KsbBOG4J.js.map create mode 100644 demo-develop/storybook-react/assets/syntaxhighlighter-V7JZZA35-kh1ip1nM.js delete mode 100644 demo-develop/storybook-react/sb-manager/WithTooltip-4HIR6TLV-YPPZ2DMB.js create mode 100644 demo-develop/storybook-react/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js create mode 100644 demo-develop/storybook-react/sb-manager/chunk-2IXBUOFS.js rename demo-develop/{sb-manager/chunk-DAJ4OSDJ.js => storybook-react/sb-manager/chunk-DSMMRWXC.js} (56%) delete mode 100644 demo-develop/storybook-react/sb-manager/chunk-FWZ33S65.js rename demo-develop/{sb-manager/chunk-NFZCBIX3.js => storybook-react/sb-manager/chunk-INSKDKQB.js} (95%) create mode 100644 demo-develop/storybook-react/sb-manager/chunk-NGTUFCUO.js delete mode 100644 demo-develop/storybook-react/sb-manager/chunk-SZNM6KS3.js create mode 100644 demo-develop/storybook-react/sb-manager/globals-module-info.js rename demo-develop/storybook-react/sb-manager/{syntaxhighlighter-NMPM6SWI-GZTSOZ5L.js => syntaxhighlighter-V7JZZA35-DXZCI2WR.js} (54%) diff --git a/demo-develop/assets/Color-6VNJS4EI-8FMNEuoO.js b/demo-develop/assets/Color-6VNJS4EI-8FMNEuoO.js new file mode 100644 index 0000000000..89151833ee --- /dev/null +++ b/demo-develop/assets/Color-6VNJS4EI-8FMNEuoO.js @@ -0,0 +1 @@ +import{n as M,e as ue,f as Me,F as Ce,I as $e,g as Ne}from"./index-SG-Z78AQ.js";import{R as h,r as b}from"./index-4g5l5LRQ.js";import{g as fe}from"./_commonjsHelpers-4gQjN7DL.js";import{_ as Oe,i as J,a as Ie}from"./index-MVbLLYTZ.js";import"./iframe-F2LxRYXW.js";import"../sb-preview/runtime.js";import"./index-jmm5gWkb.js";import"./index-ogXoivrg.js";import"./index-PPLHz8o0.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},hn=tn;export{tn as ColorControl,hn as default}; diff --git a/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js b/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js deleted file mode 100644 index 1546678c99..0000000000 --- a/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js +++ /dev/null @@ -1,2 +0,0 @@ -import{n as M,e as ue,f as Me,F as Ce,I as $e,g as Ne}from"./index-iT8Z8hhO.js";import{R as h,r as b,_ as Oe,i as J,b as Ie}from"./index-7RSFs7Cb.js";import{g as fe}from"./_commonjsHelpers-4gQjN7DL.js";import"./iframe-sPG83acy.js";import"../sb-preview/runtime.js";import"./index-aKxH7ZY0.js";import"./index-PPLHz8o0.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},un=tn;export{tn as ColorControl,un as default}; -//# sourceMappingURL=Color-6VNJS4EI-tTpzLVKP.js.map diff --git a/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js.map b/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js.map deleted file mode 100644 index 617fc682d7..0000000000 --- a/demo-develop/assets/Color-6VNJS4EI-tTpzLVKP.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Color-6VNJS4EI-tTpzLVKP.js","sources":["../../../../node_modules/.pnpm/react-colorful@5.6.1_react-dom@18.2.0_react@18.2.0/node_modules/react-colorful/dist/index.mjs","../../../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js","../../../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js","../../../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js","../../../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js","../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js","../../../../node_modules/.pnpm/@storybook+blocks@7.5.3_@types+react-dom@18.2.17_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"gUAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,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AAM8I,CAAU,CAAC,EAAE,QAAQ,IAAIc,EAAYa,EAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMyC,EAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAEpC,EAAM,cAAcC,GAAM,CAAC,GAAG4D,GAAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/demo-develop/assets/DocsRenderer-NNNQARDV-5gWMai6N.js b/demo-develop/assets/DocsRenderer-NNNQARDV-5gWMai6N.js new file mode 100644 index 0000000000..483590a50d --- /dev/null +++ b/demo-develop/assets/DocsRenderer-NNNQARDV-5gWMai6N.js @@ -0,0 +1,7 @@ +import{_ as p}from"./iframe-F2LxRYXW.js";import{R as e,r as c}from"./index-4g5l5LRQ.js";import{r as l,u}from"./react-18-ba7OOUbL.js";import{C as h,A as E,H as d,D as x}from"./index-SG-Z78AQ.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-jmm5gWkb.js";import"./index-ogXoivrg.js";import"./index-MVbLLYTZ.js";import"./index-PPLHz8o0.js";var _={code:h,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},H=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,a)=>{p(()=>import("./index-kkodseRa.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(({MDXProvider:i})=>l(e.createElement(D,{showException:a,key:Math.random()},e.createElement(i,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{u(t)}}};export{H as DocsRenderer,_ as defaultComponents}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index-kkodseRa.js","./index-Dbo06S9W.js","./index-4g5l5LRQ.js","./_commonjsHelpers-4gQjN7DL.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} \ No newline at end of file diff --git a/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js b/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js deleted file mode 100644 index ded1ae09e7..0000000000 --- a/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js +++ /dev/null @@ -1,8 +0,0 @@ -import{_ as p}from"./iframe-sPG83acy.js";import{R as e,r as c}from"./index-7RSFs7Cb.js";import{r as l,u}from"./react-18-e2qAuQ2N.js";import{C as h,A as E,H as d,D as x}from"./index-iT8Z8hhO.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-aKxH7ZY0.js";import"./index-PPLHz8o0.js";var _={code:h,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},A=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,a)=>{p(()=>import("./index-6QkflbW1.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(({MDXProvider:i})=>l(e.createElement(D,{showException:a,key:Math.random()},e.createElement(i,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{u(t)}}};export{A as DocsRenderer,_ as defaultComponents}; -//# sourceMappingURL=DocsRenderer-NNNQARDV-Aiqs-xN5.js.map -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-6QkflbW1.js","./index-MVO-xk_1.js","./index-7RSFs7Cb.js","./_commonjsHelpers-4gQjN7DL.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js.map b/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js.map deleted file mode 100644 index 3e6fd284ec..0000000000 --- a/demo-develop/assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"mappings":"kUAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,EAAS,UAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKE,EAAM,cAAcA,EAAM,SAAS,KAAKD,CAAQ,CAAC,CAAC,EAAEE,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGf,EAAkB,GAAGa,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,WAAO,qBAAe,8CAAE,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcZ,EAAM,cAAcN,EAAc,CAAC,cAAce,EAAO,IAAI,KAAK,OAAQ,GAAET,EAAM,cAAcW,EAAY,CAAC,WAAAN,CAAU,EAAEL,EAAM,cAAcM,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACS,EAAeT,CAAO,CAAE,CAAE,CAAC","names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","React","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","unmountElement"],"sources":["../../../../node_modules/.pnpm/@storybook+addon-docs@7.5.3_@types+react-dom@18.2.17_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"file":"assets/DocsRenderer-NNNQARDV-Aiqs-xN5.js"} \ No newline at end of file diff --git a/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js b/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js deleted file mode 100644 index 2a853a4daf..0000000000 --- a/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js +++ /dev/null @@ -1,2 +0,0 @@ -import{W as T,W as e,a as h}from"./index-iT8Z8hhO.js";import"./iframe-sPG83acy.js";import"../sb-preview/runtime.js";import"./index-7RSFs7Cb.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-aKxH7ZY0.js";import"./index-PPLHz8o0.js";export{T as WithToolTipState,e as WithTooltip,h as WithTooltipPure}; -//# sourceMappingURL=WithTooltip-4HIR6TLV-4C0Q63Em.js.map diff --git a/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js.map b/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js.map deleted file mode 100644 index d945ac8c28..0000000000 --- a/demo-develop/assets/WithTooltip-4HIR6TLV-4C0Q63Em.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithTooltip-4HIR6TLV-4C0Q63Em.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/demo-develop/assets/WithTooltip-V3YHNWJZ-vJYlT89d.js b/demo-develop/assets/WithTooltip-V3YHNWJZ-vJYlT89d.js new file mode 100644 index 0000000000..c85feeb8e7 --- /dev/null +++ b/demo-develop/assets/WithTooltip-V3YHNWJZ-vJYlT89d.js @@ -0,0 +1 @@ +import{W as h,W as l,a as s}from"./index-SG-Z78AQ.js";import"./iframe-F2LxRYXW.js";import"../sb-preview/runtime.js";import"./index-4g5l5LRQ.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-jmm5gWkb.js";import"./index-ogXoivrg.js";import"./index-MVbLLYTZ.js";import"./index-PPLHz8o0.js";export{h as WithToolTipState,l as WithTooltip,s as WithTooltipPure}; diff --git a/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js b/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js index ebc2da1de8..ad4f157588 100644 --- a/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js +++ b/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js @@ -1,2 +1 @@ var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{l as a,u as c,f as g}; -//# sourceMappingURL=_commonjsHelpers-4gQjN7DL.js.map diff --git a/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js.map b/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js.map deleted file mode 100644 index a7f0c68d53..0000000000 --- a/demo-develop/assets/_commonjsHelpers-4gQjN7DL.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_commonjsHelpers-4gQjN7DL.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/demo-develop/assets/axe-enb-Yovf.js b/demo-develop/assets/axe-enb-Yovf.js index 81edd809d9..7f1041a36a 100644 --- a/demo-develop/assets/axe-enb-Yovf.js +++ b/demo-develop/assets/axe-enb-Yovf.js @@ -28,4 +28,3 @@ See: https://github.com/dequelabs/axe-core/blob/master/doc/context.md`))}functio `+pe.split(` `).join(` `);return N}}},incompleteFallbackMessage:"axe couldn't tell the reason. Time to break out the element inspector!"},rules:[{id:"accesskeys",selector:"[accesskey]",excludeHidden:!1,tags:["cat.keyboard","best-practice"],all:[],any:[],none:["accesskeys"]},{id:"area-alt",selector:"map area[href]",excludeHidden:!1,tags:["cat.text-alternatives","wcag2a","wcag244","wcag412","section508","section508.22.a","ACT","TTv5","TT6.a"],actIds:["c487ae"],all:[],any:[{options:{attribute:"alt"},id:"non-empty-alt"},"aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-allowed-attr",matches:"aria-allowed-attr-matches",tags:["cat.aria","wcag2a","wcag412"],actIds:["5c01ea"],all:[],any:[{options:{validTreeRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]},id:"aria-allowed-attr"}],none:["aria-unsupported-attr",{options:{elementsAllowedAriaLabel:["applet","input"]},id:"aria-prohibited-attr"}]},{id:"aria-allowed-role",excludeHidden:!1,selector:"[role]",matches:"aria-allowed-role-matches",tags:["cat.aria","best-practice"],all:[],any:[{options:{allowImplicit:!0,ignoredTags:[]},id:"aria-allowed-role"}],none:[]},{id:"aria-command-name",selector:'[role="link"], [role="button"], [role="menuitem"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","ACT","TTv5","TT6.a"],actIds:["97a4e1"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-dialog-name",selector:'[role="dialog"], [role="alertdialog"]',matches:"no-naming-method-matches",tags:["cat.aria","best-practice"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-hidden-body",selector:"body",excludeHidden:!1,matches:"is-initiator-matches",tags:["cat.aria","wcag2a","wcag412"],all:[],any:["aria-hidden-body"],none:[]},{id:"aria-hidden-focus",selector:'[aria-hidden="true"]',matches:"aria-hidden-focus-matches",excludeHidden:!1,tags:["cat.name-role-value","wcag2a","wcag412"],actIds:["6cfa84"],all:["focusable-modal-open","focusable-disabled","focusable-not-tabbable"],any:[],none:[]},{id:"aria-input-field-name",selector:'[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","ACT","TTv5","TT5.c"],actIds:["e086e5"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["no-implicit-explicit-label"]},{id:"aria-meter-name",selector:'[role="meter"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag111"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-progressbar-name",selector:'[role="progressbar"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag111"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-required-attr",selector:"[role]",tags:["cat.aria","wcag2a","wcag412"],actIds:["4e8ab6"],all:[],any:["aria-required-attr"],none:[]},{id:"aria-required-children",selector:"[role]",matches:"aria-required-children-matches",tags:["cat.aria","wcag2a","wcag131"],actIds:["bc4a75","ff89c9"],all:[],any:[{options:{reviewEmpty:["doc-bibliography","doc-endnotes","grid","list","listbox","menu","menubar","table","tablist","tree","treegrid","rowgroup"]},id:"aria-required-children"},"aria-busy"],none:[]},{id:"aria-required-parent",selector:"[role]",matches:"aria-required-parent-matches",tags:["cat.aria","wcag2a","wcag131"],actIds:["ff89c9"],all:[],any:[{options:{ownGroupRoles:["listitem","treeitem"]},id:"aria-required-parent"}],none:[]},{id:"aria-roledescription",selector:"[aria-roledescription]",tags:["cat.aria","wcag2a","wcag412","deprecated"],enabled:!1,all:[],any:[{options:{supportedRoles:["button","img","checkbox","radio","combobox","menuitemcheckbox","menuitemradio"]},id:"aria-roledescription"}],none:[]},{id:"aria-roles",selector:"[role]",matches:"no-empty-role-matches",tags:["cat.aria","wcag2a","wcag412"],actIds:["674b10"],all:[],any:[],none:["invalidrole","abstractrole","unsupportedrole","deprecatedrole"]},{id:"aria-text",selector:"[role=text]",tags:["cat.aria","best-practice"],all:[],any:["no-focusable-content"],none:[]},{id:"aria-toggle-field-name",selector:'[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","ACT","TTv5","TT5.c"],actIds:["e086e5"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["no-implicit-explicit-label"]},{id:"aria-tooltip-name",selector:'[role="tooltip"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-treeitem-name",selector:'[role="treeitem"]',matches:"no-naming-method-matches",tags:["cat.aria","best-practice"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-valid-attr-value",matches:"aria-has-attr-matches",tags:["cat.aria","wcag2a","wcag412"],actIds:["6a7281"],all:[{options:[],id:"aria-valid-attr-value"},"aria-errormessage","aria-level"],any:[],none:[]},{id:"aria-valid-attr",matches:"aria-has-attr-matches",tags:["cat.aria","wcag2a","wcag412"],actIds:["5f99a7"],all:[],any:[{options:[],id:"aria-valid-attr"}],none:[]},{id:"audio-caption",selector:"audio",enabled:!1,excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag121","section508","section508.22.a","deprecated"],actIds:["2eb176","afb423"],all:[],any:[],none:["caption"]},{id:"autocomplete-valid",matches:"autocomplete-matches",tags:["cat.forms","wcag21aa","wcag135","ACT"],actIds:["73f2c2"],all:[{options:{stateTerms:["none","false","true","disabled","enabled","undefined","null"]},id:"autocomplete-valid"}],any:[],none:[]},{id:"avoid-inline-spacing",selector:"[style]",matches:"is-visible-on-screen-matches",tags:["cat.structure","wcag21aa","wcag1412","ACT"],actIds:["24afc2","9e45ec","78fd32"],all:[{options:{cssProperty:"letter-spacing",minValue:.12},id:"important-letter-spacing"},{options:{cssProperty:"word-spacing",minValue:.16},id:"important-word-spacing"},{options:{multiLineOnly:!0,cssProperty:"line-height",minValue:1.5,normalValue:1},id:"important-line-height"}],any:[],none:[]},{id:"blink",selector:"blink",excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag222","section508","section508.22.j","TTv5","TT2.b"],all:[],any:[],none:["is-on-screen"]},{id:"button-name",selector:"button",matches:"no-explicit-name-required-matches",tags:["cat.name-role-value","wcag2a","wcag412","section508","section508.22.a","ACT","TTv5","TT6.a"],actIds:["97a4e1","m6b1q3"],all:[],any:["button-has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:[]},{id:"bypass",selector:"html",pageLevel:!0,matches:"bypass-matches",reviewOnFail:!0,tags:["cat.keyboard","wcag2a","wcag241","section508","section508.22.o","TTv5","TT9.a"],actIds:["cf77f2","047fe0","b40fd1","3e12e1","ye5d6e"],all:[],any:["internal-link-present",{options:{selector:":is(h1, h2, h3, h4, h5, h6):not([role]), [role=heading]"},id:"header-present"},{options:{selector:"main, [role=main]"},id:"landmark"}],none:[]},{id:"color-contrast-enhanced",matches:"color-contrast-matches",excludeHidden:!1,enabled:!1,tags:["cat.color","wcag2aaa","wcag146","ACT"],actIds:["09o5cg"],all:[],any:[{options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:7,minThreshold:4.5},large:{expected:4.5,minThreshold:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.1,textStrokeEmMin:.03},id:"color-contrast-enhanced"}],none:[]},{id:"color-contrast",matches:"color-contrast-matches",excludeHidden:!1,tags:["cat.color","wcag2aa","wcag143","ACT","TTv5","TT13.c"],actIds:["afw4f7","09o5cg"],all:[],any:[{options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:4.5},large:{expected:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.2,textStrokeEmMin:.03},id:"color-contrast"}],none:[]},{id:"css-orientation-lock",selector:"html",tags:["cat.structure","wcag134","wcag21aa","experimental"],actIds:["b33eff"],all:[{options:{degreeThreshold:2},id:"css-orientation-lock"}],any:[],none:[],preload:!0},{id:"definition-list",selector:"dl",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131"],all:[],any:[],none:["structured-dlitems",{options:{validRoles:["definition","term","listitem"],validNodeNames:["dt","dd"],divGroups:!0},id:"only-dlitems"}]},{id:"dlitem",selector:"dd, dt",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131"],all:[],any:["dlitem"],none:[]},{id:"document-title",selector:"html",matches:"is-initiator-matches",tags:["cat.text-alternatives","wcag2a","wcag242","ACT","TTv5","TT12.a"],actIds:["2779a5"],all:[],any:["doc-has-title"],none:[]},{id:"duplicate-id-active",selector:"[id]",matches:"duplicate-id-active-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag411"],actIds:["3ea0c8"],all:[],any:["duplicate-id-active"],none:[]},{id:"duplicate-id-aria",selector:"[id]",matches:"duplicate-id-aria-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag411"],actIds:["3ea0c8"],all:[],any:["duplicate-id-aria"],none:[]},{id:"duplicate-id",selector:"[id]",matches:"duplicate-id-misc-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag411"],actIds:["3ea0c8"],all:[],any:["duplicate-id"],none:[]},{id:"empty-heading",selector:'h1, h2, h3, h4, h5, h6, [role="heading"]',matches:"heading-matches",tags:["cat.name-role-value","best-practice"],actIds:["ffd0e9"],impact:"minor",all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"empty-table-header",selector:'th:not([role]), [role="rowheader"], [role="columnheader"]',tags:["cat.name-role-value","best-practice"],all:[],any:["has-visible-text"],none:[]},{id:"focus-order-semantics",selector:"div, h1, h2, h3, h4, h5, h6, [role=heading], p, span",matches:"inserted-into-focus-order-matches",tags:["cat.keyboard","best-practice","experimental"],all:[],any:[{options:[],id:"has-widget-role"},{options:{roles:["tooltip"]},id:"valid-scrollable-semantics"}],none:[]},{id:"form-field-multiple-labels",selector:"input, select, textarea",matches:"label-matches",tags:["cat.forms","wcag2a","wcag332","TTv5","TT5.c"],all:[],any:[],none:["multiple-label"]},{id:"frame-focusable-content",selector:"html",matches:"frame-focusable-content-matches",tags:["cat.keyboard","wcag2a","wcag211","TTv5","TT4.a"],actIds:["akn7bn"],all:[],any:["frame-focusable-content"],none:[]},{id:"frame-tested",selector:"html, frame, iframe",tags:["cat.structure","review-item","best-practice"],all:[{options:{isViolation:!1},id:"frame-tested"}],any:[],none:[]},{id:"frame-title-unique",selector:"frame[title], iframe[title]",matches:"frame-title-has-text-matches",tags:["cat.text-alternatives","wcag412","wcag2a","TTv5","TT12.c"],actIds:["4b1c6c"],all:[],any:[],none:["unique-frame-title"],reviewOnFail:!0},{id:"frame-title",selector:"frame, iframe",matches:"no-negative-tabindex-matches",tags:["cat.text-alternatives","wcag2a","wcag412","section508","section508.22.i","TTv5","TT12.c"],actIds:["cae760"],all:[],any:[{options:{attribute:"title"},id:"non-empty-title"},"aria-label","aria-labelledby","presentational-role"],none:[]},{id:"heading-order",selector:"h1, h2, h3, h4, h5, h6, [role=heading]",matches:"heading-matches",tags:["cat.semantics","best-practice"],all:[],any:["heading-order"],none:[]},{id:"hidden-content",selector:"*",excludeHidden:!1,tags:["cat.structure","experimental","review-item","best-practice"],all:[],any:["hidden-content"],none:[]},{id:"html-has-lang",selector:"html",matches:"is-initiator-matches",tags:["cat.language","wcag2a","wcag311","ACT","TTv5","TT11.a"],actIds:["b5c3f8"],all:[],any:[{options:{attributes:["lang","xml:lang"]},id:"has-lang"}],none:[]},{id:"html-lang-valid",selector:'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',tags:["cat.language","wcag2a","wcag311","ACT","TTv5","TT11.a"],actIds:["bf051a"],all:[],any:[],none:[{options:{attributes:["lang","xml:lang"]},id:"valid-lang"}]},{id:"html-xml-lang-mismatch",selector:"html[lang][xml\\:lang]",matches:"xml-lang-mismatch-matches",tags:["cat.language","wcag2a","wcag311","ACT"],actIds:["5b7ae0"],all:["xml-lang-mismatch"],any:[],none:[]},{id:"identical-links-same-purpose",selector:'a[href], area[href], [role="link"]',excludeHidden:!1,enabled:!1,matches:"identical-links-same-purpose-matches",tags:["cat.semantics","wcag2aaa","wcag249"],actIds:["b20e66"],all:["identical-links-same-purpose"],any:[],none:[]},{id:"image-alt",selector:"img",matches:"no-explicit-name-required-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","ACT","TTv5","TT7.a","TT7.b"],actIds:["23a2a8"],all:[],any:["has-alt","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:["alt-space-value"]},{id:"image-redundant-alt",selector:"img",tags:["cat.text-alternatives","best-practice"],all:[],any:[],none:[{options:{parentSelector:"button, [role=button], a[href], p, li, td, th"},id:"duplicate-img-label"}]},{id:"input-button-name",selector:'input[type="button"], input[type="submit"], input[type="reset"]',matches:"no-explicit-name-required-matches",tags:["cat.name-role-value","wcag2a","wcag412","section508","section508.22.a","ACT","TTv5","TT5.c"],actIds:["97a4e1"],all:[],any:["non-empty-if-present",{options:{attribute:"value"},id:"non-empty-value"},"aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:[]},{id:"input-image-alt",selector:'input[type="image"]',matches:"no-explicit-name-required-matches",tags:["cat.text-alternatives","wcag2a","wcag111","wcag412","section508","section508.22.a","ACT","TTv5","TT7.a"],actIds:["59796f"],all:[],any:[{options:{attribute:"alt"},id:"non-empty-alt"},"aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"label-content-name-mismatch",matches:"label-content-name-mismatch-matches",tags:["cat.semantics","wcag21a","wcag253","experimental"],actIds:["2ee8b8"],all:[],any:[{options:{pixelThreshold:.1,occurrenceThreshold:3},id:"label-content-name-mismatch"}],none:[]},{id:"label-title-only",selector:"input, select, textarea",matches:"label-matches",tags:["cat.forms","best-practice"],all:[],any:[],none:["title-only"]},{id:"label",selector:"input, textarea",matches:"label-matches",tags:["cat.forms","wcag2a","wcag412","section508","section508.22.n","ACT","TTv5","TT5.c"],actIds:["e086e5"],all:[],any:["implicit-label","explicit-label","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},{options:{attribute:"placeholder"},id:"non-empty-placeholder"},"presentational-role"],none:["help-same-as-label","hidden-explicit-label"]},{id:"landmark-banner-is-top-level",selector:"header:not([role]), [role=banner]",matches:"landmark-has-body-context-matches",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-complementary-is-top-level",selector:"aside:not([role]), [role=complementary]",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-contentinfo-is-top-level",selector:"footer:not([role]), [role=contentinfo]",matches:"landmark-has-body-context-matches",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-main-is-top-level",selector:"main:not([role]), [role=main]",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-no-duplicate-banner",selector:"header:not([role]), [role=banner]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"header:not([role]), [role=banner]",nativeScopeFilter:"article, aside, main, nav, section"},id:"page-no-duplicate-banner"}],none:[]},{id:"landmark-no-duplicate-contentinfo",selector:"footer:not([role]), [role=contentinfo]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"footer:not([role]), [role=contentinfo]",nativeScopeFilter:"article, aside, main, nav, section"},id:"page-no-duplicate-contentinfo"}],none:[]},{id:"landmark-no-duplicate-main",selector:"main:not([role]), [role=main]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"main:not([role]), [role='main']"},id:"page-no-duplicate-main"}],none:[]},{id:"landmark-one-main",selector:"html",tags:["cat.semantics","best-practice"],all:[{options:{selector:"main:not([role]), [role='main']",passForModal:!0},id:"page-has-main"}],any:[],none:[]},{id:"landmark-unique",selector:"[role=banner], [role=complementary], [role=contentinfo], [role=main], [role=navigation], [role=region], [role=search], [role=form], form, footer, header, aside, main, nav, section",tags:["cat.semantics","best-practice"],matches:"landmark-unique-matches",all:[],any:["landmark-is-unique"],none:[]},{id:"link-in-text-block",selector:"a[href], [role=link]",matches:"link-in-text-block-matches",excludeHidden:!1,tags:["cat.color","wcag2a","wcag141","TTv5","TT13.a"],all:[],any:[{options:{requiredContrastRatio:3,allowSameColor:!0},id:"link-in-text-block"},"link-in-text-block-style"],none:[]},{id:"link-name",selector:"a[href]",tags:["cat.name-role-value","wcag2a","wcag412","wcag244","section508","section508.22.a","ACT","TTv5","TT6.a"],actIds:["c487ae"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["focusable-no-name"]},{id:"list",selector:"ul, ol",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131"],all:[],any:[],none:[{options:{validRoles:["listitem"],validNodeNames:["li"]},id:"only-listitems"}]},{id:"listitem",selector:"li",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131"],all:[],any:["listitem"],none:[]},{id:"marquee",selector:"marquee",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag222","TTv5","TT2.b"],all:[],any:[],none:["is-on-screen"]},{id:"meta-refresh-no-exceptions",selector:'meta[http-equiv="refresh"][content]',excludeHidden:!1,enabled:!1,tags:["cat.time-and-media","wcag2aaa","wcag224","wcag325"],actIds:["bisz58"],all:[],any:[{options:{minDelay:72e3,maxDelay:!1},id:"meta-refresh-no-exceptions"}],none:[]},{id:"meta-refresh",selector:'meta[http-equiv="refresh"][content]',excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag221","TTv5","TT2.c"],actIds:["bc659a","bisz58"],all:[],any:[{options:{minDelay:0,maxDelay:72e3},id:"meta-refresh"}],none:[]},{id:"meta-viewport-large",selector:'meta[name="viewport"]',matches:"is-initiator-matches",excludeHidden:!1,tags:["cat.sensory-and-visual-cues","best-practice"],all:[],any:[{options:{scaleMinimum:5,lowerBound:2},id:"meta-viewport-large"}],none:[]},{id:"meta-viewport",selector:'meta[name="viewport"]',matches:"is-initiator-matches",excludeHidden:!1,tags:["cat.sensory-and-visual-cues","wcag2aa","wcag144","ACT"],actIds:["b4f0c3"],all:[],any:[{options:{scaleMinimum:2},id:"meta-viewport"}],none:[]},{id:"nested-interactive",matches:"nested-interactive-matches",tags:["cat.keyboard","wcag2a","wcag412","TTv5","TT4.a"],actIds:["307n5z"],all:[],any:["no-focusable-content"],none:[]},{id:"no-autoplay-audio",excludeHidden:!1,selector:"audio[autoplay], video[autoplay]",matches:"no-autoplay-audio-matches",reviewOnFail:!0,tags:["cat.time-and-media","wcag2a","wcag142","ACT","TTv5","TT2.a"],actIds:["80f0bf"],preload:!0,all:[{options:{allowedDuration:3},id:"no-autoplay-audio"}],any:[],none:[]},{id:"object-alt",selector:"object[data]",matches:"object-is-loaded-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a"],actIds:["8fc3b6"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:[]},{id:"p-as-heading",selector:"p",matches:"p-as-heading-matches",tags:["cat.semantics","wcag2a","wcag131","experimental"],all:[{options:{margins:[{weight:150,italic:!0},{weight:150,size:1.15},{italic:!0,size:1.15},{size:1.4}],passLength:1,failLength:.5},id:"p-as-heading"}],any:[],none:[]},{id:"page-has-heading-one",selector:"html",tags:["cat.semantics","best-practice"],all:[{options:{selector:"h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]",passForModal:!0},id:"page-has-heading-one"}],any:[],none:[]},{id:"presentation-role-conflict",selector:`img[alt=''], [role="none"], [role="presentation"]`,matches:"has-implicit-chromium-role-matches",tags:["cat.aria","best-practice","ACT"],actIds:["46ca7f"],all:[],any:[],none:["is-element-focusable","has-global-aria-attribute"]},{id:"region",selector:"body *",tags:["cat.keyboard","best-practice"],all:[],any:[{options:{regionMatcher:"dialog, [role=dialog], [role=alertdialog], svg"},id:"region"}],none:[]},{id:"role-img-alt",selector:"[role='img']:not(img, area, input, object)",matches:"html-namespace-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","ACT","TTv5","TT7.a"],actIds:["23a2a8"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"scope-attr-valid",selector:"td[scope], th[scope]",tags:["cat.tables","best-practice"],all:["html5-scope",{options:{values:["row","col","rowgroup","colgroup"]},id:"scope-value"}],any:[],none:[]},{id:"scrollable-region-focusable",selector:"*:not(select,textarea)",matches:"scrollable-region-focusable-matches",tags:["cat.keyboard","wcag2a","wcag211"],actIds:["0ssw9k"],all:[],any:["focusable-content","focusable-element"],none:[]},{id:"select-name",selector:"select",tags:["cat.forms","wcag2a","wcag412","section508","section508.22.n","ACT","TTv5","TT5.c"],actIds:["e086e5"],all:[],any:["implicit-label","explicit-label","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:["help-same-as-label","hidden-explicit-label"]},{id:"server-side-image-map",selector:"img[ismap]",tags:["cat.text-alternatives","wcag2a","wcag211","section508","section508.22.f"],all:[],any:[],none:["exists"]},{id:"skip-link",selector:'a[href^="#"], a[href^="/#"]',matches:"skip-link-matches",tags:["cat.keyboard","best-practice"],all:[],any:["skip-link"],none:[]},{id:"svg-img-alt",selector:'[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]',matches:"svg-namespace-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","ACT","TTv5","TT7.a"],actIds:["7d6734"],all:[],any:["svg-non-empty-title","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"tabindex",selector:"[tabindex]",tags:["cat.keyboard","best-practice"],all:[],any:["tabindex"],none:[]},{id:"table-duplicate-name",selector:"table",tags:["cat.tables","best-practice"],all:[],any:[],none:["same-caption-summary"]},{id:"table-fake-caption",selector:"table",matches:"data-table-matches",tags:["cat.tables","experimental","wcag2a","wcag131","section508","section508.22.g"],all:["caption-faked"],any:[],none:[]},{id:"target-size",selector:"*",enabled:!1,matches:"widget-not-inline-matches",tags:["wcag22aa","wcag258","cat.sensory-and-visual-cues"],all:[],any:[{options:{minSize:24},id:"target-size"},{options:{minOffset:24},id:"target-offset"}],none:[]},{id:"td-has-header",selector:"table",matches:"data-table-large-matches",tags:["cat.tables","experimental","wcag2a","wcag131","section508","section508.22.g","TTv5","TT14.b"],all:["td-has-header"],any:[],none:[]},{id:"td-headers-attr",selector:"table",matches:"table-or-grid-role-matches",tags:["cat.tables","wcag2a","wcag131","section508","section508.22.g"],actIds:["a25f45"],all:["td-headers-attr"],any:[],none:[]},{id:"th-has-data-cells",selector:"table",matches:"data-table-matches",tags:["cat.tables","wcag2a","wcag131","section508","section508.22.g","TTv5","14.b"],actIds:["d0f69e"],all:["th-has-data-cells"],any:[],none:[]},{id:"valid-lang",selector:"[lang]:not(html), [xml\\:lang]:not(html)",tags:["cat.language","wcag2aa","wcag312","ACT","TTv5","TT11.b"],actIds:["de46e4"],all:[],any:[],none:[{options:{attributes:["lang","xml:lang"]},id:"valid-lang"}]},{id:"video-caption",selector:"video",tags:["cat.text-alternatives","wcag2a","wcag122","section508","section508.22.a","TTv5","TT17.a"],actIds:["eac66b"],all:[],any:[],none:["caption"]}],checks:[{id:"abstractrole",evaluate:"abstractrole-evaluate"},{id:"aria-allowed-attr",evaluate:"aria-allowed-attr-evaluate",options:{validTreeRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]}},{id:"aria-allowed-role",evaluate:"aria-allowed-role-evaluate",options:{allowImplicit:!0,ignoredTags:[]}},{id:"aria-busy",evaluate:"aria-busy-evaluate"},{id:"aria-errormessage",evaluate:"aria-errormessage-evaluate"},{id:"aria-hidden-body",evaluate:"aria-hidden-body-evaluate"},{id:"aria-level",evaluate:"aria-level-evaluate"},{id:"aria-prohibited-attr",evaluate:"aria-prohibited-attr-evaluate",options:{elementsAllowedAriaLabel:["applet","input"]}},{id:"aria-required-attr",evaluate:"aria-required-attr-evaluate"},{id:"aria-required-children",evaluate:"aria-required-children-evaluate",options:{reviewEmpty:["doc-bibliography","doc-endnotes","grid","list","listbox","menu","menubar","table","tablist","tree","treegrid","rowgroup"]}},{id:"aria-required-parent",evaluate:"aria-required-parent-evaluate",options:{ownGroupRoles:["listitem","treeitem"]}},{id:"aria-roledescription",evaluate:"aria-roledescription-evaluate",options:{supportedRoles:["button","img","checkbox","radio","combobox","menuitemcheckbox","menuitemradio"]}},{id:"aria-unsupported-attr",evaluate:"aria-unsupported-attr-evaluate"},{id:"aria-valid-attr-value",evaluate:"aria-valid-attr-value-evaluate",options:[]},{id:"aria-valid-attr",evaluate:"aria-valid-attr-evaluate",options:[]},{id:"deprecatedrole",evaluate:"deprecatedrole-evaluate"},{id:"fallbackrole",evaluate:"fallbackrole-evaluate"},{id:"has-global-aria-attribute",evaluate:"has-global-aria-attribute-evaluate"},{id:"has-widget-role",evaluate:"has-widget-role-evaluate",options:[]},{id:"invalidrole",evaluate:"invalidrole-evaluate"},{id:"is-element-focusable",evaluate:"is-element-focusable-evaluate"},{id:"no-implicit-explicit-label",evaluate:"no-implicit-explicit-label-evaluate"},{id:"unsupportedrole",evaluate:"unsupportedrole-evaluate"},{id:"valid-scrollable-semantics",evaluate:"valid-scrollable-semantics-evaluate",options:{roles:["tooltip"]}},{id:"color-contrast-enhanced",evaluate:"color-contrast-evaluate",options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:7,minThreshold:4.5},large:{expected:4.5,minThreshold:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.1,textStrokeEmMin:.03}},{id:"color-contrast",evaluate:"color-contrast-evaluate",options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:4.5},large:{expected:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.2,textStrokeEmMin:.03}},{id:"link-in-text-block-style",evaluate:"link-in-text-block-style-evaluate"},{id:"link-in-text-block",evaluate:"link-in-text-block-evaluate",options:{requiredContrastRatio:3,allowSameColor:!0}},{id:"autocomplete-appropriate",evaluate:"autocomplete-appropriate-evaluate",deprecated:!0},{id:"autocomplete-valid",evaluate:"autocomplete-valid-evaluate",options:{stateTerms:["none","false","true","disabled","enabled","undefined","null"]}},{id:"accesskeys",evaluate:"accesskeys-evaluate",after:"accesskeys-after"},{id:"focusable-content",evaluate:"focusable-content-evaluate"},{id:"focusable-disabled",evaluate:"focusable-disabled-evaluate"},{id:"focusable-element",evaluate:"focusable-element-evaluate"},{id:"focusable-modal-open",evaluate:"focusable-modal-open-evaluate"},{id:"focusable-no-name",evaluate:"focusable-no-name-evaluate"},{id:"focusable-not-tabbable",evaluate:"focusable-not-tabbable-evaluate"},{id:"frame-focusable-content",evaluate:"frame-focusable-content-evaluate"},{id:"landmark-is-top-level",evaluate:"landmark-is-top-level-evaluate"},{id:"no-focusable-content",evaluate:"no-focusable-content-evaluate"},{id:"page-has-heading-one",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:"h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]",passForModal:!0}},{id:"page-has-main",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:"main:not([role]), [role='main']",passForModal:!0}},{id:"page-no-duplicate-banner",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-after",options:{selector:"header:not([role]), [role=banner]",nativeScopeFilter:"article, aside, main, nav, section"}},{id:"page-no-duplicate-contentinfo",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-after",options:{selector:"footer:not([role]), [role=contentinfo]",nativeScopeFilter:"article, aside, main, nav, section"}},{id:"page-no-duplicate-main",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-after",options:{selector:"main:not([role]), [role='main']"}},{id:"tabindex",evaluate:"tabindex-evaluate"},{id:"alt-space-value",evaluate:"alt-space-value-evaluate"},{id:"duplicate-img-label",evaluate:"duplicate-img-label-evaluate",options:{parentSelector:"button, [role=button], a[href], p, li, td, th"}},{id:"explicit-label",evaluate:"explicit-evaluate"},{id:"help-same-as-label",evaluate:"help-same-as-label-evaluate",enabled:!1},{id:"hidden-explicit-label",evaluate:"hidden-explicit-label-evaluate"},{id:"implicit-label",evaluate:"implicit-evaluate"},{id:"label-content-name-mismatch",evaluate:"label-content-name-mismatch-evaluate",options:{pixelThreshold:.1,occurrenceThreshold:3}},{id:"multiple-label",evaluate:"multiple-label-evaluate"},{id:"title-only",evaluate:"title-only-evaluate"},{id:"landmark-is-unique",evaluate:"landmark-is-unique-evaluate",after:"landmark-is-unique-after"},{id:"has-lang",evaluate:"has-lang-evaluate",options:{attributes:["lang","xml:lang"]}},{id:"valid-lang",evaluate:"valid-lang-evaluate",options:{attributes:["lang","xml:lang"]}},{id:"xml-lang-mismatch",evaluate:"xml-lang-mismatch-evaluate"},{id:"dlitem",evaluate:"dlitem-evaluate"},{id:"listitem",evaluate:"listitem-evaluate"},{id:"only-dlitems",evaluate:"invalid-children-evaluate",options:{validRoles:["definition","term","listitem"],validNodeNames:["dt","dd"],divGroups:!0}},{id:"only-listitems",evaluate:"invalid-children-evaluate",options:{validRoles:["listitem"],validNodeNames:["li"]}},{id:"structured-dlitems",evaluate:"structured-dlitems-evaluate"},{id:"caption",evaluate:"caption-evaluate"},{id:"frame-tested",evaluate:"frame-tested-evaluate",after:"frame-tested-after",options:{isViolation:!1}},{id:"no-autoplay-audio",evaluate:"no-autoplay-audio-evaluate",options:{allowedDuration:3}},{id:"css-orientation-lock",evaluate:"css-orientation-lock-evaluate",options:{degreeThreshold:2}},{id:"meta-viewport-large",evaluate:"meta-viewport-scale-evaluate",options:{scaleMinimum:5,lowerBound:2}},{id:"meta-viewport",evaluate:"meta-viewport-scale-evaluate",options:{scaleMinimum:2}},{id:"target-offset",evaluate:"target-offset-evaluate",options:{minOffset:24}},{id:"target-size",evaluate:"target-size-evaluate",options:{minSize:24}},{id:"header-present",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:":is(h1, h2, h3, h4, h5, h6):not([role]), [role=heading]"}},{id:"heading-order",evaluate:"heading-order-evaluate",after:"heading-order-after"},{id:"identical-links-same-purpose",evaluate:"identical-links-same-purpose-evaluate",after:"identical-links-same-purpose-after"},{id:"internal-link-present",evaluate:"internal-link-present-evaluate"},{id:"landmark",evaluate:"has-descendant-evaluate",options:{selector:"main, [role=main]"}},{id:"meta-refresh-no-exceptions",evaluate:"meta-refresh-evaluate",options:{minDelay:72e3,maxDelay:!1}},{id:"meta-refresh",evaluate:"meta-refresh-evaluate",options:{minDelay:0,maxDelay:72e3}},{id:"p-as-heading",evaluate:"p-as-heading-evaluate",options:{margins:[{weight:150,italic:!0},{weight:150,size:1.15},{italic:!0,size:1.15},{size:1.4}],passLength:1,failLength:.5}},{id:"region",evaluate:"region-evaluate",after:"region-after",options:{regionMatcher:"dialog, [role=dialog], [role=alertdialog], svg"}},{id:"skip-link",evaluate:"skip-link-evaluate"},{id:"unique-frame-title",evaluate:"unique-frame-title-evaluate",after:"unique-frame-title-after"},{id:"duplicate-id-active",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"duplicate-id-aria",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"duplicate-id",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"aria-label",evaluate:"aria-label-evaluate"},{id:"aria-labelledby",evaluate:"aria-labelledby-evaluate"},{id:"avoid-inline-spacing",evaluate:"avoid-inline-spacing-evaluate",options:{cssProperties:["line-height","letter-spacing","word-spacing"]}},{id:"button-has-visible-text",evaluate:"has-text-content-evaluate"},{id:"doc-has-title",evaluate:"doc-has-title-evaluate"},{id:"exists",evaluate:"exists-evaluate"},{id:"has-alt",evaluate:"has-alt-evaluate"},{id:"has-visible-text",evaluate:"has-text-content-evaluate"},{id:"important-letter-spacing",evaluate:"inline-style-property-evaluate",options:{cssProperty:"letter-spacing",minValue:.12}},{id:"important-line-height",evaluate:"inline-style-property-evaluate",options:{multiLineOnly:!0,cssProperty:"line-height",minValue:1.5,normalValue:1}},{id:"important-word-spacing",evaluate:"inline-style-property-evaluate",options:{cssProperty:"word-spacing",minValue:.16}},{id:"is-on-screen",evaluate:"is-on-screen-evaluate"},{id:"non-empty-alt",evaluate:"attr-non-space-content-evaluate",options:{attribute:"alt"}},{id:"non-empty-if-present",evaluate:"non-empty-if-present-evaluate"},{id:"non-empty-placeholder",evaluate:"attr-non-space-content-evaluate",options:{attribute:"placeholder"}},{id:"non-empty-title",evaluate:"attr-non-space-content-evaluate",options:{attribute:"title"}},{id:"non-empty-value",evaluate:"attr-non-space-content-evaluate",options:{attribute:"value"}},{id:"presentational-role",evaluate:"presentational-role-evaluate"},{id:"role-none",evaluate:"matches-definition-evaluate",deprecated:!0,options:{matcher:{attributes:{role:"none"}}}},{id:"role-presentation",evaluate:"matches-definition-evaluate",deprecated:!0,options:{matcher:{attributes:{role:"presentation"}}}},{id:"svg-non-empty-title",evaluate:"svg-non-empty-title-evaluate"},{id:"caption-faked",evaluate:"caption-faked-evaluate"},{id:"html5-scope",evaluate:"html5-scope-evaluate"},{id:"same-caption-summary",evaluate:"same-caption-summary-evaluate"},{id:"scope-value",evaluate:"scope-value-evaluate",options:{values:["row","col","rowgroup","colgroup"]}},{id:"td-has-header",evaluate:"td-has-header-evaluate"},{id:"td-headers-attr",evaluate:"td-headers-attr-evaluate"},{id:"th-has-data-cells",evaluate:"th-has-data-cells-evaluate"},{id:"hidden-content",evaluate:"hidden-content-evaluate"}]})})(typeof window=="object"?window:zE)})(qi);var Ec=qi.exports;const $E=HE(Ec),GE=UE({__proto__:null,default:$E},[Ec]);export{GE as a}; -//# sourceMappingURL=axe-enb-Yovf.js.map diff --git a/demo-develop/assets/axe-enb-Yovf.js.map b/demo-develop/assets/axe-enb-Yovf.js.map deleted file mode 100644 index 72a9f5d64f..0000000000 --- a/demo-develop/assets/axe-enb-Yovf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"axe-enb-Yovf.js","sources":["../../../../node_modules/.pnpm/axe-core@4.7.0/node_modules/axe-core/axe.js"],"sourcesContent":["/*! axe v4.7.0\n * Copyright (c) 2023 Deque Systems, Inc.\n *\n * Your use of this Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/.\n *\n * This entire copyright notice must appear in every copy of this file you\n * distribute or in any file that contains substantial portions of this source\n * code.\n */\n(function axeFunction(window) {\n var global = window;\n var document = window.document;\n 'use strict';\n function _typeof(obj) {\n '@babel/helpers - typeof';\n return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj;\n }, _typeof(obj);\n }\n var axe = axe || {};\n axe.version = '4.7.0';\n if (typeof define === 'function' && define.amd) {\n define('axe-core', [], function() {\n return axe;\n });\n }\n if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports && typeof axeFunction.toString === 'function') {\n axe.source = '(' + axeFunction.toString() + ')(typeof window === \"object\" ? window : this);';\n module.exports = axe;\n }\n if (typeof window.getComputedStyle === 'function') {\n window.axe = axe;\n }\n var commons;\n function SupportError(error) {\n this.name = 'SupportError';\n this.cause = error.cause;\n this.message = '`'.concat(error.cause, '` - feature unsupported in your environment.');\n if (error.ruleId) {\n this.ruleId = error.ruleId;\n this.message += ' Skipping '.concat(this.ruleId, ' rule.');\n }\n this.stack = new Error().stack;\n }\n SupportError.prototype = Object.create(Error.prototype);\n SupportError.prototype.constructor = SupportError;\n 'use strict';\n var _excluded = [ 'node' ], _excluded2 = [ 'variant' ], _excluded3 = [ 'matches' ], _excluded4 = [ 'chromium' ], _excluded5 = [ 'noImplicit' ], _excluded6 = [ 'noPresentational' ], _excluded7 = [ 'node' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];\n function _toArray(arr) {\n return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();\n }\n function _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n }\n function _inherits(subClass, superClass) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function');\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, 'prototype', {\n writable: false\n });\n if (superClass) {\n _setPrototypeOf(subClass, superClass);\n }\n }\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n }\n function _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n }\n function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === 'object' || typeof call === 'function')) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError('Derived constructors may only return object or undefined');\n }\n return _assertThisInitialized(self);\n }\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError('this hasn\\'t been initialised - super() hasn\\'t been called');\n }\n return self;\n }\n function _isNativeReflectConstruct() {\n if (typeof Reflect === 'undefined' || !Reflect.construct) {\n return false;\n }\n if (Reflect.construct.sham) {\n return false;\n }\n if (typeof Proxy === 'function') {\n return true;\n }\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n function _objectWithoutProperties(source, excluded) {\n if (source == null) {\n return {};\n }\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) {\n continue;\n }\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) {\n continue;\n }\n target[key] = source[key];\n }\n }\n return target;\n }\n function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) {\n return {};\n }\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) {\n continue;\n }\n target[key] = source[key];\n }\n return target;\n }\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n function _nonIterableSpread() {\n throw new TypeError('Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n function _iterableToArray(iter) {\n if (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null || iter['@@iterator'] != null) {\n return Array.from(iter);\n }\n }\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n return _arrayLikeToArray(arr);\n }\n }\n function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n }\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n }\n function _nonIterableRest() {\n throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : 'undefined' != typeof Symbol && arr[Symbol.iterator] || arr['@@iterator'];\n if (null != _i) {\n var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) {\n return;\n }\n _n = !1;\n } else {\n for (;!(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {\n }\n }\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i['return'] && (_r = _i['return'](), Object(_r) !== _r)) {\n return;\n }\n } finally {\n if (_d) {\n throw _e;\n }\n }\n }\n return _arr;\n }\n }\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) {\n return arr;\n }\n }\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ('value' in descriptor) {\n descriptor.writable = true;\n }\n Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);\n }\n }\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) {\n _defineProperties(Constructor.prototype, protoProps);\n }\n if (staticProps) {\n _defineProperties(Constructor, staticProps);\n }\n Object.defineProperty(Constructor, 'prototype', {\n writable: false\n });\n return Constructor;\n }\n function _toPropertyKey(arg) {\n var key = _toPrimitive(arg, 'string');\n return _typeof(key) === 'symbol' ? key : String(key);\n }\n function _toPrimitive(input, hint) {\n if (_typeof(input) !== 'object' || input === null) {\n return input;\n }\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || 'default');\n if (_typeof(res) !== 'object') {\n return res;\n }\n throw new TypeError('@@toPrimitive must return a primitive value.');\n }\n return (hint === 'string' ? String : Number)(input);\n }\n function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== 'undefined' && o[Symbol.iterator] || o['@@iterator'];\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === 'number') {\n if (it) {\n o = it;\n }\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) {\n return {\n done: true\n };\n }\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e2) {\n throw _e2;\n },\n f: F\n };\n }\n throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n var normalCompletion = true, didErr = false, err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e3) {\n didErr = true;\n err = _e3;\n },\n f: function f() {\n try {\n if (!normalCompletion && it['return'] != null) {\n it['return']();\n }\n } finally {\n if (didErr) {\n throw err;\n }\n }\n }\n };\n }\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) {\n return;\n }\n if (typeof o === 'string') {\n return _arrayLikeToArray(o, minLen);\n }\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === 'Object' && o.constructor) {\n n = o.constructor.name;\n }\n if (n === 'Map' || n === 'Set') {\n return Array.from(o);\n }\n if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) {\n return _arrayLikeToArray(o, minLen);\n }\n }\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) {\n len = arr.length;\n }\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n }\n function _typeof(obj) {\n '@babel/helpers - typeof';\n return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj;\n }, _typeof(obj);\n }\n (function() {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getProtoOf = Object.getPrototypeOf;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __markAsModule = function __markAsModule(target) {\n return __defProp(target, '__esModule', {\n value: true\n });\n };\n var __commonJS = function __commonJS(cb, mod) {\n return function() {\n return mod || cb((mod = {\n exports: {}\n }).exports, mod), mod.exports;\n };\n };\n var __export = function __export(target, all) {\n for (var name in all) {\n __defProp(target, name, {\n get: all[name],\n enumerable: true\n });\n }\n };\n var __exportStar = function __exportStar(target, module, desc) {\n if (module && _typeof(module) === 'object' || typeof module === 'function') {\n var _iterator = _createForOfIteratorHelper(__getOwnPropNames(module)), _step;\n try {\n var _loop = function _loop() {\n var key = _step.value;\n if (!__hasOwnProp.call(target, key) && key !== 'default') {\n __defProp(target, key, {\n get: function get() {\n return module[key];\n },\n enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable\n });\n }\n };\n for (_iterator.s(); !(_step = _iterator.n()).done; ) {\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n return target;\n };\n var __toModule = function __toModule(module) {\n return __exportStar(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, 'default', module && module.__esModule && 'default' in module ? {\n get: function get() {\n return module['default'];\n },\n enumerable: true\n } : {\n value: module,\n enumerable: true\n })), module);\n };\n var require_utils = __commonJS(function(exports) {\n 'use strict';\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function isIdentStart(c) {\n return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c === '-' || c === '_';\n }\n exports.isIdentStart = isIdentStart;\n function isIdent(c) {\n return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || c === '-' || c === '_';\n }\n exports.isIdent = isIdent;\n function isHex(c) {\n return c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F' || c >= '0' && c <= '9';\n }\n exports.isHex = isHex;\n function escapeIdentifier(s) {\n var len = s.length;\n var result = '';\n var i = 0;\n while (i < len) {\n var chr = s.charAt(i);\n if (exports.identSpecialChars[chr]) {\n result += '\\\\' + chr;\n } else {\n if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {\n var charCode = chr.charCodeAt(0);\n if ((charCode & 63488) === 55296) {\n var extraCharCode = s.charCodeAt(i++);\n if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {\n throw Error('UCS-2(decode): illegal sequence');\n }\n charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;\n }\n result += '\\\\' + charCode.toString(16) + ' ';\n } else {\n result += chr;\n }\n }\n i++;\n }\n return result;\n }\n exports.escapeIdentifier = escapeIdentifier;\n function escapeStr(s) {\n var len = s.length;\n var result = '';\n var i = 0;\n var replacement;\n while (i < len) {\n var chr = s.charAt(i);\n if (chr === '\"') {\n chr = '\\\\\"';\n } else if (chr === '\\\\') {\n chr = '\\\\\\\\';\n } else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {\n chr = replacement;\n }\n result += chr;\n i++;\n }\n return '\"' + result + '\"';\n }\n exports.escapeStr = escapeStr;\n exports.identSpecialChars = {\n '!': true,\n '\"': true,\n '#': true,\n $: true,\n '%': true,\n '&': true,\n '\\'': true,\n '(': true,\n ')': true,\n '*': true,\n '+': true,\n ',': true,\n '.': true,\n '/': true,\n ';': true,\n '<': true,\n '=': true,\n '>': true,\n '?': true,\n '@': true,\n '[': true,\n '\\\\': true,\n ']': true,\n '^': true,\n '`': true,\n '{': true,\n '|': true,\n '}': true,\n '~': true\n };\n exports.strReplacementsRev = {\n '\\n': '\\\\n',\n '\\r': '\\\\r',\n '\\t': '\\\\t',\n '\\f': '\\\\f',\n '\\v': '\\\\v'\n };\n exports.singleQuoteEscapeChars = {\n n: '\\n',\n r: '\\r',\n t: '\\t',\n f: '\\f',\n '\\\\': '\\\\',\n '\\'': '\\''\n };\n exports.doubleQuotesEscapeChars = {\n n: '\\n',\n r: '\\r',\n t: '\\t',\n f: '\\f',\n '\\\\': '\\\\',\n '\"': '\"'\n };\n });\n var require_parser_context = __commonJS(function(exports) {\n 'use strict';\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n var utils_1 = require_utils();\n function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) {\n var l = str.length;\n var chr = '';\n function getStr(quote, escapeTable) {\n var result = '';\n pos++;\n chr = str.charAt(pos);\n while (pos < l) {\n if (chr === quote) {\n pos++;\n return result;\n } else if (chr === '\\\\') {\n pos++;\n chr = str.charAt(pos);\n var esc = void 0;\n if (chr === quote) {\n result += quote;\n } else if ((esc = escapeTable[chr]) !== void 0) {\n result += esc;\n } else if (utils_1.isHex(chr)) {\n var hex = chr;\n pos++;\n chr = str.charAt(pos);\n while (utils_1.isHex(chr)) {\n hex += chr;\n pos++;\n chr = str.charAt(pos);\n }\n if (chr === ' ') {\n pos++;\n chr = str.charAt(pos);\n }\n result += String.fromCharCode(parseInt(hex, 16));\n continue;\n } else {\n result += chr;\n }\n } else {\n result += chr;\n }\n pos++;\n chr = str.charAt(pos);\n }\n return result;\n }\n function getIdent() {\n var result = '';\n chr = str.charAt(pos);\n while (pos < l) {\n if (utils_1.isIdent(chr)) {\n result += chr;\n } else if (chr === '\\\\') {\n pos++;\n if (pos >= l) {\n throw Error('Expected symbol but end of file reached.');\n }\n chr = str.charAt(pos);\n if (utils_1.identSpecialChars[chr]) {\n result += chr;\n } else if (utils_1.isHex(chr)) {\n var hex = chr;\n pos++;\n chr = str.charAt(pos);\n while (utils_1.isHex(chr)) {\n hex += chr;\n pos++;\n chr = str.charAt(pos);\n }\n if (chr === ' ') {\n pos++;\n chr = str.charAt(pos);\n }\n result += String.fromCharCode(parseInt(hex, 16));\n continue;\n } else {\n result += chr;\n }\n } else {\n return result;\n }\n pos++;\n chr = str.charAt(pos);\n }\n return result;\n }\n function skipWhitespace() {\n chr = str.charAt(pos);\n var result = false;\n while (chr === ' ' || chr === '\\t' || chr === '\\n' || chr === '\\r' || chr === '\\f') {\n result = true;\n pos++;\n chr = str.charAt(pos);\n }\n return result;\n }\n function parse2() {\n var res = parseSelector();\n if (pos < l) {\n throw Error('Rule expected but \"' + str.charAt(pos) + '\" found.');\n }\n return res;\n }\n function parseSelector() {\n var selector = parseSingleSelector();\n if (!selector) {\n return null;\n }\n var res = selector;\n chr = str.charAt(pos);\n while (chr === ',') {\n pos++;\n skipWhitespace();\n if (res.type !== 'selectors') {\n res = {\n type: 'selectors',\n selectors: [ selector ]\n };\n }\n selector = parseSingleSelector();\n if (!selector) {\n throw Error('Rule expected after \",\".');\n }\n res.selectors.push(selector);\n }\n return res;\n }\n function parseSingleSelector() {\n skipWhitespace();\n var selector = {\n type: 'ruleSet'\n };\n var rule = parseRule();\n if (!rule) {\n return null;\n }\n var currentRule = selector;\n while (rule) {\n rule.type = 'rule';\n currentRule.rule = rule;\n currentRule = rule;\n skipWhitespace();\n chr = str.charAt(pos);\n if (pos >= l || chr === ',' || chr === ')') {\n break;\n }\n if (ruleNestingOperators[chr]) {\n var op = chr;\n pos++;\n skipWhitespace();\n rule = parseRule();\n if (!rule) {\n throw Error('Rule expected after \"' + op + '\".');\n }\n rule.nestingOperator = op;\n } else {\n rule = parseRule();\n if (rule) {\n rule.nestingOperator = null;\n }\n }\n }\n return selector;\n }\n function parseRule() {\n var rule = null;\n while (pos < l) {\n chr = str.charAt(pos);\n if (chr === '*') {\n pos++;\n (rule = rule || {}).tagName = '*';\n } else if (utils_1.isIdentStart(chr) || chr === '\\\\') {\n (rule = rule || {}).tagName = getIdent();\n } else if (chr === '.') {\n pos++;\n rule = rule || {};\n (rule.classNames = rule.classNames || []).push(getIdent());\n } else if (chr === '#') {\n pos++;\n (rule = rule || {}).id = getIdent();\n } else if (chr === '[') {\n pos++;\n skipWhitespace();\n var attr = {\n name: getIdent()\n };\n skipWhitespace();\n if (chr === ']') {\n pos++;\n } else {\n var operator = '';\n if (attrEqualityMods[chr]) {\n operator = chr;\n pos++;\n chr = str.charAt(pos);\n }\n if (pos >= l) {\n throw Error('Expected \"=\" but end of file reached.');\n }\n if (chr !== '=') {\n throw Error('Expected \"=\" but \"' + chr + '\" found.');\n }\n attr.operator = operator + '=';\n pos++;\n skipWhitespace();\n var attrValue = '';\n attr.valueType = 'string';\n if (chr === '\"') {\n attrValue = getStr('\"', utils_1.doubleQuotesEscapeChars);\n } else if (chr === '\\'') {\n attrValue = getStr('\\'', utils_1.singleQuoteEscapeChars);\n } else if (substitutesEnabled && chr === '$') {\n pos++;\n attrValue = getIdent();\n attr.valueType = 'substitute';\n } else {\n while (pos < l) {\n if (chr === ']') {\n break;\n }\n attrValue += chr;\n pos++;\n chr = str.charAt(pos);\n }\n attrValue = attrValue.trim();\n }\n skipWhitespace();\n if (pos >= l) {\n throw Error('Expected \"]\" but end of file reached.');\n }\n if (chr !== ']') {\n throw Error('Expected \"]\" but \"' + chr + '\" found.');\n }\n pos++;\n attr.value = attrValue;\n }\n rule = rule || {};\n (rule.attrs = rule.attrs || []).push(attr);\n } else if (chr === ':') {\n pos++;\n var pseudoName = getIdent();\n var pseudo = {\n name: pseudoName\n };\n if (chr === '(') {\n pos++;\n var value = '';\n skipWhitespace();\n if (pseudos[pseudoName] === 'selector') {\n pseudo.valueType = 'selector';\n value = parseSelector();\n } else {\n pseudo.valueType = pseudos[pseudoName] || 'string';\n if (chr === '\"') {\n value = getStr('\"', utils_1.doubleQuotesEscapeChars);\n } else if (chr === '\\'') {\n value = getStr('\\'', utils_1.singleQuoteEscapeChars);\n } else if (substitutesEnabled && chr === '$') {\n pos++;\n value = getIdent();\n pseudo.valueType = 'substitute';\n } else {\n while (pos < l) {\n if (chr === ')') {\n break;\n }\n value += chr;\n pos++;\n chr = str.charAt(pos);\n }\n value = value.trim();\n }\n skipWhitespace();\n }\n if (pos >= l) {\n throw Error('Expected \")\" but end of file reached.');\n }\n if (chr !== ')') {\n throw Error('Expected \")\" but \"' + chr + '\" found.');\n }\n pos++;\n pseudo.value = value;\n }\n rule = rule || {};\n (rule.pseudos = rule.pseudos || []).push(pseudo);\n } else {\n break;\n }\n }\n return rule;\n }\n return parse2();\n }\n exports.parseCssSelector = parseCssSelector;\n });\n var require_render = __commonJS(function(exports) {\n 'use strict';\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n var utils_1 = require_utils();\n function renderEntity(entity) {\n var res = '';\n switch (entity.type) {\n case 'ruleSet':\n var currentEntity = entity.rule;\n var parts = [];\n while (currentEntity) {\n if (currentEntity.nestingOperator) {\n parts.push(currentEntity.nestingOperator);\n }\n parts.push(renderEntity(currentEntity));\n currentEntity = currentEntity.rule;\n }\n res = parts.join(' ');\n break;\n\n case 'selectors':\n res = entity.selectors.map(renderEntity).join(', ');\n break;\n\n case 'rule':\n if (entity.tagName) {\n if (entity.tagName === '*') {\n res = '*';\n } else {\n res = utils_1.escapeIdentifier(entity.tagName);\n }\n }\n if (entity.id) {\n res += '#' + utils_1.escapeIdentifier(entity.id);\n }\n if (entity.classNames) {\n res += entity.classNames.map(function(cn) {\n return '.' + utils_1.escapeIdentifier(cn);\n }).join('');\n }\n if (entity.attrs) {\n res += entity.attrs.map(function(attr) {\n if ('operator' in attr) {\n if (attr.valueType === 'substitute') {\n return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';\n } else {\n return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';\n }\n } else {\n return '[' + utils_1.escapeIdentifier(attr.name) + ']';\n }\n }).join('');\n }\n if (entity.pseudos) {\n res += entity.pseudos.map(function(pseudo) {\n if (pseudo.valueType) {\n if (pseudo.valueType === 'selector') {\n return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';\n } else if (pseudo.valueType === 'substitute') {\n return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';\n } else if (pseudo.valueType === 'numeric') {\n return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';\n } else {\n return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';\n }\n } else {\n return ':' + utils_1.escapeIdentifier(pseudo.name);\n }\n }).join('');\n }\n break;\n\n default:\n throw Error('Unknown entity type: \"' + entity.type + '\".');\n }\n return res;\n }\n exports.renderEntity = renderEntity;\n });\n var require_lib = __commonJS(function(exports) {\n 'use strict';\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n var parser_context_1 = require_parser_context();\n var render_1 = require_render();\n var CssSelectorParser3 = function() {\n function CssSelectorParser4() {\n this.pseudos = {};\n this.attrEqualityMods = {};\n this.ruleNestingOperators = {};\n this.substitutesEnabled = false;\n }\n CssSelectorParser4.prototype.registerSelectorPseudos = function() {\n var pseudos = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n pseudos[_i] = arguments[_i];\n }\n for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {\n var pseudo = pseudos_1[_a];\n this.pseudos[pseudo] = 'selector';\n }\n return this;\n };\n CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {\n var pseudos = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n pseudos[_i] = arguments[_i];\n }\n for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {\n var pseudo = pseudos_2[_a];\n delete this.pseudos[pseudo];\n }\n return this;\n };\n CssSelectorParser4.prototype.registerNumericPseudos = function() {\n var pseudos = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n pseudos[_i] = arguments[_i];\n }\n for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {\n var pseudo = pseudos_3[_a];\n this.pseudos[pseudo] = 'numeric';\n }\n return this;\n };\n CssSelectorParser4.prototype.unregisterNumericPseudos = function() {\n var pseudos = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n pseudos[_i] = arguments[_i];\n }\n for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {\n var pseudo = pseudos_4[_a];\n delete this.pseudos[pseudo];\n }\n return this;\n };\n CssSelectorParser4.prototype.registerNestingOperators = function() {\n var operators = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operators[_i] = arguments[_i];\n }\n for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {\n var operator = operators_1[_a];\n this.ruleNestingOperators[operator] = true;\n }\n return this;\n };\n CssSelectorParser4.prototype.unregisterNestingOperators = function() {\n var operators = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operators[_i] = arguments[_i];\n }\n for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {\n var operator = operators_2[_a];\n delete this.ruleNestingOperators[operator];\n }\n return this;\n };\n CssSelectorParser4.prototype.registerAttrEqualityMods = function() {\n var mods = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n mods[_i] = arguments[_i];\n }\n for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {\n var mod = mods_1[_a];\n this.attrEqualityMods[mod] = true;\n }\n return this;\n };\n CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {\n var mods = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n mods[_i] = arguments[_i];\n }\n for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {\n var mod = mods_2[_a];\n delete this.attrEqualityMods[mod];\n }\n return this;\n };\n CssSelectorParser4.prototype.enableSubstitutes = function() {\n this.substitutesEnabled = true;\n return this;\n };\n CssSelectorParser4.prototype.disableSubstitutes = function() {\n this.substitutesEnabled = false;\n return this;\n };\n CssSelectorParser4.prototype.parse = function(str) {\n return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);\n };\n CssSelectorParser4.prototype.render = function(path) {\n return render_1.renderEntity(path).trim();\n };\n return CssSelectorParser4;\n }();\n exports.CssSelectorParser = CssSelectorParser3;\n });\n var require_noop = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {};\n });\n var require_is_value = __commonJS(function(exports, module) {\n 'use strict';\n var _undefined = require_noop()();\n module.exports = function(val) {\n return val !== _undefined && val !== null;\n };\n });\n var require_normalize_options = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is_value();\n var forEach = Array.prototype.forEach;\n var create = Object.create;\n var process2 = function process2(src, obj) {\n var key;\n for (key in src) {\n obj[key] = src[key];\n }\n };\n module.exports = function(opts1) {\n var result = create(null);\n forEach.call(arguments, function(options) {\n if (!isValue(options)) {\n return;\n }\n process2(Object(options), result);\n });\n return result;\n };\n });\n var require_is_implemented = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n var sign = Math.sign;\n if (typeof sign !== 'function') {\n return false;\n }\n return sign(10) === 1 && sign(-20) === -1;\n };\n });\n var require_shim = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(value) {\n value = Number(value);\n if (isNaN(value) || value === 0) {\n return value;\n }\n return value > 0 ? 1 : -1;\n };\n });\n var require_sign = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented()() ? Math.sign : require_shim();\n });\n var require_to_integer = __commonJS(function(exports, module) {\n 'use strict';\n var sign = require_sign();\n var abs = Math.abs;\n var floor = Math.floor;\n module.exports = function(value) {\n if (isNaN(value)) {\n return 0;\n }\n value = Number(value);\n if (value === 0 || !isFinite(value)) {\n return value;\n }\n return sign(value) * floor(abs(value));\n };\n });\n var require_to_pos_integer = __commonJS(function(exports, module) {\n 'use strict';\n var toInteger = require_to_integer();\n var max = Math.max;\n module.exports = function(value) {\n return max(0, toInteger(value));\n };\n });\n var require_resolve_length = __commonJS(function(exports, module) {\n 'use strict';\n var toPosInt = require_to_pos_integer();\n module.exports = function(optsLength, fnLength, isAsync) {\n var length;\n if (isNaN(optsLength)) {\n length = fnLength;\n if (!(length >= 0)) {\n return 1;\n }\n if (isAsync && length) {\n return length - 1;\n }\n return length;\n }\n if (optsLength === false) {\n return false;\n }\n return toPosInt(optsLength);\n };\n });\n var require_valid_callable = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(fn) {\n if (typeof fn !== 'function') {\n throw new TypeError(fn + ' is not a function');\n }\n return fn;\n };\n });\n var require_valid_value = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is_value();\n module.exports = function(value) {\n if (!isValue(value)) {\n throw new TypeError('Cannot use null or undefined');\n }\n return value;\n };\n });\n var require_iterate = __commonJS(function(exports, module) {\n 'use strict';\n var callable = require_valid_callable();\n var value = require_valid_value();\n var bind = Function.prototype.bind;\n var call = Function.prototype.call;\n var keys = Object.keys;\n var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;\n module.exports = function(method, defVal) {\n return function(obj, cb) {\n var list, thisArg = arguments[2], compareFn = arguments[3];\n obj = Object(value(obj));\n callable(cb);\n list = keys(obj);\n if (compareFn) {\n list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);\n }\n if (typeof method !== 'function') {\n method = list[method];\n }\n return call.call(method, list, function(key, index) {\n if (!objPropertyIsEnumerable.call(obj, key)) {\n return defVal;\n }\n return call.call(cb, thisArg, obj[key], key, obj, index);\n });\n };\n };\n });\n var require_for_each = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_iterate()('forEach');\n });\n var require_registered_extensions = __commonJS(function() {\n 'use strict';\n });\n var require_is_implemented2 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n var assign = Object.assign, obj;\n if (typeof assign !== 'function') {\n return false;\n }\n obj = {\n foo: 'raz'\n };\n assign(obj, {\n bar: 'dwa'\n }, {\n trzy: 'trzy'\n });\n return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';\n };\n });\n var require_is_implemented3 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n try {\n Object.keys('primitive');\n return true;\n } catch (e) {\n return false;\n }\n };\n });\n var require_shim2 = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is_value();\n var keys = Object.keys;\n module.exports = function(object) {\n return keys(isValue(object) ? Object(object) : object);\n };\n });\n var require_keys = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented3()() ? Object.keys : require_shim2();\n });\n var require_shim3 = __commonJS(function(exports, module) {\n 'use strict';\n var keys = require_keys();\n var value = require_valid_value();\n var max = Math.max;\n module.exports = function(dest, src) {\n var error, i, length = max(arguments.length, 2), assign;\n dest = Object(value(dest));\n assign = function assign(key) {\n try {\n dest[key] = src[key];\n } catch (e) {\n if (!error) {\n error = e;\n }\n }\n };\n for (i = 1; i < length; ++i) {\n src = arguments[i];\n keys(src).forEach(assign);\n }\n if (error !== void 0) {\n throw error;\n }\n return dest;\n };\n });\n var require_assign = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented2()() ? Object.assign : require_shim3();\n });\n var require_is_object = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is_value();\n var map = {\n function: true,\n object: true\n };\n module.exports = function(value) {\n return isValue(value) && map[_typeof(value)] || false;\n };\n });\n var require_custom = __commonJS(function(exports, module) {\n 'use strict';\n var assign = require_assign();\n var isObject = require_is_object();\n var isValue = require_is_value();\n var captureStackTrace = Error.captureStackTrace;\n module.exports = function(message) {\n var err2 = new Error(message), code = arguments[1], ext = arguments[2];\n if (!isValue(ext)) {\n if (isObject(code)) {\n ext = code;\n code = null;\n }\n }\n if (isValue(ext)) {\n assign(err2, ext);\n }\n if (isValue(code)) {\n err2.code = code;\n }\n if (captureStackTrace) {\n captureStackTrace(err2, module.exports);\n }\n return err2;\n };\n });\n var require_mixin = __commonJS(function(exports, module) {\n 'use strict';\n var value = require_valid_value();\n var defineProperty = Object.defineProperty;\n var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var getOwnPropertyNames = Object.getOwnPropertyNames;\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n module.exports = function(target, source) {\n var error, sourceObject = Object(value(source));\n target = Object(value(target));\n getOwnPropertyNames(sourceObject).forEach(function(name) {\n try {\n defineProperty(target, name, getOwnPropertyDescriptor(source, name));\n } catch (e) {\n error = e;\n }\n });\n if (typeof getOwnPropertySymbols === 'function') {\n getOwnPropertySymbols(sourceObject).forEach(function(symbol) {\n try {\n defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));\n } catch (e) {\n error = e;\n }\n });\n }\n if (error !== void 0) {\n throw error;\n }\n return target;\n };\n });\n var require_define_length = __commonJS(function(exports, module) {\n 'use strict';\n var toPosInt = require_to_pos_integer();\n var test = function test(arg1, arg2) {\n return arg2;\n };\n var desc;\n var defineProperty;\n var generate;\n var mixin;\n try {\n Object.defineProperty(test, 'length', {\n configurable: true,\n writable: false,\n enumerable: false,\n value: 1\n });\n } catch (ignore) {}\n if (test.length === 1) {\n desc = {\n configurable: true,\n writable: false,\n enumerable: false\n };\n defineProperty = Object.defineProperty;\n module.exports = function(fn, length) {\n length = toPosInt(length);\n if (fn.length === length) {\n return fn;\n }\n desc.value = length;\n return defineProperty(fn, 'length', desc);\n };\n } else {\n mixin = require_mixin();\n generate = function() {\n var cache2 = [];\n return function(length) {\n var args, i = 0;\n if (cache2[length]) {\n return cache2[length];\n }\n args = [];\n while (length--) {\n args.push('a' + (++i).toString(36));\n }\n return new Function('fn', 'return function (' + args.join(', ') + ') { return fn.apply(this, arguments); };');\n };\n }();\n module.exports = function(src, length) {\n var target;\n length = toPosInt(length);\n if (src.length === length) {\n return src;\n }\n target = generate(length)(src);\n try {\n mixin(target, src);\n } catch (ignore) {}\n return target;\n };\n }\n });\n var require_is = __commonJS(function(exports, module) {\n 'use strict';\n var _undefined = void 0;\n module.exports = function(value) {\n return value !== _undefined && value !== null;\n };\n });\n var require_is2 = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is();\n var possibleTypes = {\n object: true,\n function: true,\n undefined: true\n };\n module.exports = function(value) {\n if (!isValue(value)) {\n return false;\n }\n return hasOwnProperty.call(possibleTypes, _typeof(value));\n };\n });\n var require_is3 = __commonJS(function(exports, module) {\n 'use strict';\n var isObject = require_is2();\n module.exports = function(value) {\n if (!isObject(value)) {\n return false;\n }\n try {\n if (!value.constructor) {\n return false;\n }\n return value.constructor.prototype === value;\n } catch (error) {\n return false;\n }\n };\n });\n var require_is4 = __commonJS(function(exports, module) {\n 'use strict';\n var isPrototype = require_is3();\n module.exports = function(value) {\n if (typeof value !== 'function') {\n return false;\n }\n if (!hasOwnProperty.call(value, 'length')) {\n return false;\n }\n try {\n if (typeof value.length !== 'number') {\n return false;\n }\n if (typeof value.call !== 'function') {\n return false;\n }\n if (typeof value.apply !== 'function') {\n return false;\n }\n } catch (error) {\n return false;\n }\n return !isPrototype(value);\n };\n });\n var require_is5 = __commonJS(function(exports, module) {\n 'use strict';\n var isFunction = require_is4();\n var classRe = /^\\s*class[\\s{/}]/;\n var functionToString = Function.prototype.toString;\n module.exports = function(value) {\n if (!isFunction(value)) {\n return false;\n }\n if (classRe.test(functionToString.call(value))) {\n return false;\n }\n return true;\n };\n });\n var require_is_implemented4 = __commonJS(function(exports, module) {\n 'use strict';\n var str = 'razdwatrzy';\n module.exports = function() {\n if (typeof str.contains !== 'function') {\n return false;\n }\n return str.contains('dwa') === true && str.contains('foo') === false;\n };\n });\n var require_shim4 = __commonJS(function(exports, module) {\n 'use strict';\n var indexOf = String.prototype.indexOf;\n module.exports = function(searchString) {\n return indexOf.call(this, searchString, arguments[1]) > -1;\n };\n });\n var require_contains = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented4()() ? String.prototype.contains : require_shim4();\n });\n var require_d = __commonJS(function(exports, module) {\n 'use strict';\n var isValue = require_is();\n var isPlainFunction = require_is5();\n var assign = require_assign();\n var normalizeOpts = require_normalize_options();\n var contains3 = require_contains();\n var d = module.exports = function(dscr, value) {\n var c, e, w, options, desc;\n if (arguments.length < 2 || typeof dscr !== 'string') {\n options = value;\n value = dscr;\n dscr = null;\n } else {\n options = arguments[2];\n }\n if (isValue(dscr)) {\n c = contains3.call(dscr, 'c');\n e = contains3.call(dscr, 'e');\n w = contains3.call(dscr, 'w');\n } else {\n c = w = true;\n e = false;\n }\n desc = {\n value: value,\n configurable: c,\n enumerable: e,\n writable: w\n };\n return !options ? desc : assign(normalizeOpts(options), desc);\n };\n d.gs = function(dscr, get, set) {\n var c, e, options, desc;\n if (typeof dscr !== 'string') {\n options = set;\n set = get;\n get = dscr;\n dscr = null;\n } else {\n options = arguments[3];\n }\n if (!isValue(get)) {\n get = void 0;\n } else if (!isPlainFunction(get)) {\n options = get;\n get = set = void 0;\n } else if (!isValue(set)) {\n set = void 0;\n } else if (!isPlainFunction(set)) {\n options = set;\n set = void 0;\n }\n if (isValue(dscr)) {\n c = contains3.call(dscr, 'c');\n e = contains3.call(dscr, 'e');\n } else {\n c = true;\n e = false;\n }\n desc = {\n get: get,\n set: set,\n configurable: c,\n enumerable: e\n };\n return !options ? desc : assign(normalizeOpts(options), desc);\n };\n });\n var require_event_emitter = __commonJS(function(exports, module) {\n 'use strict';\n var d = require_d();\n var callable = require_valid_callable();\n var apply = Function.prototype.apply;\n var call = Function.prototype.call;\n var create = Object.create;\n var defineProperty = Object.defineProperty;\n var defineProperties = Object.defineProperties;\n var hasOwnProperty2 = Object.prototype.hasOwnProperty;\n var descriptor = {\n configurable: true,\n enumerable: false,\n writable: true\n };\n var on;\n var once;\n var off;\n var emit;\n var methods;\n var descriptors;\n var base;\n on = function on(type, listener) {\n var data2;\n callable(listener);\n if (!hasOwnProperty2.call(this, '__ee__')) {\n data2 = descriptor.value = create(null);\n defineProperty(this, '__ee__', descriptor);\n descriptor.value = null;\n } else {\n data2 = this.__ee__;\n }\n if (!data2[type]) {\n data2[type] = listener;\n } else if (_typeof(data2[type]) === 'object') {\n data2[type].push(listener);\n } else {\n data2[type] = [ data2[type], listener ];\n }\n return this;\n };\n once = function once(type, listener) {\n var _once, self2;\n callable(listener);\n self2 = this;\n on.call(this, type, _once = function once2() {\n off.call(self2, type, _once);\n apply.call(listener, this, arguments);\n });\n _once.__eeOnceListener__ = listener;\n return this;\n };\n off = function off(type, listener) {\n var data2, listeners, candidate, i;\n callable(listener);\n if (!hasOwnProperty2.call(this, '__ee__')) {\n return this;\n }\n data2 = this.__ee__;\n if (!data2[type]) {\n return this;\n }\n listeners = data2[type];\n if (_typeof(listeners) === 'object') {\n for (i = 0; candidate = listeners[i]; ++i) {\n if (candidate === listener || candidate.__eeOnceListener__ === listener) {\n if (listeners.length === 2) {\n data2[type] = listeners[i ? 0 : 1];\n } else {\n listeners.splice(i, 1);\n }\n }\n }\n } else {\n if (listeners === listener || listeners.__eeOnceListener__ === listener) {\n delete data2[type];\n }\n }\n return this;\n };\n emit = function emit(type) {\n var i, l, listener, listeners, args;\n if (!hasOwnProperty2.call(this, '__ee__')) {\n return;\n }\n listeners = this.__ee__[type];\n if (!listeners) {\n return;\n }\n if (_typeof(listeners) === 'object') {\n l = arguments.length;\n args = new Array(l - 1);\n for (i = 1; i < l; ++i) {\n args[i - 1] = arguments[i];\n }\n listeners = listeners.slice();\n for (i = 0; listener = listeners[i]; ++i) {\n apply.call(listener, this, args);\n }\n } else {\n switch (arguments.length) {\n case 1:\n call.call(listeners, this);\n break;\n\n case 2:\n call.call(listeners, this, arguments[1]);\n break;\n\n case 3:\n call.call(listeners, this, arguments[1], arguments[2]);\n break;\n\n default:\n l = arguments.length;\n args = new Array(l - 1);\n for (i = 1; i < l; ++i) {\n args[i - 1] = arguments[i];\n }\n apply.call(listeners, this, args);\n }\n }\n };\n methods = {\n on: on,\n once: once,\n off: off,\n emit: emit\n };\n descriptors = {\n on: d(on),\n once: d(once),\n off: d(off),\n emit: d(emit)\n };\n base = defineProperties({}, descriptors);\n module.exports = exports = function exports(o) {\n return o == null ? create(base) : defineProperties(Object(o), descriptors);\n };\n exports.methods = methods;\n });\n var require_is_implemented5 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n var from = Array.from, arr, result;\n if (typeof from !== 'function') {\n return false;\n }\n arr = [ 'raz', 'dwa' ];\n result = from(arr);\n return Boolean(result && result !== arr && result[1] === 'dwa');\n };\n });\n var require_is_implemented6 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) !== 'object') {\n return false;\n }\n if (!globalThis) {\n return false;\n }\n return globalThis.Array === Array;\n };\n });\n var require_implementation = __commonJS(function(exports, module) {\n var naiveFallback = function naiveFallback() {\n if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self) {\n return self;\n }\n if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && window) {\n return window;\n }\n throw new Error('Unable to resolve global `this`');\n };\n module.exports = function() {\n if (this) {\n return this;\n }\n try {\n Object.defineProperty(Object.prototype, '__global__', {\n get: function get() {\n return this;\n },\n configurable: true\n });\n } catch (error) {\n return naiveFallback();\n }\n try {\n if (!__global__) {\n return naiveFallback();\n }\n return __global__;\n } finally {\n delete Object.prototype.__global__;\n }\n }();\n });\n var require_global_this = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented6()() ? globalThis : require_implementation();\n });\n var require_is_implemented7 = __commonJS(function(exports, module) {\n 'use strict';\n var global2 = require_global_this();\n var validTypes = {\n object: true,\n symbol: true\n };\n module.exports = function() {\n var _Symbol = global2.Symbol;\n var symbol;\n if (typeof _Symbol !== 'function') {\n return false;\n }\n symbol = _Symbol('test symbol');\n try {\n String(symbol);\n } catch (e) {\n return false;\n }\n if (!validTypes[_typeof(_Symbol.iterator)]) {\n return false;\n }\n if (!validTypes[_typeof(_Symbol.toPrimitive)]) {\n return false;\n }\n if (!validTypes[_typeof(_Symbol.toStringTag)]) {\n return false;\n }\n return true;\n };\n });\n var require_is_symbol = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(value) {\n if (!value) {\n return false;\n }\n if (_typeof(value) === 'symbol') {\n return true;\n }\n if (!value.constructor) {\n return false;\n }\n if (value.constructor.name !== 'Symbol') {\n return false;\n }\n return value[value.constructor.toStringTag] === 'Symbol';\n };\n });\n var require_validate_symbol = __commonJS(function(exports, module) {\n 'use strict';\n var isSymbol = require_is_symbol();\n module.exports = function(value) {\n if (!isSymbol(value)) {\n throw new TypeError(value + ' is not a symbol');\n }\n return value;\n };\n });\n var require_generate_name = __commonJS(function(exports, module) {\n 'use strict';\n var d = require_d();\n var create = Object.create;\n var defineProperty = Object.defineProperty;\n var objPrototype = Object.prototype;\n var created = create(null);\n module.exports = function(desc) {\n var postfix = 0, name, ie11BugWorkaround;\n while (created[desc + (postfix || '')]) {\n ++postfix;\n }\n desc += postfix || '';\n created[desc] = true;\n name = '@@' + desc;\n defineProperty(objPrototype, name, d.gs(null, function(value) {\n if (ie11BugWorkaround) {\n return;\n }\n ie11BugWorkaround = true;\n defineProperty(this, name, d(value));\n ie11BugWorkaround = false;\n }));\n return name;\n };\n });\n var require_standard_symbols = __commonJS(function(exports, module) {\n 'use strict';\n var d = require_d();\n var NativeSymbol = require_global_this().Symbol;\n module.exports = function(SymbolPolyfill) {\n return Object.defineProperties(SymbolPolyfill, {\n hasInstance: d('', NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill('hasInstance')),\n isConcatSpreadable: d('', NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill('isConcatSpreadable')),\n iterator: d('', NativeSymbol && NativeSymbol.iterator || SymbolPolyfill('iterator')),\n match: d('', NativeSymbol && NativeSymbol.match || SymbolPolyfill('match')),\n replace: d('', NativeSymbol && NativeSymbol.replace || SymbolPolyfill('replace')),\n search: d('', NativeSymbol && NativeSymbol.search || SymbolPolyfill('search')),\n species: d('', NativeSymbol && NativeSymbol.species || SymbolPolyfill('species')),\n split: d('', NativeSymbol && NativeSymbol.split || SymbolPolyfill('split')),\n toPrimitive: d('', NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill('toPrimitive')),\n toStringTag: d('', NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill('toStringTag')),\n unscopables: d('', NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill('unscopables'))\n });\n };\n });\n var require_symbol_registry = __commonJS(function(exports, module) {\n 'use strict';\n var d = require_d();\n var validateSymbol = require_validate_symbol();\n var registry = Object.create(null);\n module.exports = function(SymbolPolyfill) {\n return Object.defineProperties(SymbolPolyfill, {\n for: d(function(key) {\n if (registry[key]) {\n return registry[key];\n }\n return registry[key] = SymbolPolyfill(String(key));\n }),\n keyFor: d(function(symbol) {\n var key;\n validateSymbol(symbol);\n for (key in registry) {\n if (registry[key] === symbol) {\n return key;\n }\n }\n return void 0;\n })\n });\n };\n });\n var require_polyfill = __commonJS(function(exports, module) {\n 'use strict';\n var d = require_d();\n var validateSymbol = require_validate_symbol();\n var NativeSymbol = require_global_this().Symbol;\n var generateName = require_generate_name();\n var setupStandardSymbols = require_standard_symbols();\n var setupSymbolRegistry = require_symbol_registry();\n var create = Object.create;\n var defineProperties = Object.defineProperties;\n var defineProperty = Object.defineProperty;\n var SymbolPolyfill;\n var HiddenSymbol;\n var isNativeSafe;\n if (typeof NativeSymbol === 'function') {\n try {\n String(NativeSymbol());\n isNativeSafe = true;\n } catch (ignore) {}\n } else {\n NativeSymbol = null;\n }\n HiddenSymbol = function _Symbol2(description) {\n if (this instanceof HiddenSymbol) {\n throw new TypeError('Symbol is not a constructor');\n }\n return SymbolPolyfill(description);\n };\n module.exports = SymbolPolyfill = function _Symbol3(description) {\n var symbol;\n if (this instanceof _Symbol3) {\n throw new TypeError('Symbol is not a constructor');\n }\n if (isNativeSafe) {\n return NativeSymbol(description);\n }\n symbol = create(HiddenSymbol.prototype);\n description = description === void 0 ? '' : String(description);\n return defineProperties(symbol, {\n __description__: d('', description),\n __name__: d('', generateName(description))\n });\n };\n setupStandardSymbols(SymbolPolyfill);\n setupSymbolRegistry(SymbolPolyfill);\n defineProperties(HiddenSymbol.prototype, {\n constructor: d(SymbolPolyfill),\n toString: d('', function() {\n return this.__name__;\n })\n });\n defineProperties(SymbolPolyfill.prototype, {\n toString: d(function() {\n return 'Symbol (' + validateSymbol(this).__description__ + ')';\n }),\n valueOf: d(function() {\n return validateSymbol(this);\n })\n });\n defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d('', function() {\n var symbol = validateSymbol(this);\n if (_typeof(symbol) === 'symbol') {\n return symbol;\n }\n return symbol.toString();\n }));\n defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d('c', 'Symbol'));\n defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));\n defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));\n });\n var require_es6_symbol = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented7()() ? require_global_this().Symbol : require_polyfill();\n });\n var require_is_arguments = __commonJS(function(exports, module) {\n 'use strict';\n var objToString = Object.prototype.toString;\n var id = objToString.call(function() {\n return arguments;\n }());\n module.exports = function(value) {\n return objToString.call(value) === id;\n };\n });\n var require_is_function = __commonJS(function(exports, module) {\n 'use strict';\n var objToString = Object.prototype.toString;\n var isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);\n module.exports = function(value) {\n return typeof value === 'function' && isFunctionStringTag(objToString.call(value));\n };\n });\n var require_is_string = __commonJS(function(exports, module) {\n 'use strict';\n var objToString = Object.prototype.toString;\n var id = objToString.call('');\n module.exports = function(value) {\n return typeof value === 'string' || value && _typeof(value) === 'object' && (value instanceof String || objToString.call(value) === id) || false;\n };\n });\n var require_shim5 = __commonJS(function(exports, module) {\n 'use strict';\n var iteratorSymbol = require_es6_symbol().iterator;\n var isArguments = require_is_arguments();\n var isFunction = require_is_function();\n var toPosInt = require_to_pos_integer();\n var callable = require_valid_callable();\n var validValue = require_valid_value();\n var isValue = require_is_value();\n var isString = require_is_string();\n var isArray = Array.isArray;\n var call = Function.prototype.call;\n var desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n value: null\n };\n var defineProperty = Object.defineProperty;\n module.exports = function(arrayLike) {\n var mapFn = arguments[1], thisArg = arguments[2], Context2, i, j, arr, length, code, iterator, result, getIterator, value;\n arrayLike = Object(validValue(arrayLike));\n if (isValue(mapFn)) {\n callable(mapFn);\n }\n if (!this || this === Array || !isFunction(this)) {\n if (!mapFn) {\n if (isArguments(arrayLike)) {\n length = arrayLike.length;\n if (length !== 1) {\n return Array.apply(null, arrayLike);\n }\n arr = new Array(1);\n arr[0] = arrayLike[0];\n return arr;\n }\n if (isArray(arrayLike)) {\n arr = new Array(length = arrayLike.length);\n for (i = 0; i < length; ++i) {\n arr[i] = arrayLike[i];\n }\n return arr;\n }\n }\n arr = [];\n } else {\n Context2 = this;\n }\n if (!isArray(arrayLike)) {\n if ((getIterator = arrayLike[iteratorSymbol]) !== void 0) {\n iterator = callable(getIterator).call(arrayLike);\n if (Context2) {\n arr = new Context2();\n }\n result = iterator.next();\n i = 0;\n while (!result.done) {\n value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;\n if (Context2) {\n desc.value = value;\n defineProperty(arr, i, desc);\n } else {\n arr[i] = value;\n }\n result = iterator.next();\n ++i;\n }\n length = i;\n } else if (isString(arrayLike)) {\n length = arrayLike.length;\n if (Context2) {\n arr = new Context2();\n }\n for (i = 0, j = 0; i < length; ++i) {\n value = arrayLike[i];\n if (i + 1 < length) {\n code = value.charCodeAt(0);\n if (code >= 55296 && code <= 56319) {\n value += arrayLike[++i];\n }\n }\n value = mapFn ? call.call(mapFn, thisArg, value, j) : value;\n if (Context2) {\n desc.value = value;\n defineProperty(arr, j, desc);\n } else {\n arr[j] = value;\n }\n ++j;\n }\n length = j;\n }\n }\n if (length === void 0) {\n length = toPosInt(arrayLike.length);\n if (Context2) {\n arr = new Context2(length);\n }\n for (i = 0; i < length; ++i) {\n value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];\n if (Context2) {\n desc.value = value;\n defineProperty(arr, i, desc);\n } else {\n arr[i] = value;\n }\n }\n }\n if (Context2) {\n desc.value = null;\n arr.length = length;\n }\n return arr;\n };\n });\n var require_from = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented5()() ? Array.from : require_shim5();\n });\n var require_to_array = __commonJS(function(exports, module) {\n 'use strict';\n var from = require_from();\n var isArray = Array.isArray;\n module.exports = function(arrayLike) {\n return isArray(arrayLike) ? arrayLike : from(arrayLike);\n };\n });\n var require_resolve_resolve = __commonJS(function(exports, module) {\n 'use strict';\n var toArray2 = require_to_array();\n var isValue = require_is_value();\n var callable = require_valid_callable();\n var slice = Array.prototype.slice;\n var resolveArgs;\n resolveArgs = function resolveArgs(args) {\n return this.map(function(resolve, i) {\n return resolve ? resolve(args[i]) : args[i];\n }).concat(slice.call(args, this.length));\n };\n module.exports = function(resolvers) {\n resolvers = toArray2(resolvers);\n resolvers.forEach(function(resolve) {\n if (isValue(resolve)) {\n callable(resolve);\n }\n });\n return resolveArgs.bind(resolvers);\n };\n });\n var require_resolve_normalize = __commonJS(function(exports, module) {\n 'use strict';\n var callable = require_valid_callable();\n module.exports = function(userNormalizer) {\n var normalizer;\n if (typeof userNormalizer === 'function') {\n return {\n set: userNormalizer,\n get: userNormalizer\n };\n }\n normalizer = {\n get: callable(userNormalizer.get)\n };\n if (userNormalizer.set !== void 0) {\n normalizer.set = callable(userNormalizer.set);\n if (userNormalizer['delete']) {\n normalizer['delete'] = callable(userNormalizer['delete']);\n }\n if (userNormalizer.clear) {\n normalizer.clear = callable(userNormalizer.clear);\n }\n return normalizer;\n }\n normalizer.set = normalizer.get;\n return normalizer;\n };\n });\n var require_configure_map = __commonJS(function(exports, module) {\n 'use strict';\n var customError = require_custom();\n var defineLength = require_define_length();\n var d = require_d();\n var ee = require_event_emitter().methods;\n var resolveResolve = require_resolve_resolve();\n var resolveNormalize = require_resolve_normalize();\n var apply = Function.prototype.apply;\n var call = Function.prototype.call;\n var create = Object.create;\n var defineProperties = Object.defineProperties;\n var _on = ee.on;\n var emit = ee.emit;\n module.exports = function(original, length, options) {\n var cache2 = create(null), conf, memLength, _get, set, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;\n if (length !== false) {\n memLength = length;\n } else if (isNaN(original.length)) {\n memLength = 1;\n } else {\n memLength = original.length;\n }\n if (options.normalizer) {\n normalizer = resolveNormalize(options.normalizer);\n _get = normalizer.get;\n set = normalizer.set;\n del = normalizer['delete'];\n _clear = normalizer.clear;\n }\n if (options.resolvers != null) {\n resolve = resolveResolve(options.resolvers);\n }\n if (_get) {\n memoized = defineLength(function(arg) {\n var id, result, args = arguments;\n if (resolve) {\n args = resolve(args);\n }\n id = _get(args);\n if (id !== null) {\n if (hasOwnProperty.call(cache2, id)) {\n if (getListeners) {\n conf.emit('get', id, args, this);\n }\n return cache2[id];\n }\n }\n if (args.length === 1) {\n result = call.call(original, this, args[0]);\n } else {\n result = apply.call(original, this, args);\n }\n if (id === null) {\n id = _get(args);\n if (id !== null) {\n throw customError('Circular invocation', 'CIRCULAR_INVOCATION');\n }\n id = set(args);\n } else if (hasOwnProperty.call(cache2, id)) {\n throw customError('Circular invocation', 'CIRCULAR_INVOCATION');\n }\n cache2[id] = result;\n if (setListeners) {\n conf.emit('set', id, null, result);\n }\n return result;\n }, memLength);\n } else if (length === 0) {\n memoized = function memoized() {\n var result;\n if (hasOwnProperty.call(cache2, 'data')) {\n if (getListeners) {\n conf.emit('get', 'data', arguments, this);\n }\n return cache2.data;\n }\n if (arguments.length) {\n result = apply.call(original, this, arguments);\n } else {\n result = call.call(original, this);\n }\n if (hasOwnProperty.call(cache2, 'data')) {\n throw customError('Circular invocation', 'CIRCULAR_INVOCATION');\n }\n cache2.data = result;\n if (setListeners) {\n conf.emit('set', 'data', null, result);\n }\n return result;\n };\n } else {\n memoized = function memoized(arg) {\n var result, args = arguments, id;\n if (resolve) {\n args = resolve(arguments);\n }\n id = String(args[0]);\n if (hasOwnProperty.call(cache2, id)) {\n if (getListeners) {\n conf.emit('get', id, args, this);\n }\n return cache2[id];\n }\n if (args.length === 1) {\n result = call.call(original, this, args[0]);\n } else {\n result = apply.call(original, this, args);\n }\n if (hasOwnProperty.call(cache2, id)) {\n throw customError('Circular invocation', 'CIRCULAR_INVOCATION');\n }\n cache2[id] = result;\n if (setListeners) {\n conf.emit('set', id, null, result);\n }\n return result;\n };\n }\n conf = {\n original: original,\n memoized: memoized,\n profileName: options.profileName,\n get: function get(args) {\n if (resolve) {\n args = resolve(args);\n }\n if (_get) {\n return _get(args);\n }\n return String(args[0]);\n },\n has: function has(id) {\n return hasOwnProperty.call(cache2, id);\n },\n delete: function _delete(id) {\n var result;\n if (!hasOwnProperty.call(cache2, id)) {\n return;\n }\n if (del) {\n del(id);\n }\n result = cache2[id];\n delete cache2[id];\n if (deleteListeners) {\n conf.emit('delete', id, result);\n }\n },\n clear: function clear() {\n var oldCache = cache2;\n if (_clear) {\n _clear();\n }\n cache2 = create(null);\n conf.emit('clear', oldCache);\n },\n on: function on(type, listener) {\n if (type === 'get') {\n getListeners = true;\n } else if (type === 'set') {\n setListeners = true;\n } else if (type === 'delete') {\n deleteListeners = true;\n }\n return _on.call(this, type, listener);\n },\n emit: emit,\n updateEnv: function updateEnv() {\n original = conf.original;\n }\n };\n if (_get) {\n extDel = defineLength(function(arg) {\n var id, args = arguments;\n if (resolve) {\n args = resolve(args);\n }\n id = _get(args);\n if (id === null) {\n return;\n }\n conf['delete'](id);\n }, memLength);\n } else if (length === 0) {\n extDel = function extDel() {\n return conf['delete']('data');\n };\n } else {\n extDel = function extDel(arg) {\n if (resolve) {\n arg = resolve(arguments)[0];\n }\n return conf['delete'](arg);\n };\n }\n extGet = defineLength(function() {\n var id, args = arguments;\n if (length === 0) {\n return cache2.data;\n }\n if (resolve) {\n args = resolve(args);\n }\n if (_get) {\n id = _get(args);\n } else {\n id = String(args[0]);\n }\n return cache2[id];\n });\n extHas = defineLength(function() {\n var id, args = arguments;\n if (length === 0) {\n return conf.has('data');\n }\n if (resolve) {\n args = resolve(args);\n }\n if (_get) {\n id = _get(args);\n } else {\n id = String(args[0]);\n }\n if (id === null) {\n return false;\n }\n return conf.has(id);\n });\n defineProperties(memoized, {\n __memoized__: d(true),\n delete: d(extDel),\n clear: d(conf.clear),\n _get: d(extGet),\n _has: d(extHas)\n });\n return conf;\n };\n });\n var require_plain = __commonJS(function(exports, module) {\n 'use strict';\n var callable = require_valid_callable();\n var forEach = require_for_each();\n var extensions = require_registered_extensions();\n var configure4 = require_configure_map();\n var resolveLength = require_resolve_length();\n module.exports = function self2(fn) {\n var options, length, conf;\n callable(fn);\n options = Object(arguments[1]);\n if (options.async && options.promise) {\n throw new Error('Options \\'async\\' and \\'promise\\' cannot be used together');\n }\n if (hasOwnProperty.call(fn, '__memoized__') && !options.force) {\n return fn;\n }\n length = resolveLength(options.length, fn.length, options.async && extensions.async);\n conf = configure4(fn, length, options);\n forEach(extensions, function(extFn, name) {\n if (options[name]) {\n extFn(options[name], conf, options);\n }\n });\n if (self2.__profiler__) {\n self2.__profiler__(conf);\n }\n conf.updateEnv();\n return conf.memoized;\n };\n });\n var require_primitive = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(args) {\n var id, i, length = args.length;\n if (!length) {\n return '\\x02';\n }\n id = String(args[i = 0]);\n while (--length) {\n id += '\\x01' + args[++i];\n }\n return id;\n };\n });\n var require_get_primitive_fixed = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(length) {\n if (!length) {\n return function() {\n return '';\n };\n }\n return function(args) {\n var id = String(args[0]), i = 0, currentLength = length;\n while (--currentLength) {\n id += '\\x01' + args[++i];\n }\n return id;\n };\n };\n });\n var require_is_implemented8 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function() {\n var numberIsNaN = Number.isNaN;\n if (typeof numberIsNaN !== 'function') {\n return false;\n }\n return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34);\n };\n });\n var require_shim6 = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(value) {\n return value !== value;\n };\n });\n var require_is_nan = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = require_is_implemented8()() ? Number.isNaN : require_shim6();\n });\n var require_e_index_of = __commonJS(function(exports, module) {\n 'use strict';\n var numberIsNaN = require_is_nan();\n var toPosInt = require_to_pos_integer();\n var value = require_valid_value();\n var indexOf = Array.prototype.indexOf;\n var objHasOwnProperty = Object.prototype.hasOwnProperty;\n var abs = Math.abs;\n var floor = Math.floor;\n module.exports = function(searchElement) {\n var i, length, fromIndex, val;\n if (!numberIsNaN(searchElement)) {\n return indexOf.apply(this, arguments);\n }\n length = toPosInt(value(this).length);\n fromIndex = arguments[1];\n if (isNaN(fromIndex)) {\n fromIndex = 0;\n } else if (fromIndex >= 0) {\n fromIndex = floor(fromIndex);\n } else {\n fromIndex = toPosInt(this.length) - floor(abs(fromIndex));\n }\n for (i = fromIndex; i < length; ++i) {\n if (objHasOwnProperty.call(this, i)) {\n val = this[i];\n if (numberIsNaN(val)) {\n return i;\n }\n }\n }\n return -1;\n };\n });\n var require_get = __commonJS(function(exports, module) {\n 'use strict';\n var indexOf = require_e_index_of();\n var create = Object.create;\n module.exports = function() {\n var lastId = 0, map = [], cache2 = create(null);\n return {\n get: function get(args) {\n var index = 0, set = map, i, length = args.length;\n if (length === 0) {\n return set[length] || null;\n }\n if (set = set[length]) {\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return null;\n }\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return null;\n }\n return set[1][i] || null;\n }\n return null;\n },\n set: function set(args) {\n var index = 0, set = map, i, length = args.length;\n if (length === 0) {\n set[length] = ++lastId;\n } else {\n if (!set[length]) {\n set[length] = [ [], [] ];\n }\n set = set[length];\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n i = set[0].push(args[index]) - 1;\n set[1].push([ [], [] ]);\n }\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n i = set[0].push(args[index]) - 1;\n }\n set[1][i] = ++lastId;\n }\n cache2[lastId] = args;\n return lastId;\n },\n delete: function _delete(id) {\n var index = 0, set = map, i, args = cache2[id], length = args.length, path = [];\n if (length === 0) {\n delete set[length];\n } else if (set = set[length]) {\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return;\n }\n path.push(set, i);\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return;\n }\n id = set[1][i];\n set[0].splice(i, 1);\n set[1].splice(i, 1);\n while (!set[0].length && path.length) {\n i = path.pop();\n set = path.pop();\n set[0].splice(i, 1);\n set[1].splice(i, 1);\n }\n }\n delete cache2[id];\n },\n clear: function clear() {\n map = [];\n cache2 = create(null);\n }\n };\n };\n });\n var require_get_1 = __commonJS(function(exports, module) {\n 'use strict';\n var indexOf = require_e_index_of();\n module.exports = function() {\n var lastId = 0, argsMap = [], cache2 = [];\n return {\n get: function get(args) {\n var index = indexOf.call(argsMap, args[0]);\n return index === -1 ? null : cache2[index];\n },\n set: function set(args) {\n argsMap.push(args[0]);\n cache2.push(++lastId);\n return lastId;\n },\n delete: function _delete(id) {\n var index = indexOf.call(cache2, id);\n if (index !== -1) {\n argsMap.splice(index, 1);\n cache2.splice(index, 1);\n }\n },\n clear: function clear() {\n argsMap = [];\n cache2 = [];\n }\n };\n };\n });\n var require_get_fixed = __commonJS(function(exports, module) {\n 'use strict';\n var indexOf = require_e_index_of();\n var create = Object.create;\n module.exports = function(length) {\n var lastId = 0, map = [ [], [] ], cache2 = create(null);\n return {\n get: function get(args) {\n var index = 0, set = map, i;\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return null;\n }\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return null;\n }\n return set[1][i] || null;\n },\n set: function set(args) {\n var index = 0, set = map, i;\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n i = set[0].push(args[index]) - 1;\n set[1].push([ [], [] ]);\n }\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n i = set[0].push(args[index]) - 1;\n }\n set[1][i] = ++lastId;\n cache2[lastId] = args;\n return lastId;\n },\n delete: function _delete(id) {\n var index = 0, set = map, i, path = [], args = cache2[id];\n while (index < length - 1) {\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return;\n }\n path.push(set, i);\n set = set[1][i];\n ++index;\n }\n i = indexOf.call(set[0], args[index]);\n if (i === -1) {\n return;\n }\n id = set[1][i];\n set[0].splice(i, 1);\n set[1].splice(i, 1);\n while (!set[0].length && path.length) {\n i = path.pop();\n set = path.pop();\n set[0].splice(i, 1);\n set[1].splice(i, 1);\n }\n delete cache2[id];\n },\n clear: function clear() {\n map = [ [], [] ];\n cache2 = create(null);\n }\n };\n };\n });\n var require_map = __commonJS(function(exports, module) {\n 'use strict';\n var callable = require_valid_callable();\n var forEach = require_for_each();\n var call = Function.prototype.call;\n module.exports = function(obj, cb) {\n var result = {}, thisArg = arguments[2];\n callable(cb);\n forEach(obj, function(value, key, targetObj, index) {\n result[key] = call.call(cb, thisArg, value, key, targetObj, index);\n });\n return result;\n };\n });\n var require_next_tick = __commonJS(function(exports, module) {\n 'use strict';\n var ensureCallable = function ensureCallable(fn) {\n if (typeof fn !== 'function') {\n throw new TypeError(fn + ' is not a function');\n }\n return fn;\n };\n var byObserver = function byObserver(Observer) {\n var node = document.createTextNode(''), queue2, currentQueue, i = 0;\n new Observer(function() {\n var callback;\n if (!queue2) {\n if (!currentQueue) {\n return;\n }\n queue2 = currentQueue;\n } else if (currentQueue) {\n queue2 = currentQueue.concat(queue2);\n }\n currentQueue = queue2;\n queue2 = null;\n if (typeof currentQueue === 'function') {\n callback = currentQueue;\n currentQueue = null;\n callback();\n return;\n }\n node.data = i = ++i % 2;\n while (currentQueue) {\n callback = currentQueue.shift();\n if (!currentQueue.length) {\n currentQueue = null;\n }\n callback();\n }\n }).observe(node, {\n characterData: true\n });\n return function(fn) {\n ensureCallable(fn);\n if (queue2) {\n if (typeof queue2 === 'function') {\n queue2 = [ queue2, fn ];\n } else {\n queue2.push(fn);\n }\n return;\n }\n queue2 = fn;\n node.data = i = ++i % 2;\n };\n };\n module.exports = function() {\n if ((typeof process === 'undefined' ? 'undefined' : _typeof(process)) === 'object' && process && typeof process.nextTick === 'function') {\n return process.nextTick;\n }\n if (typeof queueMicrotask === 'function') {\n return function(cb) {\n queueMicrotask(ensureCallable(cb));\n };\n }\n if ((typeof document === 'undefined' ? 'undefined' : _typeof(document)) === 'object' && document) {\n if (typeof MutationObserver === 'function') {\n return byObserver(MutationObserver);\n }\n if (typeof WebKitMutationObserver === 'function') {\n return byObserver(WebKitMutationObserver);\n }\n }\n if (typeof setImmediate === 'function') {\n return function(cb) {\n setImmediate(ensureCallable(cb));\n };\n }\n if (typeof setTimeout === 'function' || (typeof setTimeout === 'undefined' ? 'undefined' : _typeof(setTimeout)) === 'object') {\n return function(cb) {\n setTimeout(ensureCallable(cb), 0);\n };\n }\n return null;\n }();\n });\n var require_async = __commonJS(function() {\n 'use strict';\n var aFrom = require_from();\n var objectMap = require_map();\n var mixin = require_mixin();\n var defineLength = require_define_length();\n var nextTick = require_next_tick();\n var slice = Array.prototype.slice;\n var apply = Function.prototype.apply;\n var create = Object.create;\n require_registered_extensions().async = function(tbi, conf) {\n var waiting = create(null), cache2 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;\n conf.memoized = defineLength(function(arg) {\n var args = arguments, last = args[args.length - 1];\n if (typeof last === 'function') {\n currentCallback = last;\n args = slice.call(args, 0, -1);\n }\n return base.apply(currentContext = this, currentArgs = args);\n }, base);\n try {\n mixin(conf.memoized, base);\n } catch (ignore) {}\n conf.on('get', function(id) {\n var cb, context, args;\n if (!currentCallback) {\n return;\n }\n if (waiting[id]) {\n if (typeof waiting[id] === 'function') {\n waiting[id] = [ waiting[id], currentCallback ];\n } else {\n waiting[id].push(currentCallback);\n }\n currentCallback = null;\n return;\n }\n cb = currentCallback;\n context = currentContext;\n args = currentArgs;\n currentCallback = currentContext = currentArgs = null;\n nextTick(function() {\n var data2;\n if (hasOwnProperty.call(cache2, id)) {\n data2 = cache2[id];\n conf.emit('getasync', id, args, context);\n apply.call(cb, data2.context, data2.args);\n } else {\n currentCallback = cb;\n currentContext = context;\n currentArgs = args;\n base.apply(context, args);\n }\n });\n });\n conf.original = function() {\n var args, cb, origCb, result;\n if (!currentCallback) {\n return apply.call(original, this, arguments);\n }\n args = aFrom(arguments);\n cb = function self2(err2) {\n var cb2, args2, id = self2.id;\n if (id == null) {\n nextTick(apply.bind(self2, this, arguments));\n return void 0;\n }\n delete self2.id;\n cb2 = waiting[id];\n delete waiting[id];\n if (!cb2) {\n return void 0;\n }\n args2 = aFrom(arguments);\n if (conf.has(id)) {\n if (err2) {\n conf['delete'](id);\n } else {\n cache2[id] = {\n context: this,\n args: args2\n };\n conf.emit('setasync', id, typeof cb2 === 'function' ? 1 : cb2.length);\n }\n }\n if (typeof cb2 === 'function') {\n result = apply.call(cb2, this, args2);\n } else {\n cb2.forEach(function(cb3) {\n result = apply.call(cb3, this, args2);\n }, this);\n }\n return result;\n };\n origCb = currentCallback;\n currentCallback = currentContext = currentArgs = null;\n args.push(cb);\n result = apply.call(original, this, args);\n cb.cb = origCb;\n currentCallback = cb;\n return result;\n };\n conf.on('set', function(id) {\n if (!currentCallback) {\n conf['delete'](id);\n return;\n }\n if (waiting[id]) {\n if (typeof waiting[id] === 'function') {\n waiting[id] = [ waiting[id], currentCallback.cb ];\n } else {\n waiting[id].push(currentCallback.cb);\n }\n } else {\n waiting[id] = currentCallback.cb;\n }\n delete currentCallback.cb;\n currentCallback.id = id;\n currentCallback = null;\n });\n conf.on('delete', function(id) {\n var result;\n if (hasOwnProperty.call(waiting, id)) {\n return;\n }\n if (!cache2[id]) {\n return;\n }\n result = cache2[id];\n delete cache2[id];\n conf.emit('deleteasync', id, slice.call(result.args, 1));\n });\n conf.on('clear', function() {\n var oldCache = cache2;\n cache2 = create(null);\n conf.emit('clearasync', objectMap(oldCache, function(data2) {\n return slice.call(data2.args, 1);\n }));\n });\n };\n });\n var require_primitive_set = __commonJS(function(exports, module) {\n 'use strict';\n var forEach = Array.prototype.forEach;\n var create = Object.create;\n module.exports = function(arg) {\n var set = create(null);\n forEach.call(arguments, function(name) {\n set[name] = true;\n });\n return set;\n };\n });\n var require_is_callable = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = function(obj) {\n return typeof obj === 'function';\n };\n });\n var require_validate_stringifiable = __commonJS(function(exports, module) {\n 'use strict';\n var isCallable = require_is_callable();\n module.exports = function(stringifiable) {\n try {\n if (stringifiable && isCallable(stringifiable.toString)) {\n return stringifiable.toString();\n }\n return String(stringifiable);\n } catch (e) {\n throw new TypeError('Passed argument cannot be stringifed');\n }\n };\n });\n var require_validate_stringifiable_value = __commonJS(function(exports, module) {\n 'use strict';\n var ensureValue = require_valid_value();\n var stringifiable = require_validate_stringifiable();\n module.exports = function(value) {\n return stringifiable(ensureValue(value));\n };\n });\n var require_safe_to_string = __commonJS(function(exports, module) {\n 'use strict';\n var isCallable = require_is_callable();\n module.exports = function(value) {\n try {\n if (value && isCallable(value.toString)) {\n return value.toString();\n }\n return String(value);\n } catch (e) {\n return '';\n }\n };\n });\n var require_to_short_string_representation = __commonJS(function(exports, module) {\n 'use strict';\n var safeToString = require_safe_to_string();\n var reNewLine = /[\\n\\r\\u2028\\u2029]/g;\n module.exports = function(value) {\n var string = safeToString(value);\n if (string.length > 100) {\n string = string.slice(0, 99) + '\\u2026';\n }\n string = string.replace(reNewLine, function(_char) {\n return JSON.stringify(_char).slice(1, -1);\n });\n return string;\n };\n });\n var require_is_promise = __commonJS(function(exports, module) {\n module.exports = isPromise;\n module.exports['default'] = isPromise;\n function isPromise(obj) {\n return !!obj && (_typeof(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n }\n });\n var require_promise = __commonJS(function() {\n 'use strict';\n var objectMap = require_map();\n var primitiveSet = require_primitive_set();\n var ensureString = require_validate_stringifiable_value();\n var toShortString = require_to_short_string_representation();\n var isPromise = require_is_promise();\n var nextTick = require_next_tick();\n var create = Object.create;\n var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally');\n require_registered_extensions().promise = function(mode, conf) {\n var waiting = create(null), cache2 = create(null), promises = create(null);\n if (mode === true) {\n mode = null;\n } else {\n mode = ensureString(mode);\n if (!supportedModes[mode]) {\n throw new TypeError('\\'' + toShortString(mode) + '\\' is not valid promise mode');\n }\n }\n conf.on('set', function(id, ignore, promise) {\n var isFailed = false;\n if (!isPromise(promise)) {\n cache2[id] = promise;\n conf.emit('setasync', id, 1);\n return;\n }\n waiting[id] = 1;\n promises[id] = promise;\n var onSuccess = function onSuccess(result) {\n var count = waiting[id];\n if (isFailed) {\n throw new Error('Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in \\'done:finally\\' mode)\\nConsider to rely on \\'then\\' or \\'done\\' mode instead.');\n }\n if (!count) {\n return;\n }\n delete waiting[id];\n cache2[id] = result;\n conf.emit('setasync', id, count);\n };\n var onFailure = function onFailure() {\n isFailed = true;\n if (!waiting[id]) {\n return;\n }\n delete waiting[id];\n delete promises[id];\n conf['delete'](id);\n };\n var resolvedMode = mode;\n if (!resolvedMode) {\n resolvedMode = 'then';\n }\n if (resolvedMode === 'then') {\n var nextTickFailure = function nextTickFailure() {\n nextTick(onFailure);\n };\n promise = promise.then(function(result) {\n nextTick(onSuccess.bind(this, result));\n }, nextTickFailure);\n if (typeof promise['finally'] === 'function') {\n promise['finally'](nextTickFailure);\n }\n } else if (resolvedMode === 'done') {\n if (typeof promise.done !== 'function') {\n throw new Error('Memoizee error: Retrieved promise does not implement \\'done\\' in \\'done\\' mode');\n }\n promise.done(onSuccess, onFailure);\n } else if (resolvedMode === 'done:finally') {\n if (typeof promise.done !== 'function') {\n throw new Error('Memoizee error: Retrieved promise does not implement \\'done\\' in \\'done:finally\\' mode');\n }\n if (typeof promise['finally'] !== 'function') {\n throw new Error('Memoizee error: Retrieved promise does not implement \\'finally\\' in \\'done:finally\\' mode');\n }\n promise.done(onSuccess);\n promise['finally'](onFailure);\n }\n });\n conf.on('get', function(id, args, context) {\n var promise;\n if (waiting[id]) {\n ++waiting[id];\n return;\n }\n promise = promises[id];\n var emit = function emit() {\n conf.emit('getasync', id, args, context);\n };\n if (isPromise(promise)) {\n if (typeof promise.done === 'function') {\n promise.done(emit);\n } else {\n promise.then(function() {\n nextTick(emit);\n });\n }\n } else {\n emit();\n }\n });\n conf.on('delete', function(id) {\n delete promises[id];\n if (waiting[id]) {\n delete waiting[id];\n return;\n }\n if (!hasOwnProperty.call(cache2, id)) {\n return;\n }\n var result = cache2[id];\n delete cache2[id];\n conf.emit('deleteasync', id, [ result ]);\n });\n conf.on('clear', function() {\n var oldCache = cache2;\n cache2 = create(null);\n waiting = create(null);\n promises = create(null);\n conf.emit('clearasync', objectMap(oldCache, function(data2) {\n return [ data2 ];\n }));\n });\n };\n });\n var require_dispose = __commonJS(function() {\n 'use strict';\n var callable = require_valid_callable();\n var forEach = require_for_each();\n var extensions = require_registered_extensions();\n var apply = Function.prototype.apply;\n extensions.dispose = function(dispose, conf, options) {\n var del;\n callable(dispose);\n if (options.async && extensions.async || options.promise && extensions.promise) {\n conf.on('deleteasync', del = function del(id, resultArray) {\n apply.call(dispose, null, resultArray);\n });\n conf.on('clearasync', function(cache2) {\n forEach(cache2, function(result, id) {\n del(id, result);\n });\n });\n return;\n }\n conf.on('delete', del = function del(id, result) {\n dispose(result);\n });\n conf.on('clear', function(cache2) {\n forEach(cache2, function(result, id) {\n del(id, result);\n });\n });\n };\n });\n var require_max_timeout = __commonJS(function(exports, module) {\n 'use strict';\n module.exports = 2147483647;\n });\n var require_valid_timeout = __commonJS(function(exports, module) {\n 'use strict';\n var toPosInt = require_to_pos_integer();\n var maxTimeout = require_max_timeout();\n module.exports = function(value) {\n value = toPosInt(value);\n if (value > maxTimeout) {\n throw new TypeError(value + ' exceeds maximum possible timeout');\n }\n return value;\n };\n });\n var require_max_age = __commonJS(function() {\n 'use strict';\n var aFrom = require_from();\n var forEach = require_for_each();\n var nextTick = require_next_tick();\n var isPromise = require_is_promise();\n var timeout = require_valid_timeout();\n var extensions = require_registered_extensions();\n var noop3 = Function.prototype;\n var max = Math.max;\n var min = Math.min;\n var create = Object.create;\n extensions.maxAge = function(maxAge, conf, options) {\n var timeouts, postfix, preFetchAge, preFetchTimeouts;\n maxAge = timeout(maxAge);\n if (!maxAge) {\n return;\n }\n timeouts = create(null);\n postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';\n conf.on('set' + postfix, function(id) {\n timeouts[id] = setTimeout(function() {\n conf['delete'](id);\n }, maxAge);\n if (typeof timeouts[id].unref === 'function') {\n timeouts[id].unref();\n }\n if (!preFetchTimeouts) {\n return;\n }\n if (preFetchTimeouts[id]) {\n if (preFetchTimeouts[id] !== 'nextTick') {\n clearTimeout(preFetchTimeouts[id]);\n }\n }\n preFetchTimeouts[id] = setTimeout(function() {\n delete preFetchTimeouts[id];\n }, preFetchAge);\n if (typeof preFetchTimeouts[id].unref === 'function') {\n preFetchTimeouts[id].unref();\n }\n });\n conf.on('delete' + postfix, function(id) {\n clearTimeout(timeouts[id]);\n delete timeouts[id];\n if (!preFetchTimeouts) {\n return;\n }\n if (preFetchTimeouts[id] !== 'nextTick') {\n clearTimeout(preFetchTimeouts[id]);\n }\n delete preFetchTimeouts[id];\n });\n if (options.preFetch) {\n if (options.preFetch === true || isNaN(options.preFetch)) {\n preFetchAge = .333;\n } else {\n preFetchAge = max(min(Number(options.preFetch), 1), 0);\n }\n if (preFetchAge) {\n preFetchTimeouts = {};\n preFetchAge = (1 - preFetchAge) * maxAge;\n conf.on('get' + postfix, function(id, args, context) {\n if (!preFetchTimeouts[id]) {\n preFetchTimeouts[id] = 'nextTick';\n nextTick(function() {\n var result;\n if (preFetchTimeouts[id] !== 'nextTick') {\n return;\n }\n delete preFetchTimeouts[id];\n conf['delete'](id);\n if (options.async) {\n args = aFrom(args);\n args.push(noop3);\n }\n result = conf.memoized.apply(context, args);\n if (options.promise) {\n if (isPromise(result)) {\n if (typeof result.done === 'function') {\n result.done(noop3, noop3);\n } else {\n result.then(noop3, noop3);\n }\n }\n }\n });\n }\n });\n }\n }\n conf.on('clear' + postfix, function() {\n forEach(timeouts, function(id) {\n clearTimeout(id);\n });\n timeouts = {};\n if (preFetchTimeouts) {\n forEach(preFetchTimeouts, function(id) {\n if (id !== 'nextTick') {\n clearTimeout(id);\n }\n });\n preFetchTimeouts = {};\n }\n });\n };\n });\n var require_lru_queue = __commonJS(function(exports, module) {\n 'use strict';\n var toPosInt = require_to_pos_integer();\n var create = Object.create;\n var hasOwnProperty2 = Object.prototype.hasOwnProperty;\n module.exports = function(limit) {\n var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del;\n limit = toPosInt(limit);\n return {\n hit: function hit(id) {\n var oldIndex = map[id], nuIndex = ++index;\n queue2[nuIndex] = id;\n map[id] = nuIndex;\n if (!oldIndex) {\n ++size;\n if (size <= limit) {\n return;\n }\n id = queue2[base];\n del(id);\n return id;\n }\n delete queue2[oldIndex];\n if (base !== oldIndex) {\n return;\n }\n while (!hasOwnProperty2.call(queue2, ++base)) {\n continue;\n }\n },\n delete: del = function del(id) {\n var oldIndex = map[id];\n if (!oldIndex) {\n return;\n }\n delete queue2[oldIndex];\n delete map[id];\n --size;\n if (base !== oldIndex) {\n return;\n }\n if (!size) {\n index = 0;\n base = 1;\n return;\n }\n while (!hasOwnProperty2.call(queue2, ++base)) {\n continue;\n }\n },\n clear: function clear() {\n size = 0;\n base = 1;\n queue2 = create(null);\n map = create(null);\n index = 0;\n }\n };\n };\n });\n var require_max = __commonJS(function() {\n 'use strict';\n var toPosInteger = require_to_pos_integer();\n var lruQueue = require_lru_queue();\n var extensions = require_registered_extensions();\n extensions.max = function(max, conf, options) {\n var postfix, queue2, hit;\n max = toPosInteger(max);\n if (!max) {\n return;\n }\n queue2 = lruQueue(max);\n postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';\n conf.on('set' + postfix, hit = function hit(id) {\n id = queue2.hit(id);\n if (id === void 0) {\n return;\n }\n conf['delete'](id);\n });\n conf.on('get' + postfix, hit);\n conf.on('delete' + postfix, queue2['delete']);\n conf.on('clear' + postfix, queue2.clear);\n };\n });\n var require_ref_counter = __commonJS(function() {\n 'use strict';\n var d = require_d();\n var extensions = require_registered_extensions();\n var create = Object.create;\n var defineProperties = Object.defineProperties;\n extensions.refCounter = function(ignore, conf, options) {\n var cache2, postfix;\n cache2 = create(null);\n postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';\n conf.on('set' + postfix, function(id, length) {\n cache2[id] = length || 1;\n });\n conf.on('get' + postfix, function(id) {\n ++cache2[id];\n });\n conf.on('delete' + postfix, function(id) {\n delete cache2[id];\n });\n conf.on('clear' + postfix, function() {\n cache2 = {};\n });\n defineProperties(conf.memoized, {\n deleteRef: d(function() {\n var id = conf.get(arguments);\n if (id === null) {\n return null;\n }\n if (!cache2[id]) {\n return null;\n }\n if (!--cache2[id]) {\n conf['delete'](id);\n return true;\n }\n return false;\n }),\n getRefCount: d(function() {\n var id = conf.get(arguments);\n if (id === null) {\n return 0;\n }\n if (!cache2[id]) {\n return 0;\n }\n return cache2[id];\n })\n });\n };\n });\n var require_memoizee = __commonJS(function(exports, module) {\n 'use strict';\n var normalizeOpts = require_normalize_options();\n var resolveLength = require_resolve_length();\n var plain = require_plain();\n module.exports = function(fn) {\n var options = normalizeOpts(arguments[1]), length;\n if (!options.normalizer) {\n length = options.length = resolveLength(options.length, fn.length, options.async);\n if (length !== 0) {\n if (options.primitive) {\n if (length === false) {\n options.normalizer = require_primitive();\n } else if (length > 1) {\n options.normalizer = require_get_primitive_fixed()(length);\n }\n } else if (length === false) {\n options.normalizer = require_get()();\n } else if (length === 1) {\n options.normalizer = require_get_1()();\n } else {\n options.normalizer = require_get_fixed()(length);\n }\n }\n }\n if (options.async) {\n require_async();\n }\n if (options.promise) {\n require_promise();\n }\n if (options.dispose) {\n require_dispose();\n }\n if (options.maxAge) {\n require_max_age();\n }\n if (options.max) {\n require_max();\n }\n if (options.refCounter) {\n require_ref_counter();\n }\n return plain(fn, options);\n };\n });\n var require_doT = __commonJS(function(exports, module) {\n (function() {\n 'use strict';\n var doT3 = {\n name: 'doT',\n version: '1.1.1',\n templateSettings: {\n evaluate: /\\{\\{([\\s\\S]+?(\\}?)+)\\}\\}/g,\n interpolate: /\\{\\{=([\\s\\S]+?)\\}\\}/g,\n encode: /\\{\\{!([\\s\\S]+?)\\}\\}/g,\n use: /\\{\\{#([\\s\\S]+?)\\}\\}/g,\n useParams: /(^|[^\\w$])def(?:\\.|\\[[\\'\\\"])([\\w$\\.]+)(?:[\\'\\\"]\\])?\\s*\\:\\s*([\\w$\\.]+|\\\"[^\\\"]+\\\"|\\'[^\\']+\\'|\\{[^\\}]+\\})/g,\n define: /\\{\\{##\\s*([\\w\\.$]+)\\s*(\\:|=)([\\s\\S]+?)#\\}\\}/g,\n defineParams: /^\\s*([\\w$]+):([\\s\\S]+)/,\n conditional: /\\{\\{\\?(\\?)?\\s*([\\s\\S]*?)\\s*\\}\\}/g,\n iterate: /\\{\\{~\\s*(?:\\}\\}|([\\s\\S]+?)\\s*\\:\\s*([\\w$]+)\\s*(?:\\:\\s*([\\w$]+))?\\s*\\}\\})/g,\n varname: 'it',\n strip: true,\n append: true,\n selfcontained: false,\n doNotSkipEncoded: false\n },\n template: void 0,\n compile: void 0,\n log: true\n };\n (function() {\n if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {\n return;\n }\n try {\n Object.defineProperty(Object.prototype, '__magic__', {\n get: function get() {\n return this;\n },\n configurable: true\n });\n __magic__.globalThis = __magic__;\n delete Object.prototype.__magic__;\n } catch (e) {\n window.globalThis = function() {\n if (typeof self !== 'undefined') {\n return self;\n }\n if (typeof window !== 'undefined') {\n return window;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n if (typeof this !== 'undefined') {\n return this;\n }\n throw new Error('Unable to locate global `this`');\n }();\n }\n })();\n doT3.encodeHTMLSource = function(doNotSkipEncoded) {\n var encodeHTMLRules = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': ''',\n '/': '/'\n }, matchHTML = doNotSkipEncoded ? /[&<>\"'\\/]/g : /&(?!#?\\w+;)|<|>|\"|'|\\//g;\n return function(code) {\n return code ? code.toString().replace(matchHTML, function(m) {\n return encodeHTMLRules[m] || m;\n }) : '';\n };\n };\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = doT3;\n } else if (typeof define === 'function' && define.amd) {\n define(function() {\n return doT3;\n });\n } else {\n globalThis.doT = doT3;\n }\n var startend = {\n append: {\n start: '\\'+(',\n end: ')+\\'',\n startencode: '\\'+encodeHTML('\n },\n split: {\n start: '\\';out+=(',\n end: ');out+=\\'',\n startencode: '\\';out+=encodeHTML('\n }\n }, skip = /$^/;\n function resolveDefs(c, block, def) {\n return (typeof block === 'string' ? block : block.toString()).replace(c.define || skip, function(m, code, assign, value) {\n if (code.indexOf('def.') === 0) {\n code = code.substring(4);\n }\n if (!(code in def)) {\n if (assign === ':') {\n if (c.defineParams) {\n value.replace(c.defineParams, function(m2, param, v) {\n def[code] = {\n arg: param,\n text: v\n };\n });\n }\n if (!(code in def)) {\n def[code] = value;\n }\n } else {\n new Function('def', 'def[\\'' + code + '\\']=' + value)(def);\n }\n }\n return '';\n }).replace(c.use || skip, function(m, code) {\n if (c.useParams) {\n code = code.replace(c.useParams, function(m2, s, d, param) {\n if (def[d] && def[d].arg && param) {\n var rw = (d + ':' + param).replace(/'|\\\\/g, '_');\n def.__exp = def.__exp || {};\n def.__exp[rw] = def[d].text.replace(new RegExp('(^|[^\\\\w$])' + def[d].arg + '([^\\\\w$])', 'g'), '$1' + param + '$2');\n return s + 'def.__exp[\\'' + rw + '\\']';\n }\n });\n }\n var v = new Function('def', 'return ' + code)(def);\n return v ? resolveDefs(c, v, def) : v;\n });\n }\n function unescape(code) {\n return code.replace(/\\\\('|\\\\)/g, '$1').replace(/[\\r\\t\\n]/g, ' ');\n }\n doT3.template = function(tmpl, c, def) {\n c = c || doT3.templateSettings;\n var cse = c.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c.use || c.define ? resolveDefs(c, tmpl, def || {}) : tmpl;\n str = ('var out=\\'' + (c.strip ? str.replace(/(^|\\r|\\n)\\t* +| +\\t*(\\r|\\n|$)/g, ' ').replace(/\\r|\\n|\\t|\\/\\*[\\s\\S]*?\\*\\//g, '') : str).replace(/'|\\\\/g, '\\\\$&').replace(c.interpolate || skip, function(m, code) {\n return cse.start + unescape(code) + cse.end;\n }).replace(c.encode || skip, function(m, code) {\n needhtmlencode = true;\n return cse.startencode + unescape(code) + cse.end;\n }).replace(c.conditional || skip, function(m, elsecase, code) {\n return elsecase ? code ? '\\';}else if(' + unescape(code) + '){out+=\\'' : '\\';}else{out+=\\'' : code ? '\\';if(' + unescape(code) + '){out+=\\'' : '\\';}out+=\\'';\n }).replace(c.iterate || skip, function(m, iterate, vname, iname) {\n if (!iterate) {\n return '\\';} } out+=\\'';\n }\n sid += 1;\n indv = iname || 'i' + sid;\n iterate = unescape(iterate);\n return '\\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '> 0;\n },\n ToUint32: function ToUint32(v) {\n return v >>> 0;\n }\n };\n }();\n var LN2 = Math.LN2;\n var abs = Math.abs;\n var floor = Math.floor;\n var log2 = Math.log;\n var min = Math.min;\n var pow = Math.pow;\n var round = Math.round;\n function clamp2(v, minimum, max) {\n return v < minimum ? minimum : v > max ? max : v;\n }\n var getOwnPropNames = Object.getOwnPropertyNames || function(o) {\n if (o !== Object(o)) {\n throw new TypeError('Object.getOwnPropertyNames called on non-object');\n }\n var props = [], p;\n for (p in o) {\n if (ECMAScript.HasOwnProperty(o, p)) {\n props.push(p);\n }\n }\n return props;\n };\n var defineProp;\n if (Object.defineProperty && function() {\n try {\n Object.defineProperty({}, 'x', {});\n return true;\n } catch (e) {\n return false;\n }\n }()) {\n defineProp = Object.defineProperty;\n } else {\n defineProp = function defineProp(o, p, desc) {\n if (!o === Object(o)) {\n throw new TypeError('Object.defineProperty called on non-object');\n }\n if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) {\n Object.prototype.__defineGetter__.call(o, p, desc.get);\n }\n if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) {\n Object.prototype.__defineSetter__.call(o, p, desc.set);\n }\n if (ECMAScript.HasProperty(desc, 'value')) {\n o[p] = desc.value;\n }\n return o;\n };\n }\n function configureProperties(obj) {\n if (getOwnPropNames && defineProp) {\n var props = getOwnPropNames(obj), i;\n for (i = 0; i < props.length; i += 1) {\n defineProp(obj, props[i], {\n value: obj[props[i]],\n writable: false,\n enumerable: false,\n configurable: false\n });\n }\n }\n }\n function makeArrayAccessors(obj) {\n if (!defineProp) {\n return;\n }\n if (obj.length > MAX_ARRAY_LENGTH) {\n throw new RangeError('Array too large for polyfill');\n }\n function makeArrayAccessor(index) {\n defineProp(obj, index, {\n get: function get() {\n return obj._getter(index);\n },\n set: function set(v) {\n obj._setter(index, v);\n },\n enumerable: true,\n configurable: false\n });\n }\n var i;\n for (i = 0; i < obj.length; i += 1) {\n makeArrayAccessor(i);\n }\n }\n function as_signed(value, bits) {\n var s = 32 - bits;\n return value << s >> s;\n }\n function as_unsigned(value, bits) {\n var s = 32 - bits;\n return value << s >>> s;\n }\n function packI8(n) {\n return [ n & 255 ];\n }\n function unpackI8(bytes) {\n return as_signed(bytes[0], 8);\n }\n function packU8(n) {\n return [ n & 255 ];\n }\n function unpackU8(bytes) {\n return as_unsigned(bytes[0], 8);\n }\n function packU8Clamped(n) {\n n = round(Number(n));\n return [ n < 0 ? 0 : n > 255 ? 255 : n & 255 ];\n }\n function packI16(n) {\n return [ n >> 8 & 255, n & 255 ];\n }\n function unpackI16(bytes) {\n return as_signed(bytes[0] << 8 | bytes[1], 16);\n }\n function packU16(n) {\n return [ n >> 8 & 255, n & 255 ];\n }\n function unpackU16(bytes) {\n return as_unsigned(bytes[0] << 8 | bytes[1], 16);\n }\n function packI32(n) {\n return [ n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255 ];\n }\n function unpackI32(bytes) {\n return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);\n }\n function packU32(n) {\n return [ n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255 ];\n }\n function unpackU32(bytes) {\n return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);\n }\n function packIEEE754(v, ebits, fbits) {\n var bias = (1 << ebits - 1) - 1;\n var s, e, f, i, bits, str, bytes;\n function roundToEven(n) {\n var w = floor(n);\n var fl = n - w;\n if (fl < .5) {\n return w;\n }\n if (fl > .5) {\n return w + 1;\n }\n return w % 2 ? w + 1 : w;\n }\n if (v !== v) {\n e = (1 << ebits) - 1;\n f = pow(2, fbits - 1);\n s = 0;\n } else if (v === Infinity || v === -Infinity) {\n e = (1 << ebits) - 1;\n f = 0;\n s = v < 0 ? 1 : 0;\n } else if (v === 0) {\n e = 0;\n f = 0;\n s = 1 / v === -Infinity ? 1 : 0;\n } else {\n s = v < 0;\n v = abs(v);\n if (v >= pow(2, 1 - bias)) {\n e = min(floor(log2(v) / LN2), 1023);\n f = roundToEven(v / pow(2, e) * pow(2, fbits));\n if (f / pow(2, fbits) >= 2) {\n e = e + 1;\n f = 1;\n }\n if (e > bias) {\n e = (1 << ebits) - 1;\n f = 0;\n } else {\n e = e + bias;\n f = f - pow(2, fbits);\n }\n } else {\n e = 0;\n f = roundToEven(v / pow(2, 1 - bias - fbits));\n }\n }\n bits = [];\n for (i = fbits; i; i -= 1) {\n bits.push(f % 2 ? 1 : 0);\n f = floor(f / 2);\n }\n for (i = ebits; i; i -= 1) {\n bits.push(e % 2 ? 1 : 0);\n e = floor(e / 2);\n }\n bits.push(s ? 1 : 0);\n bits.reverse();\n str = bits.join('');\n bytes = [];\n while (str.length) {\n bytes.push(parseInt(str.substring(0, 8), 2));\n str = str.substring(8);\n }\n return bytes;\n }\n function unpackIEEE754(bytes, ebits, fbits) {\n var bits = [], i, j, b, str, bias, s, e, f;\n for (i = bytes.length; i; i -= 1) {\n b = bytes[i - 1];\n for (j = 8; j; j -= 1) {\n bits.push(b % 2 ? 1 : 0);\n b = b >> 1;\n }\n }\n bits.reverse();\n str = bits.join('');\n bias = (1 << ebits - 1) - 1;\n s = parseInt(str.substring(0, 1), 2) ? -1 : 1;\n e = parseInt(str.substring(1, 1 + ebits), 2);\n f = parseInt(str.substring(1 + ebits), 2);\n if (e === (1 << ebits) - 1) {\n return f === 0 ? s * Infinity : NaN;\n } else if (e > 0) {\n return s * pow(2, e - bias) * (1 + f / pow(2, fbits));\n } else if (f !== 0) {\n return s * pow(2, -(bias - 1)) * (f / pow(2, fbits));\n }\n return s < 0 ? -0 : 0;\n }\n function unpackF64(b) {\n return unpackIEEE754(b, 11, 52);\n }\n function packF64(v) {\n return packIEEE754(v, 11, 52);\n }\n function unpackF32(b) {\n return unpackIEEE754(b, 8, 23);\n }\n function packF32(v) {\n return packIEEE754(v, 8, 23);\n }\n (function() {\n function ArrayBuffer(length) {\n length = ECMAScript.ToInt32(length);\n if (length < 0) {\n throw new RangeError('ArrayBuffer size is not a small enough positive integer');\n }\n this.byteLength = length;\n this._bytes = [];\n this._bytes.length = length;\n var i;\n for (i = 0; i < this.byteLength; i += 1) {\n this._bytes[i] = 0;\n }\n configureProperties(this);\n }\n exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer;\n function ArrayBufferView() {}\n function makeConstructor(bytesPerElement, pack, unpack) {\n var _ctor;\n _ctor = function ctor(buffer, byteOffset, length) {\n var array, sequence, i, s;\n if (!arguments.length || typeof arguments[0] === 'number') {\n this.length = ECMAScript.ToInt32(arguments[0]);\n if (length < 0) {\n throw new RangeError('ArrayBufferView size is not a small enough positive integer');\n }\n this.byteLength = this.length * this.BYTES_PER_ELEMENT;\n this.buffer = new ArrayBuffer(this.byteLength);\n this.byteOffset = 0;\n } else if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === _ctor) {\n array = arguments[0];\n this.length = array.length;\n this.byteLength = this.length * this.BYTES_PER_ELEMENT;\n this.buffer = new ArrayBuffer(this.byteLength);\n this.byteOffset = 0;\n for (i = 0; i < this.length; i += 1) {\n this._setter(i, array._getter(i));\n }\n } else if (_typeof(arguments[0]) === 'object' && !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {\n sequence = arguments[0];\n this.length = ECMAScript.ToUint32(sequence.length);\n this.byteLength = this.length * this.BYTES_PER_ELEMENT;\n this.buffer = new ArrayBuffer(this.byteLength);\n this.byteOffset = 0;\n for (i = 0; i < this.length; i += 1) {\n s = sequence[i];\n this._setter(i, Number(s));\n }\n } else if (_typeof(arguments[0]) === 'object' && (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {\n this.buffer = buffer;\n this.byteOffset = ECMAScript.ToUint32(byteOffset);\n if (this.byteOffset > this.buffer.byteLength) {\n throw new RangeError('byteOffset out of range');\n }\n if (this.byteOffset % this.BYTES_PER_ELEMENT) {\n throw new RangeError('ArrayBuffer length minus the byteOffset is not a multiple of the element size.');\n }\n if (arguments.length < 3) {\n this.byteLength = this.buffer.byteLength - this.byteOffset;\n if (this.byteLength % this.BYTES_PER_ELEMENT) {\n throw new RangeError('length of buffer minus byteOffset not a multiple of the element size');\n }\n this.length = this.byteLength / this.BYTES_PER_ELEMENT;\n } else {\n this.length = ECMAScript.ToUint32(length);\n this.byteLength = this.length * this.BYTES_PER_ELEMENT;\n }\n if (this.byteOffset + this.byteLength > this.buffer.byteLength) {\n throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');\n }\n } else {\n throw new TypeError('Unexpected argument type(s)');\n }\n this.constructor = _ctor;\n configureProperties(this);\n makeArrayAccessors(this);\n };\n _ctor.prototype = new ArrayBufferView();\n _ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement;\n _ctor.prototype._pack = pack;\n _ctor.prototype._unpack = unpack;\n _ctor.BYTES_PER_ELEMENT = bytesPerElement;\n _ctor.prototype._getter = function(index) {\n if (arguments.length < 1) {\n throw new SyntaxError('Not enough arguments');\n }\n index = ECMAScript.ToUint32(index);\n if (index >= this.length) {\n return void 0;\n }\n var bytes = [];\n for (var i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, \n o += 1) {\n bytes.push(this.buffer._bytes[o]);\n }\n return this._unpack(bytes);\n };\n _ctor.prototype.get = _ctor.prototype._getter;\n _ctor.prototype._setter = function(index, value) {\n if (arguments.length < 2) {\n throw new SyntaxError('Not enough arguments');\n }\n index = ECMAScript.ToUint32(index);\n if (index < this.length) {\n var bytes = this._pack(value);\n var i;\n var o;\n for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, \n o += 1) {\n this.buffer._bytes[o] = bytes[i];\n }\n }\n };\n _ctor.prototype.set = function(index, value) {\n if (arguments.length < 1) {\n throw new SyntaxError('Not enough arguments');\n }\n var array, sequence, offset, len, i, s, d, byteOffset, byteLength, tmp;\n if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === this.constructor) {\n array = arguments[0];\n offset = ECMAScript.ToUint32(arguments[1]);\n if (offset + array.length > this.length) {\n throw new RangeError('Offset plus length of array is out of range');\n }\n byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT;\n byteLength = array.length * this.BYTES_PER_ELEMENT;\n if (array.buffer === this.buffer) {\n tmp = [];\n for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) {\n tmp[i] = array.buffer._bytes[s];\n }\n for (i = 0, d = byteOffset; i < byteLength; i += 1, d += 1) {\n this.buffer._bytes[d] = tmp[i];\n }\n } else {\n for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1, \n s += 1, d += 1) {\n this.buffer._bytes[d] = array.buffer._bytes[s];\n }\n }\n } else if (_typeof(arguments[0]) === 'object' && typeof arguments[0].length !== 'undefined') {\n sequence = arguments[0];\n len = ECMAScript.ToUint32(sequence.length);\n offset = ECMAScript.ToUint32(arguments[1]);\n if (offset + len > this.length) {\n throw new RangeError('Offset plus length of array is out of range');\n }\n for (i = 0; i < len; i += 1) {\n s = sequence[i];\n this._setter(offset + i, Number(s));\n }\n } else {\n throw new TypeError('Unexpected argument type(s)');\n }\n };\n _ctor.prototype.subarray = function(start, end) {\n start = ECMAScript.ToInt32(start);\n end = ECMAScript.ToInt32(end);\n if (arguments.length < 1) {\n start = 0;\n }\n if (arguments.length < 2) {\n end = this.length;\n }\n if (start < 0) {\n start = this.length + start;\n }\n if (end < 0) {\n end = this.length + end;\n }\n start = clamp2(start, 0, this.length);\n end = clamp2(end, 0, this.length);\n var len = end - start;\n if (len < 0) {\n len = 0;\n }\n return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len);\n };\n return _ctor;\n }\n var Int8Array = makeConstructor(1, packI8, unpackI8);\n var Uint8Array2 = makeConstructor(1, packU8, unpackU8);\n var Uint8ClampedArray2 = makeConstructor(1, packU8Clamped, unpackU8);\n var Int16Array = makeConstructor(2, packI16, unpackI16);\n var Uint16Array = makeConstructor(2, packU16, unpackU16);\n var Int32Array = makeConstructor(4, packI32, unpackI32);\n var Uint32Array3 = makeConstructor(4, packU32, unpackU32);\n var Float32Array = makeConstructor(4, packF32, unpackF32);\n var Float64Array = makeConstructor(8, packF64, unpackF64);\n exports.Int8Array = exports.Int8Array || Int8Array;\n exports.Uint8Array = exports.Uint8Array || Uint8Array2;\n exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray2;\n exports.Int16Array = exports.Int16Array || Int16Array;\n exports.Uint16Array = exports.Uint16Array || Uint16Array;\n exports.Int32Array = exports.Int32Array || Int32Array;\n exports.Uint32Array = exports.Uint32Array || Uint32Array3;\n exports.Float32Array = exports.Float32Array || Float32Array;\n exports.Float64Array = exports.Float64Array || Float64Array;\n })();\n (function() {\n function r(array, index) {\n return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index];\n }\n var IS_BIG_ENDIAN = function() {\n var u16array = new exports.Uint16Array([ 4660 ]), u8array = new exports.Uint8Array(u16array.buffer);\n return r(u8array, 0) === 18;\n }();\n function DataView(buffer, byteOffset, byteLength) {\n if (arguments.length === 0) {\n buffer = new exports.ArrayBuffer(0);\n } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) {\n throw new TypeError('TypeError');\n }\n this.buffer = buffer || new exports.ArrayBuffer(0);\n this.byteOffset = ECMAScript.ToUint32(byteOffset);\n if (this.byteOffset > this.buffer.byteLength) {\n throw new RangeError('byteOffset out of range');\n }\n if (arguments.length < 3) {\n this.byteLength = this.buffer.byteLength - this.byteOffset;\n } else {\n this.byteLength = ECMAScript.ToUint32(byteLength);\n }\n if (this.byteOffset + this.byteLength > this.buffer.byteLength) {\n throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');\n }\n configureProperties(this);\n }\n function makeGetter(arrayType) {\n return function(byteOffset, littleEndian) {\n byteOffset = ECMAScript.ToUint32(byteOffset);\n if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {\n throw new RangeError('Array index out of range');\n }\n byteOffset += this.byteOffset;\n var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i;\n for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {\n bytes.push(r(uint8Array, i));\n }\n if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {\n bytes.reverse();\n }\n return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0);\n };\n }\n DataView.prototype.getUint8 = makeGetter(exports.Uint8Array);\n DataView.prototype.getInt8 = makeGetter(exports.Int8Array);\n DataView.prototype.getUint16 = makeGetter(exports.Uint16Array);\n DataView.prototype.getInt16 = makeGetter(exports.Int16Array);\n DataView.prototype.getUint32 = makeGetter(exports.Uint32Array);\n DataView.prototype.getInt32 = makeGetter(exports.Int32Array);\n DataView.prototype.getFloat32 = makeGetter(exports.Float32Array);\n DataView.prototype.getFloat64 = makeGetter(exports.Float64Array);\n function makeSetter(arrayType) {\n return function(byteOffset, value, littleEndian) {\n byteOffset = ECMAScript.ToUint32(byteOffset);\n if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {\n throw new RangeError('Array index out of range');\n }\n var typeArray = new arrayType([ value ]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView;\n for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {\n bytes.push(r(byteArray, i));\n }\n if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {\n bytes.reverse();\n }\n byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT);\n byteView.set(bytes);\n };\n }\n DataView.prototype.setUint8 = makeSetter(exports.Uint8Array);\n DataView.prototype.setInt8 = makeSetter(exports.Int8Array);\n DataView.prototype.setUint16 = makeSetter(exports.Uint16Array);\n DataView.prototype.setInt16 = makeSetter(exports.Int16Array);\n DataView.prototype.setUint32 = makeSetter(exports.Uint32Array);\n DataView.prototype.setInt32 = makeSetter(exports.Int32Array);\n DataView.prototype.setFloat32 = makeSetter(exports.Float32Array);\n DataView.prototype.setFloat64 = makeSetter(exports.Float64Array);\n exports.DataView = exports.DataView || DataView;\n })();\n });\n var require_weakmap_polyfill = __commonJS(function(exports) {\n (function(self2) {\n 'use strict';\n if (self2.WeakMap) {\n return;\n }\n var hasOwnProperty2 = Object.prototype.hasOwnProperty;\n var hasDefine = Object.defineProperty && function() {\n try {\n return Object.defineProperty({}, 'x', {\n value: 1\n }).x === 1;\n } catch (e) {}\n }();\n var defineProperty = function defineProperty(object, name, value) {\n if (hasDefine) {\n Object.defineProperty(object, name, {\n configurable: true,\n writable: true,\n value: value\n });\n } else {\n object[name] = value;\n }\n };\n self2.WeakMap = function() {\n function WeakMap2() {\n if (this === void 0) {\n throw new TypeError('Constructor WeakMap requires \\'new\\'');\n }\n defineProperty(this, '_id', genId('_WeakMap'));\n if (arguments.length > 0) {\n throw new TypeError('WeakMap iterable is not supported');\n }\n }\n defineProperty(WeakMap2.prototype, 'delete', function(key) {\n checkInstance(this, 'delete');\n if (!isObject(key)) {\n return false;\n }\n var entry = key[this._id];\n if (entry && entry[0] === key) {\n delete key[this._id];\n return true;\n }\n return false;\n });\n defineProperty(WeakMap2.prototype, 'get', function(key) {\n checkInstance(this, 'get');\n if (!isObject(key)) {\n return void 0;\n }\n var entry = key[this._id];\n if (entry && entry[0] === key) {\n return entry[1];\n }\n return void 0;\n });\n defineProperty(WeakMap2.prototype, 'has', function(key) {\n checkInstance(this, 'has');\n if (!isObject(key)) {\n return false;\n }\n var entry = key[this._id];\n if (entry && entry[0] === key) {\n return true;\n }\n return false;\n });\n defineProperty(WeakMap2.prototype, 'set', function(key, value) {\n checkInstance(this, 'set');\n if (!isObject(key)) {\n throw new TypeError('Invalid value used as weak map key');\n }\n var entry = key[this._id];\n if (entry && entry[0] === key) {\n entry[1] = value;\n return this;\n }\n defineProperty(key, this._id, [ key, value ]);\n return this;\n });\n function checkInstance(x, methodName) {\n if (!isObject(x) || !hasOwnProperty2.call(x, '_id')) {\n throw new TypeError(methodName + ' method called on incompatible receiver ' + _typeof(x));\n }\n }\n function genId(prefix) {\n return prefix + '_' + rand() + '.' + rand();\n }\n function rand() {\n return Math.random().toString().substring(2);\n }\n defineProperty(WeakMap2, '_polyfill', true);\n return WeakMap2;\n }();\n function isObject(x) {\n return Object(x) === x;\n }\n })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);\n });\n var definitions = [ {\n name: 'NA',\n value: 'inapplicable',\n priority: 0,\n group: 'inapplicable'\n }, {\n name: 'PASS',\n value: 'passed',\n priority: 1,\n group: 'passes'\n }, {\n name: 'CANTTELL',\n value: 'cantTell',\n priority: 2,\n group: 'incomplete'\n }, {\n name: 'FAIL',\n value: 'failed',\n priority: 3,\n group: 'violations'\n } ];\n var constants = {\n helpUrlBase: 'https://dequeuniversity.com/rules/',\n gridSize: 200,\n results: [],\n resultGroups: [],\n resultGroupMap: {},\n impact: Object.freeze([ 'minor', 'moderate', 'serious', 'critical' ]),\n preload: Object.freeze({\n assets: [ 'cssom', 'media' ],\n timeout: 1e4\n }),\n allOrigins: '',\n sameOrigin: ''\n };\n definitions.forEach(function(definition) {\n var name = definition.name;\n var value = definition.value;\n var priority = definition.priority;\n var group = definition.group;\n constants[name] = value;\n constants[name + '_PRIO'] = priority;\n constants[name + '_GROUP'] = group;\n constants.results[priority] = value;\n constants.resultGroups[priority] = group;\n constants.resultGroupMap[value] = group;\n });\n Object.freeze(constants.results);\n Object.freeze(constants.resultGroups);\n Object.freeze(constants.resultGroupMap);\n Object.freeze(constants);\n var constants_default = constants;\n function log() {\n if ((typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log) {\n Function.prototype.apply.call(console.log, console, arguments);\n }\n }\n var log_default = log;\n var whitespaceRegex = /[\\t\\r\\n\\f]/g;\n var AbstractVirtualNode = function() {\n function AbstractVirtualNode() {\n _classCallCheck(this, AbstractVirtualNode);\n this.parent = void 0;\n }\n _createClass(AbstractVirtualNode, [ {\n key: 'props',\n get: function get() {\n throw new Error('VirtualNode class must have a \"props\" object consisting of \"nodeType\" and \"nodeName\" properties');\n }\n }, {\n key: 'attrNames',\n get: function get() {\n throw new Error('VirtualNode class must have an \"attrNames\" property');\n }\n }, {\n key: 'attr',\n value: function attr() {\n throw new Error('VirtualNode class must have an \"attr\" function');\n }\n }, {\n key: 'hasAttr',\n value: function hasAttr() {\n throw new Error('VirtualNode class must have a \"hasAttr\" function');\n }\n }, {\n key: 'hasClass',\n value: function hasClass(className) {\n var classAttr = this.attr('class');\n if (!classAttr) {\n return false;\n }\n var selector = ' ' + className + ' ';\n return (' ' + classAttr + ' ').replace(whitespaceRegex, ' ').indexOf(selector) >= 0;\n }\n } ]);\n return AbstractVirtualNode;\n }();\n var abstract_virtual_node_default = AbstractVirtualNode;\n var utils_exports = {};\n __export(utils_exports, {\n DqElement: function DqElement() {\n return dq_element_default;\n },\n aggregate: function aggregate() {\n return aggregate_default;\n },\n aggregateChecks: function aggregateChecks() {\n return aggregate_checks_default;\n },\n aggregateNodeResults: function aggregateNodeResults() {\n return aggregate_node_results_default;\n },\n aggregateResult: function aggregateResult() {\n return aggregate_result_default;\n },\n areStylesSet: function areStylesSet() {\n return are_styles_set_default;\n },\n assert: function assert() {\n return assert_default;\n },\n checkHelper: function checkHelper() {\n return check_helper_default;\n },\n clone: function clone() {\n return clone_default;\n },\n closest: function closest() {\n return closest_default;\n },\n collectResultsFromFrames: function collectResultsFromFrames() {\n return _collectResultsFromFrames;\n },\n contains: function contains() {\n return _contains;\n },\n convertSelector: function convertSelector() {\n return _convertSelector;\n },\n cssParser: function cssParser() {\n return css_parser_default;\n },\n deepMerge: function deepMerge() {\n return deep_merge_default;\n },\n escapeSelector: function escapeSelector() {\n return escape_selector_default;\n },\n extendMetaData: function extendMetaData() {\n return extend_meta_data_default;\n },\n filterHtmlAttrs: function filterHtmlAttrs() {\n return _filterHtmlAttrs;\n },\n finalizeRuleResult: function finalizeRuleResult() {\n return finalize_result_default;\n },\n findBy: function findBy() {\n return find_by_default;\n },\n getAllChecks: function getAllChecks() {\n return get_all_checks_default;\n },\n getAncestry: function getAncestry() {\n return _getAncestry;\n },\n getBaseLang: function getBaseLang() {\n return get_base_lang_default;\n },\n getCheckMessage: function getCheckMessage() {\n return get_check_message_default;\n },\n getCheckOption: function getCheckOption() {\n return get_check_option_default;\n },\n getEnvironmentData: function getEnvironmentData() {\n return _getEnvironmentData;\n },\n getFlattenedTree: function getFlattenedTree() {\n return get_flattened_tree_default;\n },\n getFrameContexts: function getFrameContexts() {\n return _getFrameContexts;\n },\n getFriendlyUriEnd: function getFriendlyUriEnd() {\n return get_friendly_uri_end_default;\n },\n getNodeAttributes: function getNodeAttributes() {\n return get_node_attributes_default;\n },\n getNodeFromTree: function getNodeFromTree() {\n return get_node_from_tree_default;\n },\n getPreloadConfig: function getPreloadConfig() {\n return _getPreloadConfig;\n },\n getRootNode: function getRootNode() {\n return get_root_node_default;\n },\n getRule: function getRule() {\n return get_rule_default;\n },\n getScroll: function getScroll() {\n return _getScroll;\n },\n getScrollState: function getScrollState() {\n return get_scroll_state_default;\n },\n getSelector: function getSelector() {\n return _getSelector;\n },\n getSelectorData: function getSelectorData() {\n return _getSelectorData;\n },\n getShadowSelector: function getShadowSelector() {\n return get_shadow_selector_default;\n },\n getStandards: function getStandards() {\n return _getStandards;\n },\n getStyleSheetFactory: function getStyleSheetFactory() {\n return get_stylesheet_factory_default;\n },\n getXpath: function getXpath() {\n return get_xpath_default;\n },\n injectStyle: function injectStyle() {\n return inject_style_default;\n },\n isHidden: function isHidden() {\n return is_hidden_default;\n },\n isHtmlElement: function isHtmlElement() {\n return is_html_element_default;\n },\n isNodeInContext: function isNodeInContext() {\n return _isNodeInContext;\n },\n isShadowRoot: function isShadowRoot() {\n return is_shadow_root_default;\n },\n isValidLang: function isValidLang() {\n return valid_langs_default;\n },\n isXHTML: function isXHTML() {\n return is_xhtml_default;\n },\n matchAncestry: function matchAncestry() {\n return match_ancestry_default;\n },\n matches: function matches() {\n return matches_default;\n },\n matchesExpression: function matchesExpression() {\n return _matchesExpression;\n },\n matchesSelector: function matchesSelector() {\n return element_matches_default;\n },\n memoize: function memoize() {\n return memoize_default;\n },\n mergeResults: function mergeResults() {\n return merge_results_default;\n },\n nodeSorter: function nodeSorter() {\n return node_sorter_default;\n },\n parseCrossOriginStylesheet: function parseCrossOriginStylesheet() {\n return parse_crossorigin_stylesheet_default;\n },\n parseSameOriginStylesheet: function parseSameOriginStylesheet() {\n return parse_sameorigin_stylesheet_default;\n },\n parseStylesheet: function parseStylesheet() {\n return parse_stylesheet_default;\n },\n performanceTimer: function performanceTimer() {\n return performance_timer_default;\n },\n pollyfillElementsFromPoint: function pollyfillElementsFromPoint() {\n return _pollyfillElementsFromPoint;\n },\n preload: function preload() {\n return preload_default;\n },\n preloadCssom: function preloadCssom() {\n return preload_cssom_default;\n },\n preloadMedia: function preloadMedia() {\n return preload_media_default;\n },\n processMessage: function processMessage() {\n return process_message_default;\n },\n publishMetaData: function publishMetaData() {\n return publish_metadata_default;\n },\n querySelectorAll: function querySelectorAll() {\n return query_selector_all_default;\n },\n querySelectorAllFilter: function querySelectorAllFilter() {\n return query_selector_all_filter_default;\n },\n queue: function queue() {\n return queue_default;\n },\n respondable: function respondable() {\n return _respondable;\n },\n ruleShouldRun: function ruleShouldRun() {\n return rule_should_run_default;\n },\n select: function select() {\n return _select;\n },\n sendCommandToFrame: function sendCommandToFrame() {\n return _sendCommandToFrame;\n },\n setScrollState: function setScrollState() {\n return set_scroll_state_default;\n },\n shadowSelect: function shadowSelect() {\n return _shadowSelect;\n },\n shadowSelectAll: function shadowSelectAll() {\n return _shadowSelectAll;\n },\n shouldPreload: function shouldPreload() {\n return _shouldPreload;\n },\n toArray: function toArray() {\n return to_array_default;\n },\n tokenList: function tokenList() {\n return token_list_default;\n },\n uniqueArray: function uniqueArray() {\n return unique_array_default;\n },\n uuid: function uuid() {\n return uuid_default;\n },\n validInputTypes: function validInputTypes() {\n return valid_input_type_default;\n },\n validLangs: function validLangs() {\n return _validLangs;\n }\n });\n function aggregate(map, values, initial) {\n values = values.slice();\n if (initial) {\n values.push(initial);\n }\n var sorting = values.map(function(val) {\n return map.indexOf(val);\n }).sort();\n return map[sorting.pop()];\n }\n var aggregate_default = aggregate;\n var CANTTELL_PRIO = constants_default.CANTTELL_PRIO, FAIL_PRIO = constants_default.FAIL_PRIO;\n var checkMap = [];\n checkMap[constants_default.PASS_PRIO] = true;\n checkMap[constants_default.CANTTELL_PRIO] = null;\n checkMap[constants_default.FAIL_PRIO] = false;\n var checkTypes = [ 'any', 'all', 'none' ];\n function anyAllNone(obj, functor) {\n return checkTypes.reduce(function(out, type) {\n out[type] = (obj[type] || []).map(function(val) {\n return functor(val, type);\n });\n return out;\n }, {});\n }\n function aggregateChecks(nodeResOriginal) {\n var nodeResult = Object.assign({}, nodeResOriginal);\n anyAllNone(nodeResult, function(check, type) {\n var i = typeof check.result === 'undefined' ? -1 : checkMap.indexOf(check.result);\n check.priority = i !== -1 ? i : constants_default.CANTTELL_PRIO;\n if (type === 'none') {\n if (check.priority === constants_default.PASS_PRIO) {\n check.priority = constants_default.FAIL_PRIO;\n } else if (check.priority === constants_default.FAIL_PRIO) {\n check.priority = constants_default.PASS_PRIO;\n }\n }\n });\n var priorities = {\n all: nodeResult.all.reduce(function(a, b) {\n return Math.max(a, b.priority);\n }, 0),\n none: nodeResult.none.reduce(function(a, b) {\n return Math.max(a, b.priority);\n }, 0),\n any: nodeResult.any.reduce(function(a, b) {\n return Math.min(a, b.priority);\n }, 4) % 4\n };\n nodeResult.priority = Math.max(priorities.all, priorities.none, priorities.any);\n var impacts = [];\n checkTypes.forEach(function(type) {\n nodeResult[type] = nodeResult[type].filter(function(check) {\n return check.priority === nodeResult.priority && check.priority === priorities[type];\n });\n nodeResult[type].forEach(function(check) {\n return impacts.push(check.impact);\n });\n });\n if ([ CANTTELL_PRIO, FAIL_PRIO ].includes(nodeResult.priority)) {\n nodeResult.impact = aggregate_default(constants_default.impact, impacts);\n } else {\n nodeResult.impact = null;\n }\n anyAllNone(nodeResult, function(c) {\n delete c.result;\n delete c.priority;\n });\n nodeResult.result = constants_default.results[nodeResult.priority];\n delete nodeResult.priority;\n return nodeResult;\n }\n var aggregate_checks_default = aggregateChecks;\n function finalizeRuleResult(ruleResult) {\n var rule = axe._audit.rules.find(function(rule2) {\n return rule2.id === ruleResult.id;\n });\n if (rule && rule.impact) {\n ruleResult.nodes.forEach(function(node) {\n [ 'any', 'all', 'none' ].forEach(function(checkType) {\n (node[checkType] || []).forEach(function(checkResult) {\n checkResult.impact = rule.impact;\n });\n });\n });\n }\n Object.assign(ruleResult, aggregate_node_results_default(ruleResult.nodes));\n delete ruleResult.nodes;\n return ruleResult;\n }\n var finalize_result_default = finalizeRuleResult;\n function aggregateNodeResults(nodeResults) {\n var ruleResult = {};\n nodeResults = nodeResults.map(function(nodeResult) {\n if (nodeResult.any && nodeResult.all && nodeResult.none) {\n return aggregate_checks_default(nodeResult);\n } else if (Array.isArray(nodeResult.node)) {\n return finalize_result_default(nodeResult);\n } else {\n throw new TypeError('Invalid Result type');\n }\n });\n if (nodeResults && nodeResults.length) {\n var resultList = nodeResults.map(function(node) {\n return node.result;\n });\n ruleResult.result = aggregate_default(constants_default.results, resultList, ruleResult.result);\n } else {\n ruleResult.result = 'inapplicable';\n }\n constants_default.resultGroups.forEach(function(group) {\n return ruleResult[group] = [];\n });\n nodeResults.forEach(function(nodeResult) {\n var groupName = constants_default.resultGroupMap[nodeResult.result];\n ruleResult[groupName].push(nodeResult);\n });\n var impactGroup = constants_default.FAIL_GROUP;\n if (ruleResult[impactGroup].length === 0) {\n impactGroup = constants_default.CANTTELL_GROUP;\n }\n if (ruleResult[impactGroup].length > 0) {\n var impactList = ruleResult[impactGroup].map(function(failure) {\n return failure.impact;\n });\n ruleResult.impact = aggregate_default(constants_default.impact, impactList) || null;\n } else {\n ruleResult.impact = null;\n }\n return ruleResult;\n }\n var aggregate_node_results_default = aggregateNodeResults;\n function copyToGroup(resultObject, subResult, group) {\n var resultCopy = Object.assign({}, subResult);\n resultCopy.nodes = (resultCopy[group] || []).concat();\n constants_default.resultGroups.forEach(function(group2) {\n delete resultCopy[group2];\n });\n resultObject[group].push(resultCopy);\n }\n function aggregateResult(results) {\n var resultObject = {};\n constants_default.resultGroups.forEach(function(groupName) {\n return resultObject[groupName] = [];\n });\n results.forEach(function(subResult) {\n if (subResult.error) {\n copyToGroup(resultObject, subResult, constants_default.CANTTELL_GROUP);\n } else if (subResult.result === constants_default.NA) {\n copyToGroup(resultObject, subResult, constants_default.NA_GROUP);\n } else {\n constants_default.resultGroups.forEach(function(group) {\n if (Array.isArray(subResult[group]) && subResult[group].length > 0) {\n copyToGroup(resultObject, subResult, group);\n }\n });\n }\n });\n return resultObject;\n }\n var aggregate_result_default = aggregateResult;\n function areStylesSet(el, styles, stopAt) {\n var styl = window.getComputedStyle(el, null);\n if (!styl) {\n return false;\n }\n for (var i = 0; i < styles.length; ++i) {\n var att = styles[i];\n if (styl.getPropertyValue(att.property) === att.value) {\n return true;\n }\n }\n if (!el.parentNode || el.nodeName.toUpperCase() === stopAt.toUpperCase()) {\n return false;\n }\n return areStylesSet(el.parentNode, styles, stopAt);\n }\n var are_styles_set_default = areStylesSet;\n function assert(bool, message) {\n if (!bool) {\n throw new Error(message);\n }\n }\n var assert_default = assert;\n function toArray(thing) {\n return Array.prototype.slice.call(thing);\n }\n var to_array_default = toArray;\n function escapeSelector(value) {\n var string = String(value);\n var length = string.length;\n var index = -1;\n var codeUnit;\n var result = '';\n var firstCodeUnit = string.charCodeAt(0);\n while (++index < length) {\n codeUnit = string.charCodeAt(index);\n if (codeUnit == 0) {\n result += '\\ufffd';\n continue;\n }\n if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {\n result += '\\\\' + codeUnit.toString(16) + ' ';\n continue;\n }\n if (index == 0 && length == 1 && codeUnit == 45) {\n result += '\\\\' + string.charAt(index);\n continue;\n }\n if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {\n result += string.charAt(index);\n continue;\n }\n result += '\\\\' + string.charAt(index);\n }\n return result;\n }\n var escape_selector_default = escapeSelector;\n function isMostlyNumbers() {\n var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return str.length !== 0 && (str.match(/[0-9]/g) || '').length >= str.length / 2;\n }\n function splitString(str, splitIndex) {\n return [ str.substring(0, splitIndex), str.substring(splitIndex) ];\n }\n function trimRight(str) {\n return str.replace(/\\s+$/, '');\n }\n function uriParser(url) {\n var original = url;\n var protocol = '', domain = '', port = '', path = '', query = '', hash = '';\n if (url.includes('#')) {\n var _splitString = splitString(url, url.indexOf('#'));\n var _splitString2 = _slicedToArray(_splitString, 2);\n url = _splitString2[0];\n hash = _splitString2[1];\n }\n if (url.includes('?')) {\n var _splitString3 = splitString(url, url.indexOf('?'));\n var _splitString4 = _slicedToArray(_splitString3, 2);\n url = _splitString4[0];\n query = _splitString4[1];\n }\n if (url.includes('://')) {\n var _url$split = url.split('://');\n var _url$split2 = _slicedToArray(_url$split, 2);\n protocol = _url$split2[0];\n url = _url$split2[1];\n var _splitString5 = splitString(url, url.indexOf('/'));\n var _splitString6 = _slicedToArray(_splitString5, 2);\n domain = _splitString6[0];\n url = _splitString6[1];\n } else if (url.substr(0, 2) === '//') {\n url = url.substr(2);\n var _splitString7 = splitString(url, url.indexOf('/'));\n var _splitString8 = _slicedToArray(_splitString7, 2);\n domain = _splitString8[0];\n url = _splitString8[1];\n }\n if (domain.substr(0, 4) === 'www.') {\n domain = domain.substr(4);\n }\n if (domain && domain.includes(':')) {\n var _splitString9 = splitString(domain, domain.indexOf(':'));\n var _splitString10 = _slicedToArray(_splitString9, 2);\n domain = _splitString10[0];\n port = _splitString10[1];\n }\n path = url;\n return {\n original: original,\n protocol: protocol,\n domain: domain,\n port: port,\n path: path,\n query: query,\n hash: hash\n };\n }\n function getFriendlyUriEnd() {\n var uri = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (uri.length <= 1 || uri.substr(0, 5) === 'data:' || uri.substr(0, 11) === 'javascript:' || uri.includes('?')) {\n return;\n }\n var currentDomain = options.currentDomain, _options$maxLength = options.maxLength, maxLength = _options$maxLength === void 0 ? 25 : _options$maxLength;\n var _uriParser = uriParser(uri), path = _uriParser.path, domain = _uriParser.domain, hash = _uriParser.hash;\n var pathEnd = path.substr(path.substr(0, path.length - 2).lastIndexOf('/') + 1);\n if (hash) {\n if (pathEnd && (pathEnd + hash).length <= maxLength) {\n return trimRight(pathEnd + hash);\n } else if (pathEnd.length < 2 && hash.length > 2 && hash.length <= maxLength) {\n return trimRight(hash);\n } else {\n return;\n }\n } else if (domain && domain.length < maxLength && path.length <= 1) {\n return trimRight(domain + path);\n }\n if (path === '/' + pathEnd && domain && currentDomain && domain !== currentDomain && (domain + path).length <= maxLength) {\n return trimRight(domain + path);\n }\n var lastDotIndex = pathEnd.lastIndexOf('.');\n if ((lastDotIndex === -1 || lastDotIndex > 1) && (lastDotIndex !== -1 || pathEnd.length > 2) && pathEnd.length <= maxLength && !pathEnd.match(/index(\\.[a-zA-Z]{2-4})?/) && !isMostlyNumbers(pathEnd)) {\n return trimRight(pathEnd);\n }\n }\n var get_friendly_uri_end_default = getFriendlyUriEnd;\n function getNodeAttributes(node) {\n if (node.attributes instanceof window.NamedNodeMap) {\n return node.attributes;\n }\n return node.cloneNode(false).attributes;\n }\n var get_node_attributes_default = getNodeAttributes;\n var matchesSelector = function() {\n var method;\n function getMethod(node) {\n var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;\n for (index = 0; index < length; index++) {\n candidate = candidates[index];\n if (node[candidate]) {\n return candidate;\n }\n }\n }\n return function(node, selector) {\n if (!method || !node[method]) {\n method = getMethod(node);\n }\n if (node[method]) {\n return node[method](selector);\n }\n return false;\n };\n }();\n var element_matches_default = matchesSelector;\n function isXHTML(doc) {\n if (!doc.createElement) {\n return false;\n }\n return doc.createElement('A').localName === 'A';\n }\n var is_xhtml_default = isXHTML;\n function getShadowSelector(generateSelector2, elm) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (!elm) {\n return '';\n }\n var doc = elm.getRootNode && elm.getRootNode() || document;\n if (doc.nodeType !== 11) {\n return generateSelector2(elm, options, doc);\n }\n var stack = [];\n while (doc.nodeType === 11) {\n if (!doc.host) {\n return '';\n }\n stack.unshift({\n elm: elm,\n doc: doc\n });\n elm = doc.host;\n doc = elm.getRootNode();\n }\n stack.unshift({\n elm: elm,\n doc: doc\n });\n return stack.map(function(_ref) {\n var elm2 = _ref.elm, doc2 = _ref.doc;\n return generateSelector2(elm2, options, doc2);\n });\n }\n var get_shadow_selector_default = getShadowSelector;\n var xhtml;\n var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];\n var MAXATTRIBUTELENGTH = 31;\n var attrCharsRegex = /([\\\\\"])/g;\n var newlineChars = /(\\r\\n|\\r|\\n)/g;\n function escapeAttribute(str) {\n return str.replace(attrCharsRegex, '\\\\$1').replace(newlineChars, '\\\\a ');\n }\n function getAttributeNameValue(node, at) {\n var name = at.name;\n var atnv;\n if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {\n var friendly = get_friendly_uri_end_default(node.getAttribute(name));\n if (friendly) {\n atnv = escape_selector_default(at.name) + '$=\"' + escapeAttribute(friendly) + '\"';\n } else {\n atnv = escape_selector_default(at.name) + '=\"' + escapeAttribute(node.getAttribute(name)) + '\"';\n }\n } else {\n atnv = escape_selector_default(name) + '=\"' + escapeAttribute(at.value) + '\"';\n }\n return atnv;\n }\n function countSort(a, b) {\n return a.count < b.count ? -1 : a.count === b.count ? 0 : 1;\n }\n function filterAttributes(at) {\n return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);\n }\n function _getSelectorData(domTree) {\n var data2 = {\n classes: {},\n tags: {},\n attributes: {}\n };\n domTree = Array.isArray(domTree) ? domTree : [ domTree ];\n var currentLevel = domTree.slice();\n var stack = [];\n var _loop2 = function _loop2() {\n var current = currentLevel.pop();\n var node = current.actualNode;\n if (!!node.querySelectorAll) {\n var tag = node.nodeName;\n if (data2.tags[tag]) {\n data2.tags[tag]++;\n } else {\n data2.tags[tag] = 1;\n }\n if (node.classList) {\n Array.from(node.classList).forEach(function(cl) {\n var ind = escape_selector_default(cl);\n if (data2.classes[ind]) {\n data2.classes[ind]++;\n } else {\n data2.classes[ind] = 1;\n }\n });\n }\n if (node.hasAttributes()) {\n Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {\n var atnv = getAttributeNameValue(node, at);\n if (atnv) {\n if (data2.attributes[atnv]) {\n data2.attributes[atnv]++;\n } else {\n data2.attributes[atnv] = 1;\n }\n }\n });\n }\n }\n if (current.children.length) {\n stack.push(currentLevel);\n currentLevel = current.children.slice();\n }\n while (!currentLevel.length && stack.length) {\n currentLevel = stack.pop();\n }\n };\n while (currentLevel.length) {\n _loop2();\n }\n return data2;\n }\n function uncommonClasses(node, selectorData) {\n var retVal = [];\n var classData = selectorData.classes;\n var tagData = selectorData.tags;\n if (node.classList) {\n Array.from(node.classList).forEach(function(cl) {\n var ind = escape_selector_default(cl);\n if (classData[ind] < tagData[node.nodeName]) {\n retVal.push({\n name: ind,\n count: classData[ind],\n species: 'class'\n });\n }\n });\n }\n return retVal.sort(countSort);\n }\n function getNthChildString(elm, selector) {\n var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];\n var hasMatchingSiblings = siblings.find(function(sibling) {\n return sibling !== elm && element_matches_default(sibling, selector);\n });\n if (hasMatchingSiblings) {\n var nthChild = 1 + siblings.indexOf(elm);\n return ':nth-child(' + nthChild + ')';\n } else {\n return '';\n }\n }\n function getElmId(elm) {\n if (!elm.getAttribute('id')) {\n return;\n }\n var doc = elm.getRootNode && elm.getRootNode() || document;\n var id = '#' + escape_selector_default(elm.getAttribute('id') || '');\n if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {\n return id;\n }\n }\n function getBaseSelector(elm) {\n if (typeof xhtml === 'undefined') {\n xhtml = is_xhtml_default(document);\n }\n return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());\n }\n function uncommonAttributes(node, selectorData) {\n var retVal = [];\n var attData = selectorData.attributes;\n var tagData = selectorData.tags;\n if (node.hasAttributes()) {\n Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {\n var atnv = getAttributeNameValue(node, at);\n if (atnv && attData[atnv] < tagData[node.nodeName]) {\n retVal.push({\n name: atnv,\n count: attData[atnv],\n species: 'attribute'\n });\n }\n });\n }\n return retVal.sort(countSort);\n }\n function getThreeLeastCommonFeatures(elm, selectorData) {\n var selector = '';\n var features;\n var clss = uncommonClasses(elm, selectorData);\n var atts = uncommonAttributes(elm, selectorData);\n if (clss.length && clss[0].count === 1) {\n features = [ clss[0] ];\n } else if (atts.length && atts[0].count === 1) {\n features = [ atts[0] ];\n selector = getBaseSelector(elm);\n } else {\n features = clss.concat(atts);\n features.sort(countSort);\n features = features.slice(0, 3);\n if (!features.some(function(feat) {\n return feat.species === 'class';\n })) {\n selector = getBaseSelector(elm);\n } else {\n features.sort(function(a, b) {\n return a.species !== b.species && a.species === 'class' ? -1 : a.species === b.species ? 0 : 1;\n });\n }\n }\n return selector += features.reduce(function(val, feat) {\n switch (feat.species) {\n case 'class':\n return val + '.' + feat.name;\n\n case 'attribute':\n return val + '[' + feat.name + ']';\n }\n return val;\n }, '');\n }\n function generateSelector(elm, options, doc) {\n if (!axe._selectorData) {\n throw new Error('Expect axe._selectorData to be set up');\n }\n var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;\n var selector;\n var similar;\n do {\n var features = getElmId(elm);\n if (!features) {\n features = getThreeLeastCommonFeatures(elm, axe._selectorData);\n features += getNthChildString(elm, features);\n }\n if (selector) {\n selector = features + ' > ' + selector;\n } else {\n selector = features;\n }\n if (!similar) {\n similar = Array.from(doc.querySelectorAll(selector));\n } else {\n similar = similar.filter(function(item) {\n return element_matches_default(item, selector);\n });\n }\n elm = elm.parentElement;\n } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);\n if (similar.length === 1) {\n return selector;\n } else if (selector.indexOf(' > ') !== -1) {\n return ':root' + selector.substring(selector.indexOf(' > '));\n }\n return ':root';\n }\n function _getSelector(elm, options) {\n return get_shadow_selector_default(generateSelector, elm, options);\n }\n function generateAncestry(node) {\n var nodeName2 = node.nodeName.toLowerCase();\n var parent = node.parentElement;\n if (!parent) {\n return nodeName2;\n }\n var nthChild = '';\n if (nodeName2 !== 'head' && nodeName2 !== 'body' && parent.children.length > 1) {\n var index = Array.prototype.indexOf.call(parent.children, node) + 1;\n nthChild = ':nth-child('.concat(index, ')');\n }\n return generateAncestry(parent) + ' > ' + nodeName2 + nthChild;\n }\n function _getAncestry(elm, options) {\n return get_shadow_selector_default(generateAncestry, elm, options);\n }\n function getXPathArray(node, path) {\n var sibling, count;\n if (!node) {\n return [];\n }\n if (!path && node.nodeType === 9) {\n path = [ {\n str: 'html'\n } ];\n return path;\n }\n path = path || [];\n if (node.parentNode && node.parentNode !== node) {\n path = getXPathArray(node.parentNode, path);\n }\n if (node.previousSibling) {\n count = 1;\n sibling = node.previousSibling;\n do {\n if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {\n count++;\n }\n sibling = sibling.previousSibling;\n } while (sibling);\n if (count === 1) {\n count = null;\n }\n } else if (node.nextSibling) {\n sibling = node.nextSibling;\n do {\n if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {\n count = 1;\n sibling = null;\n } else {\n count = null;\n sibling = sibling.previousSibling;\n }\n } while (sibling);\n }\n if (node.nodeType === 1) {\n var element = {};\n element.str = node.nodeName.toLowerCase();\n var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));\n if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {\n element.id = node.getAttribute('id');\n }\n if (count > 1) {\n element.count = count;\n }\n path.push(element);\n }\n return path;\n }\n function xpathToString(xpathArray) {\n return xpathArray.reduce(function(str, elm) {\n if (elm.id) {\n return '/'.concat(elm.str, '[@id=\\'').concat(elm.id, '\\']');\n } else {\n return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');\n }\n }, '');\n }\n function getXpath(node) {\n var xpathArray = getXPathArray(node);\n return xpathToString(xpathArray);\n }\n var get_xpath_default = getXpath;\n var _cache = {};\n var cache = {\n set: function set(key, value) {\n validateKey(key);\n _cache[key] = value;\n },\n get: function get(key, creator) {\n validateCreator(creator);\n if (key in _cache) {\n return _cache[key];\n }\n if (typeof creator === 'function') {\n var value = creator();\n assert_default(value !== void 0, 'Cache creator function should not return undefined');\n this.set(key, value);\n return _cache[key];\n }\n },\n clear: function clear() {\n _cache = {};\n }\n };\n function validateKey(key) {\n assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given');\n assert_default(key !== '', 'key must not be empty');\n }\n function validateCreator(creator) {\n assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given');\n }\n var cache_default = cache;\n function getNodeFromTree(vNode, node) {\n var el = node || vNode;\n return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;\n }\n var get_node_from_tree_default = getNodeFromTree;\n function truncate(str, maxLength) {\n maxLength = maxLength || 300;\n if (str.length > maxLength) {\n var index = str.indexOf('>');\n str = str.substring(0, index + 1);\n }\n return str;\n }\n function getSource(element) {\n if (!(element !== null && element !== void 0 && element.outerHTML)) {\n return '';\n }\n var source = element.outerHTML;\n if (!source && typeof window.XMLSerializer === 'function') {\n source = new window.XMLSerializer().serializeToString(element);\n }\n return truncate(source || '');\n }\n function DqElement(elm) {\n var _this$spec$selector, _this$_virtualNode;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.spec = spec;\n if (elm instanceof abstract_virtual_node_default) {\n this._virtualNode = elm;\n this._element = elm.actualNode;\n } else {\n this._element = elm;\n this._virtualNode = get_node_from_tree_default(elm);\n }\n this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;\n if (options.absolutePaths) {\n this._options = {\n toRoot: true\n };\n }\n this.nodeIndexes = [];\n if (Array.isArray(this.spec.nodeIndexes)) {\n this.nodeIndexes = this.spec.nodeIndexes;\n } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {\n this.nodeIndexes = [ this._virtualNode.nodeIndex ];\n }\n this.source = null;\n if (!axe._audit.noHtml) {\n var _this$spec$source;\n this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);\n }\n }\n DqElement.prototype = {\n get selector() {\n return this.spec.selector || [ _getSelector(this.element, this._options) ];\n },\n get ancestry() {\n return this.spec.ancestry || [ _getAncestry(this.element) ];\n },\n get xpath() {\n return this.spec.xpath || [ get_xpath_default(this.element) ];\n },\n get element() {\n return this._element;\n },\n toJSON: function toJSON() {\n return {\n selector: this.selector,\n source: this.source,\n xpath: this.xpath,\n ancestry: this.ancestry,\n nodeIndexes: this.nodeIndexes\n };\n }\n };\n DqElement.fromFrame = function fromFrame(node, options, frame) {\n var spec = DqElement.mergeSpecs(node, frame);\n return new DqElement(frame.element, options, spec);\n };\n DqElement.mergeSpecs = function mergeSpec(node, frame) {\n return _extends({}, node, {\n selector: [].concat(_toConsumableArray(frame.selector), _toConsumableArray(node.selector)),\n ancestry: [].concat(_toConsumableArray(frame.ancestry), _toConsumableArray(node.ancestry)),\n xpath: [].concat(_toConsumableArray(frame.xpath), _toConsumableArray(node.xpath)),\n nodeIndexes: [].concat(_toConsumableArray(frame.nodeIndexes), _toConsumableArray(node.nodeIndexes))\n });\n };\n var dq_element_default = DqElement;\n function checkHelper(checkResult, options, resolve, reject) {\n return {\n isAsync: false,\n async: function async() {\n this.isAsync = true;\n return function(result) {\n if (result instanceof Error === false) {\n checkResult.result = result;\n resolve(checkResult);\n } else {\n reject(result);\n }\n };\n },\n data: function data(data2) {\n checkResult.data = data2;\n },\n relatedNodes: function relatedNodes(nodes) {\n if (!window.Node) {\n return;\n }\n nodes = nodes instanceof window.Node ? [ nodes ] : to_array_default(nodes);\n if (!nodes.every(function(node) {\n return node instanceof window.Node || node.actualNode;\n })) {\n return;\n }\n checkResult.relatedNodes = nodes.map(function(element) {\n return new dq_element_default(element, options);\n });\n }\n };\n }\n var check_helper_default = checkHelper;\n function clone(obj) {\n var _window, _window2;\n var index, length, out = obj;\n if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection) {\n return obj;\n }\n if (obj !== null && _typeof(obj) === 'object') {\n if (Array.isArray(obj)) {\n out = [];\n for (index = 0, length = obj.length; index < length; index++) {\n out[index] = clone(obj[index]);\n }\n } else {\n out = {};\n for (index in obj) {\n out[index] = clone(obj[index]);\n }\n }\n }\n return out;\n }\n var clone_default = clone;\n var import_css_selector_parser = __toModule(require_lib());\n var parser = new import_css_selector_parser.CssSelectorParser();\n parser.registerSelectorPseudos('not');\n parser.registerSelectorPseudos('is');\n parser.registerNestingOperators('>');\n parser.registerAttrEqualityMods('^', '$', '*', '~');\n var css_parser_default = parser;\n function matchesTag(vNode, exp) {\n return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);\n }\n function matchesClasses(vNode, exp) {\n return !exp.classes || exp.classes.every(function(cl) {\n return vNode.hasClass(cl.value);\n });\n }\n function matchesAttributes(vNode, exp) {\n return !exp.attributes || exp.attributes.every(function(att) {\n var nodeAtt = vNode.attr(att.key);\n return nodeAtt !== null && att.test(nodeAtt);\n });\n }\n function matchesId(vNode, exp) {\n return !exp.id || vNode.props.id === exp.id;\n }\n function matchesPseudos(target, exp) {\n if (!exp.pseudos || exp.pseudos.every(function(pseudo) {\n if (pseudo.name === 'not') {\n return !pseudo.expressions.some(function(expression) {\n return _matchesExpression(target, expression);\n });\n } else if (pseudo.name === 'is') {\n return pseudo.expressions.some(function(expression) {\n return _matchesExpression(target, expression);\n });\n }\n throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');\n })) {\n return true;\n }\n return false;\n }\n function matchExpression(vNode, expression) {\n return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);\n }\n var escapeRegExp = function() {\n var from = /(?=[\\-\\[\\]{}()*+?.\\\\\\^$|,#\\s])/g;\n var to = '\\\\';\n return function(string) {\n return string.replace(from, to);\n };\n }();\n var reUnescape = /\\\\/g;\n function convertAttributes(atts) {\n if (!atts) {\n return;\n }\n return atts.map(function(att) {\n var attributeKey = att.name.replace(reUnescape, '');\n var attributeValue = (att.value || '').replace(reUnescape, '');\n var test, regexp;\n switch (att.operator) {\n case '^=':\n regexp = new RegExp('^' + escapeRegExp(attributeValue));\n break;\n\n case '$=':\n regexp = new RegExp(escapeRegExp(attributeValue) + '$');\n break;\n\n case '~=':\n regexp = new RegExp('(^|\\\\s)' + escapeRegExp(attributeValue) + '(\\\\s|$)');\n break;\n\n case '|=':\n regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');\n break;\n\n case '=':\n test = function test(value) {\n return attributeValue === value;\n };\n break;\n\n case '*=':\n test = function test(value) {\n return value && value.includes(attributeValue);\n };\n break;\n\n case '!=':\n test = function test(value) {\n return attributeValue !== value;\n };\n break;\n\n default:\n test = function test(value) {\n return value !== null;\n };\n }\n if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {\n test = function test() {\n return false;\n };\n }\n if (!test) {\n test = function test(value) {\n return value && regexp.test(value);\n };\n }\n return {\n key: attributeKey,\n value: attributeValue,\n type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue',\n test: test\n };\n });\n }\n function convertClasses(classes) {\n if (!classes) {\n return;\n }\n return classes.map(function(className) {\n className = className.replace(reUnescape, '');\n return {\n value: className,\n regexp: new RegExp('(^|\\\\s)' + escapeRegExp(className) + '(\\\\s|$)')\n };\n });\n }\n function convertPseudos(pseudos) {\n if (!pseudos) {\n return;\n }\n return pseudos.map(function(p) {\n var expressions;\n if ([ 'is', 'not' ].includes(p.name)) {\n expressions = p.value;\n expressions = expressions.selectors ? expressions.selectors : [ expressions ];\n expressions = convertExpressions(expressions);\n }\n return {\n name: p.name,\n expressions: expressions,\n value: p.value\n };\n });\n }\n function convertExpressions(expressions) {\n return expressions.map(function(exp) {\n var newExp = [];\n var rule = exp.rule;\n while (rule) {\n newExp.push({\n tag: rule.tagName ? rule.tagName.toLowerCase() : '*',\n combinator: rule.nestingOperator ? rule.nestingOperator : ' ',\n id: rule.id,\n attributes: convertAttributes(rule.attrs),\n classes: convertClasses(rule.classNames),\n pseudos: convertPseudos(rule.pseudos)\n });\n rule = rule.rule;\n }\n return newExp;\n });\n }\n function _convertSelector(selector) {\n var expressions = css_parser_default.parse(selector);\n expressions = expressions.selectors ? expressions.selectors : [ expressions ];\n return convertExpressions(expressions);\n }\n function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {\n if (!vNode) {\n return false;\n }\n var isArray = Array.isArray(expressions);\n var expression = isArray ? expressions[index] : expressions;\n var matches4 = matchExpression(vNode, expression);\n while (!matches4 && matchAnyParent && vNode.parent) {\n vNode = vNode.parent;\n matches4 = matchExpression(vNode, expression);\n }\n if (index > 0) {\n if ([ ' ', '>' ].includes(expression.combinator) === false) {\n throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);\n }\n matches4 = matches4 && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');\n }\n return matches4;\n }\n function _matchesExpression(vNode, expressions, matchAnyParent) {\n return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);\n }\n function matches(vNode, selector) {\n var expressions = _convertSelector(selector);\n return expressions.some(function(expression) {\n return _matchesExpression(vNode, expression);\n });\n }\n var matches_default = matches;\n function closest(vNode, selector) {\n while (vNode) {\n if (matches_default(vNode, selector)) {\n return vNode;\n }\n if (typeof vNode.parent === 'undefined') {\n throw new TypeError('Cannot resolve parent for non-DOM nodes');\n }\n vNode = vNode.parent;\n }\n return null;\n }\n var closest_default = closest;\n function noop() {}\n function funcGuard(f) {\n if (typeof f !== 'function') {\n throw new TypeError('Queue methods require functions as arguments');\n }\n }\n function queue() {\n var tasks = [];\n var started = 0;\n var remaining = 0;\n var completeQueue = noop;\n var complete = false;\n var err2;\n var defaultFail = function defaultFail(e) {\n err2 = e;\n setTimeout(function() {\n if (err2 !== void 0 && err2 !== null) {\n log_default('Uncaught error (of queue)', err2);\n }\n }, 1);\n };\n var failed = defaultFail;\n function createResolve(i) {\n return function(r) {\n tasks[i] = r;\n remaining -= 1;\n if (!remaining && completeQueue !== noop) {\n complete = true;\n completeQueue(tasks);\n }\n };\n }\n function abort(msg) {\n completeQueue = noop;\n failed(msg);\n return tasks;\n }\n function pop() {\n var length = tasks.length;\n for (;started < length; started++) {\n var task = tasks[started];\n try {\n task.call(null, createResolve(started), abort);\n } catch (e) {\n abort(e);\n }\n }\n }\n var q = {\n defer: function defer(fn) {\n if (_typeof(fn) === 'object' && fn.then && fn['catch']) {\n var defer = fn;\n fn = function fn(resolve, reject) {\n defer.then(resolve)['catch'](reject);\n };\n }\n funcGuard(fn);\n if (err2 !== void 0) {\n return;\n } else if (complete) {\n throw new Error('Queue already completed');\n }\n tasks.push(fn);\n ++remaining;\n pop();\n return q;\n },\n then: function then(fn) {\n funcGuard(fn);\n if (completeQueue !== noop) {\n throw new Error('queue `then` already set');\n }\n if (!err2) {\n completeQueue = fn;\n if (!remaining) {\n complete = true;\n completeQueue(tasks);\n }\n }\n return q;\n },\n catch: function _catch(fn) {\n funcGuard(fn);\n if (failed !== defaultFail) {\n throw new Error('queue `catch` already set');\n }\n if (!err2) {\n failed = fn;\n } else {\n fn(err2);\n err2 = null;\n }\n return q;\n },\n abort: abort\n };\n return q;\n }\n var queue_default = queue;\n var uuid;\n var _rng;\n var _crypto = window.crypto || window.msCrypto;\n if (!_rng && _crypto && _crypto.getRandomValues) {\n _rnds8 = new Uint8Array(16);\n _rng = function whatwgRNG() {\n _crypto.getRandomValues(_rnds8);\n return _rnds8;\n };\n }\n var _rnds8;\n if (!_rng) {\n _rnds = new Array(16);\n _rng = function _rng() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 3) === 0) {\n r = Math.random() * 4294967296;\n }\n _rnds[i] = r >>> ((i & 3) << 3) & 255;\n }\n return _rnds;\n };\n }\n var _rnds;\n var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;\n var _byteToHex = [];\n var _hexToByte = {};\n for (var i = 0; i < 256; i++) {\n _byteToHex[i] = (i + 256).toString(16).substr(1);\n _hexToByte[_byteToHex[i]] = i;\n }\n function parse(s, buf, offset) {\n var i = buf && offset || 0, ii = 0;\n buf = buf || [];\n s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {\n if (ii < 16) {\n buf[i + ii++] = _hexToByte[oct];\n }\n });\n while (ii < 16) {\n buf[i + ii++] = 0;\n }\n return buf;\n }\n function unparse(buf, offset) {\n var i = offset || 0, bth = _byteToHex;\n return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];\n }\n var _seedBytes = _rng();\n var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];\n var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;\n var _lastMSecs = 0;\n var _lastNSecs = 0;\n function v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n options = options || {};\n var clockseq = options.clockseq != null ? options.clockseq : _clockseq;\n var msecs = options.msecs != null ? options.msecs : new Date().getTime();\n var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;\n var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;\n if (dt < 0 && options.clockseq == null) {\n clockseq = clockseq + 1 & 16383;\n }\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {\n nsecs = 0;\n }\n if (nsecs >= 1e4) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n msecs += 122192928e5;\n var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;\n b[i++] = tl >>> 24 & 255;\n b[i++] = tl >>> 16 & 255;\n b[i++] = tl >>> 8 & 255;\n b[i++] = tl & 255;\n var tmh = msecs / 4294967296 * 1e4 & 268435455;\n b[i++] = tmh >>> 8 & 255;\n b[i++] = tmh & 255;\n b[i++] = tmh >>> 24 & 15 | 16;\n b[i++] = tmh >>> 16 & 255;\n b[i++] = clockseq >>> 8 | 128;\n b[i++] = clockseq & 255;\n var node = options.node || _nodeId;\n for (var n = 0; n < 6; n++) {\n b[i + n] = node[n];\n }\n return buf ? buf : unparse(b);\n }\n function v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == 'string') {\n buf = options == 'binary' ? new BufferClass(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || _rng)();\n rnds[6] = rnds[6] & 15 | 64;\n rnds[8] = rnds[8] & 63 | 128;\n if (buf) {\n for (var ii = 0; ii < 16; ii++) {\n buf[i + ii] = rnds[ii];\n }\n }\n return buf || unparse(rnds);\n }\n uuid = v4;\n uuid.v1 = v1;\n uuid.v4 = v4;\n uuid.parse = parse;\n uuid.unparse = unparse;\n uuid.BufferClass = BufferClass;\n axe._uuid = v1();\n var uuid_default = v4;\n var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);\n function stringifyMessage(_ref2) {\n var topic = _ref2.topic, channelId = _ref2.channelId, message = _ref2.message, messageId = _ref2.messageId, keepalive = _ref2.keepalive;\n var data2 = {\n channelId: channelId,\n topic: topic,\n messageId: messageId,\n keepalive: !!keepalive,\n source: getSource2()\n };\n if (message instanceof Error) {\n data2.error = {\n name: message.name,\n message: message.message,\n stack: message.stack\n };\n } else {\n data2.payload = message;\n }\n return JSON.stringify(data2);\n }\n function parseMessage(dataString) {\n var data2;\n try {\n data2 = JSON.parse(dataString);\n } catch (e) {\n return;\n }\n if (!isRespondableMessage(data2)) {\n return;\n }\n var _data = data2, topic = _data.topic, channelId = _data.channelId, messageId = _data.messageId, keepalive = _data.keepalive;\n var message = _typeof(data2.error) === 'object' ? buildErrorObject(data2.error) : data2.payload;\n return {\n topic: topic,\n message: message,\n messageId: messageId,\n channelId: channelId,\n keepalive: !!keepalive\n };\n }\n function isRespondableMessage(postedMessage) {\n return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2();\n }\n function buildErrorObject(error) {\n var msg = error.message || 'Unknown error occurred';\n var errorName = errorTypes.includes(error.name) ? error.name : 'Error';\n var ErrConstructor = window[errorName] || Error;\n if (error.stack) {\n msg += '\\n' + error.stack.replace(error.message, '');\n }\n return new ErrConstructor(msg);\n }\n function getSource2() {\n var application = 'axeAPI';\n var version = '';\n if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {\n application = axe._audit.application;\n }\n if (typeof axe !== 'undefined') {\n version = axe.version;\n }\n return application + '.' + version;\n }\n function assertIsParentWindow(win) {\n assetNotGlobalWindow(win);\n assert_default(window.parent === win, 'Source of the response must be the parent window.');\n }\n function assertIsFrameWindow(win) {\n assetNotGlobalWindow(win);\n assert_default(win.parent === window, 'Respondable target must be a frame in the current window');\n }\n function assetNotGlobalWindow(win) {\n assert_default(window !== win, 'Messages can not be sent to the same window.');\n }\n var channels = {};\n function storeReplyHandler(channelId, replyHandler) {\n var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');\n channels[channelId] = {\n replyHandler: replyHandler,\n sendToParent: sendToParent\n };\n }\n function getReplyHandler(channelId) {\n return channels[channelId];\n }\n function deleteReplyHandler(channelId) {\n delete channels[channelId];\n }\n var messageIds = [];\n function createMessageId() {\n var uuid2 = ''.concat(v4(), ':').concat(v4());\n if (messageIds.includes(uuid2)) {\n return createMessageId();\n }\n messageIds.push(uuid2);\n return uuid2;\n }\n function isNewMessage(uuid2) {\n if (messageIds.includes(uuid2)) {\n return false;\n }\n messageIds.push(uuid2);\n return true;\n }\n function postMessage(win, data2, sendToParent, replyHandler) {\n if (typeof replyHandler === 'function') {\n storeReplyHandler(data2.channelId, replyHandler, sendToParent);\n }\n sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);\n if (data2.message instanceof Error && !sendToParent) {\n axe.log(data2.message);\n return false;\n }\n var dataString = stringifyMessage(_extends({\n messageId: createMessageId()\n }, data2));\n var allowedOrigins = axe._audit.allowedOrigins;\n if (!allowedOrigins || !allowedOrigins.length) {\n return false;\n }\n allowedOrigins.forEach(function(origin) {\n try {\n win.postMessage(dataString, origin);\n } catch (err2) {\n if (err2 instanceof win.DOMException) {\n throw new Error('allowedOrigins value \"'.concat(origin, '\" is not a valid origin'));\n }\n throw err2;\n }\n });\n return true;\n }\n function processError(win, error, channelId) {\n if (!win.parent !== window) {\n return axe.log(error);\n }\n try {\n postMessage(win, {\n topic: null,\n channelId: channelId,\n message: error,\n messageId: createMessageId(),\n keepalive: true\n }, true);\n } catch (err2) {\n return axe.log(err2);\n }\n }\n function createResponder(win, channelId) {\n var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n return function respond(message, keepalive, replyHandler) {\n var data2 = {\n channelId: channelId,\n message: message,\n keepalive: keepalive\n };\n postMessage(win, data2, sendToParent, replyHandler);\n };\n }\n function originIsAllowed(origin) {\n var allowedOrigins = axe._audit.allowedOrigins;\n return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);\n }\n function messageHandler(_ref3, topicHandler) {\n var origin = _ref3.origin, dataString = _ref3.data, win = _ref3.source;\n try {\n var data2 = parseMessage(dataString) || {};\n var channelId = data2.channelId, message = data2.message, messageId = data2.messageId;\n if (!originIsAllowed(origin) || !isNewMessage(messageId)) {\n return;\n }\n if (message instanceof Error && win.parent !== window) {\n axe.log(message);\n return false;\n }\n try {\n if (data2.topic) {\n var responder = createResponder(win, channelId);\n assertIsParentWindow(win);\n topicHandler(data2, responder);\n } else {\n callReplyHandler(win, data2);\n }\n } catch (error) {\n processError(win, error, channelId);\n }\n } catch (error) {\n axe.log(error);\n return false;\n }\n }\n function callReplyHandler(win, data2) {\n var channelId = data2.channelId, message = data2.message, keepalive = data2.keepalive;\n var _ref4 = getReplyHandler(channelId) || {}, replyHandler = _ref4.replyHandler, sendToParent = _ref4.sendToParent;\n if (!replyHandler) {\n return;\n }\n sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);\n var responder = createResponder(win, channelId, sendToParent);\n if (!keepalive && channelId) {\n deleteReplyHandler(channelId);\n }\n try {\n replyHandler(message, keepalive, responder);\n } catch (error) {\n axe.log(error);\n responder(error, keepalive);\n }\n }\n var frameMessenger = {\n open: function open(topicHandler) {\n if (typeof window.addEventListener !== 'function') {\n return;\n }\n var handler = function handler(messageEvent) {\n messageHandler(messageEvent, topicHandler);\n };\n window.addEventListener('message', handler, false);\n return function() {\n window.removeEventListener('message', handler, false);\n };\n },\n post: function post(win, data2, replyHandler) {\n if (typeof window.addEventListener !== 'function') {\n return false;\n }\n return postMessage(win, data2, false, replyHandler);\n }\n };\n function setDefaultFrameMessenger(respondable2) {\n respondable2.updateMessenger(frameMessenger);\n }\n var closeHandler;\n var postMessage2;\n var topicHandlers = {};\n function _respondable(win, topic, message, keepalive, replyHandler) {\n var data2 = {\n topic: topic,\n message: message,\n channelId: ''.concat(v4(), ':').concat(v4()),\n keepalive: keepalive\n };\n return postMessage2(win, data2, replyHandler);\n }\n function messageListener(data2, responder) {\n var topic = data2.topic, message = data2.message, keepalive = data2.keepalive;\n var topicHandler = topicHandlers[topic];\n if (!topicHandler) {\n return;\n }\n try {\n topicHandler(message, keepalive, responder);\n } catch (error) {\n axe.log(error);\n responder(error, keepalive);\n }\n }\n _respondable.updateMessenger = function updateMessenger(_ref5) {\n var open = _ref5.open, post = _ref5.post;\n assert_default(typeof open === 'function', 'open callback must be a function');\n assert_default(typeof post === 'function', 'post callback must be a function');\n if (closeHandler) {\n closeHandler();\n }\n var close = open(messageListener);\n if (close) {\n assert_default(typeof close === 'function', 'open callback must return a cleanup function');\n closeHandler = close;\n } else {\n closeHandler = null;\n }\n postMessage2 = post;\n };\n _respondable.subscribe = function subscribe(topic, topicHandler) {\n assert_default(typeof topicHandler === 'function', 'Subscriber callback must be a function');\n assert_default(!topicHandlers[topic], 'Topic '.concat(topic, ' is already registered to.'));\n topicHandlers[topic] = topicHandler;\n };\n _respondable.isInFrame = function isInFrame() {\n var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;\n return !!win.frameElement;\n };\n setDefaultFrameMessenger(_respondable);\n function _sendCommandToFrame(node, parameters, resolve, reject) {\n var _parameters$options$p, _parameters$options;\n var win = node.contentWindow;\n var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500;\n if (!win) {\n log_default('Frame does not have a content window', node);\n resolve(null);\n return;\n }\n if (pingWaitTime === 0) {\n callAxeStart(node, parameters, resolve, reject);\n return;\n }\n var timeout = setTimeout(function() {\n timeout = setTimeout(function() {\n if (!parameters.debug) {\n resolve(null);\n } else {\n reject(err('No response from frame', node));\n }\n }, 0);\n }, pingWaitTime);\n _respondable(win, 'axe.ping', null, void 0, function() {\n clearTimeout(timeout);\n callAxeStart(node, parameters, resolve, reject);\n });\n }\n function callAxeStart(node, parameters, resolve, reject) {\n var _parameters$options$f, _parameters$options2;\n var frameWaitTime = (_parameters$options$f = (_parameters$options2 = parameters.options) === null || _parameters$options2 === void 0 ? void 0 : _parameters$options2.frameWaitTime) !== null && _parameters$options$f !== void 0 ? _parameters$options$f : 6e4;\n var win = node.contentWindow;\n var timeout = setTimeout(function collectResultFramesTimeout() {\n reject(err('Axe in frame timed out', node));\n }, frameWaitTime);\n _respondable(win, 'axe.start', parameters, void 0, function(data2) {\n clearTimeout(timeout);\n if (data2 instanceof Error === false) {\n resolve(data2);\n } else {\n reject(data2);\n }\n });\n }\n function err(message, node) {\n var selector;\n if (axe._tree) {\n selector = _getSelector(node);\n }\n return new Error(message + ': ' + (selector || node));\n }\n function getAllChecks(object) {\n var result = [];\n return result.concat(object.any || []).concat(object.all || []).concat(object.none || []);\n }\n var get_all_checks_default = getAllChecks;\n function findBy(array, key, value) {\n if (Array.isArray(array)) {\n return array.find(function(obj) {\n return _typeof(obj) === 'object' && obj[key] === value;\n });\n }\n }\n var find_by_default = findBy;\n function pushFrame(resultSet, options, frameSpec) {\n resultSet.forEach(function(res) {\n res.node = dq_element_default.fromFrame(res.node, options, frameSpec);\n var checks = get_all_checks_default(res);\n checks.forEach(function(check) {\n check.relatedNodes = check.relatedNodes.map(function(node) {\n return dq_element_default.fromFrame(node, options, frameSpec);\n });\n });\n });\n }\n function spliceNodes(target, to) {\n var firstFromFrame = to[0].node;\n for (var _i2 = 0; _i2 < target.length; _i2++) {\n var node = target[_i2].node;\n var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes);\n if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) {\n target.splice.apply(target, [ _i2, 0 ].concat(_toConsumableArray(to)));\n return;\n }\n }\n target.push.apply(target, _toConsumableArray(to));\n }\n function normalizeResult(result) {\n if (!result || !result.results) {\n return null;\n }\n if (!Array.isArray(result.results)) {\n return [ result.results ];\n }\n if (!result.results.length) {\n return null;\n }\n return result.results;\n }\n function mergeResults(frameResults, options) {\n var mergedResult = [];\n frameResults.forEach(function(frameResult) {\n var results = normalizeResult(frameResult);\n if (!results || !results.length) {\n return;\n }\n var frameSpec = getFrameSpec(frameResult, options);\n results.forEach(function(ruleResult) {\n if (ruleResult.nodes && frameSpec) {\n pushFrame(ruleResult.nodes, options, frameSpec);\n }\n var res = find_by_default(mergedResult, 'id', ruleResult.id);\n if (!res) {\n mergedResult.push(ruleResult);\n } else {\n if (ruleResult.nodes.length) {\n spliceNodes(res.nodes, ruleResult.nodes);\n }\n }\n });\n });\n mergedResult.forEach(function(result) {\n if (result.nodes) {\n result.nodes.sort(function(nodeA, nodeB) {\n return nodeIndexSort(nodeA.node.nodeIndexes, nodeB.node.nodeIndexes);\n });\n }\n });\n return mergedResult;\n }\n function nodeIndexSort() {\n var nodeIndexesA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var nodeIndexesB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var length = Math.max(nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA.length, nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB.length);\n for (var _i3 = 0; _i3 < length; _i3++) {\n var indexA = nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA[_i3];\n var indexB = nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB[_i3];\n if (typeof indexA !== 'number' || isNaN(indexA)) {\n return _i3 === 0 ? 1 : -1;\n }\n if (typeof indexB !== 'number' || isNaN(indexB)) {\n return _i3 === 0 ? -1 : 1;\n }\n if (indexA !== indexB) {\n return indexA - indexB;\n }\n }\n return 0;\n }\n var merge_results_default = mergeResults;\n function getFrameSpec(frameResult, options) {\n if (frameResult.frameElement) {\n return new dq_element_default(frameResult.frameElement, options);\n } else if (frameResult.frameSpec) {\n return frameResult.frameSpec;\n }\n return null;\n }\n function _collectResultsFromFrames(parentContent, options, command, parameter, resolve, reject) {\n var q = queue_default();\n var frames = parentContent.frames;\n frames.forEach(function(_ref6) {\n var frameElement = _ref6.node, context = _objectWithoutProperties(_ref6, _excluded);\n q.defer(function(res, rej) {\n var params = {\n options: options,\n command: command,\n parameter: parameter,\n context: context\n };\n function callback(results) {\n if (!results) {\n return res(null);\n }\n return res({\n results: results,\n frameElement: frameElement\n });\n }\n _sendCommandToFrame(frameElement, params, callback, rej);\n });\n });\n q.then(function(data2) {\n resolve(merge_results_default(data2, options));\n })['catch'](reject);\n }\n function _contains(vNode, otherVNode) {\n if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') {\n return vNode.actualNode.contains(otherVNode.actualNode);\n }\n do {\n if (vNode === otherVNode) {\n return true;\n } else if (otherVNode.nodeIndex < vNode.nodeIndex) {\n return false;\n }\n otherVNode = otherVNode.parent;\n } while (otherVNode);\n return false;\n }\n function deepMerge() {\n var target = {};\n for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n sources.forEach(function(source) {\n if (!source || _typeof(source) !== 'object' || Array.isArray(source)) {\n return;\n }\n for (var _i4 = 0, _Object$keys = Object.keys(source); _i4 < _Object$keys.length; _i4++) {\n var key = _Object$keys[_i4];\n if (!target.hasOwnProperty(key) || _typeof(source[key]) !== 'object' || Array.isArray(target[key])) {\n target[key] = source[key];\n } else {\n target[key] = deepMerge(target[key], source[key]);\n }\n }\n });\n return target;\n }\n var deep_merge_default = deepMerge;\n function extendMetaData(to, from) {\n Object.assign(to, from);\n Object.keys(from).filter(function(prop) {\n return typeof from[prop] === 'function';\n }).forEach(function(prop) {\n to[prop] = null;\n try {\n to[prop] = from[prop](to);\n } catch (e) {}\n });\n }\n var extend_meta_data_default = extendMetaData;\n var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ];\n function isShadowRoot(node) {\n if (node.shadowRoot) {\n var nodeName2 = node.nodeName.toLowerCase();\n if (possibleShadowRoots.includes(nodeName2) || /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(nodeName2)) {\n return true;\n }\n }\n return false;\n }\n var is_shadow_root_default = isShadowRoot;\n var dom_exports = {};\n __export(dom_exports, {\n createGrid: function createGrid() {\n return _createGrid;\n },\n findElmsInContext: function findElmsInContext() {\n return find_elms_in_context_default;\n },\n findNearbyElms: function findNearbyElms() {\n return _findNearbyElms;\n },\n findUp: function findUp() {\n return find_up_default;\n },\n findUpVirtual: function findUpVirtual() {\n return find_up_virtual_default;\n },\n focusDisabled: function focusDisabled() {\n return focus_disabled_default;\n },\n getComposedParent: function getComposedParent() {\n return get_composed_parent_default;\n },\n getElementByReference: function getElementByReference() {\n return get_element_by_reference_default;\n },\n getElementCoordinates: function getElementCoordinates() {\n return get_element_coordinates_default;\n },\n getElementStack: function getElementStack() {\n return get_element_stack_default;\n },\n getModalDialog: function getModalDialog() {\n return get_modal_dialog_default;\n },\n getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {\n return get_overflow_hidden_ancestors_default;\n },\n getRootNode: function getRootNode() {\n return get_root_node_default2;\n },\n getScrollOffset: function getScrollOffset() {\n return get_scroll_offset_default;\n },\n getTabbableElements: function getTabbableElements() {\n return get_tabbable_elements_default;\n },\n getTextElementStack: function getTextElementStack() {\n return get_text_element_stack_default;\n },\n getViewportSize: function getViewportSize() {\n return get_viewport_size_default;\n },\n getVisibleChildTextRects: function getVisibleChildTextRects() {\n return get_visible_child_text_rects_default;\n },\n hasContent: function hasContent() {\n return has_content_default;\n },\n hasContentVirtual: function hasContentVirtual() {\n return has_content_virtual_default;\n },\n hasLangText: function hasLangText() {\n return _hasLangText;\n },\n idrefs: function idrefs() {\n return idrefs_default;\n },\n insertedIntoFocusOrder: function insertedIntoFocusOrder() {\n return inserted_into_focus_order_default;\n },\n isCurrentPageLink: function isCurrentPageLink() {\n return _isCurrentPageLink;\n },\n isFocusable: function isFocusable() {\n return _isFocusable;\n },\n isHTML5: function isHTML5() {\n return is_html5_default;\n },\n isHiddenForEveryone: function isHiddenForEveryone() {\n return _isHiddenForEveryone;\n },\n isHiddenWithCSS: function isHiddenWithCSS() {\n return is_hidden_with_css_default;\n },\n isInTabOrder: function isInTabOrder() {\n return _isInTabOrder;\n },\n isInTextBlock: function isInTextBlock() {\n return is_in_text_block_default;\n },\n isInert: function isInert() {\n return _isInert;\n },\n isModalOpen: function isModalOpen() {\n return is_modal_open_default;\n },\n isMultiline: function isMultiline() {\n return _isMultiline;\n },\n isNativelyFocusable: function isNativelyFocusable() {\n return is_natively_focusable_default;\n },\n isNode: function isNode() {\n return is_node_default;\n },\n isOffscreen: function isOffscreen() {\n return is_offscreen_default;\n },\n isOpaque: function isOpaque() {\n return is_opaque_default;\n },\n isSkipLink: function isSkipLink() {\n return _isSkipLink;\n },\n isVisible: function isVisible() {\n return is_visible_default;\n },\n isVisibleOnScreen: function isVisibleOnScreen() {\n return _isVisibleOnScreen;\n },\n isVisibleToScreenReaders: function isVisibleToScreenReaders() {\n return _isVisibleToScreenReaders;\n },\n isVisualContent: function isVisualContent() {\n return is_visual_content_default;\n },\n reduceToElementsBelowFloating: function reduceToElementsBelowFloating() {\n return reduce_to_elements_below_floating_default;\n },\n shadowElementsFromPoint: function shadowElementsFromPoint() {\n return shadow_elements_from_point_default;\n },\n urlPropsFromAttribute: function urlPropsFromAttribute() {\n return url_props_from_attribute_default;\n },\n visuallyContains: function visuallyContains() {\n return _visuallyContains;\n },\n visuallyOverlaps: function visuallyOverlaps() {\n return visually_overlaps_default;\n },\n visuallySort: function visuallySort() {\n return _visuallySort;\n }\n });\n function getRootNode(node) {\n var doc = node.getRootNode && node.getRootNode() || document;\n if (doc === node) {\n doc = document;\n }\n return doc;\n }\n var get_root_node_default = getRootNode;\n var get_root_node_default2 = get_root_node_default;\n function findElmsInContext(_ref7) {\n var context = _ref7.context, value = _ref7.value, attr = _ref7.attr, _ref7$elm = _ref7.elm, elm = _ref7$elm === void 0 ? '' : _ref7$elm;\n var root;\n var escapedValue = escape_selector_default(value);\n if (context.nodeType === 9 || context.nodeType === 11) {\n root = context;\n } else {\n root = get_root_node_default2(context);\n }\n return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']'));\n }\n var find_elms_in_context_default = findElmsInContext;\n function findUpVirtual(element, target) {\n var parent;\n parent = element.actualNode;\n if (!element.shadowId && typeof element.actualNode.closest === 'function') {\n var match = element.actualNode.closest(target);\n if (match) {\n return match;\n }\n return null;\n }\n do {\n parent = parent.assignedSlot ? parent.assignedSlot : parent.parentNode;\n if (parent && parent.nodeType === 11) {\n parent = parent.host;\n }\n } while (parent && !element_matches_default(parent, target) && parent !== document.documentElement);\n if (!parent) {\n return null;\n }\n if (!element_matches_default(parent, target)) {\n return null;\n }\n return parent;\n }\n var find_up_virtual_default = findUpVirtual;\n function findUp(element, target) {\n return find_up_virtual_default(get_node_from_tree_default(element), target);\n }\n var find_up_default = findUp;\n var import_memoizee = __toModule(require_memoizee());\n axe._memoizedFns = [];\n function memoizeImplementation(fn) {\n var memoized = (0, import_memoizee['default'])(fn);\n axe._memoizedFns.push(memoized);\n return memoized;\n }\n var memoize_default = memoizeImplementation;\n function _rectsOverlap(rect1, rect2) {\n return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);\n }\n var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) {\n var ancestors = [];\n if (!vNode) {\n return ancestors;\n }\n var overflow = vNode.getComputedStylePropertyValue('overflow');\n if (overflow === 'hidden') {\n ancestors.push(vNode);\n }\n return ancestors.concat(getOverflowHiddenAncestors(vNode.parent));\n });\n var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors;\n var clipRegex = /rect\\s*\\(([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px\\s*\\)/;\n var clipPathRegex = /(\\w+)\\((\\d+)/;\n function nativelyHidden(vNode) {\n return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName);\n }\n function displayHidden(vNode) {\n if (vNode.props.nodeName === 'area') {\n return false;\n }\n return vNode.getComputedStylePropertyValue('display') === 'none';\n }\n function visibilityHidden(vNode) {\n var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref8.isAncestor;\n return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility'));\n }\n function contentVisibiltyHidden(vNode) {\n var _ref9 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref9.isAncestor;\n return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden';\n }\n function ariaHidden(vNode) {\n return vNode.attr('aria-hidden') === 'true';\n }\n function opacityHidden(vNode) {\n return vNode.getComputedStylePropertyValue('opacity') === '0';\n }\n function scrollHidden(vNode) {\n var scroll = _getScroll(vNode.actualNode);\n var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));\n var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));\n return !!scroll && (elHeight === 0 || elWidth === 0);\n }\n function overflowHidden(vNode) {\n var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref10.isAncestor;\n if (isAncestor) {\n return false;\n }\n var rect = vNode.boundingClientRect;\n var nodes = get_overflow_hidden_ancestors_default(vNode);\n if (!nodes.length) {\n return false;\n }\n return nodes.some(function(node) {\n var nodeRect = node.boundingClientRect;\n if (nodeRect.width < 2 || nodeRect.height < 2) {\n return true;\n }\n return !_rectsOverlap(rect, nodeRect);\n });\n }\n function clipHidden(vNode) {\n var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex);\n var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex);\n if (matchesClip && matchesClip.length === 5) {\n var position = vNode.getComputedStylePropertyValue('position');\n if ([ 'fixed', 'absolute' ].includes(position)) {\n return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;\n }\n }\n if (matchesClipPath) {\n var type = matchesClipPath[1];\n var value = parseInt(matchesClipPath[2], 10);\n switch (type) {\n case 'inset':\n return value >= 50;\n\n case 'circle':\n return value === 0;\n\n default:\n }\n }\n return false;\n }\n function areaHidden(vNode, visibleFunction) {\n var mapEl = closest_default(vNode, 'map');\n if (!mapEl) {\n return true;\n }\n var mapElName = mapEl.attr('name');\n if (!mapElName) {\n return true;\n }\n var mapElRootNode = get_root_node_default(vNode.actualNode);\n if (!mapElRootNode || mapElRootNode.nodeType !== 9) {\n return true;\n }\n var refs = query_selector_all_default(axe._tree, 'img[usemap=\"#'.concat(escape_selector_default(mapElName), '\"]'));\n if (!refs || !refs.length) {\n return true;\n }\n return refs.some(function(ref) {\n return !visibleFunction(ref);\n });\n }\n function detailsHidden(vNode) {\n var _vNode$parent;\n if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') {\n return false;\n }\n if (vNode.props.nodeName === 'summary') {\n var firstSummary = vNode.parent.children.find(function(node) {\n return node.props.nodeName === 'summary';\n });\n if (firstSummary === vNode) {\n return false;\n }\n }\n return !vNode.parent.hasAttr('open');\n }\n var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ];\n function _isHiddenForEveryone(vNode) {\n var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref11.skipAncestors, _ref11$isAncestor = _ref11.isAncestor, isAncestor = _ref11$isAncestor === void 0 ? false : _ref11$isAncestor;\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n if (skipAncestors) {\n return isHiddenSelf(vNode, isAncestor);\n }\n return isHiddenAncestors(vNode, isAncestor);\n }\n var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) {\n if (nativelyHidden(vNode)) {\n return true;\n }\n if (!vNode.actualNode) {\n return false;\n }\n if (hiddenMethods.some(function(method) {\n return method(vNode, {\n isAncestor: isAncestor\n });\n })) {\n return true;\n }\n if (!vNode.actualNode.isConnected) {\n return true;\n }\n return false;\n });\n var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) {\n if (isHiddenSelf(vNode, isAncestor)) {\n return true;\n }\n if (!vNode.parent) {\n return false;\n }\n return isHiddenAncestors(vNode.parent, true);\n });\n function getComposedParent(element) {\n if (element.assignedSlot) {\n return getComposedParent(element.assignedSlot);\n } else if (element.parentNode) {\n var parentNode = element.parentNode;\n if (parentNode.nodeType === 1) {\n return parentNode;\n } else if (parentNode.host) {\n return parentNode.host;\n }\n }\n return null;\n }\n var get_composed_parent_default = getComposedParent;\n function getScrollOffset(element) {\n if (!element.nodeType && element.document) {\n element = element.document;\n }\n if (element.nodeType === 9) {\n var docElement = element.documentElement, body = element.body;\n return {\n left: docElement && docElement.scrollLeft || body && body.scrollLeft || 0,\n top: docElement && docElement.scrollTop || body && body.scrollTop || 0\n };\n }\n return {\n left: element.scrollLeft,\n top: element.scrollTop\n };\n }\n var get_scroll_offset_default = getScrollOffset;\n function getElementCoordinates(element) {\n var scrollOffset = get_scroll_offset_default(document), xOffset = scrollOffset.left, yOffset = scrollOffset.top, coords = element.getBoundingClientRect();\n return {\n top: coords.top + yOffset,\n right: coords.right + xOffset,\n bottom: coords.bottom + yOffset,\n left: coords.left + xOffset,\n width: coords.right - coords.left,\n height: coords.bottom - coords.top\n };\n }\n var get_element_coordinates_default = getElementCoordinates;\n function getViewportSize(win) {\n var doc = win.document;\n var docElement = doc.documentElement;\n if (win.innerWidth) {\n return {\n width: win.innerWidth,\n height: win.innerHeight\n };\n }\n if (docElement) {\n return {\n width: docElement.clientWidth,\n height: docElement.clientHeight\n };\n }\n var body = doc.body;\n return {\n width: body.clientWidth,\n height: body.clientHeight\n };\n }\n var get_viewport_size_default = getViewportSize;\n function noParentScrolled(element, offset) {\n element = get_composed_parent_default(element);\n while (element && element.nodeName.toLowerCase() !== 'html') {\n if (element.scrollTop) {\n offset += element.scrollTop;\n if (offset >= 0) {\n return false;\n }\n }\n element = get_composed_parent_default(element);\n }\n return true;\n }\n function isOffscreen(element) {\n var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref12.isAncestor;\n if (isAncestor) {\n return false;\n }\n element = element instanceof abstract_virtual_node_default ? element.actualNode : element;\n if (!element) {\n return void 0;\n }\n var leftBoundary;\n var docElement = document.documentElement;\n var styl = window.getComputedStyle(element);\n var dir = window.getComputedStyle(document.body || docElement).getPropertyValue('direction');\n var coords = get_element_coordinates_default(element);\n if (coords.bottom < 0 && (noParentScrolled(element, coords.bottom) || styl.position === 'absolute')) {\n return true;\n }\n if (coords.left === 0 && coords.right === 0) {\n return false;\n }\n if (dir === 'ltr') {\n if (coords.right <= 0) {\n return true;\n }\n } else {\n leftBoundary = Math.max(docElement.scrollWidth, get_viewport_size_default(window).width);\n if (coords.left >= leftBoundary) {\n return true;\n }\n }\n return false;\n }\n var is_offscreen_default = isOffscreen;\n var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ];\n function _isVisibleOnScreen(vNode) {\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n return isVisibleOnScreenVirtual(vNode);\n }\n var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) {\n if (vNode.actualNode && vNode.props.nodeName === 'area') {\n return !areaHidden(vNode, isVisibleOnScreenVirtual);\n }\n if (_isHiddenForEveryone(vNode, {\n skipAncestors: true,\n isAncestor: isAncestor\n })) {\n return false;\n }\n if (vNode.actualNode && hiddenMethods2.some(function(method) {\n return method(vNode, {\n isAncestor: isAncestor\n });\n })) {\n return false;\n }\n if (!vNode.parent) {\n return true;\n }\n return isVisibleOnScreenVirtual(vNode.parent, true);\n });\n function _getBoundingRect(rectA, rectB) {\n var top = Math.min(rectA.top, rectB.top);\n var right = Math.max(rectA.right, rectB.right);\n var bottom = Math.max(rectA.bottom, rectB.bottom);\n var left = Math.min(rectA.left, rectB.left);\n return new window.DOMRect(left, top, right - left, bottom - top);\n }\n function _isPointInRect(_ref13, _ref14) {\n var x = _ref13.x, y = _ref13.y;\n var top = _ref14.top, right = _ref14.right, bottom = _ref14.bottom, left = _ref14.left;\n return y >= top && x <= right && y <= bottom && x >= left;\n }\n var ROOT_ORDER = 0;\n var DEFAULT_ORDER = .1;\n var FLOAT_ORDER = .2;\n var POSITION_STATIC_ORDER = .3;\n var nodeIndex = 0;\n function _createGrid() {\n var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;\n var rootGrid = arguments.length > 1 ? arguments[1] : undefined;\n var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n if (cache_default.get('gridCreated') && !parentVNode) {\n return constants_default.gridSize;\n }\n cache_default.set('gridCreated', true);\n if (!parentVNode) {\n var _rootGrid;\n var vNode = get_node_from_tree_default(document.documentElement);\n if (!vNode) {\n vNode = new virtual_node_default(document.documentElement);\n }\n nodeIndex = 0;\n vNode._stackingOrder = [ createContext(ROOT_ORDER, null) ];\n (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();\n addNodeToGrid(rootGrid, vNode);\n if (_getScroll(vNode.actualNode)) {\n var subGrid = new Grid(vNode);\n vNode._subGrid = subGrid;\n }\n }\n var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false);\n var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode;\n while (node) {\n var _vNode = get_node_from_tree_default(node);\n if (_vNode && _vNode.parent) {\n parentVNode = _vNode.parent;\n } else if (node.assignedSlot) {\n parentVNode = get_node_from_tree_default(node.assignedSlot);\n } else if (node.parentElement) {\n parentVNode = get_node_from_tree_default(node.parentElement);\n } else if (node.parentNode && get_node_from_tree_default(node.parentNode)) {\n parentVNode = get_node_from_tree_default(node.parentNode);\n }\n if (!_vNode) {\n _vNode = new axe.VirtualNode(node, parentVNode);\n }\n _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);\n var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);\n var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;\n if (_getScroll(_vNode.actualNode)) {\n var _subGrid = new Grid(_vNode);\n _vNode._subGrid = _subGrid;\n }\n var rect = _vNode.boundingClientRect;\n if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) {\n addNodeToGrid(grid, _vNode);\n }\n if (is_shadow_root_default(node)) {\n _createGrid(node.shadowRoot, grid, _vNode);\n }\n node = treeWalker.nextNode();\n }\n return constants_default.gridSize;\n }\n function isStackingContext(vNode, parentVNode) {\n var position = vNode.getComputedStylePropertyValue('position');\n var zIndex = vNode.getComputedStylePropertyValue('z-index');\n if (position === 'fixed' || position === 'sticky') {\n return true;\n }\n if (zIndex !== 'auto' && position !== 'static') {\n return true;\n }\n if (vNode.getComputedStylePropertyValue('opacity') !== '1') {\n return true;\n }\n var transform = vNode.getComputedStylePropertyValue('-webkit-transform') || vNode.getComputedStylePropertyValue('-ms-transform') || vNode.getComputedStylePropertyValue('transform') || 'none';\n if (transform !== 'none') {\n return true;\n }\n var mixBlendMode = vNode.getComputedStylePropertyValue('mix-blend-mode');\n if (mixBlendMode && mixBlendMode !== 'normal') {\n return true;\n }\n var filter = vNode.getComputedStylePropertyValue('filter');\n if (filter && filter !== 'none') {\n return true;\n }\n var perspective = vNode.getComputedStylePropertyValue('perspective');\n if (perspective && perspective !== 'none') {\n return true;\n }\n var clipPath = vNode.getComputedStylePropertyValue('clip-path');\n if (clipPath && clipPath !== 'none') {\n return true;\n }\n var mask = vNode.getComputedStylePropertyValue('-webkit-mask') || vNode.getComputedStylePropertyValue('mask') || 'none';\n if (mask !== 'none') {\n return true;\n }\n var maskImage = vNode.getComputedStylePropertyValue('-webkit-mask-image') || vNode.getComputedStylePropertyValue('mask-image') || 'none';\n if (maskImage !== 'none') {\n return true;\n }\n var maskBorder = vNode.getComputedStylePropertyValue('-webkit-mask-border') || vNode.getComputedStylePropertyValue('mask-border') || 'none';\n if (maskBorder !== 'none') {\n return true;\n }\n if (vNode.getComputedStylePropertyValue('isolation') === 'isolate') {\n return true;\n }\n var willChange = vNode.getComputedStylePropertyValue('will-change');\n if (willChange === 'transform' || willChange === 'opacity') {\n return true;\n }\n if (vNode.getComputedStylePropertyValue('-webkit-overflow-scrolling') === 'touch') {\n return true;\n }\n var contain = vNode.getComputedStylePropertyValue('contain');\n if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) {\n return true;\n }\n if (zIndex !== 'auto' && isFlexOrGridContainer(parentVNode)) {\n return true;\n }\n return false;\n }\n function isFlexOrGridContainer(vNode) {\n if (!vNode) {\n return false;\n }\n var display = vNode.getComputedStylePropertyValue('display');\n return [ 'flex', 'inline-flex', 'grid', 'inline-grid' ].includes(display);\n }\n function createStackingOrder(vNode, parentVNode, nodeIndex3) {\n var stackingOrder = parentVNode._stackingOrder.slice();\n if (!isStackingContext(vNode, parentVNode)) {\n if (vNode.getComputedStylePropertyValue('position') !== 'static') {\n stackingOrder.push(createContext(POSITION_STATIC_ORDER, vNode));\n } else if (vNode.getComputedStylePropertyValue('float') !== 'none') {\n stackingOrder.push(createContext(FLOAT_ORDER, vNode));\n }\n return stackingOrder;\n }\n var index = stackingOrder.findIndex(function(_ref15) {\n var value = _ref15.value;\n return [ ROOT_ORDER, FLOAT_ORDER, POSITION_STATIC_ORDER ].includes(value);\n });\n if (index !== -1) {\n stackingOrder.splice(index, stackingOrder.length - index);\n }\n var zIndex = getRealZIndex(vNode, parentVNode);\n if (![ 'auto', '0' ].includes(zIndex)) {\n stackingOrder.push(createContext(parseInt(zIndex), vNode));\n return stackingOrder;\n }\n var _float = nodeIndex3.toString();\n while (_float.length < 10) {\n _float = '0' + _float;\n }\n stackingOrder.push(createContext(parseFloat(''.concat(DEFAULT_ORDER).concat(_float)), vNode));\n return stackingOrder;\n }\n function createContext(value, vNode) {\n return {\n value: value,\n vNode: vNode\n };\n }\n function getRealZIndex(vNode, parentVNode) {\n var position = vNode.getComputedStylePropertyValue('position');\n if (position === 'static' && !isFlexOrGridContainer(parentVNode)) {\n return 'auto';\n }\n return vNode.getComputedStylePropertyValue('z-index');\n }\n function findScrollRegionParent(vNode, parentVNode) {\n var scrollRegionParent = null;\n var checkedNodes = [ vNode ];\n while (parentVNode) {\n if (_getScroll(parentVNode.actualNode)) {\n scrollRegionParent = parentVNode;\n break;\n }\n if (parentVNode._scrollRegionParent) {\n scrollRegionParent = parentVNode._scrollRegionParent;\n break;\n }\n checkedNodes.push(parentVNode);\n parentVNode = get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode);\n }\n checkedNodes.forEach(function(vNode2) {\n return vNode2._scrollRegionParent = scrollRegionParent;\n });\n return scrollRegionParent;\n }\n function addNodeToGrid(grid, vNode) {\n vNode.clientRects.forEach(function(rect) {\n var _vNode$_grid;\n (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid;\n var gridRect = grid.getGridPositionOfRect(rect);\n grid.loopGridPosition(gridRect, function(gridCell) {\n if (!gridCell.includes(vNode)) {\n gridCell.push(vNode);\n }\n });\n });\n }\n var Grid = function() {\n function Grid() {\n var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n _classCallCheck(this, Grid);\n this.container = container;\n this.cells = [];\n }\n _createClass(Grid, [ {\n key: 'toGridIndex',\n value: function toGridIndex(num) {\n return Math.floor(num / constants_default.gridSize);\n }\n }, {\n key: 'getCellFromPoint',\n value: function getCellFromPoint(_ref16) {\n var _this$cells, _row;\n var x = _ref16.x, y = _ref16.y;\n assert_default(this.boundaries, 'Grid does not have cells added');\n var rowIndex = this.toGridIndex(y);\n var colIndex = this.toGridIndex(x);\n assert_default(_isPointInRect({\n y: rowIndex,\n x: colIndex\n }, this.boundaries), 'Element midpoint exceeds the grid bounds');\n var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : [];\n return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : [];\n }\n }, {\n key: 'loopGridPosition',\n value: function loopGridPosition(gridPosition, callback) {\n var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom;\n if (this.boundaries) {\n gridPosition = _getBoundingRect(this.boundaries, gridPosition);\n }\n this.boundaries = gridPosition;\n loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) {\n loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) {\n callback(gridCell, {\n row: row,\n col: col\n });\n });\n });\n }\n }, {\n key: 'getGridPositionOfRect',\n value: function getGridPositionOfRect(_ref17) {\n var top = _ref17.top, right = _ref17.right, bottom = _ref17.bottom, left = _ref17.left;\n var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n top = this.toGridIndex(top - margin);\n right = this.toGridIndex(right + margin - 1);\n bottom = this.toGridIndex(bottom + margin - 1);\n left = this.toGridIndex(left - margin);\n return new window.DOMRect(left, top, right - left, bottom - top);\n }\n } ]);\n return Grid;\n }();\n function loopNegativeIndexMatrix(matrix, start, end, callback) {\n var _matrix$_negativeInde;\n (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0;\n if (start < matrix._negativeIndex) {\n for (var _i5 = 0; _i5 < matrix._negativeIndex - start; _i5++) {\n matrix.splice(0, 0, []);\n }\n matrix._negativeIndex = start;\n }\n var startOffset = start - matrix._negativeIndex;\n var endOffset = end - matrix._negativeIndex;\n for (var index = startOffset; index <= endOffset; index++) {\n var _index, _matrix$_index;\n (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = [];\n callback(matrix[index], index + matrix._negativeIndex);\n }\n }\n function _findNearbyElms(vNode) {\n var _vNode$_grid2, _vNode$_grid2$cells;\n var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n _createGrid();\n if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2$cells = _vNode$_grid2.cells) !== null && _vNode$_grid2$cells !== void 0 && _vNode$_grid2$cells.length)) {\n return [];\n }\n var rect = vNode.boundingClientRect;\n var grid = vNode._grid;\n var selfIsFixed = hasFixedPosition(vNode);\n var gridPosition = grid.getGridPositionOfRect(rect, margin);\n var neighbors = [];\n grid.loopGridPosition(gridPosition, function(vNeighbors) {\n var _iterator2 = _createForOfIteratorHelper(vNeighbors), _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {\n var vNeighbor = _step2.value;\n if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) {\n neighbors.push(vNeighbor);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n });\n return neighbors;\n }\n var hasFixedPosition = memoize_default(function(vNode) {\n if (!vNode) {\n return false;\n }\n if (vNode.getComputedStylePropertyValue('position') === 'fixed') {\n return true;\n }\n return hasFixedPosition(vNode.parent);\n });\n function _getIntersectionRect(rect1, rect2) {\n var leftX = Math.max(rect1.left, rect2.left);\n var rightX = Math.min(rect1.right, rect2.right);\n var topY = Math.max(rect1.top, rect2.top);\n var bottomY = Math.min(rect1.bottom, rect2.bottom);\n if (leftX >= rightX || topY >= bottomY) {\n return null;\n }\n return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);\n }\n var getModalDialog = memoize_default(function getModalDialogMemoized() {\n var _dialogs$find;\n if (!axe._tree) {\n return null;\n }\n var dialogs = query_selector_all_filter_default(axe._tree[0], 'dialog[open]', function(vNode) {\n var rect = vNode.boundingClientRect;\n var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);\n return stack.includes(vNode.actualNode) && _isVisibleOnScreen(vNode);\n });\n if (!dialogs.length) {\n return null;\n }\n var modalDialog = dialogs.find(function(dialog) {\n var rect = dialog.boundingClientRect;\n var stack = document.elementsFromPoint(rect.left - 10, rect.top - 10);\n return stack.includes(dialog.actualNode);\n });\n if (modalDialog) {\n return modalDialog;\n }\n return (_dialogs$find = dialogs.find(function(dialog) {\n var _getNodeFromGrid;\n var _ref18 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref18.vNode, rect = _ref18.rect;\n if (!vNode) {\n return false;\n }\n var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);\n return !stack.includes(vNode.actualNode);\n })) !== null && _dialogs$find !== void 0 ? _dialogs$find : null;\n });\n var get_modal_dialog_default = getModalDialog;\n function getNodeFromGrid(dialog) {\n _createGrid();\n var grid = axe._tree[0]._grid;\n var viewRect = new window.DOMRect(0, 0, window.innerWidth, window.innerHeight);\n if (!grid) {\n return;\n }\n for (var row = 0; row < grid.cells.length; row++) {\n var cols = grid.cells[row];\n if (!cols) {\n continue;\n }\n for (var col = 0; col < cols.length; col++) {\n var cells = cols[col];\n if (!cells) {\n continue;\n }\n for (var _i6 = 0; _i6 < cells.length; _i6++) {\n var vNode = cells[_i6];\n var rect = vNode.boundingClientRect;\n var intersection = _getIntersectionRect(rect, viewRect);\n if (vNode.props.nodeName !== 'html' && vNode !== dialog && vNode.getComputedStylePropertyValue('pointer-events') !== 'none' && intersection) {\n return {\n vNode: vNode,\n rect: intersection\n };\n }\n }\n }\n }\n }\n function _isInert(vNode) {\n var _ref19 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref19.skipAncestors, isAncestor = _ref19.isAncestor;\n if (skipAncestors) {\n return isInertSelf(vNode, isAncestor);\n }\n return isInertAncestors(vNode, isAncestor);\n }\n var isInertSelf = memoize_default(function isInertSelfMemoized(vNode, isAncestor) {\n if (vNode.hasAttr('inert')) {\n return true;\n }\n if (!isAncestor && vNode.actualNode) {\n var modalDialog = get_modal_dialog_default();\n if (modalDialog && !_contains(modalDialog, vNode)) {\n return true;\n }\n }\n return false;\n });\n var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode, isAncestor) {\n if (isInertSelf(vNode, isAncestor)) {\n return true;\n }\n if (!vNode.parent) {\n return false;\n }\n return isInertAncestors(vNode.parent, true);\n });\n var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];\n function isDisabledAttrAllowed(nodeName2) {\n return allowedDisabledNodeNames.includes(nodeName2);\n }\n function focusDisabled(el) {\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) {\n return true;\n }\n var parentNode = vNode.parent;\n var ancestors = [];\n var fieldsetDisabled = false;\n while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {\n ancestors.push(parentNode);\n if (parentNode.props.nodeName === 'legend') {\n break;\n }\n if (parentNode._inDisabledFieldset !== void 0) {\n fieldsetDisabled = parentNode._inDisabledFieldset;\n break;\n }\n if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {\n fieldsetDisabled = true;\n }\n parentNode = parentNode.parent;\n }\n ancestors.forEach(function(ancestor) {\n return ancestor._inDisabledFieldset = fieldsetDisabled;\n });\n if (fieldsetDisabled) {\n return true;\n }\n if (vNode.props.nodeName !== 'area') {\n if (!vNode.actualNode) {\n return false;\n }\n return _isHiddenForEveryone(vNode);\n }\n return false;\n }\n var focus_disabled_default = focusDisabled;\n var angularSkipLinkRegex = /^\\/\\#/;\n var angularRouterLinkRegex = /^#[!/]/;\n function _isCurrentPageLink(anchor) {\n var _window$location;\n var href = anchor.getAttribute('href');\n if (!href || href === '#') {\n return false;\n }\n if (angularSkipLinkRegex.test(href)) {\n return true;\n }\n var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;\n if (angularRouterLinkRegex.test(hash)) {\n return false;\n }\n if (href.charAt(0) === '#') {\n return true;\n }\n if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {\n return null;\n }\n var currentPageUrl = window.location.origin + window.location.pathname;\n var url;\n if (!hostname) {\n url = window.location.origin;\n } else {\n url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');\n }\n if (!pathname) {\n url += window.location.pathname;\n } else {\n url += (pathname[0] !== '/' ? '/' : '') + pathname;\n }\n return url === currentPageUrl;\n }\n function getElementByReference(node, attr) {\n var fragment = node.getAttribute(attr);\n if (!fragment) {\n return null;\n }\n if (attr === 'href' && !_isCurrentPageLink(node)) {\n return null;\n }\n if (fragment.indexOf('#') !== -1) {\n fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));\n }\n var candidate = document.getElementById(fragment);\n if (candidate) {\n return candidate;\n }\n candidate = document.getElementsByName(fragment);\n if (candidate.length) {\n return candidate[0];\n }\n return null;\n }\n var get_element_by_reference_default = getElementByReference;\n function _visuallySort(a, b) {\n _createGrid();\n var length = Math.max(a._stackingOrder.length, b._stackingOrder.length);\n for (var _i7 = 0; _i7 < length; _i7++) {\n if (typeof b._stackingOrder[_i7] === 'undefined') {\n return -1;\n } else if (typeof a._stackingOrder[_i7] === 'undefined') {\n return 1;\n }\n if (b._stackingOrder[_i7].value > a._stackingOrder[_i7].value) {\n return 1;\n }\n if (b._stackingOrder[_i7].value < a._stackingOrder[_i7].value) {\n return -1;\n }\n }\n var aNode = a.actualNode;\n var bNode = b.actualNode;\n if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {\n var boundaries = [];\n while (aNode) {\n boundaries.push({\n root: aNode.getRootNode(),\n node: aNode\n });\n aNode = aNode.getRootNode().host;\n }\n while (bNode && !boundaries.find(function(boundary) {\n return boundary.root === bNode.getRootNode();\n })) {\n bNode = bNode.getRootNode().host;\n }\n aNode = boundaries.find(function(boundary) {\n return boundary.root === bNode.getRootNode();\n }).node;\n if (aNode === bNode) {\n return a.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;\n }\n }\n var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY;\n var docPosition = aNode.compareDocumentPosition(bNode);\n var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;\n var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;\n var aPosition = getPositionOrder(a);\n var bPosition = getPositionOrder(b);\n if (aPosition === bPosition || isDescendant) {\n return DOMOrder;\n }\n return bPosition - aPosition;\n }\n function getPositionOrder(vNode) {\n if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {\n return 2;\n }\n if (isFloated(vNode)) {\n return 1;\n }\n return 0;\n }\n function isFloated(vNode) {\n if (!vNode) {\n return false;\n }\n if (vNode._isFloated !== void 0) {\n return vNode._isFloated;\n }\n var floatStyle = vNode.getComputedStylePropertyValue('float');\n if (floatStyle !== 'none') {\n vNode._isFloated = true;\n return true;\n }\n var floated = isFloated(vNode.parent);\n vNode._isFloated = floated;\n return floated;\n }\n var math_exports = {};\n __export(math_exports, {\n getBoundingRect: function getBoundingRect() {\n return _getBoundingRect;\n },\n getIntersectionRect: function getIntersectionRect() {\n return _getIntersectionRect;\n },\n getOffset: function getOffset() {\n return _getOffset;\n },\n getRectCenter: function getRectCenter() {\n return _getRectCenter;\n },\n hasVisualOverlap: function hasVisualOverlap() {\n return _hasVisualOverlap;\n },\n isPointInRect: function isPointInRect() {\n return _isPointInRect;\n },\n rectsOverlap: function rectsOverlap() {\n return _rectsOverlap;\n },\n splitRects: function splitRects() {\n return _splitRects;\n }\n });\n function _getOffset(vNodeA, vNodeB) {\n var rectA = vNodeA.boundingClientRect;\n var rectB = vNodeB.boundingClientRect;\n var pointA = getFarthestPoint(rectA, rectB);\n var pointB = getClosestPoint(pointA, rectA, rectB);\n return pointDistance(pointA, pointB);\n }\n function getFarthestPoint(rectA, rectB) {\n var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];\n var farthestPoint = {};\n dimensionProps.forEach(function(_ref20) {\n var _ref21 = _slicedToArray(_ref20, 4), axis = _ref21[0], start = _ref21[1], end = _ref21[2], diameter = _ref21[3];\n if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {\n farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;\n return;\n }\n var centerB = rectB[start] + rectB[diameter] / 2;\n var startDistance = Math.abs(centerB - rectA[start]);\n var endDistance = Math.abs(centerB - rectA[end]);\n if (startDistance >= endDistance) {\n farthestPoint[axis] = rectA[start];\n } else {\n farthestPoint[axis] = rectA[end];\n }\n });\n return farthestPoint;\n }\n function getClosestPoint(_ref22, ownRect, adjacentRect) {\n var x = _ref22.x, y = _ref22.y;\n if (pointInRect({\n x: x,\n y: y\n }, adjacentRect)) {\n var closestPoint = getCornerInAdjacentRect({\n x: x,\n y: y\n }, ownRect, adjacentRect);\n if (closestPoint !== null) {\n return closestPoint;\n }\n adjacentRect = ownRect;\n }\n var _adjacentRect = adjacentRect, top = _adjacentRect.top, right = _adjacentRect.right, bottom = _adjacentRect.bottom, left = _adjacentRect.left;\n var xAligned = x >= left && x <= right;\n var yAligned = y >= top && y <= bottom;\n var closestX = Math.abs(left - x) < Math.abs(right - x) ? left : right;\n var closestY = Math.abs(top - y) < Math.abs(bottom - y) ? top : bottom;\n if (!xAligned && yAligned) {\n return {\n x: closestX,\n y: y\n };\n } else if (xAligned && !yAligned) {\n return {\n x: x,\n y: closestY\n };\n } else if (!xAligned && !yAligned) {\n return {\n x: closestX,\n y: closestY\n };\n }\n if (Math.abs(x - closestX) < Math.abs(y - closestY)) {\n return {\n x: closestX,\n y: y\n };\n } else {\n return {\n x: x,\n y: closestY\n };\n }\n }\n function pointDistance(pointA, pointB) {\n var xDistance = Math.abs(pointA.x - pointB.x);\n var yDistance = Math.abs(pointA.y - pointB.y);\n if (!xDistance || !yDistance) {\n return xDistance || yDistance;\n }\n return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));\n }\n function pointInRect(_ref23, rect) {\n var x = _ref23.x, y = _ref23.y;\n return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;\n }\n function getCornerInAdjacentRect(_ref24, ownRect, adjacentRect) {\n var x = _ref24.x, y = _ref24.y;\n var closestX, closestY;\n if (x === ownRect.left && ownRect.right < adjacentRect.right) {\n closestX = ownRect.right;\n } else if (x === ownRect.right && ownRect.left > adjacentRect.left) {\n closestX = ownRect.left;\n }\n if (y === ownRect.top && ownRect.bottom < adjacentRect.bottom) {\n closestY = ownRect.bottom;\n } else if (y === ownRect.bottom && ownRect.top > adjacentRect.top) {\n closestY = ownRect.top;\n }\n if (!closestX && !closestY) {\n return null;\n } else if (!closestY) {\n return {\n x: closestX,\n y: y\n };\n } else if (!closestX) {\n return {\n x: x,\n y: closestY\n };\n }\n if (Math.abs(x - closestX) < Math.abs(y - closestY)) {\n return {\n x: closestX,\n y: y\n };\n } else {\n return {\n x: x,\n y: closestY\n };\n }\n }\n function _getRectCenter(_ref25) {\n var left = _ref25.left, top = _ref25.top, width = _ref25.width, height = _ref25.height;\n return new window.DOMPoint(left + width / 2, top + height / 2);\n }\n function _hasVisualOverlap(vNodeA, vNodeB) {\n var rectA = vNodeA.boundingClientRect;\n var rectB = vNodeB.boundingClientRect;\n if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) {\n return false;\n }\n return _visuallySort(vNodeA, vNodeB) > 0;\n }\n function _splitRects(outerRect, overlapRects) {\n var uniqueRects = [ outerRect ];\n var _iterator3 = _createForOfIteratorHelper(overlapRects), _step3;\n try {\n var _loop3 = function _loop3() {\n var overlapRect = _step3.value;\n uniqueRects = uniqueRects.reduce(function(uniqueRects2, inputRect) {\n return uniqueRects2.concat(splitRect(inputRect, overlapRect));\n }, []);\n };\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {\n _loop3();\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return uniqueRects;\n }\n function splitRect(inputRect, clipRect) {\n var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right;\n var yAligned = top < clipRect.bottom && bottom > clipRect.top;\n var xAligned = left < clipRect.right && right > clipRect.left;\n var rects = [];\n if (between(clipRect.top, top, bottom) && xAligned) {\n rects.push({\n top: top,\n left: left,\n bottom: clipRect.top,\n right: right\n });\n }\n if (between(clipRect.right, left, right) && yAligned) {\n rects.push({\n top: top,\n left: clipRect.right,\n bottom: bottom,\n right: right\n });\n }\n if (between(clipRect.bottom, top, bottom) && xAligned) {\n rects.push({\n top: clipRect.bottom,\n right: right,\n bottom: bottom,\n left: left\n });\n }\n if (between(clipRect.left, left, right) && yAligned) {\n rects.push({\n top: top,\n left: left,\n bottom: bottom,\n right: clipRect.left\n });\n }\n if (rects.length === 0) {\n rects.push(inputRect);\n }\n return rects.map(computeRect);\n }\n var between = function between(num, min, max) {\n return num > min && num < max;\n };\n function computeRect(baseRect) {\n return _extends({}, baseRect, {\n x: baseRect.left,\n y: baseRect.top,\n height: baseRect.bottom - baseRect.top,\n width: baseRect.right - baseRect.left\n });\n }\n function getRectStack(grid, rect) {\n var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var center = _getRectCenter(rect);\n var gridCell = grid.getCellFromPoint(center) || [];\n var floorX = Math.floor(center.x);\n var floorY = Math.floor(center.y);\n var stack = gridCell.filter(function(gridCellNode) {\n return gridCellNode.clientRects.some(function(clientRect) {\n var rectX = clientRect.left;\n var rectY = clientRect.top;\n return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY);\n });\n });\n var gridContainer = grid.container;\n if (gridContainer) {\n stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);\n }\n if (!recursed) {\n stack = stack.sort(_visuallySort).map(function(vNode) {\n return vNode.actualNode;\n }).concat(document.documentElement).filter(function(node, index, array) {\n return array.indexOf(node) === index;\n });\n }\n return stack;\n }\n function getElementStack(node) {\n _createGrid();\n var vNode = get_node_from_tree_default(node);\n var grid = vNode._grid;\n if (!grid) {\n return [];\n }\n return getRectStack(grid, vNode.boundingClientRect);\n }\n var get_element_stack_default = getElementStack;\n function getTabbableElements(virtualNode) {\n var nodeAndDescendents = query_selector_all_default(virtualNode, '*');\n var tabbableElements = nodeAndDescendents.filter(function(vNode) {\n var isFocusable2 = vNode.isFocusable;\n var tabIndex = vNode.actualNode.getAttribute('tabindex');\n tabIndex = tabIndex && !isNaN(parseInt(tabIndex, 10)) ? parseInt(tabIndex) : null;\n return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;\n });\n return tabbableElements;\n }\n var get_tabbable_elements_default = getTabbableElements;\n var text_exports = {};\n __export(text_exports, {\n accessibleText: function accessibleText() {\n return accessible_text_default;\n },\n accessibleTextVirtual: function accessibleTextVirtual() {\n return accessible_text_virtual_default;\n },\n autocomplete: function autocomplete() {\n return _autocomplete;\n },\n formControlValue: function formControlValue() {\n return form_control_value_default;\n },\n formControlValueMethods: function formControlValueMethods() {\n return _formControlValueMethods;\n },\n hasUnicode: function hasUnicode() {\n return has_unicode_default;\n },\n isHumanInterpretable: function isHumanInterpretable() {\n return is_human_interpretable_default;\n },\n isIconLigature: function isIconLigature() {\n return is_icon_ligature_default;\n },\n isValidAutocomplete: function isValidAutocomplete() {\n return is_valid_autocomplete_default;\n },\n label: function label() {\n return label_default;\n },\n labelText: function labelText() {\n return label_text_default;\n },\n labelVirtual: function labelVirtual() {\n return label_virtual_default2;\n },\n nativeElementType: function nativeElementType() {\n return native_element_type_default;\n },\n nativeTextAlternative: function nativeTextAlternative() {\n return native_text_alternative_default;\n },\n nativeTextMethods: function nativeTextMethods() {\n return native_text_methods_default;\n },\n removeUnicode: function removeUnicode() {\n return remove_unicode_default;\n },\n sanitize: function sanitize() {\n return sanitize_default;\n },\n subtreeText: function subtreeText() {\n return subtree_text_default;\n },\n titleText: function titleText() {\n return title_text_default;\n },\n unsupported: function unsupported() {\n return unsupported_default;\n },\n visible: function visible() {\n return visible_default;\n },\n visibleTextNodes: function visibleTextNodes() {\n return visible_text_nodes_default;\n },\n visibleVirtual: function visibleVirtual() {\n return visible_virtual_default;\n }\n });\n function idrefs(node, attr) {\n node = node.actualNode || node;\n try {\n var doc = get_root_node_default2(node);\n var result = [];\n var attrValue = node.getAttribute(attr);\n if (attrValue) {\n attrValue = token_list_default(attrValue);\n for (var index = 0; index < attrValue.length; index++) {\n result.push(doc.getElementById(attrValue[index]));\n }\n }\n return result;\n } catch (e) {\n throw new TypeError('Cannot resolve id references for non-DOM nodes');\n }\n }\n var idrefs_default = idrefs;\n function accessibleText(element, context) {\n var virtualNode = get_node_from_tree_default(element);\n return accessible_text_virtual_default(virtualNode, context);\n }\n var accessible_text_default = accessibleText;\n function arialabelledbyText(vNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!(vNode instanceof abstract_virtual_node_default)) {\n if (vNode.nodeType !== 1) {\n return '';\n }\n vNode = get_node_from_tree_default(vNode);\n }\n if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) {\n return '';\n }\n var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {\n return elm;\n });\n return refs.reduce(function(accessibleName, elm) {\n var accessibleNameAdd = accessible_text_default(elm, _extends({\n inLabelledByContext: true,\n startNode: context.startNode || vNode\n }, context));\n if (!accessibleName) {\n return accessibleNameAdd;\n } else {\n return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);\n }\n }, '');\n }\n var arialabelledby_text_default = arialabelledbyText;\n function arialabelText(vNode) {\n if (!(vNode instanceof abstract_virtual_node_default)) {\n if (vNode.nodeType !== 1) {\n return '';\n }\n vNode = get_node_from_tree_default(vNode);\n }\n return vNode.attr('aria-label') || '';\n }\n var arialabel_text_default = arialabelText;\n var ariaAttrs = {\n 'aria-activedescendant': {\n type: 'idref',\n allowEmpty: true\n },\n 'aria-atomic': {\n type: 'boolean',\n global: true\n },\n 'aria-autocomplete': {\n type: 'nmtoken',\n values: [ 'inline', 'list', 'both', 'none' ]\n },\n 'aria-braillelabel': {\n type: 'string',\n global: true\n },\n 'aria-brailleroledescription': {\n type: 'string',\n global: true\n },\n 'aria-busy': {\n type: 'boolean',\n global: true\n },\n 'aria-checked': {\n type: 'nmtoken',\n values: [ 'false', 'mixed', 'true', 'undefined' ]\n },\n 'aria-colcount': {\n type: 'int',\n minValue: -1\n },\n 'aria-colindex': {\n type: 'int',\n minValue: 1\n },\n 'aria-colspan': {\n type: 'int',\n minValue: 1\n },\n 'aria-controls': {\n type: 'idrefs',\n allowEmpty: true,\n global: true\n },\n 'aria-current': {\n type: 'nmtoken',\n allowEmpty: true,\n values: [ 'page', 'step', 'location', 'date', 'time', 'true', 'false' ],\n global: true\n },\n 'aria-describedby': {\n type: 'idrefs',\n allowEmpty: true,\n global: true\n },\n 'aria-description': {\n type: 'string',\n allowEmpty: true,\n global: true\n },\n 'aria-details': {\n type: 'idref',\n allowEmpty: true,\n global: true\n },\n 'aria-disabled': {\n type: 'boolean',\n global: true\n },\n 'aria-dropeffect': {\n type: 'nmtokens',\n values: [ 'copy', 'execute', 'link', 'move', 'none', 'popup' ],\n global: true\n },\n 'aria-errormessage': {\n type: 'idref',\n allowEmpty: true,\n global: true\n },\n 'aria-expanded': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ]\n },\n 'aria-flowto': {\n type: 'idrefs',\n allowEmpty: true,\n global: true\n },\n 'aria-grabbed': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ],\n global: true\n },\n 'aria-haspopup': {\n type: 'nmtoken',\n allowEmpty: true,\n values: [ 'true', 'false', 'menu', 'listbox', 'tree', 'grid', 'dialog' ],\n global: true\n },\n 'aria-hidden': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ],\n global: true\n },\n 'aria-invalid': {\n type: 'nmtoken',\n values: [ 'grammar', 'false', 'spelling', 'true' ],\n global: true\n },\n 'aria-keyshortcuts': {\n type: 'string',\n allowEmpty: true,\n global: true\n },\n 'aria-label': {\n type: 'string',\n allowEmpty: true,\n global: true\n },\n 'aria-labelledby': {\n type: 'idrefs',\n allowEmpty: true,\n global: true\n },\n 'aria-level': {\n type: 'int',\n minValue: 1\n },\n 'aria-live': {\n type: 'nmtoken',\n values: [ 'assertive', 'off', 'polite' ],\n global: true\n },\n 'aria-modal': {\n type: 'boolean'\n },\n 'aria-multiline': {\n type: 'boolean'\n },\n 'aria-multiselectable': {\n type: 'boolean'\n },\n 'aria-orientation': {\n type: 'nmtoken',\n values: [ 'horizontal', 'undefined', 'vertical' ]\n },\n 'aria-owns': {\n type: 'idrefs',\n allowEmpty: true,\n global: true\n },\n 'aria-placeholder': {\n type: 'string',\n allowEmpty: true\n },\n 'aria-posinset': {\n type: 'int',\n minValue: 1\n },\n 'aria-pressed': {\n type: 'nmtoken',\n values: [ 'false', 'mixed', 'true', 'undefined' ]\n },\n 'aria-readonly': {\n type: 'boolean'\n },\n 'aria-relevant': {\n type: 'nmtokens',\n values: [ 'additions', 'all', 'removals', 'text' ],\n global: true\n },\n 'aria-required': {\n type: 'boolean'\n },\n 'aria-roledescription': {\n type: 'string',\n allowEmpty: true,\n global: true\n },\n 'aria-rowcount': {\n type: 'int',\n minValue: -1\n },\n 'aria-rowindex': {\n type: 'int',\n minValue: 1\n },\n 'aria-rowspan': {\n type: 'int',\n minValue: 0\n },\n 'aria-selected': {\n type: 'nmtoken',\n values: [ 'false', 'true', 'undefined' ]\n },\n 'aria-setsize': {\n type: 'int',\n minValue: -1\n },\n 'aria-sort': {\n type: 'nmtoken',\n values: [ 'ascending', 'descending', 'none', 'other' ]\n },\n 'aria-valuemax': {\n type: 'decimal'\n },\n 'aria-valuemin': {\n type: 'decimal'\n },\n 'aria-valuenow': {\n type: 'decimal'\n },\n 'aria-valuetext': {\n type: 'string'\n }\n };\n var aria_attrs_default = ariaAttrs;\n var ariaRoles = {\n alert: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n alertdialog: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded', 'aria-modal' ],\n superclassRole: [ 'alert', 'dialog' ],\n accessibleNameRequired: true\n },\n application: {\n type: 'landmark',\n allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ],\n superclassRole: [ 'structure' ],\n accessibleNameRequired: true\n },\n article: {\n type: 'structure',\n allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ],\n superclassRole: [ 'document' ]\n },\n banner: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n blockquote: {\n type: 'structure',\n superclassRole: [ 'section' ]\n },\n button: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded', 'aria-pressed' ],\n superclassRole: [ 'command' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n caption: {\n type: 'structure',\n requiredContext: [ 'figure', 'table', 'grid', 'treegrid' ],\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n cell: {\n type: 'structure',\n requiredContext: [ 'row' ],\n allowedAttrs: [ 'aria-colindex', 'aria-colspan', 'aria-rowindex', 'aria-rowspan', 'aria-expanded' ],\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n checkbox: {\n type: 'widget',\n requiredAttrs: [ 'aria-checked' ],\n allowedAttrs: [ 'aria-readonly', 'aria-required' ],\n superclassRole: [ 'input' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n code: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n columnheader: {\n type: 'structure',\n requiredContext: [ 'row' ],\n allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ],\n superclassRole: [ 'cell', 'gridcell', 'sectionhead' ],\n accessibleNameRequired: false,\n nameFromContent: true\n },\n combobox: {\n type: 'widget',\n requiredAttrs: [ 'aria-expanded', 'aria-controls' ],\n allowedAttrs: [ 'aria-owns', 'aria-autocomplete', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-orientation' ],\n superclassRole: [ 'select' ],\n accessibleNameRequired: true\n },\n command: {\n type: 'abstract',\n superclassRole: [ 'widget' ]\n },\n complementary: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n composite: {\n type: 'abstract',\n superclassRole: [ 'widget' ]\n },\n contentinfo: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n comment: {\n type: 'structure',\n allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize' ],\n superclassRole: [ 'article' ]\n },\n definition: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n deletion: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n dialog: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded', 'aria-modal' ],\n superclassRole: [ 'window' ],\n accessibleNameRequired: true\n },\n directory: {\n type: 'structure',\n deprecated: true,\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'list' ],\n nameFromContent: true\n },\n document: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'structure' ]\n },\n emphasis: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n feed: {\n type: 'structure',\n requiredOwned: [ 'article' ],\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'list' ]\n },\n figure: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n form: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n grid: {\n type: 'composite',\n requiredOwned: [ 'rowgroup', 'row' ],\n allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-rowcount' ],\n superclassRole: [ 'composite', 'table' ],\n accessibleNameRequired: false\n },\n gridcell: {\n type: 'widget',\n requiredContext: [ 'row' ],\n allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-selected', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan' ],\n superclassRole: [ 'cell', 'widget' ],\n nameFromContent: true\n },\n group: {\n type: 'structure',\n allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n heading: {\n type: 'structure',\n requiredAttrs: [ 'aria-level' ],\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'sectionhead' ],\n accessibleNameRequired: false,\n nameFromContent: true\n },\n img: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n accessibleNameRequired: true,\n childrenPresentational: true\n },\n input: {\n type: 'abstract',\n superclassRole: [ 'widget' ]\n },\n insertion: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n landmark: {\n type: 'abstract',\n superclassRole: [ 'section' ]\n },\n link: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'command' ],\n accessibleNameRequired: true,\n nameFromContent: true\n },\n list: {\n type: 'structure',\n requiredOwned: [ 'listitem' ],\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n listbox: {\n type: 'widget',\n requiredOwned: [ 'group', 'option' ],\n allowedAttrs: [ 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'select' ],\n accessibleNameRequired: true\n },\n listitem: {\n type: 'structure',\n requiredContext: [ 'list' ],\n allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded' ],\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n log: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n main: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n marquee: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n math: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n childrenPresentational: true\n },\n menu: {\n type: 'composite',\n requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],\n allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'select' ]\n },\n menubar: {\n type: 'composite',\n requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],\n allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'menu' ]\n },\n menuitem: {\n type: 'widget',\n requiredContext: [ 'menu', 'menubar', 'group' ],\n allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ],\n superclassRole: [ 'command' ],\n accessibleNameRequired: true,\n nameFromContent: true\n },\n menuitemcheckbox: {\n type: 'widget',\n requiredContext: [ 'menu', 'menubar', 'group' ],\n requiredAttrs: [ 'aria-checked' ],\n allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],\n superclassRole: [ 'checkbox', 'menuitem' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n menuitemradio: {\n type: 'widget',\n requiredContext: [ 'menu', 'menubar', 'group' ],\n requiredAttrs: [ 'aria-checked' ],\n allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],\n superclassRole: [ 'menuitemcheckbox', 'radio' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n meter: {\n type: 'structure',\n requiredAttrs: [ 'aria-valuenow' ],\n allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],\n superclassRole: [ 'range' ],\n accessibleNameRequired: true,\n childrenPresentational: true\n },\n mark: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n navigation: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n none: {\n type: 'structure',\n superclassRole: [ 'structure' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n note: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n option: {\n type: 'widget',\n requiredContext: [ 'group', 'listbox' ],\n allowedAttrs: [ 'aria-selected', 'aria-checked', 'aria-posinset', 'aria-setsize' ],\n superclassRole: [ 'input' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n paragraph: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n presentation: {\n type: 'structure',\n superclassRole: [ 'structure' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n progressbar: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext' ],\n superclassRole: [ 'range' ],\n accessibleNameRequired: true,\n childrenPresentational: true\n },\n radio: {\n type: 'widget',\n requiredAttrs: [ 'aria-checked' ],\n allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-required' ],\n superclassRole: [ 'input' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n radiogroup: {\n type: 'composite',\n allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'select' ],\n accessibleNameRequired: false\n },\n range: {\n type: 'abstract',\n superclassRole: [ 'widget' ]\n },\n region: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ],\n accessibleNameRequired: false\n },\n roletype: {\n type: 'abstract',\n superclassRole: []\n },\n row: {\n type: 'structure',\n requiredContext: [ 'grid', 'rowgroup', 'table', 'treegrid' ],\n requiredOwned: [ 'cell', 'columnheader', 'gridcell', 'rowheader' ],\n allowedAttrs: [ 'aria-colindex', 'aria-level', 'aria-rowindex', 'aria-selected', 'aria-activedescendant', 'aria-expanded', 'aria-posinset', 'aria-setsize' ],\n superclassRole: [ 'group', 'widget' ],\n nameFromContent: true\n },\n rowgroup: {\n type: 'structure',\n requiredContext: [ 'grid', 'table', 'treegrid' ],\n requiredOwned: [ 'row' ],\n superclassRole: [ 'structure' ],\n nameFromContent: true\n },\n rowheader: {\n type: 'structure',\n requiredContext: [ 'row' ],\n allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ],\n superclassRole: [ 'cell', 'gridcell', 'sectionhead' ],\n accessibleNameRequired: false,\n nameFromContent: true\n },\n scrollbar: {\n type: 'widget',\n requiredAttrs: [ 'aria-valuenow' ],\n allowedAttrs: [ 'aria-controls', 'aria-orientation', 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],\n superclassRole: [ 'range' ],\n childrenPresentational: true\n },\n search: {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n searchbox: {\n type: 'widget',\n allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ],\n superclassRole: [ 'textbox' ],\n accessibleNameRequired: true\n },\n section: {\n type: 'abstract',\n superclassRole: [ 'structure' ],\n nameFromContent: true\n },\n sectionhead: {\n type: 'abstract',\n superclassRole: [ 'structure' ],\n nameFromContent: true\n },\n select: {\n type: 'abstract',\n superclassRole: [ 'composite', 'group' ]\n },\n separator: {\n type: 'structure',\n requiredAttrs: [ 'aria-valuenow' ],\n allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-valuetext' ],\n superclassRole: [ 'structure', 'widget' ],\n childrenPresentational: true\n },\n slider: {\n type: 'widget',\n requiredAttrs: [ 'aria-valuenow' ],\n allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-valuetext' ],\n superclassRole: [ 'input', 'range' ],\n accessibleNameRequired: true,\n childrenPresentational: true\n },\n spinbutton: {\n type: 'widget',\n allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-valuetext', 'aria-valuenow' ],\n superclassRole: [ 'composite', 'input', 'range' ],\n accessibleNameRequired: true\n },\n status: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n strong: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n structure: {\n type: 'abstract',\n superclassRole: [ 'roletype' ]\n },\n subscript: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n superscript: {\n type: 'structure',\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n switch: {\n type: 'widget',\n requiredAttrs: [ 'aria-checked' ],\n allowedAttrs: [ 'aria-readonly' ],\n superclassRole: [ 'checkbox' ],\n accessibleNameRequired: true,\n nameFromContent: true,\n childrenPresentational: true\n },\n suggestion: {\n type: 'structure',\n requiredOwned: [ 'insertion', 'deletion' ],\n superclassRole: [ 'section' ],\n prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]\n },\n tab: {\n type: 'widget',\n requiredContext: [ 'tablist' ],\n allowedAttrs: [ 'aria-posinset', 'aria-selected', 'aria-setsize', 'aria-expanded' ],\n superclassRole: [ 'sectionhead', 'widget' ],\n nameFromContent: true,\n childrenPresentational: true\n },\n table: {\n type: 'structure',\n requiredOwned: [ 'rowgroup', 'row' ],\n allowedAttrs: [ 'aria-colcount', 'aria-rowcount', 'aria-expanded' ],\n superclassRole: [ 'section' ],\n accessibleNameRequired: false,\n nameFromContent: true\n },\n tablist: {\n type: 'composite',\n requiredOwned: [ 'tab' ],\n allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ],\n superclassRole: [ 'composite' ]\n },\n tabpanel: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n accessibleNameRequired: false\n },\n term: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n text: {\n type: 'structure',\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n textbox: {\n type: 'widget',\n allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ],\n superclassRole: [ 'input' ],\n accessibleNameRequired: true\n },\n time: {\n type: 'structure',\n superclassRole: [ 'section' ]\n },\n timer: {\n type: 'widget',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'status' ]\n },\n toolbar: {\n type: 'structure',\n allowedAttrs: [ 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ],\n superclassRole: [ 'group' ],\n accessibleNameRequired: true\n },\n tooltip: {\n type: 'structure',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ],\n nameFromContent: true\n },\n tree: {\n type: 'composite',\n requiredOwned: [ 'group', 'treeitem' ],\n allowedAttrs: [ 'aria-multiselectable', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'select' ],\n accessibleNameRequired: false\n },\n treegrid: {\n type: 'composite',\n requiredOwned: [ 'rowgroup', 'row' ],\n allowedAttrs: [ 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-rowcount' ],\n superclassRole: [ 'grid', 'tree' ],\n accessibleNameRequired: false\n },\n treeitem: {\n type: 'widget',\n requiredContext: [ 'group', 'tree' ],\n allowedAttrs: [ 'aria-checked', 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-selected', 'aria-setsize' ],\n superclassRole: [ 'listitem', 'option' ],\n accessibleNameRequired: true,\n nameFromContent: true\n },\n widget: {\n type: 'abstract',\n superclassRole: [ 'roletype' ]\n },\n window: {\n type: 'abstract',\n superclassRole: [ 'roletype' ]\n }\n };\n var aria_roles_default = ariaRoles;\n var dpubRoles = {\n 'doc-abstract': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-acknowledgments': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-afterword': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-appendix': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-backlink': {\n type: 'link',\n allowedAttrs: [ 'aria-expanded' ],\n nameFromContent: true,\n superclassRole: [ 'link' ]\n },\n 'doc-biblioentry': {\n type: 'listitem',\n allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ],\n superclassRole: [ 'listitem' ],\n deprecated: true\n },\n 'doc-bibliography': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-biblioref': {\n type: 'link',\n allowedAttrs: [ 'aria-expanded' ],\n nameFromContent: true,\n superclassRole: [ 'link' ]\n },\n 'doc-chapter': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-colophon': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-conclusion': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-cover': {\n type: 'img',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'img' ]\n },\n 'doc-credit': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-credits': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-dedication': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-endnote': {\n type: 'listitem',\n allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ],\n superclassRole: [ 'listitem' ],\n deprecated: true\n },\n 'doc-endnotes': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-epigraph': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-epilogue': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-errata': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-example': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-footnote': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-foreword': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-glossary': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-glossref': {\n type: 'link',\n allowedAttrs: [ 'aria-expanded' ],\n nameFromContent: true,\n superclassRole: [ 'link' ]\n },\n 'doc-index': {\n type: 'navigation',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'navigation' ]\n },\n 'doc-introduction': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-noteref': {\n type: 'link',\n allowedAttrs: [ 'aria-expanded' ],\n nameFromContent: true,\n superclassRole: [ 'link' ]\n },\n 'doc-notice': {\n type: 'note',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'note' ]\n },\n 'doc-pagebreak': {\n type: 'separator',\n allowedAttrs: [ 'aria-expanded', 'aria-orientation' ],\n superclassRole: [ 'separator' ],\n childrenPresentational: true\n },\n 'doc-pagelist': {\n type: 'navigation',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'navigation' ]\n },\n 'doc-part': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-preface': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-prologue': {\n type: 'landmark',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'landmark' ]\n },\n 'doc-pullquote': {\n type: 'none',\n superclassRole: [ 'none' ]\n },\n 'doc-qna': {\n type: 'section',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'section' ]\n },\n 'doc-subtitle': {\n type: 'sectionhead',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'sectionhead' ]\n },\n 'doc-tip': {\n type: 'note',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'note' ]\n },\n 'doc-toc': {\n type: 'navigation',\n allowedAttrs: [ 'aria-expanded' ],\n superclassRole: [ 'navigation' ]\n }\n };\n var dpub_roles_default = dpubRoles;\n var graphicsRoles = {\n 'graphics-document': {\n type: 'structure',\n superclassRole: [ 'document' ],\n accessibleNameRequired: true\n },\n 'graphics-object': {\n type: 'structure',\n superclassRole: [ 'group' ],\n nameFromContent: true\n },\n 'graphics-symbol': {\n type: 'structure',\n superclassRole: [ 'img' ],\n accessibleNameRequired: true,\n childrenPresentational: true\n }\n };\n var graphics_roles_default = graphicsRoles;\n var htmlElms = {\n a: {\n variant: {\n href: {\n matches: '[href]',\n contentTypes: [ 'interactive', 'phrasing', 'flow' ],\n allowedRoles: [ 'button', 'checkbox', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab', 'treeitem', 'doc-backlink', 'doc-biblioref', 'doc-glossref', 'doc-noteref' ],\n namingMethods: [ 'subtreeText' ]\n },\n default: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n }\n }\n },\n abbr: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n address: {\n contentTypes: [ 'flow' ],\n allowedRoles: true\n },\n area: {\n variant: {\n href: {\n matches: '[href]',\n allowedRoles: false\n },\n default: {\n allowedRoles: [ 'button', 'link' ]\n }\n },\n contentTypes: [ 'phrasing', 'flow' ],\n namingMethods: [ 'altText' ]\n },\n article: {\n contentTypes: [ 'sectioning', 'flow' ],\n allowedRoles: [ 'feed', 'presentation', 'none', 'document', 'application', 'main', 'region' ],\n shadowRoot: true\n },\n aside: {\n contentTypes: [ 'sectioning', 'flow' ],\n allowedRoles: [ 'feed', 'note', 'presentation', 'none', 'region', 'search', 'doc-dedication', 'doc-example', 'doc-footnote', 'doc-pullquote', 'doc-tip' ]\n },\n audio: {\n variant: {\n controls: {\n matches: '[controls]',\n contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]\n },\n default: {\n contentTypes: [ 'embedded', 'phrasing', 'flow' ]\n }\n },\n allowedRoles: [ 'application' ],\n chromiumRole: 'Audio'\n },\n b: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n base: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n bdi: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n bdo: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n blockquote: {\n contentTypes: [ 'flow' ],\n allowedRoles: true,\n shadowRoot: true\n },\n body: {\n allowedRoles: false,\n shadowRoot: true\n },\n br: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: [ 'presentation', 'none' ],\n namingMethods: [ 'titleText', 'singleSpace' ]\n },\n button: {\n contentTypes: [ 'interactive', 'phrasing', 'flow' ],\n allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ],\n namingMethods: [ 'subtreeText' ]\n },\n canvas: {\n allowedRoles: true,\n contentTypes: [ 'embedded', 'phrasing', 'flow' ],\n chromiumRole: 'Canvas'\n },\n caption: {\n allowedRoles: false\n },\n cite: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n code: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n col: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n colgroup: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n data: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n datalist: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true,\n implicitAttrs: {\n 'aria-multiselectable': 'false'\n }\n },\n dd: {\n allowedRoles: false\n },\n del: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n dfn: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n details: {\n contentTypes: [ 'interactive', 'flow' ],\n allowedRoles: false\n },\n dialog: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'alertdialog' ]\n },\n div: {\n contentTypes: [ 'flow' ],\n allowedRoles: true,\n shadowRoot: true\n },\n dl: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'group', 'list', 'presentation', 'none' ],\n chromiumRole: 'DescriptionList'\n },\n dt: {\n allowedRoles: [ 'listitem' ]\n },\n em: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n embed: {\n contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ],\n allowedRoles: [ 'application', 'document', 'img', 'presentation', 'none' ],\n chromiumRole: 'EmbeddedObject'\n },\n fieldset: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'radiogroup' ],\n namingMethods: [ 'fieldsetLegendText' ]\n },\n figcaption: {\n allowedRoles: [ 'group', 'none', 'presentation' ]\n },\n figure: {\n contentTypes: [ 'flow' ],\n allowedRoles: true,\n namingMethods: [ 'figureText', 'titleText' ]\n },\n footer: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ],\n shadowRoot: true\n },\n form: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'search', 'none', 'presentation' ]\n },\n h1: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '1'\n }\n },\n h2: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '2'\n }\n },\n h3: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '3'\n }\n },\n h4: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '4'\n }\n },\n h5: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '5'\n }\n },\n h6: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],\n shadowRoot: true,\n implicitAttrs: {\n 'aria-level': '6'\n }\n },\n head: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n header: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ],\n shadowRoot: true\n },\n hgroup: {\n contentTypes: [ 'heading', 'flow' ],\n allowedRoles: true\n },\n hr: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'none', 'presentation', 'doc-pagebreak' ],\n namingMethods: [ 'titleText', 'singleSpace' ]\n },\n html: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n i: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n iframe: {\n contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ],\n allowedRoles: [ 'application', 'document', 'img', 'none', 'presentation' ],\n chromiumRole: 'Iframe'\n },\n img: {\n variant: {\n nonEmptyAlt: {\n matches: [ {\n attributes: {\n alt: '/.+/'\n }\n }, {\n hasAccessibleName: true\n } ],\n allowedRoles: [ 'button', 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]\n },\n usemap: {\n matches: '[usemap]',\n contentTypes: [ 'interactive', 'embedded', 'flow' ]\n },\n default: {\n allowedRoles: [ 'presentation', 'none' ],\n contentTypes: [ 'embedded', 'flow' ]\n }\n },\n namingMethods: [ 'altText' ]\n },\n input: {\n variant: {\n button: {\n matches: {\n properties: {\n type: 'button'\n }\n },\n allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]\n },\n buttonType: {\n matches: {\n properties: {\n type: [ 'button', 'submit', 'reset' ]\n }\n },\n namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]\n },\n checkboxPressed: {\n matches: {\n properties: {\n type: 'checkbox'\n },\n attributes: {\n 'aria-pressed': '/.*/'\n }\n },\n allowedRoles: [ 'button', 'menuitemcheckbox', 'option', 'switch' ],\n implicitAttrs: {\n 'aria-checked': 'false'\n }\n },\n checkbox: {\n matches: {\n properties: {\n type: 'checkbox'\n },\n attributes: {\n 'aria-pressed': null\n }\n },\n allowedRoles: [ 'menuitemcheckbox', 'option', 'switch' ],\n implicitAttrs: {\n 'aria-checked': 'false'\n }\n },\n noRoles: {\n matches: {\n properties: {\n type: [ 'color', 'date', 'datetime-local', 'file', 'month', 'number', 'password', 'range', 'reset', 'submit', 'time', 'week' ]\n }\n },\n allowedRoles: false\n },\n hidden: {\n matches: {\n properties: {\n type: 'hidden'\n }\n },\n contentTypes: [ 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n image: {\n matches: {\n properties: {\n type: 'image'\n }\n },\n allowedRoles: [ 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'radio', 'switch' ],\n namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]\n },\n radio: {\n matches: {\n properties: {\n type: 'radio'\n }\n },\n allowedRoles: [ 'menuitemradio' ],\n implicitAttrs: {\n 'aria-checked': 'false'\n }\n },\n textWithList: {\n matches: {\n properties: {\n type: 'text'\n },\n attributes: {\n list: '/.*/'\n }\n },\n allowedRoles: false\n },\n default: {\n contentTypes: [ 'interactive', 'flow' ],\n allowedRoles: [ 'combobox', 'searchbox', 'spinbutton' ],\n implicitAttrs: {\n 'aria-valuenow': ''\n },\n namingMethods: [ 'labelText', 'placeholderText' ]\n }\n }\n },\n ins: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n kbd: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n label: {\n contentTypes: [ 'interactive', 'phrasing', 'flow' ],\n allowedRoles: false,\n chromiumRole: 'Label'\n },\n legend: {\n allowedRoles: false\n },\n li: {\n allowedRoles: [ 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'none', 'presentation', 'radio', 'separator', 'tab', 'treeitem', 'doc-biblioentry', 'doc-endnote' ],\n implicitAttrs: {\n 'aria-setsize': '1',\n 'aria-posinset': '1'\n }\n },\n link: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n main: {\n contentTypes: [ 'flow' ],\n allowedRoles: false,\n shadowRoot: true\n },\n map: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n math: {\n contentTypes: [ 'embedded', 'phrasing', 'flow' ],\n allowedRoles: false\n },\n mark: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n menu: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]\n },\n meta: {\n variant: {\n itemprop: {\n matches: '[itemprop]',\n contentTypes: [ 'phrasing', 'flow' ]\n }\n },\n allowedRoles: false,\n noAriaAttrs: true\n },\n meter: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n chromiumRole: 'progressbar'\n },\n nav: {\n contentTypes: [ 'sectioning', 'flow' ],\n allowedRoles: [ 'doc-index', 'doc-pagelist', 'doc-toc', 'menu', 'menubar', 'none', 'presentation', 'tablist' ],\n shadowRoot: true\n },\n noscript: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n object: {\n variant: {\n usemap: {\n matches: '[usemap]',\n contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]\n },\n default: {\n contentTypes: [ 'embedded', 'phrasing', 'flow' ]\n }\n },\n allowedRoles: [ 'application', 'document', 'img' ],\n chromiumRole: 'PluginObject'\n },\n ol: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]\n },\n optgroup: {\n allowedRoles: false\n },\n option: {\n allowedRoles: false,\n implicitAttrs: {\n 'aria-selected': 'false'\n }\n },\n output: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true,\n namingMethods: [ 'subtreeText' ]\n },\n p: {\n contentTypes: [ 'flow' ],\n allowedRoles: true,\n shadowRoot: true\n },\n param: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n picture: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n pre: {\n contentTypes: [ 'flow' ],\n allowedRoles: true\n },\n progress: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n implicitAttrs: {\n 'aria-valuemax': '100',\n 'aria-valuemin': '0',\n 'aria-valuenow': '0'\n }\n },\n q: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n rp: {\n allowedRoles: true\n },\n rt: {\n allowedRoles: true\n },\n ruby: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n s: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n samp: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n script: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n section: {\n contentTypes: [ 'sectioning', 'flow' ],\n allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'group', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ],\n shadowRoot: true\n },\n select: {\n variant: {\n combobox: {\n matches: {\n attributes: {\n multiple: null,\n size: [ null, '1' ]\n }\n },\n allowedRoles: [ 'menu' ]\n },\n default: {\n allowedRoles: false\n }\n },\n contentTypes: [ 'interactive', 'phrasing', 'flow' ],\n implicitAttrs: {\n 'aria-valuenow': ''\n },\n namingMethods: [ 'labelText' ]\n },\n slot: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n small: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n source: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n span: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true,\n shadowRoot: true\n },\n strong: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n style: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n svg: {\n contentTypes: [ 'embedded', 'phrasing', 'flow' ],\n allowedRoles: true,\n chromiumRole: 'SVGRoot',\n namingMethods: [ 'svgTitleText' ]\n },\n sub: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n summary: {\n allowedRoles: false,\n namingMethods: [ 'subtreeText' ]\n },\n sup: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n table: {\n contentTypes: [ 'flow' ],\n allowedRoles: true,\n namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]\n },\n tbody: {\n allowedRoles: true\n },\n template: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: false,\n noAriaAttrs: true\n },\n textarea: {\n contentTypes: [ 'interactive', 'phrasing', 'flow' ],\n allowedRoles: false,\n implicitAttrs: {\n 'aria-valuenow': '',\n 'aria-multiline': 'true'\n },\n namingMethods: [ 'labelText', 'placeholderText' ]\n },\n tfoot: {\n allowedRoles: true\n },\n thead: {\n allowedRoles: true\n },\n time: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n title: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n td: {\n allowedRoles: true\n },\n th: {\n allowedRoles: true\n },\n tr: {\n allowedRoles: true\n },\n track: {\n allowedRoles: false,\n noAriaAttrs: true\n },\n u: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n ul: {\n contentTypes: [ 'flow' ],\n allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]\n },\n var: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: true\n },\n video: {\n variant: {\n controls: {\n matches: '[controls]',\n contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]\n },\n default: {\n contentTypes: [ 'embedded', 'phrasing', 'flow' ]\n }\n },\n allowedRoles: [ 'application' ],\n chromiumRole: 'video'\n },\n wbr: {\n contentTypes: [ 'phrasing', 'flow' ],\n allowedRoles: [ 'presentation', 'none' ]\n }\n };\n var html_elms_default = htmlElms;\n var cssColors = {\n aliceblue: [ 240, 248, 255 ],\n antiquewhite: [ 250, 235, 215 ],\n aqua: [ 0, 255, 255 ],\n aquamarine: [ 127, 255, 212 ],\n azure: [ 240, 255, 255 ],\n beige: [ 245, 245, 220 ],\n bisque: [ 255, 228, 196 ],\n black: [ 0, 0, 0 ],\n blanchedalmond: [ 255, 235, 205 ],\n blue: [ 0, 0, 255 ],\n blueviolet: [ 138, 43, 226 ],\n brown: [ 165, 42, 42 ],\n burlywood: [ 222, 184, 135 ],\n cadetblue: [ 95, 158, 160 ],\n chartreuse: [ 127, 255, 0 ],\n chocolate: [ 210, 105, 30 ],\n coral: [ 255, 127, 80 ],\n cornflowerblue: [ 100, 149, 237 ],\n cornsilk: [ 255, 248, 220 ],\n crimson: [ 220, 20, 60 ],\n cyan: [ 0, 255, 255 ],\n darkblue: [ 0, 0, 139 ],\n darkcyan: [ 0, 139, 139 ],\n darkgoldenrod: [ 184, 134, 11 ],\n darkgray: [ 169, 169, 169 ],\n darkgreen: [ 0, 100, 0 ],\n darkgrey: [ 169, 169, 169 ],\n darkkhaki: [ 189, 183, 107 ],\n darkmagenta: [ 139, 0, 139 ],\n darkolivegreen: [ 85, 107, 47 ],\n darkorange: [ 255, 140, 0 ],\n darkorchid: [ 153, 50, 204 ],\n darkred: [ 139, 0, 0 ],\n darksalmon: [ 233, 150, 122 ],\n darkseagreen: [ 143, 188, 143 ],\n darkslateblue: [ 72, 61, 139 ],\n darkslategray: [ 47, 79, 79 ],\n darkslategrey: [ 47, 79, 79 ],\n darkturquoise: [ 0, 206, 209 ],\n darkviolet: [ 148, 0, 211 ],\n deeppink: [ 255, 20, 147 ],\n deepskyblue: [ 0, 191, 255 ],\n dimgray: [ 105, 105, 105 ],\n dimgrey: [ 105, 105, 105 ],\n dodgerblue: [ 30, 144, 255 ],\n firebrick: [ 178, 34, 34 ],\n floralwhite: [ 255, 250, 240 ],\n forestgreen: [ 34, 139, 34 ],\n fuchsia: [ 255, 0, 255 ],\n gainsboro: [ 220, 220, 220 ],\n ghostwhite: [ 248, 248, 255 ],\n gold: [ 255, 215, 0 ],\n goldenrod: [ 218, 165, 32 ],\n gray: [ 128, 128, 128 ],\n green: [ 0, 128, 0 ],\n greenyellow: [ 173, 255, 47 ],\n grey: [ 128, 128, 128 ],\n honeydew: [ 240, 255, 240 ],\n hotpink: [ 255, 105, 180 ],\n indianred: [ 205, 92, 92 ],\n indigo: [ 75, 0, 130 ],\n ivory: [ 255, 255, 240 ],\n khaki: [ 240, 230, 140 ],\n lavender: [ 230, 230, 250 ],\n lavenderblush: [ 255, 240, 245 ],\n lawngreen: [ 124, 252, 0 ],\n lemonchiffon: [ 255, 250, 205 ],\n lightblue: [ 173, 216, 230 ],\n lightcoral: [ 240, 128, 128 ],\n lightcyan: [ 224, 255, 255 ],\n lightgoldenrodyellow: [ 250, 250, 210 ],\n lightgray: [ 211, 211, 211 ],\n lightgreen: [ 144, 238, 144 ],\n lightgrey: [ 211, 211, 211 ],\n lightpink: [ 255, 182, 193 ],\n lightsalmon: [ 255, 160, 122 ],\n lightseagreen: [ 32, 178, 170 ],\n lightskyblue: [ 135, 206, 250 ],\n lightslategray: [ 119, 136, 153 ],\n lightslategrey: [ 119, 136, 153 ],\n lightsteelblue: [ 176, 196, 222 ],\n lightyellow: [ 255, 255, 224 ],\n lime: [ 0, 255, 0 ],\n limegreen: [ 50, 205, 50 ],\n linen: [ 250, 240, 230 ],\n magenta: [ 255, 0, 255 ],\n maroon: [ 128, 0, 0 ],\n mediumaquamarine: [ 102, 205, 170 ],\n mediumblue: [ 0, 0, 205 ],\n mediumorchid: [ 186, 85, 211 ],\n mediumpurple: [ 147, 112, 219 ],\n mediumseagreen: [ 60, 179, 113 ],\n mediumslateblue: [ 123, 104, 238 ],\n mediumspringgreen: [ 0, 250, 154 ],\n mediumturquoise: [ 72, 209, 204 ],\n mediumvioletred: [ 199, 21, 133 ],\n midnightblue: [ 25, 25, 112 ],\n mintcream: [ 245, 255, 250 ],\n mistyrose: [ 255, 228, 225 ],\n moccasin: [ 255, 228, 181 ],\n navajowhite: [ 255, 222, 173 ],\n navy: [ 0, 0, 128 ],\n oldlace: [ 253, 245, 230 ],\n olive: [ 128, 128, 0 ],\n olivedrab: [ 107, 142, 35 ],\n orange: [ 255, 165, 0 ],\n orangered: [ 255, 69, 0 ],\n orchid: [ 218, 112, 214 ],\n palegoldenrod: [ 238, 232, 170 ],\n palegreen: [ 152, 251, 152 ],\n paleturquoise: [ 175, 238, 238 ],\n palevioletred: [ 219, 112, 147 ],\n papayawhip: [ 255, 239, 213 ],\n peachpuff: [ 255, 218, 185 ],\n peru: [ 205, 133, 63 ],\n pink: [ 255, 192, 203 ],\n plum: [ 221, 160, 221 ],\n powderblue: [ 176, 224, 230 ],\n purple: [ 128, 0, 128 ],\n rebeccapurple: [ 102, 51, 153 ],\n red: [ 255, 0, 0 ],\n rosybrown: [ 188, 143, 143 ],\n royalblue: [ 65, 105, 225 ],\n saddlebrown: [ 139, 69, 19 ],\n salmon: [ 250, 128, 114 ],\n sandybrown: [ 244, 164, 96 ],\n seagreen: [ 46, 139, 87 ],\n seashell: [ 255, 245, 238 ],\n sienna: [ 160, 82, 45 ],\n silver: [ 192, 192, 192 ],\n skyblue: [ 135, 206, 235 ],\n slateblue: [ 106, 90, 205 ],\n slategray: [ 112, 128, 144 ],\n slategrey: [ 112, 128, 144 ],\n snow: [ 255, 250, 250 ],\n springgreen: [ 0, 255, 127 ],\n steelblue: [ 70, 130, 180 ],\n tan: [ 210, 180, 140 ],\n teal: [ 0, 128, 128 ],\n thistle: [ 216, 191, 216 ],\n tomato: [ 255, 99, 71 ],\n turquoise: [ 64, 224, 208 ],\n violet: [ 238, 130, 238 ],\n wheat: [ 245, 222, 179 ],\n white: [ 255, 255, 255 ],\n whitesmoke: [ 245, 245, 245 ],\n yellow: [ 255, 255, 0 ],\n yellowgreen: [ 154, 205, 50 ]\n };\n var css_colors_default = cssColors;\n var originals = {\n ariaAttrs: aria_attrs_default,\n ariaRoles: _extends({}, aria_roles_default, dpub_roles_default, graphics_roles_default),\n htmlElms: html_elms_default,\n cssColors: css_colors_default\n };\n var standards = _extends({}, originals);\n function configureStandards(config) {\n Object.keys(standards).forEach(function(propName) {\n if (config[propName]) {\n standards[propName] = deep_merge_default(standards[propName], config[propName]);\n }\n });\n }\n function resetStandards() {\n Object.keys(standards).forEach(function(propName) {\n standards[propName] = originals[propName];\n });\n }\n var standards_default = standards;\n function isUnsupportedRole(role) {\n var roleDefinition = standards_default.ariaRoles[role];\n return roleDefinition ? !!roleDefinition.unsupported : false;\n }\n var is_unsupported_role_default = isUnsupportedRole;\n function isValidRole(role) {\n var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref26.allowAbstract, _ref26$flagUnsupporte = _ref26.flagUnsupported, flagUnsupported = _ref26$flagUnsupporte === void 0 ? false : _ref26$flagUnsupporte;\n var roleDefinition = standards_default.ariaRoles[role];\n var isRoleUnsupported = is_unsupported_role_default(role);\n if (!roleDefinition || flagUnsupported && isRoleUnsupported) {\n return false;\n }\n return allowAbstract ? true : roleDefinition.type !== 'abstract';\n }\n var is_valid_role_default = isValidRole;\n function getExplicitRole(vNode) {\n var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref27.fallback, abstracts = _ref27.abstracts, dpub = _ref27.dpub;\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n if (vNode.props.nodeType !== 1) {\n return null;\n }\n var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();\n var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];\n var firstValidRole = roleList.find(function(role) {\n if (!dpub && role.substr(0, 4) === 'doc-') {\n return false;\n }\n return is_valid_role_default(role, {\n allowAbstract: abstracts\n });\n });\n return firstValidRole || null;\n }\n var get_explicit_role_default = getExplicitRole;\n function getElementsByContentType(type) {\n return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {\n var elm = standards_default.htmlElms[nodeName2];\n if (elm.contentTypes) {\n return elm.contentTypes.includes(type);\n }\n if (!elm.variant) {\n return false;\n }\n if (elm.variant['default'] && elm.variant['default'].contentTypes) {\n return elm.variant['default'].contentTypes.includes(type);\n }\n return false;\n });\n }\n var get_elements_by_content_type_default = getElementsByContentType;\n function getGlobalAriaAttrs() {\n return cache_default.get('globalAriaAttrs', function() {\n return Object.keys(standards_default.ariaAttrs).filter(function(attrName) {\n return standards_default.ariaAttrs[attrName].global;\n });\n });\n }\n var get_global_aria_attrs_default = getGlobalAriaAttrs;\n function toGrid(node) {\n var table = [];\n var rows = node.rows;\n for (var i = 0, rowLength = rows.length; i < rowLength; i++) {\n var cells = rows[i].cells;\n table[i] = table[i] || [];\n var columnIndex = 0;\n for (var j = 0, cellLength = cells.length; j < cellLength; j++) {\n for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {\n var rowspanAttr = cells[j].getAttribute('rowspan');\n var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;\n for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {\n table[i + rowSpan] = table[i + rowSpan] || [];\n while (table[i + rowSpan][columnIndex]) {\n columnIndex++;\n }\n table[i + rowSpan][columnIndex] = cells[j];\n }\n columnIndex++;\n }\n }\n }\n return table;\n }\n var to_grid_default = memoize_default(toGrid);\n function getCellPosition(cell, tableGrid) {\n var rowIndex, index;\n if (!tableGrid) {\n tableGrid = to_grid_default(find_up_default(cell, 'table'));\n }\n for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {\n if (tableGrid[rowIndex]) {\n index = tableGrid[rowIndex].indexOf(cell);\n if (index !== -1) {\n return {\n x: index,\n y: rowIndex\n };\n }\n }\n }\n }\n var get_cell_position_default = memoize_default(getCellPosition);\n function getScope(cell) {\n var vNode = cell instanceof abstract_virtual_node_default ? cell : get_node_from_tree_default(cell);\n cell = vNode.actualNode;\n var scope = vNode.attr('scope');\n var role = vNode.attr('role');\n if (![ 'td', 'th' ].includes(vNode.props.nodeName)) {\n throw new TypeError('Expected TD or TH element');\n }\n if (role === 'columnheader') {\n return 'col';\n } else if (role === 'rowheader') {\n return 'row';\n } else if (scope === 'col' || scope === 'row') {\n return scope;\n } else if (vNode.props.nodeName !== 'th') {\n return false;\n } else if (!vNode.actualNode) {\n return 'auto';\n }\n var tableGrid = to_grid_default(find_up_default(cell, 'table'));\n var pos = get_cell_position_default(cell, tableGrid);\n var headerRow = tableGrid[pos.y].reduce(function(headerRow2, cell2) {\n return headerRow2 && cell2.nodeName.toUpperCase() === 'TH';\n }, true);\n if (headerRow) {\n return 'col';\n }\n var headerCol = tableGrid.map(function(col) {\n return col[pos.x];\n }).reduce(function(headerCol2, cell2) {\n return headerCol2 && cell2 && cell2.nodeName.toUpperCase() === 'TH';\n }, true);\n if (headerCol) {\n return 'row';\n }\n return 'auto';\n }\n var get_scope_default = getScope;\n function isColumnHeader(element) {\n return [ 'col', 'auto' ].indexOf(get_scope_default(element)) !== -1;\n }\n var is_column_header_default = isColumnHeader;\n function isRowHeader(cell) {\n return [ 'row', 'auto' ].includes(get_scope_default(cell));\n }\n var is_row_header_default = isRowHeader;\n function sanitize(str) {\n if (!str) {\n return '';\n }\n return str.replace(/\\r\\n/g, '\\n').replace(/\\u00A0/g, ' ').replace(/[\\s]{2,}/g, ' ').trim();\n }\n var sanitize_default = sanitize;\n function isNativelyFocusable(el) {\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n if (!vNode || focus_disabled_default(vNode)) {\n return false;\n }\n switch (vNode.props.nodeName) {\n case 'a':\n case 'area':\n if (vNode.hasAttr('href')) {\n return true;\n }\n break;\n\n case 'input':\n return vNode.props.type !== 'hidden';\n\n case 'textarea':\n case 'select':\n case 'summary':\n case 'button':\n return true;\n\n case 'details':\n return !query_selector_all_default(vNode, 'summary').length;\n }\n return false;\n }\n var is_natively_focusable_default = isNativelyFocusable;\n function _isFocusable(el) {\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n if (vNode.props.nodeType !== 1) {\n return false;\n }\n if (focus_disabled_default(vNode)) {\n return false;\n } else if (is_natively_focusable_default(vNode)) {\n return true;\n }\n var tabindex = vNode.attr('tabindex');\n if (tabindex && !isNaN(parseInt(tabindex, 10))) {\n return true;\n }\n return false;\n }\n var sectioningElementSelector = get_elements_by_content_type_default('sectioning').map(function(nodeName2) {\n return ''.concat(nodeName2, ':not([role])');\n }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';\n function hasAccessibleName(vNode) {\n var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));\n var ariaLabel = sanitize_default(arialabel_text_default(vNode));\n return !!(ariaLabelledby || ariaLabel);\n }\n var implicitHtmlRoles = {\n a: function a(vNode) {\n return vNode.hasAttr('href') ? 'link' : null;\n },\n area: function area(vNode) {\n return vNode.hasAttr('href') ? 'link' : null;\n },\n article: 'article',\n aside: 'complementary',\n body: 'document',\n button: 'button',\n datalist: 'listbox',\n dd: 'definition',\n dfn: 'term',\n details: 'group',\n dialog: 'dialog',\n dt: 'term',\n fieldset: 'group',\n figure: 'figure',\n footer: function footer(vNode) {\n var sectioningElement = closest_default(vNode, sectioningElementSelector);\n return !sectioningElement ? 'contentinfo' : null;\n },\n form: function form(vNode) {\n return hasAccessibleName(vNode) ? 'form' : null;\n },\n h1: 'heading',\n h2: 'heading',\n h3: 'heading',\n h4: 'heading',\n h5: 'heading',\n h6: 'heading',\n header: function header(vNode) {\n var sectioningElement = closest_default(vNode, sectioningElementSelector);\n return !sectioningElement ? 'banner' : null;\n },\n hr: 'separator',\n img: function img(vNode) {\n var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');\n var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {\n return vNode.hasAttr(attr);\n });\n return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img';\n },\n input: function input(vNode) {\n var suggestionsSourceElement;\n if (vNode.hasAttr('list')) {\n var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {\n return !!node;\n })[0];\n suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';\n }\n switch (vNode.props.type) {\n case 'checkbox':\n return 'checkbox';\n\n case 'number':\n return 'spinbutton';\n\n case 'radio':\n return 'radio';\n\n case 'range':\n return 'slider';\n\n case 'search':\n return !suggestionsSourceElement ? 'searchbox' : 'combobox';\n\n case 'button':\n case 'image':\n case 'reset':\n case 'submit':\n return 'button';\n\n case 'text':\n case 'tel':\n case 'url':\n case 'email':\n case '':\n return !suggestionsSourceElement ? 'textbox' : 'combobox';\n\n default:\n return 'textbox';\n }\n },\n li: 'listitem',\n main: 'main',\n math: 'math',\n menu: 'list',\n nav: 'navigation',\n ol: 'list',\n optgroup: 'group',\n option: 'option',\n output: 'status',\n progress: 'progressbar',\n section: function section(vNode) {\n return hasAccessibleName(vNode) ? 'region' : null;\n },\n select: function select(vNode) {\n return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';\n },\n summary: 'button',\n table: 'table',\n tbody: 'rowgroup',\n td: function td(vNode) {\n var table = closest_default(vNode, 'table');\n var role = get_explicit_role_default(table);\n return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';\n },\n textarea: 'textbox',\n tfoot: 'rowgroup',\n th: function th(vNode) {\n if (is_column_header_default(vNode)) {\n return 'columnheader';\n }\n if (is_row_header_default(vNode)) {\n return 'rowheader';\n }\n },\n thead: 'rowgroup',\n tr: 'row',\n ul: 'list'\n };\n var implicit_html_roles_default = implicitHtmlRoles;\n function fromPrimative(someString, matcher) {\n var matcherType = _typeof(matcher);\n if (Array.isArray(matcher) && typeof someString !== 'undefined') {\n return matcher.includes(someString);\n }\n if (matcherType === 'function') {\n return !!matcher(someString);\n }\n if (someString !== null && someString !== void 0) {\n if (matcher instanceof RegExp) {\n return matcher.test(someString);\n }\n if (/^\\/.*\\/$/.test(matcher)) {\n var pattern = matcher.substring(1, matcher.length - 1);\n return new RegExp(pattern).test(someString);\n }\n }\n return matcher === someString;\n }\n var from_primative_default = fromPrimative;\n function hasAccessibleName2(vNode, matcher) {\n return from_primative_default(!!accessible_text_virtual_default(vNode), matcher);\n }\n var has_accessible_name_default = hasAccessibleName2;\n function fromFunction(getValue, matcher) {\n var matcherType = _typeof(matcher);\n if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {\n throw new Error('Expect matcher to be an object');\n }\n return Object.keys(matcher).every(function(propName) {\n return from_primative_default(getValue(propName), matcher[propName]);\n });\n }\n var from_function_default = fromFunction;\n function attributes(vNode, matcher) {\n if (!(vNode instanceof abstract_virtual_node_default)) {\n vNode = get_node_from_tree_default(vNode);\n }\n return from_function_default(function(attrName) {\n return vNode.attr(attrName);\n }, matcher);\n }\n var attributes_default = attributes;\n function condition(arg, condition2) {\n return !!condition2(arg);\n }\n var condition_default = condition;\n function explicitRole(vNode, matcher) {\n return from_primative_default(get_explicit_role_default(vNode), matcher);\n }\n var explicit_role_default = explicitRole;\n function implicitRole(vNode, matcher) {\n return from_primative_default(implicit_role_default(vNode), matcher);\n }\n var implicit_role_default2 = implicitRole;\n function nodeName(vNode, matcher) {\n if (!(vNode instanceof abstract_virtual_node_default)) {\n vNode = get_node_from_tree_default(vNode);\n }\n return from_primative_default(vNode.props.nodeName, matcher);\n }\n var node_name_default = nodeName;\n function properties(vNode, matcher) {\n if (!(vNode instanceof abstract_virtual_node_default)) {\n vNode = get_node_from_tree_default(vNode);\n }\n return from_function_default(function(propName) {\n return vNode.props[propName];\n }, matcher);\n }\n var properties_default = properties;\n function semanticRole(vNode, matcher) {\n return from_primative_default(get_role_default(vNode), matcher);\n }\n var semantic_role_default = semanticRole;\n var matchers = {\n hasAccessibleName: has_accessible_name_default,\n attributes: attributes_default,\n condition: condition_default,\n explicitRole: explicit_role_default,\n implicitRole: implicit_role_default2,\n nodeName: node_name_default,\n properties: properties_default,\n semanticRole: semantic_role_default\n };\n function fromDefinition(vNode, definition) {\n if (!(vNode instanceof abstract_virtual_node_default)) {\n vNode = get_node_from_tree_default(vNode);\n }\n if (Array.isArray(definition)) {\n return definition.some(function(definitionItem) {\n return fromDefinition(vNode, definitionItem);\n });\n }\n if (typeof definition === 'string') {\n return matches_default(vNode, definition);\n }\n return Object.keys(definition).every(function(matcherName) {\n if (!matchers[matcherName]) {\n throw new Error('Unknown matcher type \"'.concat(matcherName, '\"'));\n }\n var matchMethod = matchers[matcherName];\n var matcher = definition[matcherName];\n return matchMethod(vNode, matcher);\n });\n }\n var from_definition_default = fromDefinition;\n function matches2(vNode, definition) {\n return from_definition_default(vNode, definition);\n }\n var matches_default2 = matches2;\n matches_default2.hasAccessibleName = has_accessible_name_default;\n matches_default2.attributes = attributes_default;\n matches_default2.condition = condition_default;\n matches_default2.explicitRole = explicit_role_default;\n matches_default2.fromDefinition = from_definition_default;\n matches_default2.fromFunction = from_function_default;\n matches_default2.fromPrimative = from_primative_default;\n matches_default2.implicitRole = implicit_role_default2;\n matches_default2.nodeName = node_name_default;\n matches_default2.properties = properties_default;\n matches_default2.semanticRole = semantic_role_default;\n var matches_default3 = matches_default2;\n function getElementSpec(vNode) {\n var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$noMatchAccessi = _ref28.noMatchAccessibleName, noMatchAccessibleName = _ref28$noMatchAccessi === void 0 ? false : _ref28$noMatchAccessi;\n var standard = standards_default.htmlElms[vNode.props.nodeName];\n if (!standard) {\n return {};\n }\n if (!standard.variant) {\n return standard;\n }\n var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded2);\n for (var variantName in variant) {\n if (!variant.hasOwnProperty(variantName) || variantName === 'default') {\n continue;\n }\n var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded3);\n var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];\n for (var _i8 = 0; _i8 < matchProperties.length && noMatchAccessibleName; _i8++) {\n if (matchProperties[_i8].hasOwnProperty('hasAccessibleName')) {\n return standard;\n }\n }\n if (matches_default3(vNode, matches4)) {\n for (var propName in props) {\n if (props.hasOwnProperty(propName)) {\n spec[propName] = props[propName];\n }\n }\n }\n }\n for (var _propName in variant['default']) {\n if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {\n spec[_propName] = variant['default'][_propName];\n }\n }\n return spec;\n }\n var get_element_spec_default = getElementSpec;\n function implicitRole2(node) {\n var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref29.chromium;\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n node = vNode.actualNode;\n if (!vNode) {\n throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');\n }\n var nodeName2 = vNode.props.nodeName;\n var role = implicit_html_roles_default[nodeName2];\n if (!role && chromium) {\n var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;\n return chromiumRole || null;\n }\n if (typeof role === 'function') {\n return role(vNode);\n }\n return role || null;\n }\n var implicit_role_default = implicitRole2;\n var inheritsPresentationChain = {\n td: [ 'tr' ],\n th: [ 'tr' ],\n tr: [ 'thead', 'tbody', 'tfoot', 'table' ],\n thead: [ 'table' ],\n tbody: [ 'table' ],\n tfoot: [ 'table' ],\n li: [ 'ol', 'ul' ],\n dt: [ 'dl', 'div' ],\n dd: [ 'dl', 'div' ],\n div: [ 'dl' ]\n };\n function getInheritedRole(vNode, explicitRoleOptions) {\n var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];\n if (!parentNodeNames) {\n return null;\n }\n if (!vNode.parent) {\n if (!vNode.actualNode) {\n return null;\n }\n throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');\n }\n if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {\n return null;\n }\n var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);\n if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {\n return parentRole;\n }\n if (parentRole) {\n return null;\n }\n return getInheritedRole(vNode.parent, explicitRoleOptions);\n }\n function resolveImplicitRole(vNode, _ref30) {\n var chromium = _ref30.chromium, explicitRoleOptions = _objectWithoutProperties(_ref30, _excluded4);\n var implicitRole3 = implicit_role_default(vNode, {\n chromium: chromium\n });\n if (!implicitRole3) {\n return null;\n }\n var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);\n if (presentationalRole) {\n return presentationalRole;\n }\n return implicitRole3;\n }\n function hasConflictResolution(vNode) {\n var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {\n return vNode.hasAttr(attr);\n });\n return hasGlobalAria || _isFocusable(vNode);\n }\n function resolveRole(node) {\n var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var noImplicit = _ref31.noImplicit, roleOptions = _objectWithoutProperties(_ref31, _excluded5);\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (vNode.props.nodeType !== 1) {\n return null;\n }\n var explicitRole2 = get_explicit_role_default(vNode, roleOptions);\n if (!explicitRole2) {\n return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);\n }\n if (![ 'presentation', 'none' ].includes(explicitRole2)) {\n return explicitRole2;\n }\n if (hasConflictResolution(vNode)) {\n return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);\n }\n return explicitRole2;\n }\n function getRole(node) {\n var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var noPresentational = _ref32.noPresentational, options = _objectWithoutProperties(_ref32, _excluded6);\n var role = resolveRole(node, options);\n if (noPresentational && [ 'presentation', 'none' ].includes(role)) {\n return null;\n }\n return role;\n }\n var get_role_default = getRole;\n var alwaysTitleElements = [ 'iframe' ];\n function titleText(node) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {\n return '';\n }\n if (!matches_default2(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {\n return '';\n }\n return vNode.attr('title');\n }\n var title_text_default = titleText;\n function namedFromContents(vNode) {\n var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref33.strict;\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n if (vNode.props.nodeType !== 1) {\n return false;\n }\n var role = get_role_default(vNode);\n var roleDef = standards_default.ariaRoles[role];\n if (roleDef && roleDef.nameFromContent) {\n return true;\n }\n if (strict) {\n return false;\n }\n return !roleDef || [ 'presentation', 'none' ].includes(role);\n }\n var named_from_contents_default = namedFromContents;\n function getOwnedVirtual(virtualNode) {\n var actualNode = virtualNode.actualNode, children = virtualNode.children;\n if (!children) {\n throw new Error('getOwnedVirtual requires a virtual node');\n }\n if (virtualNode.hasAttr('aria-owns')) {\n var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {\n return !!element;\n }).map(function(element) {\n return axe.utils.getNodeFromTree(element);\n });\n return [].concat(_toConsumableArray(children), _toConsumableArray(owns));\n }\n return _toConsumableArray(children);\n }\n var get_owned_virtual_default = getOwnedVirtual;\n function subtreeText(virtualNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;\n context.startNode = context.startNode || virtualNode;\n var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;\n var _get_element_spec_def2 = get_element_spec_default(virtualNode, {\n noMatchAccessibleName: true\n }), contentTypes = _get_element_spec_def2.contentTypes;\n if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded')) {\n return '';\n }\n if (!named_from_contents_default(virtualNode, {\n strict: strict\n }) && !context.subtreeDescendant) {\n return '';\n }\n if (!strict) {\n var subtreeDescendant = !inControlContext && !inLabelledByContext;\n context = _extends({\n subtreeDescendant: subtreeDescendant\n }, context);\n }\n return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {\n return appendAccessibleText(contentText, child, context);\n }, '');\n }\n var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);\n function appendAccessibleText(contentText, virtualNode, context) {\n var nodeName2 = virtualNode.props.nodeName;\n var contentTextAdd = accessible_text_virtual_default(virtualNode, context);\n if (!contentTextAdd) {\n return contentText;\n }\n if (!phrasingElements.includes(nodeName2)) {\n if (contentTextAdd[0] !== ' ') {\n contentTextAdd += ' ';\n }\n if (contentText && contentText[contentText.length - 1] !== ' ') {\n contentTextAdd = ' ' + contentTextAdd;\n }\n }\n return contentText + contentTextAdd;\n }\n var subtree_text_default = subtreeText;\n function labelText(virtualNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;\n if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) {\n return '';\n }\n if (!context.startNode) {\n context.startNode = virtualNode;\n }\n var labelContext = _extends({\n inControlContext: true\n }, context);\n var explicitLabels = getExplicitLabels(virtualNode);\n var implicitLabel = closest_default(virtualNode, 'label');\n var labels;\n if (implicitLabel) {\n labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);\n labels.sort(node_sorter_default);\n } else {\n labels = explicitLabels;\n }\n return labels.map(function(label3) {\n return accessible_text_default(label3, labelContext);\n }).filter(function(text) {\n return text !== '';\n }).join(' ');\n }\n function getExplicitLabels(virtualNode) {\n if (!virtualNode.attr('id')) {\n return [];\n }\n if (!virtualNode.actualNode) {\n throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');\n }\n return find_elms_in_context_default({\n elm: 'label',\n attr: 'for',\n value: virtualNode.attr('id'),\n context: virtualNode.actualNode\n });\n }\n var label_text_default = labelText;\n var defaultButtonValues = {\n submit: 'Submit',\n image: 'Submit',\n reset: 'Reset',\n button: ''\n };\n var nativeTextMethods = {\n valueText: function valueText(_ref34) {\n var actualNode = _ref34.actualNode;\n return actualNode.value || '';\n },\n buttonDefaultText: function buttonDefaultText(_ref35) {\n var actualNode = _ref35.actualNode;\n return defaultButtonValues[actualNode.type] || '';\n },\n tableCaptionText: descendantText.bind(null, 'caption'),\n figureText: descendantText.bind(null, 'figcaption'),\n svgTitleText: descendantText.bind(null, 'title'),\n fieldsetLegendText: descendantText.bind(null, 'legend'),\n altText: attrText.bind(null, 'alt'),\n tableSummaryText: attrText.bind(null, 'summary'),\n titleText: title_text_default,\n subtreeText: subtree_text_default,\n labelText: label_text_default,\n singleSpace: function singleSpace() {\n return ' ';\n },\n placeholderText: attrText.bind(null, 'placeholder')\n };\n function attrText(attr, vNode) {\n return vNode.attr(attr) || '';\n }\n function descendantText(nodeName2, _ref36, context) {\n var actualNode = _ref36.actualNode;\n nodeName2 = nodeName2.toLowerCase();\n var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');\n var candidate = actualNode.querySelector(nodeNames2);\n if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {\n return '';\n }\n return accessible_text_default(candidate, context);\n }\n var native_text_methods_default = nativeTextMethods;\n function nativeTextAlternative(virtualNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var actualNode = virtualNode.actualNode;\n if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {\n return '';\n }\n var textMethods = findTextMethods(virtualNode);\n var accName = textMethods.reduce(function(accName2, step) {\n return accName2 || step(virtualNode, context);\n }, '');\n if (context.debug) {\n axe.log(accName || '{empty-value}', actualNode, context);\n }\n return accName;\n }\n function findTextMethods(virtualNode) {\n var elmSpec = get_element_spec_default(virtualNode, {\n noMatchAccessibleName: true\n });\n var methods = elmSpec.namingMethods || [];\n return methods.map(function(methodName) {\n return native_text_methods_default[methodName];\n });\n }\n var native_text_alternative_default = nativeTextAlternative;\n var unsupported = {\n accessibleNameFromFieldValue: [ 'combobox', 'listbox', 'progressbar' ]\n };\n var unsupported_default = unsupported;\n function _isVisibleToScreenReaders(vNode) {\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n return isVisibleToScreenReadersVirtual(vNode);\n }\n var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {\n if (ariaHidden(vNode) || _isInert(vNode, {\n skipAncestors: true,\n isAncestor: isAncestor\n })) {\n return false;\n }\n if (vNode.actualNode && vNode.props.nodeName === 'area') {\n return !areaHidden(vNode, isVisibleToScreenReadersVirtual);\n }\n if (_isHiddenForEveryone(vNode, {\n skipAncestors: true,\n isAncestor: isAncestor\n })) {\n return false;\n }\n if (!vNode.parent) {\n return true;\n }\n return isVisibleToScreenReadersVirtual(vNode.parent, true);\n });\n function visibleVirtual(element, screenReader, noRecursing) {\n var vNode = element instanceof abstract_virtual_node_default ? element : get_node_from_tree_default(element);\n var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;\n var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);\n var result = vNode.children.map(function(child) {\n var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;\n if (nodeType === 3) {\n if (nodeValue && visible2) {\n return nodeValue;\n }\n } else if (!noRecursing) {\n return visibleVirtual(child, screenReader);\n }\n }).join('');\n return sanitize_default(result);\n }\n var visible_virtual_default = visibleVirtual;\n var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];\n function isNativeTextbox(node) {\n node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n var nodeName2 = node.props.nodeName;\n return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());\n }\n var is_native_textbox_default = isNativeTextbox;\n function isNativeSelect(node) {\n node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n var nodeName2 = node.props.nodeName;\n return nodeName2 === 'select';\n }\n var is_native_select_default = isNativeSelect;\n function isAriaTextbox(node) {\n var role = get_explicit_role_default(node);\n return role === 'textbox';\n }\n var is_aria_textbox_default = isAriaTextbox;\n function isAriaListbox(node) {\n var role = get_explicit_role_default(node);\n return role === 'listbox';\n }\n var is_aria_listbox_default = isAriaListbox;\n function isAriaCombobox(node) {\n var role = get_explicit_role_default(node);\n return role === 'combobox';\n }\n var is_aria_combobox_default = isAriaCombobox;\n var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];\n function isAriaRange(node) {\n var role = get_explicit_role_default(node);\n return rangeRoles.includes(role);\n }\n var is_aria_range_default = isAriaRange;\n var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];\n var _formControlValueMethods = {\n nativeTextboxValue: nativeTextboxValue,\n nativeSelectValue: nativeSelectValue,\n ariaTextboxValue: ariaTextboxValue,\n ariaListboxValue: ariaListboxValue,\n ariaComboboxValue: ariaComboboxValue,\n ariaRangeValue: ariaRangeValue\n };\n function formControlValue(virtualNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var actualNode = virtualNode.actualNode;\n var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];\n var role = get_role_default(virtualNode);\n if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {\n return '';\n }\n var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {\n return _formControlValueMethods[name];\n });\n var valueString = valueMethods.reduce(function(accName, step) {\n return accName || step(virtualNode, context);\n }, '');\n if (context.debug) {\n log_default(valueString || '{empty-value}', actualNode, context);\n }\n return valueString;\n }\n function nativeTextboxValue(node) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (is_native_textbox_default(vNode)) {\n return vNode.props.value || '';\n }\n return '';\n }\n function nativeSelectValue(node) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (!is_native_select_default(vNode)) {\n return '';\n }\n var options = query_selector_all_default(vNode, 'option');\n var selectedOptions = options.filter(function(option) {\n return option.props.selected;\n });\n if (!selectedOptions.length) {\n selectedOptions.push(options[0]);\n }\n return selectedOptions.map(function(option) {\n return visible_virtual_default(option);\n }).join(' ') || '';\n }\n function ariaTextboxValue(node) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n var actualNode = vNode.actualNode;\n if (!is_aria_textbox_default(vNode)) {\n return '';\n }\n if (!actualNode || actualNode && !_isHiddenForEveryone(actualNode)) {\n return visible_virtual_default(vNode, true);\n } else {\n return actualNode.textContent;\n }\n }\n function ariaListboxValue(node, context) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (!is_aria_listbox_default(vNode)) {\n return '';\n }\n var selected = get_owned_virtual_default(vNode).filter(function(owned) {\n return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';\n });\n if (selected.length === 0) {\n return '';\n }\n return accessible_text_virtual_default(selected[0], context);\n }\n function ariaComboboxValue(node, context) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (!is_aria_combobox_default(vNode)) {\n return '';\n }\n var listbox = get_owned_virtual_default(vNode).filter(function(elm) {\n return get_role_default(elm) === 'listbox';\n })[0];\n return listbox ? ariaListboxValue(listbox, context) : '';\n }\n function ariaRangeValue(node) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {\n return '';\n }\n var valueNow = +vNode.attr('aria-valuenow');\n return !isNaN(valueNow) ? String(valueNow) : '0';\n }\n var form_control_value_default = formControlValue;\n function getUnicodeNonBmpRegExp() {\n return /[\\u1D00-\\u1D7F\\u1D80-\\u1DBF\\u1DC0-\\u1DFF\\u20A0-\\u20CF\\u20D0-\\u20FF\\u2100-\\u214F\\u2150-\\u218F\\u2190-\\u21FF\\u2200-\\u22FF\\u2300-\\u23FF\\u2400-\\u243F\\u2440-\\u245F\\u2460-\\u24FF\\u2500-\\u257F\\u2580-\\u259F\\u25A0-\\u25FF\\u2600-\\u26FF\\u2700-\\u27BF\\uE000-\\uF8FF]/g;\n }\n function getPunctuationRegExp() {\n return /[\\u2000-\\u206F\\u2E00-\\u2E7F\\\\'!\"#$%&\\xa3\\xa2\\xa5\\xa7\\u20ac()*+,\\-.\\/:;<=>?@\\[\\]^_`{|}~\\xb1]/g;\n }\n function getSupplementaryPrivateUseRegExp() {\n return /[\\uDB80-\\uDBBF][\\uDC00-\\uDFFF]/g;\n }\n var emoji_regex_default = function emoji_regex_default() {\n return /[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26D3\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC3\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\u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F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA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\\uDFFB-\\uDFFF])?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83E\\uDDD1))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD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\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)/g;\n };\n function hasUnicode(str, options) {\n var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;\n if (emoji) {\n return emoji_regex_default().test(str);\n }\n if (nonBmp) {\n return getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str);\n }\n if (punctuations) {\n return getPunctuationRegExp().test(str);\n }\n return false;\n }\n var has_unicode_default = hasUnicode;\n function isIconLigature(textVNode) {\n var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;\n var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;\n var nodeValue = textVNode.actualNode.nodeValue.trim();\n if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {\n emoji: true,\n nonBmp: true\n })) {\n return false;\n }\n var canvasContext = cache_default.get('canvasContext', function() {\n return document.createElement('canvas').getContext('2d', {\n willReadFrequently: true\n });\n });\n var canvas = canvasContext.canvas;\n if (!cache_default.get('fonts')) {\n cache_default.set('fonts', {});\n }\n var fonts = cache_default.get('fonts');\n var style = window.getComputedStyle(textVNode.parent.actualNode);\n var fontFamily = style.getPropertyValue('font-family');\n if (!fonts[fontFamily]) {\n fonts[fontFamily] = {\n occurrences: 0,\n numLigatures: 0\n };\n }\n var font = fonts[fontFamily];\n if (font.occurrences >= occurrenceThreshold) {\n if (font.numLigatures / font.occurrences === 1) {\n return true;\n } else if (font.numLigatures === 0) {\n return false;\n }\n }\n font.occurrences++;\n var fontSize = 30;\n var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);\n canvasContext.font = fontStyle;\n var firstChar = nodeValue.charAt(0);\n var width = canvasContext.measureText(firstChar).width;\n if (width < 30) {\n var diff = 30 / width;\n width *= diff;\n fontSize *= diff;\n fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);\n }\n canvas.width = width;\n canvas.height = fontSize;\n canvasContext.font = fontStyle;\n canvasContext.textAlign = 'left';\n canvasContext.textBaseline = 'top';\n canvasContext.fillText(firstChar, 0, 0);\n var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);\n if (!compareData.some(function(pixel) {\n return pixel;\n })) {\n font.numLigatures++;\n return true;\n }\n canvasContext.clearRect(0, 0, width, fontSize);\n canvasContext.fillText(nodeValue, 0, 0);\n var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);\n var differences = compareData.reduce(function(diff, pixel, i) {\n if (pixel === 0 && compareWith[i] === 0) {\n return diff;\n }\n if (pixel !== 0 && compareWith[i] !== 0) {\n return diff;\n }\n return ++diff;\n }, 0);\n var expectedWidth = nodeValue.split('').reduce(function(width2, _char2) {\n return width2 + canvasContext.measureText(_char2).width;\n }, 0);\n var actualWidth = canvasContext.measureText(nodeValue).width;\n var pixelDifference = differences / compareData.length;\n var sizeDifference = 1 - actualWidth / expectedWidth;\n if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {\n font.numLigatures++;\n return true;\n }\n return false;\n }\n var is_icon_ligature_default = isIconLigature;\n function accessibleTextVirtual(virtualNode) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n context = prepareContext(virtualNode, context);\n if (shouldIgnoreHidden(virtualNode, context)) {\n return '';\n }\n if (shouldIgnoreIconLigature(virtualNode, context)) {\n return '';\n }\n var computationSteps = [ arialabelledby_text_default, arialabel_text_default, native_text_alternative_default, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];\n var accName = computationSteps.reduce(function(accName2, step) {\n if (context.startNode === virtualNode) {\n accName2 = sanitize_default(accName2);\n }\n if (accName2 !== '') {\n return accName2;\n }\n return step(virtualNode, context);\n }, '');\n if (context.debug) {\n axe.log(accName || '{empty-value}', virtualNode.actualNode, context);\n }\n return accName;\n }\n function textNodeValue(virtualNode) {\n if (virtualNode.props.nodeType !== 3) {\n return '';\n }\n return virtualNode.props.nodeValue;\n }\n function shouldIgnoreHidden(virtualNode, context) {\n if (!virtualNode) {\n return false;\n }\n if (virtualNode.props.nodeType !== 1 || context.includeHidden) {\n return false;\n }\n return !_isVisibleToScreenReaders(virtualNode);\n }\n function shouldIgnoreIconLigature(virtualNode, context) {\n var _context$occurrenceTh;\n var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold;\n var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold;\n if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {\n return false;\n }\n return is_icon_ligature_default(virtualNode, pixelThreshold, occurrenceThreshold);\n }\n function prepareContext(virtualNode, context) {\n if (!context.startNode) {\n context = _extends({\n startNode: virtualNode\n }, context);\n }\n if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) {\n context = _extends({\n includeHidden: !_isVisibleToScreenReaders(virtualNode)\n }, context);\n }\n return context;\n }\n accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) {\n context.processed = context.processed || [];\n if (context.processed.includes(virtualnode)) {\n return true;\n }\n context.processed.push(virtualnode);\n return false;\n };\n var accessible_text_virtual_default = accessibleTextVirtual;\n function removeUnicode(str, options) {\n var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;\n if (emoji) {\n str = str.replace(emoji_regex_default(), '');\n }\n if (nonBmp) {\n str = str.replace(getUnicodeNonBmpRegExp(), '');\n str = str.replace(getSupplementaryPrivateUseRegExp(), '');\n }\n if (punctuations) {\n str = str.replace(getPunctuationRegExp(), '');\n }\n return str;\n }\n var remove_unicode_default = removeUnicode;\n function isHumanInterpretable(str) {\n if (!str.length) {\n return 0;\n }\n var alphaNumericIconMap = [ 'x', 'i' ];\n if (alphaNumericIconMap.includes(str)) {\n return 0;\n }\n var noUnicodeStr = remove_unicode_default(str, {\n emoji: true,\n nonBmp: true,\n punctuations: true\n });\n if (!sanitize_default(noUnicodeStr)) {\n return 0;\n }\n return 1;\n }\n var is_human_interpretable_default = isHumanInterpretable;\n var _autocomplete = {\n stateTerms: [ 'on', 'off' ],\n standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],\n qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],\n qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],\n locations: [ 'billing', 'shipping' ]\n };\n function isValidAutocomplete(autocompleteValue) {\n var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref37$looseTyped = _ref37.looseTyped, looseTyped = _ref37$looseTyped === void 0 ? false : _ref37$looseTyped, _ref37$stateTerms = _ref37.stateTerms, stateTerms = _ref37$stateTerms === void 0 ? [] : _ref37$stateTerms, _ref37$locations = _ref37.locations, locations = _ref37$locations === void 0 ? [] : _ref37$locations, _ref37$qualifiers = _ref37.qualifiers, qualifiers = _ref37$qualifiers === void 0 ? [] : _ref37$qualifiers, _ref37$standaloneTerm = _ref37.standaloneTerms, standaloneTerms = _ref37$standaloneTerm === void 0 ? [] : _ref37$standaloneTerm, _ref37$qualifiedTerms = _ref37.qualifiedTerms, qualifiedTerms = _ref37$qualifiedTerms === void 0 ? [] : _ref37$qualifiedTerms;\n autocompleteValue = autocompleteValue.toLowerCase().trim();\n stateTerms = stateTerms.concat(_autocomplete.stateTerms);\n if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {\n return true;\n }\n qualifiers = qualifiers.concat(_autocomplete.qualifiers);\n locations = locations.concat(_autocomplete.locations);\n standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);\n qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);\n var autocompleteTerms = autocompleteValue.split(/\\s+/g);\n if (autocompleteTerms[autocompleteTerms.length - 1] === 'webauthn') {\n autocompleteTerms.pop();\n if (autocompleteTerms.length === 0) {\n return false;\n }\n }\n if (!looseTyped) {\n if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {\n autocompleteTerms.shift();\n }\n if (locations.includes(autocompleteTerms[0])) {\n autocompleteTerms.shift();\n }\n if (qualifiers.includes(autocompleteTerms[0])) {\n autocompleteTerms.shift();\n standaloneTerms = [];\n }\n if (autocompleteTerms.length !== 1) {\n return false;\n }\n }\n var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];\n return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);\n }\n var is_valid_autocomplete_default = isValidAutocomplete;\n function labelVirtual(virtualNode) {\n var ref, candidate;\n if (virtualNode.attr('aria-labelledby')) {\n ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');\n candidate = ref.map(function(thing) {\n var vNode = get_node_from_tree_default(thing);\n return vNode ? visible_virtual_default(vNode) : '';\n }).join(' ').trim();\n if (candidate) {\n return candidate;\n }\n }\n candidate = virtualNode.attr('aria-label');\n if (candidate) {\n candidate = sanitize_default(candidate);\n if (candidate) {\n return candidate;\n }\n }\n return null;\n }\n var label_virtual_default = labelVirtual;\n function visible(element, screenReader, noRecursing) {\n element = get_node_from_tree_default(element);\n return visible_virtual_default(element, screenReader, noRecursing);\n }\n var visible_default = visible;\n function labelVirtual2(virtualNode) {\n var ref, candidate, doc;\n candidate = label_virtual_default(virtualNode);\n if (candidate) {\n return candidate;\n }\n if (virtualNode.attr('id')) {\n if (!virtualNode.actualNode) {\n throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');\n }\n var id = escape_selector_default(virtualNode.attr('id'));\n doc = get_root_node_default2(virtualNode.actualNode);\n ref = doc.querySelector('label[for=\"' + id + '\"]');\n candidate = ref && visible_default(ref, true);\n if (candidate) {\n return candidate;\n }\n }\n ref = closest_default(virtualNode, 'label');\n candidate = ref && visible_virtual_default(ref, true);\n if (candidate) {\n return candidate;\n }\n return null;\n }\n var label_virtual_default2 = labelVirtual2;\n function label(node) {\n node = get_node_from_tree_default(node);\n return label_virtual_default2(node);\n }\n var label_default = label;\n var nativeElementType = [ {\n matches: [ {\n nodeName: 'textarea'\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]\n }\n } ],\n namingMethods: 'labelText'\n }, {\n matches: {\n nodeName: 'input',\n properties: {\n type: [ 'button', 'submit', 'reset' ]\n }\n },\n namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]\n }, {\n matches: {\n nodeName: 'input',\n properties: {\n type: 'image'\n }\n },\n namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]\n }, {\n matches: 'button',\n namingMethods: 'subtreeText'\n }, {\n matches: 'fieldset',\n namingMethods: 'fieldsetLegendText'\n }, {\n matches: 'OUTPUT',\n namingMethods: 'subtreeText'\n }, {\n matches: [ {\n nodeName: 'select'\n }, {\n nodeName: 'input',\n properties: {\n type: /^(?!text|password|search|tel|email|url|button|submit|reset)/\n }\n } ],\n namingMethods: 'labelText'\n }, {\n matches: 'summary',\n namingMethods: 'subtreeText'\n }, {\n matches: 'figure',\n namingMethods: [ 'figureText', 'titleText' ]\n }, {\n matches: 'img',\n namingMethods: 'altText'\n }, {\n matches: 'table',\n namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]\n }, {\n matches: [ 'hr', 'br' ],\n namingMethods: [ 'titleText', 'singleSpace' ]\n } ];\n var native_element_type_default = nativeElementType;\n function visibleTextNodes(vNode) {\n var parentVisible = _isVisibleOnScreen(vNode);\n var nodes = [];\n vNode.children.forEach(function(child) {\n if (child.actualNode.nodeType === 3) {\n if (parentVisible) {\n nodes.push(child);\n }\n } else {\n nodes = nodes.concat(visibleTextNodes(child));\n }\n });\n return nodes;\n }\n var visible_text_nodes_default = visibleTextNodes;\n var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) {\n var vNode = get_node_from_tree_default(node);\n var nodeRect = vNode.boundingClientRect;\n var clientRects = [];\n var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);\n node.childNodes.forEach(function(textNode) {\n if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') {\n return;\n }\n var contentRects = getContentRects(textNode);\n if (isOutsideNodeBounds(contentRects, nodeRect)) {\n return;\n }\n clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes)));\n });\n return clientRects.length ? clientRects : [ nodeRect ];\n });\n var get_visible_child_text_rects_default = getVisibleChildTextRects;\n function getContentRects(node) {\n var range = document.createRange();\n range.selectNodeContents(node);\n return Array.from(range.getClientRects());\n }\n function isOutsideNodeBounds(rects, nodeRect) {\n return rects.some(function(rect) {\n var centerPoint = _getRectCenter(rect);\n return !_isPointInRect(centerPoint, nodeRect);\n });\n }\n function filterHiddenRects(contentRects, overflowHiddenNodes) {\n var visibleRects = [];\n contentRects.forEach(function(contentRect) {\n if (contentRect.width < 1 || contentRect.height < 1) {\n return;\n }\n var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {\n return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);\n }, contentRect);\n if (visibleRect) {\n visibleRects.push(visibleRect);\n }\n });\n return visibleRects;\n }\n function getTextElementStack(node) {\n _createGrid();\n var vNode = get_node_from_tree_default(node);\n var grid = vNode._grid;\n if (!grid) {\n return [];\n }\n var clientRects = get_visible_child_text_rects_default(node);\n return clientRects.map(function(rect) {\n return getRectStack(grid, rect);\n });\n }\n var get_text_element_stack_default = getTextElementStack;\n var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];\n function isVisualContent(el) {\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n var role = axe.commons.aria.getExplicitRole(vNode);\n if (role) {\n return visualRoles.indexOf(role) !== -1;\n }\n switch (vNode.props.nodeName) {\n case 'img':\n case 'iframe':\n case 'object':\n case 'video':\n case 'audio':\n case 'canvas':\n case 'svg':\n case 'math':\n case 'button':\n case 'select':\n case 'textarea':\n case 'keygen':\n case 'progress':\n case 'meter':\n return true;\n\n case 'input':\n return vNode.props.type !== 'hidden';\n\n default:\n return false;\n }\n }\n var is_visual_content_default = isVisualContent;\n var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ];\n function hasChildTextNodes(elm) {\n if (hiddenTextElms.includes(elm.props.nodeName)) {\n return false;\n }\n return elm.children.some(function(_ref38) {\n var props = _ref38.props;\n return props.nodeType === 3 && props.nodeValue.trim();\n });\n }\n function hasContentVirtual(elm, noRecursion, ignoreAria) {\n return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {\n return child.actualNode.nodeType === 1 && hasContentVirtual(child);\n });\n }\n var has_content_virtual_default = hasContentVirtual;\n function hasContent(elm, noRecursion, ignoreAria) {\n elm = get_node_from_tree_default(elm);\n return has_content_virtual_default(elm, noRecursion, ignoreAria);\n }\n var has_content_default = hasContent;\n function _hasLangText(virtualNode) {\n if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) {\n return true;\n }\n if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) {\n return !!axe.commons.text.accessibleTextVirtual(virtualNode);\n }\n return virtualNode.children.some(function(child) {\n return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child);\n });\n }\n function insertedIntoFocusOrder(el) {\n var tabIndex = parseInt(el.getAttribute('tabindex'), 10);\n return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el);\n }\n var inserted_into_focus_order_default = insertedIntoFocusOrder;\n function isHiddenWithCSS(node, descendentVisibilityValue) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n var el = node instanceof window.Node ? node : vNode === null || vNode === void 0 ? void 0 : vNode.actualNode;\n if (!vNode) {\n return _isHiddenWithCSS(el, descendentVisibilityValue);\n }\n if (vNode._isHiddenWithCSS === void 0) {\n vNode._isHiddenWithCSS = _isHiddenWithCSS(el, descendentVisibilityValue);\n }\n return vNode._isHiddenWithCSS;\n }\n function _isHiddenWithCSS(el, descendentVisibilityValue) {\n if (el.nodeType === 9) {\n return false;\n }\n if (el.nodeType === 11) {\n el = el.host;\n }\n if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {\n return false;\n }\n var style = window.getComputedStyle(el, null);\n if (!style) {\n throw new Error('Style does not exist for the given element.');\n }\n var displayValue = style.getPropertyValue('display');\n if (displayValue === 'none') {\n return true;\n }\n var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];\n var visibilityValue = style.getPropertyValue('visibility');\n if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {\n return true;\n }\n if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {\n return true;\n }\n var parent = get_composed_parent_default(el);\n if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {\n return isHiddenWithCSS(parent, visibilityValue);\n }\n return false;\n }\n var is_hidden_with_css_default = isHiddenWithCSS;\n function isHTML5(doc) {\n var node = doc.doctype;\n if (node === null) {\n return false;\n }\n return node.name === 'html' && !node.publicId && !node.systemId;\n }\n var is_html5_default = isHTML5;\n function _isInTabOrder(el) {\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n if (vNode.props.nodeType !== 1) {\n return false;\n }\n var tabindex = parseInt(vNode.attr('tabindex', 10));\n if (tabindex <= -1) {\n return false;\n }\n return _isFocusable(vNode);\n }\n function getRoleType(role) {\n var _window3;\n if (role instanceof abstract_virtual_node_default || (_window3 = window) !== null && _window3 !== void 0 && _window3.Node && role instanceof window.Node) {\n role = axe.commons.aria.getRole(role);\n }\n var roleDef = standards_default.ariaRoles[role];\n return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null;\n }\n var get_role_type_default = getRoleType;\n function walkDomNode(node, functor) {\n if (functor(node.actualNode) !== false) {\n node.children.forEach(function(child) {\n return walkDomNode(child, functor);\n });\n }\n }\n var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];\n function isBlock(elm) {\n var display = window.getComputedStyle(elm).getPropertyValue('display');\n return blockLike.includes(display) || display.substr(0, 6) === 'table-';\n }\n function getBlockParent(node) {\n var parentBlock = get_composed_parent_default(node);\n while (parentBlock && !isBlock(parentBlock)) {\n parentBlock = get_composed_parent_default(parentBlock);\n }\n return get_node_from_tree_default(parentBlock);\n }\n function isInTextBlock(node, options) {\n if (isBlock(node)) {\n return false;\n }\n var virtualParent = getBlockParent(node);\n var parentText = '';\n var widgetText = '';\n var inBrBlock = 0;\n walkDomNode(virtualParent, function(currNode) {\n if (inBrBlock === 2) {\n return false;\n }\n if (currNode.nodeType === 3) {\n parentText += currNode.nodeValue;\n }\n if (currNode.nodeType !== 1) {\n return;\n }\n var nodeName2 = (currNode.nodeName || '').toUpperCase();\n if (currNode === node) {\n inBrBlock = 1;\n }\n if ([ 'BR', 'HR' ].includes(nodeName2)) {\n if (inBrBlock === 0) {\n parentText = '';\n widgetText = '';\n } else {\n inBrBlock = 2;\n }\n } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {\n return false;\n } else if (get_role_type_default(currNode) === 'widget') {\n widgetText += currNode.textContent;\n return false;\n }\n });\n parentText = sanitize_default(parentText);\n if (options !== null && options !== void 0 && options.noLengthCompare) {\n return parentText.length !== 0;\n }\n widgetText = sanitize_default(widgetText);\n return parentText.length > widgetText.length;\n }\n var is_in_text_block_default = isInTextBlock;\n function isModalOpen(options) {\n options = options || {};\n var modalPercent = options.modalPercent || .75;\n if (cache_default.get('isModalOpen')) {\n return cache_default.get('isModalOpen');\n }\n var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen);\n if (definiteModals.length) {\n cache_default.set('isModalOpen', true);\n return true;\n }\n var viewport = get_viewport_size_default(window);\n var percentWidth = viewport.width * modalPercent;\n var percentHeight = viewport.height * modalPercent;\n var x = (viewport.width - percentWidth) / 2;\n var y = (viewport.height - percentHeight) / 2;\n var points = [ {\n x: x,\n y: y\n }, {\n x: viewport.width - x,\n y: y\n }, {\n x: viewport.width / 2,\n y: viewport.height / 2\n }, {\n x: x,\n y: viewport.height - y\n }, {\n x: viewport.width - x,\n y: viewport.height - y\n } ];\n var stacks = points.map(function(point) {\n return Array.from(document.elementsFromPoint(point.x, point.y));\n });\n var _loop4 = function _loop4(_i9) {\n var modalElement = stacks[_i9].find(function(elm) {\n var style = window.getComputedStyle(elm);\n return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');\n });\n if (modalElement && stacks.every(function(stack) {\n return stack.includes(modalElement);\n })) {\n cache_default.set('isModalOpen', true);\n return {\n v: true\n };\n }\n };\n for (var _i9 = 0; _i9 < stacks.length; _i9++) {\n var _ret = _loop4(_i9);\n if (_typeof(_ret) === 'object') {\n return _ret.v;\n }\n }\n cache_default.set('isModalOpen', void 0);\n return void 0;\n }\n var is_modal_open_default = isModalOpen;\n function _isMultiline(domNode) {\n var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n var range = domNode.ownerDocument.createRange();\n range.setStart(domNode, 0);\n range.setEnd(domNode, domNode.childNodes.length);\n var lastLineEnd = 0;\n var lineCount = 0;\n var _iterator4 = _createForOfIteratorHelper(range.getClientRects()), _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {\n var rect = _step4.value;\n if (rect.height <= margin) {\n continue;\n }\n if (lastLineEnd > rect.top + margin) {\n lastLineEnd = Math.max(lastLineEnd, rect.bottom);\n } else if (lineCount === 0) {\n lastLineEnd = rect.bottom;\n lineCount++;\n } else {\n return true;\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n return false;\n }\n function isNode(element) {\n return element instanceof window.Node;\n }\n var is_node_default = isNode;\n var data = {};\n var incompleteData = {\n set: function set(key, reason) {\n if (typeof key !== 'string') {\n throw new Error('Incomplete data: key must be a string');\n }\n if (reason) {\n data[key] = reason;\n }\n return data[key];\n },\n get: function get(key) {\n return data[key];\n },\n clear: function clear() {\n data = {};\n }\n };\n var incomplete_data_default = incompleteData;\n function elementHasImage(elm, style) {\n var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];\n var nodeName2 = elm.nodeName.toUpperCase();\n if (graphicNodes.includes(nodeName2)) {\n incomplete_data_default.set('bgColor', 'imgNode');\n return true;\n }\n style = style || window.getComputedStyle(elm);\n var bgImageStyle = style.getPropertyValue('background-image');\n var hasBgImage = bgImageStyle !== 'none';\n if (hasBgImage) {\n var hasGradient = /gradient/.test(bgImageStyle);\n incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');\n }\n return hasBgImage;\n }\n var element_has_image_default = elementHasImage;\n var hexRegex = /^#[0-9a-f]{3,8}$/i;\n var colorFnRegex = /^((?:rgb|hsl)a?)\\s*\\(([^\\)]*)\\)/i;\n var Color = function() {\n function Color(red, green, blue) {\n var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n _classCallCheck(this, Color);\n this.red = red;\n this.green = green;\n this.blue = blue;\n this.alpha = alpha;\n }\n _createClass(Color, [ {\n key: 'toHexString',\n value: function toHexString() {\n var redString = Math.round(this.red).toString(16);\n var greenString = Math.round(this.green).toString(16);\n var blueString = Math.round(this.blue).toString(16);\n return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);\n }\n }, {\n key: 'toJSON',\n value: function toJSON() {\n var red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;\n return {\n red: red,\n green: green,\n blue: blue,\n alpha: alpha\n };\n }\n }, {\n key: 'parseString',\n value: function parseString(colorString) {\n if (standards_default.cssColors[colorString] || colorString === 'transparent') {\n var _ref39 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref40 = _slicedToArray(_ref39, 3), red = _ref40[0], green = _ref40[1], blue = _ref40[2];\n this.red = red;\n this.green = green;\n this.blue = blue;\n this.alpha = colorString === 'transparent' ? 0 : 1;\n return this;\n }\n if (colorString.match(colorFnRegex)) {\n this.parseColorFnString(colorString);\n return this;\n }\n if (colorString.match(hexRegex)) {\n this.parseHexString(colorString);\n return this;\n }\n throw new Error('Unable to parse color \"'.concat(colorString, '\"'));\n }\n }, {\n key: 'parseRgbString',\n value: function parseRgbString(colorString) {\n if (colorString === 'transparent') {\n this.red = 0;\n this.green = 0;\n this.blue = 0;\n this.alpha = 0;\n return;\n }\n this.parseColorFnString(colorString);\n }\n }, {\n key: 'parseHexString',\n value: function parseHexString(colorString) {\n if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {\n return;\n }\n colorString = colorString.replace('#', '');\n if (colorString.length < 6) {\n var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];\n colorString = r + r + g + g + b + b;\n if (a) {\n colorString += a + a;\n }\n }\n var aRgbHex = colorString.match(/.{1,2}/g);\n this.red = parseInt(aRgbHex[0], 16);\n this.green = parseInt(aRgbHex[1], 16);\n this.blue = parseInt(aRgbHex[2], 16);\n if (aRgbHex[3]) {\n this.alpha = parseInt(aRgbHex[3], 16) / 255;\n } else {\n this.alpha = 1;\n }\n }\n }, {\n key: 'parseColorFnString',\n value: function parseColorFnString(colorString) {\n var _ref41 = colorString.match(colorFnRegex) || [], _ref42 = _slicedToArray(_ref41, 3), colorFunc = _ref42[1], colorValStr = _ref42[2];\n if (!colorFunc || !colorValStr) {\n return;\n }\n var colorVals = colorValStr.split(/\\s*[,\\/\\s]\\s*/).map(function(str) {\n return str.replace(',', '').trim();\n }).filter(function(str) {\n return str !== '';\n });\n var colorNums = colorVals.map(function(val, index) {\n return convertColorVal(colorFunc, val, index);\n });\n if (colorFunc.substr(0, 3) === 'hsl') {\n colorNums = hslToRgb(colorNums);\n }\n this.red = colorNums[0];\n this.green = colorNums[1];\n this.blue = colorNums[2];\n this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;\n }\n }, {\n key: 'getRelativeLuminance',\n value: function getRelativeLuminance() {\n var rSRGB = this.red / 255;\n var gSRGB = this.green / 255;\n var bSRGB = this.blue / 255;\n var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);\n var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);\n var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);\n return .2126 * r + .7152 * g + .0722 * b;\n }\n } ]);\n return Color;\n }();\n var color_default = Color;\n function convertColorVal(colorFunc, value, index) {\n if (/%$/.test(value)) {\n if (index === 3) {\n return parseFloat(value) / 100;\n }\n return parseFloat(value) * 255 / 100;\n }\n if (colorFunc[index] === 'h') {\n if (/turn$/.test(value)) {\n return parseFloat(value) * 360;\n }\n if (/rad$/.test(value)) {\n return parseFloat(value) * 57.3;\n }\n }\n return parseFloat(value);\n }\n function hslToRgb(_ref43) {\n var _ref44 = _slicedToArray(_ref43, 4), hue = _ref44[0], saturation = _ref44[1], lightness = _ref44[2], alpha = _ref44[3];\n saturation /= 255;\n lightness /= 255;\n var high = (1 - Math.abs(2 * lightness - 1)) * saturation;\n var low = high * (1 - Math.abs(hue / 60 % 2 - 1));\n var base = lightness - high / 2;\n var colors;\n if (hue < 60) {\n colors = [ high, low, 0 ];\n } else if (hue < 120) {\n colors = [ low, high, 0 ];\n } else if (hue < 180) {\n colors = [ 0, high, low ];\n } else if (hue < 240) {\n colors = [ 0, low, high ];\n } else if (hue < 300) {\n colors = [ low, 0, high ];\n } else {\n colors = [ high, 0, low ];\n }\n return colors.map(function(color) {\n return Math.round((color + base) * 255);\n }).concat(alpha);\n }\n function getOwnBackgroundColor(elmStyle) {\n var bgColor = new color_default();\n bgColor.parseString(elmStyle.getPropertyValue('background-color'));\n if (bgColor.alpha !== 0) {\n var opacity = elmStyle.getPropertyValue('opacity');\n bgColor.alpha = bgColor.alpha * opacity;\n }\n return bgColor;\n }\n var get_own_background_color_default = getOwnBackgroundColor;\n function isOpaque(node) {\n var style = window.getComputedStyle(node);\n return element_has_image_default(node, style) || get_own_background_color_default(style).alpha === 1;\n }\n var is_opaque_default = isOpaque;\n function _isSkipLink(element) {\n if (!element.href) {\n return false;\n }\n var firstPageLink = cache_default.get('firstPageLink', generateFirstPageLink);\n if (!firstPageLink) {\n return true;\n }\n return element.compareDocumentPosition(firstPageLink.actualNode) === element.DOCUMENT_POSITION_FOLLOWING;\n }\n function generateFirstPageLink() {\n var firstPageLink;\n if (!window.location.origin) {\n firstPageLink = query_selector_all_default(axe._tree, 'a:not([href^=\"#\"]):not([href^=\"/#\"]):not([href^=\"javascript:\"])')[0];\n } else {\n firstPageLink = query_selector_all_default(axe._tree, 'a[href]:not([href^=\"javascript:\"])').find(function(link) {\n return !_isCurrentPageLink(link.actualNode);\n });\n }\n return firstPageLink || null;\n }\n var clipRegex2 = /rect\\s*\\(([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px\\s*\\)/;\n var clipPathRegex2 = /(\\w+)\\((\\d+)/;\n function isClipped(style) {\n var matchesClip = style.getPropertyValue('clip').match(clipRegex2);\n var matchesClipPath = style.getPropertyValue('clip-path').match(clipPathRegex2);\n if (matchesClip && matchesClip.length === 5) {\n var position = style.getPropertyValue('position');\n if ([ 'fixed', 'absolute' ].includes(position)) {\n return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;\n }\n }\n if (matchesClipPath) {\n var type = matchesClipPath[1];\n var value = parseInt(matchesClipPath[2], 10);\n switch (type) {\n case 'inset':\n return value >= 50;\n\n case 'circle':\n return value === 0;\n\n default:\n }\n }\n return false;\n }\n function isAreaVisible(el, screenReader, recursed) {\n var mapEl = find_up_default(el, 'map');\n if (!mapEl) {\n return false;\n }\n var mapElName = mapEl.getAttribute('name');\n if (!mapElName) {\n return false;\n }\n var mapElRootNode = get_root_node_default2(el);\n if (!mapElRootNode || mapElRootNode.nodeType !== 9) {\n return false;\n }\n var refs = query_selector_all_default(axe._tree, 'img[usemap=\"#'.concat(escape_selector_default(mapElName), '\"]'));\n if (!refs || !refs.length) {\n return false;\n }\n return refs.some(function(_ref45) {\n var actualNode = _ref45.actualNode;\n return isVisible(actualNode, screenReader, recursed);\n });\n }\n function isVisible(el, screenReader, recursed) {\n var _window$Node2;\n if (!el) {\n throw new TypeError('Cannot determine if element is visible for non-DOM nodes');\n }\n var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);\n el = vNode ? vNode.actualNode : el;\n var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');\n var _ref46 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref46.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref46.DOCUMENT_FRAGMENT_NODE;\n var nodeType = vNode ? vNode.props.nodeType : el.nodeType;\n var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();\n if (vNode && typeof vNode[cacheName] !== 'undefined') {\n return vNode[cacheName];\n }\n if (nodeType === DOCUMENT_NODE) {\n return true;\n }\n if ([ 'style', 'script', 'noscript', 'template' ].includes(nodeName2)) {\n return false;\n }\n if (el && nodeType === DOCUMENT_FRAGMENT_NODE) {\n el = el.host;\n }\n if (screenReader) {\n var ariaHiddenValue = vNode ? vNode.attr('aria-hidden') : el.getAttribute('aria-hidden');\n if (ariaHiddenValue === 'true') {\n return false;\n }\n }\n if (!el) {\n var parent2 = vNode.parent;\n var visible3 = true;\n if (parent2) {\n visible3 = isVisible(parent2, screenReader, true);\n }\n if (vNode) {\n vNode[cacheName] = visible3;\n }\n return visible3;\n }\n var style = window.getComputedStyle(el, null);\n if (style === null) {\n return false;\n }\n if (nodeName2 === 'area') {\n return isAreaVisible(el, screenReader, recursed);\n }\n if (style.getPropertyValue('display') === 'none') {\n return false;\n }\n var elHeight = parseInt(style.getPropertyValue('height'));\n var elWidth = parseInt(style.getPropertyValue('width'));\n var scroll = _getScroll(el);\n var scrollableWithZeroHeight = scroll && elHeight === 0;\n var scrollableWithZeroWidth = scroll && elWidth === 0;\n var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';\n if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) {\n return false;\n }\n if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) {\n return false;\n }\n var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;\n var visible2 = false;\n if (parent) {\n visible2 = isVisible(parent, screenReader, true);\n }\n if (vNode) {\n vNode[cacheName] = visible2;\n }\n return visible2;\n }\n var is_visible_default = isVisible;\n function reduceToElementsBelowFloating(elements, targetNode) {\n var floatingPositions = [ 'fixed', 'sticky' ];\n var finalElements = [];\n var targetFound = false;\n for (var index = 0; index < elements.length; ++index) {\n var currentNode = elements[index];\n if (currentNode === targetNode) {\n targetFound = true;\n }\n var style = window.getComputedStyle(currentNode);\n if (!targetFound && floatingPositions.indexOf(style.position) !== -1) {\n finalElements = [];\n continue;\n }\n finalElements.push(currentNode);\n }\n return finalElements;\n }\n var reduce_to_elements_below_floating_default = reduceToElementsBelowFloating;\n function _visuallyContains(node, parent) {\n var parentScrollAncestor = getScrollAncestor(parent);\n do {\n var nextScrollAncestor = getScrollAncestor(node);\n if (nextScrollAncestor === parentScrollAncestor || nextScrollAncestor === parent) {\n return contains2(node, parent);\n }\n node = nextScrollAncestor;\n } while (node);\n return false;\n }\n function getScrollAncestor(node) {\n var vNode = get_node_from_tree_default(node);\n var ancestor = vNode.parent;\n while (ancestor) {\n if (_getScroll(ancestor.actualNode)) {\n return ancestor.actualNode;\n }\n ancestor = ancestor.parent;\n }\n }\n function contains2(node, parent) {\n var style = window.getComputedStyle(parent);\n var overflow = style.getPropertyValue('overflow');\n if (style.getPropertyValue('display') === 'inline') {\n return true;\n }\n var clientRects = Array.from(node.getClientRects());\n var boundingRect = parent.getBoundingClientRect();\n var rect = {\n left: boundingRect.left,\n top: boundingRect.top,\n width: boundingRect.width,\n height: boundingRect.height\n };\n if ([ 'scroll', 'auto' ].includes(overflow) || parent instanceof window.HTMLHtmlElement) {\n rect.width = parent.scrollWidth;\n rect.height = parent.scrollHeight;\n }\n if (clientRects.length === 1 && overflow === 'hidden' && style.getPropertyValue('white-space') === 'nowrap') {\n clientRects[0] = rect;\n }\n return clientRects.some(function(clientRect) {\n return !(Math.ceil(clientRect.left) < Math.floor(rect.left) || Math.ceil(clientRect.top) < Math.floor(rect.top) || Math.floor(clientRect.left + clientRect.width) > Math.ceil(rect.left + rect.width) || Math.floor(clientRect.top + clientRect.height) > Math.ceil(rect.top + rect.height));\n });\n }\n function shadowElementsFromPoint(nodeX, nodeY) {\n var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document;\n var i = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n if (i > 999) {\n throw new Error('Infinite loop detected');\n }\n return Array.from(root.elementsFromPoint(nodeX, nodeY) || []).filter(function(nodes) {\n return get_root_node_default2(nodes) === root;\n }).reduce(function(stack, elm) {\n if (is_shadow_root_default(elm)) {\n var shadowStack = shadowElementsFromPoint(nodeX, nodeY, elm.shadowRoot, i + 1);\n stack = stack.concat(shadowStack);\n if (stack.length && _visuallyContains(stack[0], elm)) {\n stack.push(elm);\n }\n } else {\n stack.push(elm);\n }\n return stack;\n }, []);\n }\n var shadow_elements_from_point_default = shadowElementsFromPoint;\n function urlPropsFromAttribute(node, attribute) {\n if (!node.hasAttribute(attribute)) {\n return void 0;\n }\n var nodeName2 = node.nodeName.toUpperCase();\n var parser2 = node;\n if (![ 'A', 'AREA' ].includes(nodeName2) || node.ownerSVGElement) {\n parser2 = document.createElement('a');\n parser2.href = node.getAttribute(attribute);\n }\n var protocol = [ 'https:', 'ftps:' ].includes(parser2.protocol) ? parser2.protocol.replace(/s:$/, ':') : parser2.protocol;\n var parserPathname = /^\\//.test(parser2.pathname) ? parser2.pathname : '/'.concat(parser2.pathname);\n var _getPathnameOrFilenam = getPathnameOrFilename(parserPathname), pathname = _getPathnameOrFilenam.pathname, filename = _getPathnameOrFilenam.filename;\n return {\n protocol: protocol,\n hostname: parser2.hostname,\n port: getPort(parser2.port),\n pathname: /\\/$/.test(pathname) ? pathname : ''.concat(pathname, '/'),\n search: getSearchPairs(parser2.search),\n hash: getHashRoute(parser2.hash),\n filename: filename\n };\n }\n function getPort(port) {\n var excludePorts = [ '443', '80' ];\n return !excludePorts.includes(port) ? port : '';\n }\n function getPathnameOrFilename(pathname) {\n var filename = pathname.split('/').pop();\n if (!filename || filename.indexOf('.') === -1) {\n return {\n pathname: pathname,\n filename: ''\n };\n }\n return {\n pathname: pathname.replace(filename, ''),\n filename: /index./.test(filename) ? '' : filename\n };\n }\n function getSearchPairs(searchStr) {\n var query = {};\n if (!searchStr || !searchStr.length) {\n return query;\n }\n var pairs = searchStr.substring(1).split('&');\n if (!pairs || !pairs.length) {\n return query;\n }\n for (var index = 0; index < pairs.length; index++) {\n var pair = pairs[index];\n var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), key = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;\n query[decodeURIComponent(key)] = decodeURIComponent(value);\n }\n return query;\n }\n function getHashRoute(hash) {\n if (!hash) {\n return '';\n }\n var hashRegex = /#!?\\/?/g;\n var hasMatch = hash.match(hashRegex);\n if (!hasMatch) {\n return '';\n }\n var _hasMatch = _slicedToArray(hasMatch, 1), matchedStr = _hasMatch[0];\n if (matchedStr === '#') {\n return '';\n }\n return hash;\n }\n var url_props_from_attribute_default = urlPropsFromAttribute;\n function visuallyOverlaps(rect, parent) {\n var parentRect = parent.getBoundingClientRect();\n var parentTop = parentRect.top;\n var parentLeft = parentRect.left;\n var parentScrollArea = {\n top: parentTop - parent.scrollTop,\n bottom: parentTop - parent.scrollTop + parent.scrollHeight,\n left: parentLeft - parent.scrollLeft,\n right: parentLeft - parent.scrollLeft + parent.scrollWidth\n };\n if (rect.left > parentScrollArea.right && rect.left > parentRect.right || rect.top > parentScrollArea.bottom && rect.top > parentRect.bottom || rect.right < parentScrollArea.left && rect.right < parentRect.left || rect.bottom < parentScrollArea.top && rect.bottom < parentRect.top) {\n return false;\n }\n var style = window.getComputedStyle(parent);\n if (rect.left > parentRect.right || rect.top > parentRect.bottom) {\n return style.overflow === 'scroll' || style.overflow === 'auto' || parent instanceof window.HTMLBodyElement || parent instanceof window.HTMLHtmlElement;\n }\n return true;\n }\n var visually_overlaps_default = visuallyOverlaps;\n var isXHTMLGlobal;\n var nodeIndex2 = 0;\n var VirtualNode = function(_abstract_virtual_nod) {\n _inherits(VirtualNode, _abstract_virtual_nod);\n var _super = _createSuper(VirtualNode);\n function VirtualNode(node, parent, shadowId) {\n var _this;\n _classCallCheck(this, VirtualNode);\n _this = _super.call(this);\n _this.shadowId = shadowId;\n _this.children = [];\n _this.actualNode = node;\n _this.parent = parent;\n if (!parent) {\n nodeIndex2 = 0;\n }\n _this.nodeIndex = nodeIndex2++;\n _this._isHidden = null;\n _this._cache = {};\n if (typeof isXHTMLGlobal === 'undefined') {\n isXHTMLGlobal = is_xhtml_default(node.ownerDocument);\n }\n _this._isXHTML = isXHTMLGlobal;\n if (node.nodeName.toLowerCase() === 'input') {\n var type = node.getAttribute('type');\n type = _this._isXHTML ? type : (type || '').toLowerCase();\n if (!valid_input_type_default().includes(type)) {\n type = 'text';\n }\n _this._type = type;\n }\n if (cache_default.get('nodeMap')) {\n cache_default.get('nodeMap').set(node, _assertThisInitialized(_this));\n }\n return _this;\n }\n _createClass(VirtualNode, [ {\n key: 'props',\n get: function get() {\n if (!this._cache.hasOwnProperty('props')) {\n var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected;\n this._cache.props = {\n nodeType: nodeType,\n nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),\n id: id,\n type: this._type,\n multiple: multiple,\n nodeValue: nodeValue,\n value: value,\n selected: selected\n };\n }\n return this._cache.props;\n }\n }, {\n key: 'attr',\n value: function attr(attrName) {\n if (typeof this.actualNode.getAttribute !== 'function') {\n return null;\n }\n return this.actualNode.getAttribute(attrName);\n }\n }, {\n key: 'hasAttr',\n value: function hasAttr(attrName) {\n if (typeof this.actualNode.hasAttribute !== 'function') {\n return false;\n }\n return this.actualNode.hasAttribute(attrName);\n }\n }, {\n key: 'attrNames',\n get: function get() {\n if (!this._cache.hasOwnProperty('attrNames')) {\n var attrs;\n if (this.actualNode.attributes instanceof window.NamedNodeMap) {\n attrs = this.actualNode.attributes;\n } else {\n attrs = this.actualNode.cloneNode(false).attributes;\n }\n this._cache.attrNames = Array.from(attrs).map(function(attr) {\n return attr.name;\n });\n }\n return this._cache.attrNames;\n }\n }, {\n key: 'getComputedStylePropertyValue',\n value: function getComputedStylePropertyValue(property) {\n var key = 'computedStyle_' + property;\n if (!this._cache.hasOwnProperty(key)) {\n if (!this._cache.hasOwnProperty('computedStyle')) {\n this._cache.computedStyle = window.getComputedStyle(this.actualNode);\n }\n this._cache[key] = this._cache.computedStyle.getPropertyValue(property);\n }\n return this._cache[key];\n }\n }, {\n key: 'isFocusable',\n get: function get() {\n if (!this._cache.hasOwnProperty('isFocusable')) {\n this._cache.isFocusable = _isFocusable(this.actualNode);\n }\n return this._cache.isFocusable;\n }\n }, {\n key: 'tabbableElements',\n get: function get() {\n if (!this._cache.hasOwnProperty('tabbableElements')) {\n this._cache.tabbableElements = get_tabbable_elements_default(this);\n }\n return this._cache.tabbableElements;\n }\n }, {\n key: 'clientRects',\n get: function get() {\n if (!this._cache.hasOwnProperty('clientRects')) {\n this._cache.clientRects = Array.from(this.actualNode.getClientRects()).filter(function(rect) {\n return rect.width > 0;\n });\n }\n return this._cache.clientRects;\n }\n }, {\n key: 'boundingClientRect',\n get: function get() {\n if (!this._cache.hasOwnProperty('boundingClientRect')) {\n this._cache.boundingClientRect = this.actualNode.getBoundingClientRect();\n }\n return this._cache.boundingClientRect;\n }\n } ]);\n return VirtualNode;\n }(abstract_virtual_node_default);\n var virtual_node_default = VirtualNode;\n function tokenList(str) {\n return (str || '').trim().replace(/\\s{2,}/g, ' ').split(' ');\n }\n var token_list_default = tokenList;\n var idsKey = ' [idsMap]';\n function getNodesMatchingExpression(domTree, expressions, filter) {\n var selectorMap = domTree[0]._selectorMap;\n if (!selectorMap) {\n return;\n }\n var shadowId = domTree[0].shadowId;\n for (var _i10 = 0; _i10 < expressions.length; _i10++) {\n if (expressions[_i10].length > 1 && expressions[_i10].some(function(expression) {\n return isGlobalSelector(expression);\n })) {\n return;\n }\n }\n var nodeSet = new Set();\n expressions.forEach(function(expression) {\n var _matchingNodes$nodes;\n var matchingNodes = findMatchingNodes(expression, selectorMap, shadowId);\n matchingNodes === null || matchingNodes === void 0 ? void 0 : (_matchingNodes$nodes = matchingNodes.nodes) === null || _matchingNodes$nodes === void 0 ? void 0 : _matchingNodes$nodes.forEach(function(node) {\n if (matchingNodes.isComplexSelector && !_matchesExpression(node, expression)) {\n return;\n }\n nodeSet.add(node);\n });\n });\n var matchedNodes = [];\n nodeSet.forEach(function(node) {\n return matchedNodes.push(node);\n });\n if (filter) {\n matchedNodes = matchedNodes.filter(filter);\n }\n return matchedNodes.sort(function(a, b) {\n return a.nodeIndex - b.nodeIndex;\n });\n }\n function findMatchingNodes(expression, selectorMap, shadowId) {\n var exp = expression[expression.length - 1];\n var nodes = null;\n var isComplexSelector = expression.length > 1 || !!exp.pseudos || !!exp.classes;\n if (isGlobalSelector(exp)) {\n nodes = selectorMap['*'];\n } else {\n if (exp.id) {\n var _selectorMap$idsKey$e;\n if (!selectorMap[idsKey] || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {\n return;\n }\n nodes = selectorMap[idsKey][exp.id].filter(function(node) {\n return node.shadowId === shadowId;\n });\n }\n if (exp.tag && exp.tag !== '*') {\n var _selectorMap$exp$tag;\n if (!((_selectorMap$exp$tag = selectorMap[exp.tag]) !== null && _selectorMap$exp$tag !== void 0 && _selectorMap$exp$tag.length)) {\n return;\n }\n var cachedNodes = selectorMap[exp.tag];\n nodes = nodes ? getSharedValues(cachedNodes, nodes) : cachedNodes;\n }\n if (exp.classes) {\n var _selectorMap$Class;\n if (!((_selectorMap$Class = selectorMap['[class]']) !== null && _selectorMap$Class !== void 0 && _selectorMap$Class.length)) {\n return;\n }\n var _cachedNodes = selectorMap['[class]'];\n nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes;\n }\n if (exp.attributes) {\n for (var _i11 = 0; _i11 < exp.attributes.length; _i11++) {\n var _selectorMap;\n var attr = exp.attributes[_i11];\n if (attr.type === 'attrValue') {\n isComplexSelector = true;\n }\n if (!((_selectorMap = selectorMap['['.concat(attr.key, ']')]) !== null && _selectorMap !== void 0 && _selectorMap.length)) {\n return;\n }\n var _cachedNodes2 = selectorMap['['.concat(attr.key, ']')];\n nodes = nodes ? getSharedValues(_cachedNodes2, nodes) : _cachedNodes2;\n }\n }\n }\n return {\n nodes: nodes,\n isComplexSelector: isComplexSelector\n };\n }\n function isGlobalSelector(expression) {\n return expression.tag === '*' && !expression.attributes && !expression.id && !expression.classes;\n }\n function getSharedValues(a, b) {\n return a.filter(function(node) {\n return b.includes(node);\n });\n }\n function cacheSelector(key, vNode, map) {\n map[key] = map[key] || [];\n map[key].push(vNode);\n }\n function cacheNodeSelectors(vNode, selectorMap) {\n if (vNode.props.nodeType !== 1) {\n return;\n }\n cacheSelector(vNode.props.nodeName, vNode, selectorMap);\n cacheSelector('*', vNode, selectorMap);\n vNode.attrNames.forEach(function(attrName) {\n if (attrName === 'id') {\n selectorMap[idsKey] = selectorMap[idsKey] || {};\n token_list_default(vNode.attr(attrName)).forEach(function(value) {\n cacheSelector(value, vNode, selectorMap[idsKey]);\n });\n }\n cacheSelector('['.concat(attrName, ']'), vNode, selectorMap);\n });\n }\n var hasShadowRoot;\n function getSlotChildren(node) {\n var retVal = [];\n node = node.firstChild;\n while (node) {\n retVal.push(node);\n node = node.nextSibling;\n }\n return retVal;\n }\n function createNode(node, parent, shadowId) {\n var vNode = new virtual_node_default(node, parent, shadowId);\n cacheNodeSelectors(vNode, cache_default.get('selectorMap'));\n return vNode;\n }\n function flattenTree(node, shadowId, parent) {\n var retVal, realArray, nodeName2;\n function reduceShadowDOM(res, child, parent2) {\n var replacements = flattenTree(child, shadowId, parent2);\n if (replacements) {\n res = res.concat(replacements);\n }\n return res;\n }\n if (node.documentElement) {\n node = node.documentElement;\n }\n nodeName2 = node.nodeName.toLowerCase();\n if (is_shadow_root_default(node)) {\n hasShadowRoot = true;\n retVal = createNode(node, parent, shadowId);\n shadowId = 'a' + Math.random().toString().substring(2);\n realArray = Array.from(node.shadowRoot.childNodes);\n retVal.children = realArray.reduce(function(res, child) {\n return reduceShadowDOM(res, child, retVal);\n }, []);\n return [ retVal ];\n } else {\n if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') {\n realArray = Array.from(node.getDistributedNodes());\n return realArray.reduce(function(res, child) {\n return reduceShadowDOM(res, child, parent);\n }, []);\n } else if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') {\n realArray = Array.from(node.assignedNodes());\n if (!realArray.length) {\n realArray = getSlotChildren(node);\n }\n var styl = window.getComputedStyle(node);\n if (false) {\n retVal = createNode(node, parent, shadowId);\n retVal.children = realArray.reduce(function(res, child) {\n return reduceShadowDOM(res, child, retVal);\n }, []);\n return [ retVal ];\n } else {\n return realArray.reduce(function(res, child) {\n return reduceShadowDOM(res, child, parent);\n }, []);\n }\n } else {\n if (node.nodeType === 1) {\n retVal = createNode(node, parent, shadowId);\n realArray = Array.from(node.childNodes);\n retVal.children = realArray.reduce(function(res, child) {\n return reduceShadowDOM(res, child, retVal);\n }, []);\n return [ retVal ];\n } else if (node.nodeType === 3) {\n return [ createNode(node, parent) ];\n }\n return void 0;\n }\n }\n }\n function getFlattenedTree() {\n var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;\n var shadowId = arguments.length > 1 ? arguments[1] : undefined;\n hasShadowRoot = false;\n var selectorMap = {};\n cache_default.set('nodeMap', new WeakMap());\n cache_default.set('selectorMap', selectorMap);\n var tree = flattenTree(node, shadowId, null);\n tree[0]._selectorMap = selectorMap;\n tree[0]._hasShadowRoot = hasShadowRoot;\n return tree;\n }\n var get_flattened_tree_default = getFlattenedTree;\n function getBaseLang(lang) {\n if (!lang) {\n return '';\n }\n return lang.trim().split('-')[0].toLowerCase();\n }\n var get_base_lang_default = getBaseLang;\n function failureSummary(nodeData) {\n var failingChecks = {};\n failingChecks.none = nodeData.none.concat(nodeData.all);\n failingChecks.any = nodeData.any;\n return Object.keys(failingChecks).map(function(key) {\n if (!failingChecks[key].length) {\n return;\n }\n var sum = axe._audit.data.failureSummaries[key];\n if (sum && typeof sum.failureMessage === 'function') {\n return sum.failureMessage(failingChecks[key].map(function(check) {\n return check.message || '';\n }));\n }\n }).filter(function(i) {\n return i !== void 0;\n }).join('\\n\\n');\n }\n var failure_summary_default = failureSummary;\n function incompleteFallbackMessage() {\n var incompleteFallbackMessage2 = axe._audit.data.incompleteFallbackMessage;\n if (typeof incompleteFallbackMessage2 === 'function') {\n incompleteFallbackMessage2 = incompleteFallbackMessage2();\n }\n if (typeof incompleteFallbackMessage2 !== 'string') {\n return '';\n }\n return incompleteFallbackMessage2;\n }\n function normalizeRelatedNodes(node, options) {\n [ 'any', 'all', 'none' ].forEach(function(type) {\n if (!Array.isArray(node[type])) {\n return;\n }\n node[type].filter(function(checkRes) {\n return Array.isArray(checkRes.relatedNodes);\n }).forEach(function(checkRes) {\n checkRes.relatedNodes = checkRes.relatedNodes.map(function(relatedNode) {\n var _relatedNode$source;\n var res = {\n html: (_relatedNode$source = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.source) !== null && _relatedNode$source !== void 0 ? _relatedNode$source : 'Undefined'\n };\n if (options.elementRef && !(relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame)) {\n var _relatedNode$element;\n res.element = (_relatedNode$element = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.element) !== null && _relatedNode$element !== void 0 ? _relatedNode$element : null;\n }\n if (options.selectors !== false || relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame) {\n var _relatedNode$selector;\n res.target = (_relatedNode$selector = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.selector) !== null && _relatedNode$selector !== void 0 ? _relatedNode$selector : [ ':root' ];\n }\n if (options.ancestry) {\n var _relatedNode$ancestry;\n res.ancestry = (_relatedNode$ancestry = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.ancestry) !== null && _relatedNode$ancestry !== void 0 ? _relatedNode$ancestry : [ ':root' ];\n }\n if (options.xpath) {\n var _relatedNode$xpath;\n res.xpath = (_relatedNode$xpath = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.xpath) !== null && _relatedNode$xpath !== void 0 ? _relatedNode$xpath : [ '/' ];\n }\n return res;\n });\n });\n });\n }\n var resultKeys = constants_default.resultGroups;\n function processAggregate(results, options) {\n var resultObject = axe.utils.aggregateResult(results);\n resultKeys.forEach(function(key) {\n if (options.resultTypes && !options.resultTypes.includes(key)) {\n (resultObject[key] || []).forEach(function(ruleResult) {\n if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {\n ruleResult.nodes = [ ruleResult.nodes[0] ];\n }\n });\n }\n resultObject[key] = (resultObject[key] || []).map(function(ruleResult) {\n ruleResult = Object.assign({}, ruleResult);\n if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {\n ruleResult.nodes = ruleResult.nodes.map(function(subResult) {\n if (_typeof(subResult.node) === 'object') {\n subResult.html = subResult.node.source;\n if (options.elementRef && !subResult.node.fromFrame) {\n subResult.element = subResult.node.element;\n }\n if (options.selectors !== false || subResult.node.fromFrame) {\n subResult.target = subResult.node.selector;\n }\n if (options.ancestry) {\n subResult.ancestry = subResult.node.ancestry;\n }\n if (options.xpath) {\n subResult.xpath = subResult.node.xpath;\n }\n }\n delete subResult.result;\n delete subResult.node;\n normalizeRelatedNodes(subResult, options);\n return subResult;\n });\n }\n resultKeys.forEach(function(key2) {\n return delete ruleResult[key2];\n });\n delete ruleResult.pageLevel;\n delete ruleResult.result;\n return ruleResult;\n });\n });\n return resultObject;\n }\n var process_aggregate_default = processAggregate;\n var dataRegex = /\\$\\{\\s?data\\s?\\}/g;\n function substitute(str, data2) {\n if (typeof data2 === 'string') {\n return str.replace(dataRegex, data2);\n }\n for (var prop in data2) {\n if (data2.hasOwnProperty(prop)) {\n var regex = new RegExp('\\\\${\\\\s?data\\\\.' + prop + '\\\\s?}', 'g');\n var replace = typeof data2[prop] === 'undefined' ? '' : String(data2[prop]);\n str = str.replace(regex, replace);\n }\n }\n return str;\n }\n function processMessage(message, data2) {\n if (!message) {\n return;\n }\n if (Array.isArray(data2)) {\n data2.values = data2.join(', ');\n if (typeof message.singular === 'string' && typeof message.plural === 'string') {\n var str2 = data2.length === 1 ? message.singular : message.plural;\n return substitute(str2, data2);\n }\n return substitute(message, data2);\n }\n if (typeof message === 'string') {\n return substitute(message, data2);\n }\n if (typeof data2 === 'string') {\n var _str = message[data2];\n return substitute(_str, data2);\n }\n var str = message['default'] || incompleteFallbackMessage();\n if (data2 && data2.messageKey && message[data2.messageKey]) {\n str = message[data2.messageKey];\n }\n return processMessage(str, data2);\n }\n var process_message_default = processMessage;\n function getCheckMessage(checkId, type, data2) {\n var check = axe._audit.data.checks[checkId];\n if (!check) {\n throw new Error('Cannot get message for unknown check: '.concat(checkId, '.'));\n }\n if (!check.messages[type]) {\n throw new Error('Check \"'.concat(checkId, '\"\" does not have a \"').concat(type, '\" message.'));\n }\n return process_message_default(check.messages[type], data2);\n }\n var get_check_message_default = getCheckMessage;\n function getCheckOption(check, ruleID, options) {\n var ruleCheckOption = ((options.rules && options.rules[ruleID] || {}).checks || {})[check.id];\n var checkOption = (options.checks || {})[check.id];\n var enabled = check.enabled;\n var opts = check.options;\n if (checkOption) {\n if (checkOption.hasOwnProperty('enabled')) {\n enabled = checkOption.enabled;\n }\n if (checkOption.hasOwnProperty('options')) {\n opts = checkOption.options;\n }\n }\n if (ruleCheckOption) {\n if (ruleCheckOption.hasOwnProperty('enabled')) {\n enabled = ruleCheckOption.enabled;\n }\n if (ruleCheckOption.hasOwnProperty('options')) {\n opts = ruleCheckOption.options;\n }\n }\n return {\n enabled: enabled,\n options: opts,\n absolutePaths: options.absolutePaths\n };\n }\n var get_check_option_default = getCheckOption;\n function _getEnvironmentData() {\n var _win$location;\n var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var win = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;\n if (metadata && _typeof(metadata) === 'object') {\n return metadata;\n } else if (_typeof(win) !== 'object') {\n return {};\n }\n return {\n testEngine: {\n name: 'axe-core',\n version: axe.version\n },\n testRunner: {\n name: axe._audit.brand\n },\n testEnvironment: getTestEnvironment(win),\n timestamp: new Date().toISOString(),\n url: (_win$location = win.location) === null || _win$location === void 0 ? void 0 : _win$location.href\n };\n }\n function getTestEnvironment(win) {\n if (!win.navigator || _typeof(win.navigator) !== 'object') {\n return {};\n }\n var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;\n var _ref47 = getOrientation(win) || {}, angle = _ref47.angle, type = _ref47.type;\n return {\n userAgent: navigator.userAgent,\n windowWidth: innerWidth,\n windowHeight: innerHeight,\n orientationAngle: angle,\n orientationType: type\n };\n }\n function getOrientation(_ref48) {\n var screen = _ref48.screen;\n return screen.orientation || screen.msOrientation || screen.mozOrientation;\n }\n function createFrameContext(frame, _ref49) {\n var focusable = _ref49.focusable, page = _ref49.page;\n return {\n node: frame,\n include: [],\n exclude: [],\n initiator: false,\n focusable: focusable && frameFocusable(frame),\n size: getBoundingSize(frame),\n page: page\n };\n }\n function frameFocusable(frame) {\n var tabIndex = frame.getAttribute('tabindex');\n if (!tabIndex) {\n return true;\n }\n var _int = parseInt(tabIndex, 10);\n return isNaN(_int) || _int >= 0;\n }\n function getBoundingSize(domNode) {\n var width = parseInt(domNode.getAttribute('width'), 10);\n var height = parseInt(domNode.getAttribute('height'), 10);\n if (isNaN(width) || isNaN(height)) {\n var rect = domNode.getBoundingClientRect();\n width = isNaN(width) ? rect.width : width;\n height = isNaN(height) ? rect.height : height;\n }\n return {\n width: width,\n height: height\n };\n }\n function normalizeContext(contextSpec) {\n if (isContextObject(contextSpec)) {\n var msg = ' must be used inside include or exclude. It should not be on the same object.';\n assert2(!objectHasOwn(contextSpec, 'fromFrames'), 'fromFrames' + msg);\n assert2(!objectHasOwn(contextSpec, 'fromShadowDom'), 'fromShadowDom' + msg);\n } else if (isContextProp(contextSpec)) {\n contextSpec = {\n include: contextSpec,\n exclude: []\n };\n } else {\n return {\n include: [ document ],\n exclude: []\n };\n }\n var include = normalizeContextList(contextSpec.include);\n if (include.length === 0) {\n include.push(document);\n }\n var exclude = normalizeContextList(contextSpec.exclude);\n return {\n include: include,\n exclude: exclude\n };\n }\n function isContextSpec(contextSpec) {\n return isContextObject(contextSpec) || isContextProp(contextSpec);\n }\n function normalizeContextList() {\n var selectorList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var normalizedList = [];\n if (!isArrayLike(selectorList)) {\n selectorList = [ selectorList ];\n }\n for (var _i12 = 0; _i12 < selectorList.length; _i12++) {\n var normalizedSelector = normalizeContextSelector(selectorList[_i12]);\n if (normalizedSelector) {\n normalizedList.push(normalizedSelector);\n }\n }\n return normalizedList;\n }\n function normalizeContextSelector(selector) {\n if (selector instanceof window.Node) {\n return selector;\n }\n if (typeof selector === 'string') {\n return [ selector ];\n }\n if (isLabelledFramesSelector(selector)) {\n assertLabelledFrameSelector(selector);\n selector = selector.fromFrames;\n } else if (isLabelledShadowDomSelector(selector)) {\n selector = [ selector ];\n }\n return normalizeFrameSelectors(selector);\n }\n function normalizeFrameSelectors(frameSelectors) {\n if (!Array.isArray(frameSelectors)) {\n return;\n }\n var normalizedSelectors = [];\n var _iterator5 = _createForOfIteratorHelper(frameSelectors), _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {\n var selector = _step5.value;\n if (isLabelledShadowDomSelector(selector)) {\n assertLabelledShadowDomSelector(selector);\n selector = selector.fromShadowDom;\n }\n if (typeof selector !== 'string' && !isShadowSelector(selector)) {\n return;\n }\n normalizedSelectors.push(selector);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n return normalizedSelectors;\n }\n function isContextObject(contextSpec) {\n return [ 'include', 'exclude' ].some(function(prop) {\n return objectHasOwn(contextSpec, prop) && isContextProp(contextSpec[prop]);\n });\n }\n function isContextProp(contextList) {\n return typeof contextList === 'string' || contextList instanceof window.Node || isLabelledFramesSelector(contextList) || isLabelledShadowDomSelector(contextList) || isArrayLike(contextList);\n }\n function isLabelledFramesSelector(selector) {\n return objectHasOwn(selector, 'fromFrames');\n }\n function isLabelledShadowDomSelector(selector) {\n return objectHasOwn(selector, 'fromShadowDom');\n }\n function assertLabelledFrameSelector(selector) {\n assert2(Array.isArray(selector.fromFrames), 'fromFrames property must be an array');\n assert2(selector.fromFrames.every(function(selector2) {\n return !objectHasOwn(selector2, 'fromFrames');\n }), 'Invalid context; fromFrames selector must be appended, rather than nested');\n assert2(!objectHasOwn(selector, 'fromShadowDom'), 'fromFrames and fromShadowDom cannot be used on the same object');\n }\n function assertLabelledShadowDomSelector(selector) {\n assert2(Array.isArray(selector.fromShadowDom), 'fromShadowDom property must be an array');\n assert2(selector.fromShadowDom.every(function(selector2) {\n return !objectHasOwn(selector2, 'fromFrames');\n }), 'shadow selector must be inside fromFrame instead');\n assert2(selector.fromShadowDom.every(function(selector2) {\n return !objectHasOwn(selector2, 'fromShadowDom');\n }), 'fromShadowDom selector must be appended, rather than nested');\n }\n function isShadowSelector(selector) {\n return Array.isArray(selector) && selector.every(function(str) {\n return typeof str === 'string';\n });\n }\n function isArrayLike(arr) {\n return arr && _typeof(arr) === 'object' && typeof arr.length === 'number' && arr instanceof window.Node === false;\n }\n function assert2(bool, str) {\n assert_default(bool, 'Invalid context; '.concat(str, '\\nSee: https://github.com/dequelabs/axe-core/blob/master/doc/context.md'));\n }\n function objectHasOwn(obj, prop) {\n if (!obj || _typeof(obj) !== 'object') {\n return false;\n }\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n function parseSelectorArray(context, type) {\n var result = [];\n for (var _i13 = 0, l = context[type].length; _i13 < l; _i13++) {\n var item = context[type][_i13];\n if (item instanceof window.Node) {\n if (item.documentElement instanceof window.Node) {\n result.push(context.flatTree[0]);\n } else {\n result.push(get_node_from_tree_default(item));\n }\n } else if (item && item.length) {\n if (item.length > 1) {\n pushUniqueFrameSelector(context, type, item);\n } else {\n var nodeList = _shadowSelectAll(item[0]);\n result.push.apply(result, _toConsumableArray(nodeList.map(function(node) {\n return get_node_from_tree_default(node);\n })));\n }\n }\n }\n return result.filter(function(r) {\n return r;\n });\n }\n function pushUniqueFrameSelector(context, type, selectorArray) {\n context.frames = context.frames || [];\n var frameSelector = selectorArray.shift();\n var frames = _shadowSelectAll(frameSelector);\n frames.forEach(function(frame) {\n var frameContext = context.frames.find(function(result) {\n return result.node === frame;\n });\n if (!frameContext) {\n frameContext = createFrameContext(frame, context);\n context.frames.push(frameContext);\n }\n frameContext[type].push(selectorArray);\n });\n }\n function Context(spec, flatTree) {\n var _spec, _spec2, _spec3, _spec4, _this2 = this;\n spec = clone_default(spec);\n this.frames = [];\n this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;\n this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;\n this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;\n this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};\n spec = normalizeContext(spec);\n this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : get_flattened_tree_default(getRootNode2(spec));\n this.exclude = spec.exclude;\n this.include = spec.include;\n this.include = parseSelectorArray(this, 'include');\n this.exclude = parseSelectorArray(this, 'exclude');\n _select('frame, iframe', this).forEach(function(frame) {\n if (_isNodeInContext(frame, _this2)) {\n pushUniqueFrame(_this2, frame.actualNode);\n }\n });\n if (typeof this.page === 'undefined') {\n this.page = isPageContext(this);\n this.frames.forEach(function(frame) {\n frame.page = _this2.page;\n });\n }\n validateContext(this);\n if (!Array.isArray(this.include)) {\n this.include = Array.from(this.include);\n }\n this.include.sort(node_sorter_default);\n }\n function pushUniqueFrame(context, frame) {\n if (!_isVisibleToScreenReaders(frame) || find_by_default(context.frames, 'node', frame)) {\n return;\n }\n context.frames.push(createFrameContext(frame, context));\n }\n function isPageContext(_ref50) {\n var include = _ref50.include;\n return include.length === 1 && include[0].actualNode === document.documentElement;\n }\n function validateContext(context) {\n if (context.include.length === 0 && context.frames.length === 0) {\n var env = _respondable.isInFrame() ? 'frame' : 'page';\n throw new Error('No elements found for include in ' + env + ' Context');\n }\n }\n function getRootNode2(_ref51) {\n var include = _ref51.include, exclude = _ref51.exclude;\n var selectors = Array.from(include).concat(Array.from(exclude));\n for (var _i14 = 0; _i14 < selectors.length; _i14++) {\n var item = selectors[_i14];\n if (item instanceof window.Element) {\n return item.ownerDocument.documentElement;\n }\n if (item instanceof window.Document) {\n return item.documentElement;\n }\n }\n return document.documentElement;\n }\n function _getFrameContexts(context) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (options.iframes === false) {\n return [];\n }\n var _Context = new Context(context), frames = _Context.frames;\n return frames.map(function(_ref52) {\n var node = _ref52.node, frameContext = _objectWithoutProperties(_ref52, _excluded7);\n frameContext.initiator = false;\n var frameSelector = _getAncestry(node);\n return {\n frameSelector: frameSelector,\n frameContext: frameContext\n };\n });\n }\n function getRule(ruleId) {\n var rule = axe._audit.rules.find(function(rule2) {\n return rule2.id === ruleId;\n });\n if (!rule) {\n throw new Error('Cannot find rule by id: '.concat(ruleId));\n }\n return rule;\n }\n var get_rule_default = getRule;\n function _getScroll(elm) {\n var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var overflowX = elm.scrollWidth > elm.clientWidth + buffer;\n var overflowY = elm.scrollHeight > elm.clientHeight + buffer;\n if (!(overflowX || overflowY)) {\n return;\n }\n var style = window.getComputedStyle(elm);\n var scrollableX = isScrollable(style, 'overflow-x');\n var scrollableY = isScrollable(style, 'overflow-y');\n if (overflowX && scrollableX || overflowY && scrollableY) {\n return {\n elm: elm,\n top: elm.scrollTop,\n left: elm.scrollLeft\n };\n }\n }\n function isScrollable(style, prop) {\n var overflowProp = style.getPropertyValue(prop);\n return [ 'scroll', 'auto' ].includes(overflowProp);\n }\n function getElmScrollRecursive(root) {\n return Array.from(root.children || root.childNodes || []).reduce(function(scrolls, elm) {\n var scroll = _getScroll(elm);\n if (scroll) {\n scrolls.push(scroll);\n }\n return scrolls.concat(getElmScrollRecursive(elm));\n }, []);\n }\n function getScrollState() {\n var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;\n var root = win.document.documentElement;\n var windowScroll = [ win.pageXOffset !== void 0 ? {\n elm: win,\n top: win.pageYOffset,\n left: win.pageXOffset\n } : {\n elm: root,\n top: root.scrollTop,\n left: root.scrollLeft\n } ];\n return windowScroll.concat(getElmScrollRecursive(document.body));\n }\n var get_scroll_state_default = getScrollState;\n function _getStandards() {\n return clone_default(standards_default);\n }\n function getStyleSheetFactory(dynamicDoc) {\n if (!dynamicDoc) {\n throw new Error('axe.utils.getStyleSheetFactory should be invoked with an argument');\n }\n return function(options) {\n var data2 = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;\n var style = dynamicDoc.createElement('style');\n if (isLink) {\n var text = dynamicDoc.createTextNode('@import \"'.concat(data2.href, '\"'));\n style.appendChild(text);\n } else {\n style.appendChild(dynamicDoc.createTextNode(data2));\n }\n dynamicDoc.head.appendChild(style);\n return {\n sheet: style.sheet,\n isCrossOrigin: isCrossOrigin,\n shadowId: shadowId,\n root: root,\n priority: priority\n };\n };\n }\n var get_stylesheet_factory_default = getStyleSheetFactory;\n var styleSheet;\n function injectStyle(style) {\n if (styleSheet && styleSheet.parentNode) {\n if (styleSheet.styleSheet === void 0) {\n styleSheet.appendChild(document.createTextNode(style));\n } else {\n styleSheet.styleSheet.cssText += style;\n }\n return styleSheet;\n }\n if (!style) {\n return;\n }\n var head = document.head || document.getElementsByTagName('head')[0];\n styleSheet = document.createElement('style');\n styleSheet.type = 'text/css';\n if (styleSheet.styleSheet === void 0) {\n styleSheet.appendChild(document.createTextNode(style));\n } else {\n styleSheet.styleSheet.cssText = style;\n }\n head.appendChild(styleSheet);\n return styleSheet;\n }\n var inject_style_default = injectStyle;\n function isHidden(el, recursed) {\n var node = get_node_from_tree_default(el);\n if (el.nodeType === 9) {\n return false;\n }\n if (el.nodeType === 11) {\n el = el.host;\n }\n if (node && node._isHidden !== null) {\n return node._isHidden;\n }\n var style = window.getComputedStyle(el, null);\n if (!style || !el.parentNode || style.getPropertyValue('display') === 'none' || !recursed && style.getPropertyValue('visibility') === 'hidden' || el.getAttribute('aria-hidden') === 'true') {\n return true;\n }\n var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;\n var hidden = isHidden(parent, true);\n if (node) {\n node._isHidden = hidden;\n }\n return hidden;\n }\n var is_hidden_default = isHidden;\n function isHtmlElement(node) {\n var _node$props$nodeName, _node$props;\n var nodeName2 = (_node$props$nodeName = (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.nodeName) !== null && _node$props$nodeName !== void 0 ? _node$props$nodeName : node.nodeName.toLowerCase();\n if (node.namespaceURI === 'http://www.w3.org/2000/svg') {\n return false;\n }\n return !!standards_default.htmlElms[nodeName2];\n }\n var is_html_element_default = isHtmlElement;\n function _isNodeInContext(node, _ref53) {\n var _ref53$include = _ref53.include, include = _ref53$include === void 0 ? [] : _ref53$include, _ref53$exclude = _ref53.exclude, exclude = _ref53$exclude === void 0 ? [] : _ref53$exclude;\n var filterInclude = include.filter(function(candidate) {\n return _contains(candidate, node);\n });\n if (filterInclude.length === 0) {\n return false;\n }\n var filterExcluded = exclude.filter(function(candidate) {\n return _contains(candidate, node);\n });\n if (filterExcluded.length === 0) {\n return true;\n }\n var deepestInclude = getDeepest(filterInclude);\n var deepestExclude = getDeepest(filterExcluded);\n return _contains(deepestExclude, deepestInclude);\n }\n function getDeepest(collection) {\n var deepest;\n var _iterator6 = _createForOfIteratorHelper(collection), _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {\n var node = _step6.value;\n if (!deepest || !_contains(node, deepest)) {\n deepest = node;\n }\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n return deepest;\n }\n function matchAncestry(ancestryA, ancestryB) {\n if (ancestryA.length !== ancestryB.length) {\n return false;\n }\n return ancestryA.every(function(selectorA, index) {\n var selectorB = ancestryB[index];\n if (!Array.isArray(selectorA)) {\n return selectorA === selectorB;\n }\n if (selectorA.length !== selectorB.length) {\n return false;\n }\n return selectorA.every(function(str, index2) {\n return selectorB[index2] === str;\n });\n });\n }\n var match_ancestry_default = matchAncestry;\n function nodeSorter(nodeA, nodeB) {\n nodeA = nodeA.actualNode || nodeA;\n nodeB = nodeB.actualNode || nodeB;\n if (nodeA === nodeB) {\n return 0;\n }\n if (nodeA.compareDocumentPosition(nodeB) & 4) {\n return -1;\n } else {\n return 1;\n }\n }\n var node_sorter_default = nodeSorter;\n function parseSameOriginStylesheet(sheet, options, priority, importedUrls) {\n var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var rules = Array.from(sheet.cssRules);\n if (!rules) {\n return Promise.resolve();\n }\n var cssImportRules = rules.filter(function(r) {\n return r.type === 3;\n });\n if (!cssImportRules.length) {\n return Promise.resolve({\n isCrossOrigin: isCrossOrigin,\n priority: priority,\n root: options.rootNode,\n shadowId: options.shadowId,\n sheet: sheet\n });\n }\n var cssImportUrlsNotAlreadyImported = cssImportRules.filter(function(rule) {\n return rule.href;\n }).map(function(rule) {\n return rule.href;\n }).filter(function(url) {\n return !importedUrls.includes(url);\n });\n var promises = cssImportUrlsNotAlreadyImported.map(function(importUrl, cssRuleIndex) {\n var newPriority = [].concat(_toConsumableArray(priority), [ cssRuleIndex ]);\n var isCrossOriginRequest = /^https?:\\/\\/|^\\/\\//i.test(importUrl);\n return parse_crossorigin_stylesheet_default(importUrl, options, newPriority, importedUrls, isCrossOriginRequest);\n });\n var nonImportCSSRules = rules.filter(function(r) {\n return r.type !== 3;\n });\n if (!nonImportCSSRules.length) {\n return Promise.all(promises);\n }\n promises.push(Promise.resolve(options.convertDataToStylesheet({\n data: nonImportCSSRules.map(function(rule) {\n return rule.cssText;\n }).join(),\n isCrossOrigin: isCrossOrigin,\n priority: priority,\n root: options.rootNode,\n shadowId: options.shadowId\n })));\n return Promise.all(promises);\n }\n var parse_sameorigin_stylesheet_default = parseSameOriginStylesheet;\n function parseStylesheet(sheet, options, priority, importedUrls) {\n var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var isSameOrigin = isSameOriginStylesheet(sheet);\n if (isSameOrigin) {\n return parse_sameorigin_stylesheet_default(sheet, options, priority, importedUrls, isCrossOrigin);\n }\n return parse_crossorigin_stylesheet_default(sheet.href, options, priority, importedUrls, true);\n }\n function isSameOriginStylesheet(sheet) {\n try {\n var rules = sheet.cssRules;\n if (!rules && sheet.href) {\n return false;\n }\n return true;\n } catch (e) {\n return false;\n }\n }\n var parse_stylesheet_default = parseStylesheet;\n function parseCrossOriginStylesheet(url, options, priority, importedUrls, isCrossOrigin) {\n importedUrls.push(url);\n return new Promise(function(resolve, reject) {\n var request = new window.XMLHttpRequest();\n request.open('GET', url);\n request.timeout = constants_default.preload.timeout;\n request.addEventListener('error', reject);\n request.addEventListener('timeout', reject);\n request.addEventListener('loadend', function(event) {\n if (event.loaded && request.responseText) {\n return resolve(request.responseText);\n }\n reject(request.responseText);\n });\n request.send();\n }).then(function(data2) {\n var result = options.convertDataToStylesheet({\n data: data2,\n isCrossOrigin: isCrossOrigin,\n priority: priority,\n root: options.rootNode,\n shadowId: options.shadowId\n });\n return parse_stylesheet_default(result.sheet, options, priority, importedUrls, result.isCrossOrigin);\n });\n }\n var parse_crossorigin_stylesheet_default = parseCrossOriginStylesheet;\n var performanceTimer = function() {\n function now() {\n if (window.performance && window.performance) {\n return window.performance.now();\n }\n }\n var originalTime = null;\n var lastRecordedTime = now();\n return {\n start: function start() {\n this.mark('mark_axe_start');\n },\n end: function end() {\n this.mark('mark_axe_end');\n this.measure('axe', 'mark_axe_start', 'mark_axe_end');\n this.logMeasures('axe');\n },\n auditStart: function auditStart() {\n this.mark('mark_audit_start');\n },\n auditEnd: function auditEnd() {\n this.mark('mark_audit_end');\n this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');\n this.logMeasures();\n },\n mark: function mark(markName) {\n if (window.performance && window.performance.mark !== void 0) {\n window.performance.mark(markName);\n }\n },\n measure: function measure(measureName, startMark, endMark) {\n if (window.performance && window.performance.measure !== void 0) {\n window.performance.measure(measureName, startMark, endMark);\n }\n },\n logMeasures: function logMeasures(measureName) {\n function logMeasure(req2) {\n log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');\n }\n if (window.performance && window.performance.getEntriesByType !== void 0) {\n var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];\n var measures = window.performance.getEntriesByType('measure').filter(function(measure) {\n return measure.startTime >= axeStart.startTime;\n });\n for (var i = 0; i < measures.length; ++i) {\n var req = measures[i];\n if (req.name === measureName) {\n logMeasure(req);\n return;\n }\n logMeasure(req);\n }\n }\n },\n timeElapsed: function timeElapsed() {\n return now() - lastRecordedTime;\n },\n reset: function reset() {\n if (!originalTime) {\n originalTime = now();\n }\n lastRecordedTime = now();\n }\n };\n }();\n var performance_timer_default = performanceTimer;\n if (typeof Object.assign !== 'function') {\n (function() {\n Object.assign = function(target) {\n if (target === void 0 || target === null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n var output = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n if (source !== void 0 && source !== null) {\n for (var nextKey in source) {\n if (source.hasOwnProperty(nextKey)) {\n output[nextKey] = source[nextKey];\n }\n }\n }\n }\n return output;\n };\n })();\n }\n if (!Array.prototype.find) {\n Object.defineProperty(Array.prototype, 'find', {\n value: function value(predicate) {\n if (this === null) {\n throw new TypeError('Array.prototype.find called on null or undefined');\n }\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate must be a function');\n }\n var list = Object(this);\n var length = list.length >>> 0;\n var thisArg = arguments[1];\n var value;\n for (var i = 0; i < length; i++) {\n value = list[i];\n if (predicate.call(thisArg, value, i, list)) {\n return value;\n }\n }\n return void 0;\n }\n });\n }\n if (!Array.prototype.findIndex) {\n Object.defineProperty(Array.prototype, 'findIndex', {\n value: function value(predicate, thisArg) {\n if (this === null) {\n throw new TypeError('Array.prototype.find called on null or undefined');\n }\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate must be a function');\n }\n var list = Object(this);\n var length = list.length >>> 0;\n var value;\n for (var i = 0; i < length; i++) {\n value = list[i];\n if (predicate.call(thisArg, value, i, list)) {\n return i;\n }\n }\n return -1;\n }\n });\n }\n function _pollyfillElementsFromPoint() {\n if (document.elementsFromPoint) {\n return document.elementsFromPoint;\n }\n if (document.msElementsFromPoint) {\n return document.msElementsFromPoint;\n }\n var usePointer = function() {\n var element = document.createElement('x');\n element.style.cssText = 'pointer-events:auto';\n return element.style.pointerEvents === 'auto';\n }();\n var cssProp = usePointer ? 'pointer-events' : 'visibility';\n var cssDisableVal = usePointer ? 'none' : 'hidden';\n var style = document.createElement('style');\n style.innerHTML = usePointer ? '* { pointer-events: all }' : '* { visibility: visible }';\n return function(x, y) {\n var current, i, d;\n var elements = [];\n var previousPointerEvents = [];\n document.head.appendChild(style);\n while ((current = document.elementFromPoint(x, y)) && elements.indexOf(current) === -1) {\n elements.push(current);\n previousPointerEvents.push({\n value: current.style.getPropertyValue(cssProp),\n priority: current.style.getPropertyPriority(cssProp)\n });\n current.style.setProperty(cssProp, cssDisableVal, 'important');\n }\n if (elements.indexOf(document.documentElement) < elements.length - 1) {\n elements.splice(elements.indexOf(document.documentElement), 1);\n elements.push(document.documentElement);\n }\n for (i = previousPointerEvents.length; !!(d = previousPointerEvents[--i]); ) {\n elements[i].style.setProperty(cssProp, d.value ? d.value : '', d.priority);\n }\n document.head.removeChild(style);\n return elements;\n };\n }\n if (typeof window.addEventListener === 'function') {\n document.elementsFromPoint = _pollyfillElementsFromPoint();\n }\n if (!Array.prototype.includes) {\n Object.defineProperty(Array.prototype, 'includes', {\n value: function value(searchElement) {\n var O = Object(this);\n var len = parseInt(O.length, 10) || 0;\n if (len === 0) {\n return false;\n }\n var n = parseInt(arguments[1], 10) || 0;\n var k;\n if (n >= 0) {\n k = n;\n } else {\n k = len + n;\n if (k < 0) {\n k = 0;\n }\n }\n var currentElement;\n while (k < len) {\n currentElement = O[k];\n if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {\n return true;\n }\n k++;\n }\n return false;\n }\n });\n }\n if (!Array.prototype.some) {\n Object.defineProperty(Array.prototype, 'some', {\n value: function value(fun) {\n if (this == null) {\n throw new TypeError('Array.prototype.some called on null or undefined');\n }\n if (typeof fun !== 'function') {\n throw new TypeError();\n }\n var t = Object(this);\n var len = t.length >>> 0;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n for (var i = 0; i < len; i++) {\n if (i in t && fun.call(thisArg, t[i], i, t)) {\n return true;\n }\n }\n return false;\n }\n });\n }\n if (!Array.from) {\n Object.defineProperty(Array, 'from', {\n value: function() {\n var toStr = Object.prototype.toString;\n var isCallable = function isCallable(fn) {\n return typeof fn === 'function' || toStr.call(fn) === '[object Function]';\n };\n var toInteger = function toInteger(value) {\n var number = Number(value);\n if (isNaN(number)) {\n return 0;\n }\n if (number === 0 || !isFinite(number)) {\n return number;\n }\n return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));\n };\n var maxSafeInteger = Math.pow(2, 53) - 1;\n var toLength = function toLength(value) {\n var len = toInteger(value);\n return Math.min(Math.max(len, 0), maxSafeInteger);\n };\n return function from(arrayLike) {\n var C = this;\n var items = Object(arrayLike);\n if (arrayLike == null) {\n throw new TypeError('Array.from requires an array-like object - not null or undefined');\n }\n var mapFn = arguments.length > 1 ? arguments[1] : void 0;\n var T;\n if (typeof mapFn !== 'undefined') {\n if (!isCallable(mapFn)) {\n throw new TypeError('Array.from: when provided, the second argument must be a function');\n }\n if (arguments.length > 2) {\n T = arguments[2];\n }\n }\n var len = toLength(items.length);\n var A = isCallable(C) ? Object(new C(len)) : new Array(len);\n var k = 0;\n var kValue;\n while (k < len) {\n kValue = items[k];\n if (mapFn) {\n A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);\n } else {\n A[k] = kValue;\n }\n k += 1;\n }\n A.length = len;\n return A;\n };\n }()\n });\n }\n if (!String.prototype.includes) {\n String.prototype.includes = function(search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n if (start + search.length > this.length) {\n return false;\n } else {\n return this.indexOf(search, start) !== -1;\n }\n };\n }\n if (!Array.prototype.flat) {\n Object.defineProperty(Array.prototype, 'flat', {\n configurable: true,\n value: function flat() {\n var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);\n return depth ? Array.prototype.reduce.call(this, function(acc, cur) {\n if (Array.isArray(cur)) {\n acc.push.apply(acc, flat.call(cur, depth - 1));\n } else {\n acc.push(cur);\n }\n return acc;\n }, []) : Array.prototype.slice.call(this);\n },\n writable: true\n });\n }\n if (window.Node && !('isConnected' in window.Node.prototype)) {\n Object.defineProperty(window.Node.prototype, 'isConnected', {\n get: function get() {\n return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);\n }\n });\n }\n function uniqueArray(arr1, arr2) {\n return arr1.concat(arr2).filter(function(elem, pos, arr) {\n return arr.indexOf(elem) === pos;\n });\n }\n var unique_array_default = uniqueArray;\n function createLocalVariables(vNodes, anyLevel, thisLevel, parentShadowId, recycledLocalVariable) {\n var retVal = recycledLocalVariable || {};\n retVal.vNodes = vNodes;\n retVal.vNodesIndex = 0;\n retVal.anyLevel = anyLevel;\n retVal.thisLevel = thisLevel;\n retVal.parentShadowId = parentShadowId;\n return retVal;\n }\n var recycledLocalVariables = [];\n function matchExpressions(domTree, expressions, filter) {\n var stack = [];\n var vNodes = Array.isArray(domTree) ? domTree : [ domTree ];\n var currentLevel = createLocalVariables(vNodes, expressions, null, domTree[0].shadowId, recycledLocalVariables.pop());\n var result = [];\n while (currentLevel.vNodesIndex < currentLevel.vNodes.length) {\n var _currentLevel$anyLeve, _currentLevel$thisLev;\n var vNode = currentLevel.vNodes[currentLevel.vNodesIndex++];\n var childOnly = null;\n var childAny = null;\n var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);\n var added = false;\n for (var _i15 = 0; _i15 < combinedLength; _i15++) {\n var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;\n var exp = _i15 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i15] : currentLevel.thisLevel[_i15 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];\n if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {\n if (exp.length === 1) {\n if (!added && (!filter || filter(vNode))) {\n result.push(vNode);\n added = true;\n }\n } else {\n var rest = exp.slice(1);\n if ([ ' ', '>' ].includes(rest[0].combinator) === false) {\n throw new Error('axe.utils.querySelectorAll does not support the combinator: ' + exp[1].combinator);\n }\n if (rest[0].combinator === '>') {\n (childOnly = childOnly || []).push(rest);\n } else {\n (childAny = childAny || []).push(rest);\n }\n }\n }\n if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && (_currentLevel$anyLeve4 = currentLevel.anyLevel) !== null && _currentLevel$anyLeve4 !== void 0 && _currentLevel$anyLeve4.includes(exp)) {\n (childAny = childAny || []).push(exp);\n }\n }\n if (vNode.children && vNode.children.length) {\n stack.push(currentLevel);\n currentLevel = createLocalVariables(vNode.children, childAny, childOnly, vNode.shadowId, recycledLocalVariables.pop());\n }\n while (currentLevel.vNodesIndex === currentLevel.vNodes.length && stack.length) {\n recycledLocalVariables.push(currentLevel);\n currentLevel = stack.pop();\n }\n }\n return result;\n }\n function querySelectorAllFilter(domTree, selector, filter) {\n domTree = Array.isArray(domTree) ? domTree : [ domTree ];\n var expressions = _convertSelector(selector);\n var nodes = getNodesMatchingExpression(domTree, expressions, filter);\n if (nodes) {\n return nodes;\n }\n return matchExpressions(domTree, expressions, filter);\n }\n var query_selector_all_filter_default = querySelectorAllFilter;\n function preloadCssom(_ref54) {\n var _ref54$treeRoot = _ref54.treeRoot, treeRoot = _ref54$treeRoot === void 0 ? axe._tree[0] : _ref54$treeRoot;\n var rootNodes = getAllRootNodesInTree(treeRoot);\n if (!rootNodes.length) {\n return Promise.resolve();\n }\n var dynamicDoc = document.implementation.createHTMLDocument('Dynamic document for loading cssom');\n var convertDataToStylesheet = get_stylesheet_factory_default(dynamicDoc);\n return getCssomForAllRootNodes(rootNodes, convertDataToStylesheet).then(function(assets) {\n return flattenAssets(assets);\n });\n }\n var preload_cssom_default = preloadCssom;\n function getAllRootNodesInTree(tree) {\n var ids = [];\n var rootNodes = query_selector_all_filter_default(tree, '*', function(node) {\n if (ids.includes(node.shadowId)) {\n return false;\n }\n ids.push(node.shadowId);\n return true;\n }).map(function(node) {\n return {\n shadowId: node.shadowId,\n rootNode: get_root_node_default(node.actualNode)\n };\n });\n return unique_array_default(rootNodes, []);\n }\n function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {\n var promises = [];\n rootNodes.forEach(function(_ref55, index) {\n var rootNode = _ref55.rootNode, shadowId = _ref55.shadowId;\n var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);\n if (!sheets) {\n return Promise.all(promises);\n }\n var rootIndex = index + 1;\n var parseOptions = {\n rootNode: rootNode,\n shadowId: shadowId,\n convertDataToStylesheet: convertDataToStylesheet,\n rootIndex: rootIndex\n };\n var importedUrls = [];\n var p = Promise.all(sheets.map(function(sheet, sheetIndex) {\n var priority = [ rootIndex, sheetIndex ];\n return parse_stylesheet_default(sheet, parseOptions, priority, importedUrls);\n }));\n promises.push(p);\n });\n return Promise.all(promises);\n }\n function flattenAssets(assets) {\n return assets.reduce(function(acc, val) {\n return Array.isArray(val) ? acc.concat(flattenAssets(val)) : acc.concat(val);\n }, []);\n }\n function getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet) {\n var sheets;\n if (rootNode.nodeType === 11 && shadowId) {\n sheets = getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet);\n } else {\n sheets = getStylesheetsFromDocument(rootNode);\n }\n return filterStylesheetsWithSameHref(sheets);\n }\n function getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet) {\n return Array.from(rootNode.children).filter(filerStyleAndLinkAttributesInDocumentFragment).reduce(function(out, node) {\n var nodeName2 = node.nodeName.toUpperCase();\n var data2 = nodeName2 === 'STYLE' ? node.textContent : node;\n var isLink = nodeName2 === 'LINK';\n var stylesheet = convertDataToStylesheet({\n data: data2,\n isLink: isLink,\n root: rootNode\n });\n out.push(stylesheet.sheet);\n return out;\n }, []);\n }\n function getStylesheetsFromDocument(rootNode) {\n return Array.from(rootNode.styleSheets).filter(function(sheet) {\n if (!sheet.media) {\n return false;\n }\n return filterMediaIsPrint(sheet.media.mediaText);\n });\n }\n function filerStyleAndLinkAttributesInDocumentFragment(node) {\n var nodeName2 = node.nodeName.toUpperCase();\n var linkHref = node.getAttribute('href');\n var linkRel = node.getAttribute('rel');\n var isLink = nodeName2 === 'LINK' && linkHref && linkRel && node.rel.toUpperCase().includes('STYLESHEET');\n var isStyle = nodeName2 === 'STYLE';\n return isStyle || isLink && filterMediaIsPrint(node.media);\n }\n function filterMediaIsPrint(media) {\n if (!media) {\n return true;\n }\n return !media.toUpperCase().includes('PRINT');\n }\n function filterStylesheetsWithSameHref(sheets) {\n var hrefs = [];\n return sheets.filter(function(sheet) {\n if (!sheet.href) {\n return true;\n }\n if (hrefs.includes(sheet.href)) {\n return false;\n }\n hrefs.push(sheet.href);\n return true;\n });\n }\n function preloadMedia(_ref56) {\n var _ref56$treeRoot = _ref56.treeRoot, treeRoot = _ref56$treeRoot === void 0 ? axe._tree[0] : _ref56$treeRoot;\n var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref57) {\n var actualNode = _ref57.actualNode;\n if (actualNode.hasAttribute('src')) {\n return !!actualNode.getAttribute('src');\n }\n var sourceWithSrc = Array.from(actualNode.getElementsByTagName('source')).filter(function(source) {\n return !!source.getAttribute('src');\n });\n if (sourceWithSrc.length <= 0) {\n return false;\n }\n return true;\n });\n return Promise.all(mediaVirtualNodes.map(function(_ref58) {\n var actualNode = _ref58.actualNode;\n return isMediaElementReady(actualNode);\n }));\n }\n var preload_media_default = preloadMedia;\n function isMediaElementReady(elm) {\n return new Promise(function(resolve) {\n if (elm.readyState > 0) {\n resolve(elm);\n }\n function onMediaReady() {\n elm.removeEventListener('loadedmetadata', onMediaReady);\n resolve(elm);\n }\n elm.addEventListener('loadedmetadata', onMediaReady);\n });\n }\n function isValidPreloadObject(preload2) {\n return _typeof(preload2) === 'object' && Array.isArray(preload2.assets);\n }\n function _shouldPreload(options) {\n if (!options || options.preload === void 0 || options.preload === null) {\n return true;\n }\n if (typeof options.preload === 'boolean') {\n return options.preload;\n }\n return isValidPreloadObject(options.preload);\n }\n function _getPreloadConfig(options) {\n var _constants_default$pr = constants_default.preload, assets = _constants_default$pr.assets, timeout = _constants_default$pr.timeout;\n var config = {\n assets: assets,\n timeout: timeout\n };\n if (!options.preload) {\n return config;\n }\n if (typeof options.preload === 'boolean') {\n return config;\n }\n var areRequestedAssetsValid = options.preload.assets.every(function(a) {\n return assets.includes(a.toLowerCase());\n });\n if (!areRequestedAssetsValid) {\n throw new Error('Requested assets, not supported. Supported assets are: '.concat(assets.join(', '), '.'));\n }\n config.assets = unique_array_default(options.preload.assets.map(function(a) {\n return a.toLowerCase();\n }), []);\n if (options.preload.timeout && typeof options.preload.timeout === 'number' && !isNaN(options.preload.timeout)) {\n config.timeout = options.preload.timeout;\n }\n return config;\n }\n function preload(options) {\n var preloadFunctionsMap = {\n cssom: preload_cssom_default,\n media: preload_media_default\n };\n if (!_shouldPreload(options)) {\n return Promise.resolve();\n }\n return new Promise(function(resolve, reject) {\n var _getPreloadConfig2 = _getPreloadConfig(options), assets = _getPreloadConfig2.assets, timeout = _getPreloadConfig2.timeout;\n var preloadTimeout = setTimeout(function() {\n return reject(new Error('Preload assets timed out.'));\n }, timeout);\n Promise.all(assets.map(function(asset) {\n return preloadFunctionsMap[asset](options).then(function(results) {\n return _defineProperty({}, asset, results);\n });\n })).then(function(results) {\n var preloadAssets = results.reduce(function(out, result) {\n return _extends({}, out, result);\n }, {});\n clearTimeout(preloadTimeout);\n resolve(preloadAssets);\n })['catch'](function(err2) {\n clearTimeout(preloadTimeout);\n reject(err2);\n });\n });\n }\n var preload_default = preload;\n function getIncompleteReason(checkData, messages) {\n function getDefaultMsg(messages2) {\n if (messages2.incomplete && messages2.incomplete['default']) {\n return messages2.incomplete['default'];\n } else {\n return incompleteFallbackMessage();\n }\n }\n if (checkData && checkData.missingData) {\n try {\n var msg = messages.incomplete[checkData.missingData[0].reason];\n if (!msg) {\n throw new Error();\n }\n return msg;\n } catch (e) {\n if (typeof checkData.missingData === 'string') {\n return messages.incomplete[checkData.missingData];\n } else {\n return getDefaultMsg(messages);\n }\n }\n } else if (checkData && checkData.messageKey) {\n return messages.incomplete[checkData.messageKey];\n } else {\n return getDefaultMsg(messages);\n }\n }\n function extender(checksData, shouldBeTrue, rule) {\n return function(check) {\n var sourceData = checksData[check.id] || {};\n var messages = sourceData.messages || {};\n var data2 = Object.assign({}, sourceData);\n delete data2.messages;\n if (!rule.reviewOnFail && check.result === void 0) {\n if (_typeof(messages.incomplete) === 'object' && !Array.isArray(check.data)) {\n data2.message = getIncompleteReason(check.data, messages);\n }\n if (!data2.message) {\n data2.message = messages.incomplete;\n }\n } else {\n data2.message = check.result === shouldBeTrue ? messages.pass : messages.fail;\n }\n if (typeof data2.message !== 'function') {\n data2.message = process_message_default(data2.message, check.data);\n }\n extend_meta_data_default(check, data2);\n };\n }\n function publishMetaData(ruleResult) {\n var checksData = axe._audit.data.checks || {};\n var rulesData = axe._audit.data.rules || {};\n var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};\n ruleResult.tags = clone_default(rule.tags || []);\n var shouldBeTrue = extender(checksData, true, rule);\n var shouldBeFalse = extender(checksData, false, rule);\n ruleResult.nodes.forEach(function(detail) {\n detail.any.forEach(shouldBeTrue);\n detail.all.forEach(shouldBeTrue);\n detail.none.forEach(shouldBeFalse);\n });\n extend_meta_data_default(ruleResult, clone_default(rulesData[ruleResult.id] || {}));\n }\n var publish_metadata_default = publishMetaData;\n function querySelectorAll(domTree, selector) {\n return query_selector_all_filter_default(domTree, selector);\n }\n var query_selector_all_default = querySelectorAll;\n function matchTags(rule, runOnly) {\n var include, exclude, matching;\n var defaultExclude = axe._audit && axe._audit.tagExclude ? axe._audit.tagExclude : [];\n if (runOnly.hasOwnProperty('include') || runOnly.hasOwnProperty('exclude')) {\n include = runOnly.include || [];\n include = Array.isArray(include) ? include : [ include ];\n exclude = runOnly.exclude || [];\n exclude = Array.isArray(exclude) ? exclude : [ exclude ];\n exclude = exclude.concat(defaultExclude.filter(function(tag) {\n return include.indexOf(tag) === -1;\n }));\n } else {\n include = Array.isArray(runOnly) ? runOnly : [ runOnly ];\n exclude = defaultExclude.filter(function(tag) {\n return include.indexOf(tag) === -1;\n });\n }\n matching = include.some(function(tag) {\n return rule.tags.indexOf(tag) !== -1;\n });\n if (matching || include.length === 0 && rule.enabled !== false) {\n return exclude.every(function(tag) {\n return rule.tags.indexOf(tag) === -1;\n });\n } else {\n return false;\n }\n }\n function ruleShouldRun(rule, context, options) {\n var runOnly = options.runOnly || {};\n var ruleOptions = (options.rules || {})[rule.id];\n if (rule.pageLevel && !context.page) {\n return false;\n } else if (runOnly.type === 'rule') {\n return runOnly.values.indexOf(rule.id) !== -1;\n } else if (ruleOptions && typeof ruleOptions.enabled === 'boolean') {\n return ruleOptions.enabled;\n } else if (runOnly.type === 'tag' && runOnly.values) {\n return matchTags(rule, runOnly.values);\n } else {\n return matchTags(rule, []);\n }\n }\n var rule_should_run_default = ruleShouldRun;\n function _filterHtmlAttrs(element, filterAttrs) {\n if (!filterAttrs) {\n return element;\n }\n var node = element.cloneNode(false);\n var attributes2 = get_node_attributes_default(node);\n if (node.nodeType === 1) {\n var outerHTML = node.outerHTML;\n node = cache_default.get(outerHTML, function() {\n return setNodeAttributes(node, attributes2, element, filterAttrs);\n });\n } else {\n node = setNodeAttributes(node, attributes2, element, filterAttrs);\n }\n Array.from(element.childNodes).forEach(function(child) {\n node.appendChild(_filterHtmlAttrs(child, filterAttrs));\n });\n return node;\n }\n function setNodeAttributes(node, attributes2, element, filterAttrs) {\n if (!attributes2) {\n return node;\n }\n node = document.createElement(node.nodeName);\n Array.from(attributes2).forEach(function(attr) {\n if (!attributeMatches(element, attr.name, filterAttrs)) {\n node.setAttribute(attr.name, attr.value);\n }\n });\n return node;\n }\n function attributeMatches(node, attrName, filterAttrs) {\n if (typeof filterAttrs[attrName] === 'undefined') {\n return false;\n }\n if (filterAttrs[attrName] === true) {\n return true;\n }\n return element_matches_default(node, filterAttrs[attrName]);\n }\n function _select(selector, context) {\n var result = [];\n var candidate;\n if (axe._selectCache) {\n for (var j = 0, l = axe._selectCache.length; j < l; j++) {\n var item = axe._selectCache[j];\n if (item.selector === selector) {\n return item.result;\n }\n }\n }\n var outerIncludes = getOuterIncludes(context.include);\n var isInContext = getContextFilter(context);\n for (var _i16 = 0; _i16 < outerIncludes.length; _i16++) {\n candidate = outerIncludes[_i16];\n var nodes = query_selector_all_filter_default(candidate, selector, isInContext);\n result = mergeArrayUniques(result, nodes);\n }\n if (axe._selectCache) {\n axe._selectCache.push({\n selector: selector,\n result: result\n });\n }\n return result;\n }\n function getOuterIncludes(includes) {\n return includes.reduce(function(res, el) {\n if (!res.length || !_contains(res[res.length - 1], el)) {\n res.push(el);\n }\n return res;\n }, []);\n }\n function getContextFilter(context) {\n if (!context.exclude || context.exclude.length === 0) {\n return null;\n }\n return function(node) {\n return _isNodeInContext(node, context);\n };\n }\n function mergeArrayUniques(arr1, arr2) {\n if (arr1.length === 0) {\n return arr2;\n }\n if (arr1.length < arr2.length) {\n var temp = arr1;\n arr1 = arr2;\n arr2 = temp;\n }\n for (var _i17 = 0, l = arr2.length; _i17 < l; _i17++) {\n if (!arr1.includes(arr2[_i17])) {\n arr1.push(arr2[_i17]);\n }\n }\n return arr1;\n }\n function setScroll(elm, top, left) {\n if (elm === window) {\n return elm.scroll(left, top);\n } else {\n elm.scrollTop = top;\n elm.scrollLeft = left;\n }\n }\n function setScrollState(scrollState) {\n scrollState.forEach(function(_ref60) {\n var elm = _ref60.elm, top = _ref60.top, left = _ref60.left;\n return setScroll(elm, top, left);\n });\n }\n var set_scroll_state_default = setScrollState;\n function _shadowSelect(selectors) {\n var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];\n return selectRecursive(selectorArr, document);\n }\n function selectRecursive(selectors, doc) {\n var selectorStr = selectors.shift();\n var elm = selectorStr ? doc.querySelector(selectorStr) : null;\n if (selectors.length === 0) {\n return elm;\n }\n if (!(elm !== null && elm !== void 0 && elm.shadowRoot)) {\n return null;\n }\n return selectRecursive(selectors, elm.shadowRoot);\n }\n function _shadowSelectAll(selectors) {\n var doc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;\n var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];\n if (selectors.length === 0) {\n return [];\n }\n return selectAllRecursive(selectorArr, doc);\n }\n function selectAllRecursive(_ref61, doc) {\n var _ref62 = _toArray(_ref61), selectorStr = _ref62[0], restSelector = _ref62.slice(1);\n var elms = doc.querySelectorAll(selectorStr);\n if (restSelector.length === 0) {\n return Array.from(elms);\n }\n var selected = [];\n var _iterator7 = _createForOfIteratorHelper(elms), _step7;\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {\n var elm = _step7.value;\n if (elm !== null && elm !== void 0 && elm.shadowRoot) {\n selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot)));\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n return selected;\n }\n function validInputTypes() {\n return [ 'hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button' ];\n }\n var valid_input_type_default = validInputTypes;\n var langs = [ , [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1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, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ , 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , , 1, 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , 1, , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1, , , 1, , , 1, 1, , , , , 1 ] ], [ , [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , 1, , , , , , , , , , , , , , , 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1 ], [ 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , , , , 1 ], [ , , , , , , , 1, , , , 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , , 1, , , 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , 1, , 1, , 1, 1 ], , [ , 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , 1, , , , 1 ], [ 1, 1, , , 1, 1, , 1, , , , , 1, , 1 ] ], [ , [ , 1 ], [ , , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ 1, , , , , 1 ], [ , 1, , , , 1, , , , 1 ], [ , 1, , , , , , , , , , , 1, , , 1, , , , , , , , , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , 1, , 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1 ], [ 1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1 ], [ 1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1, , , 1, , 1 ], [ 1, , , , , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ] ], [ , [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1 ], [ , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], , [ , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], , [ 1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1 ], [ 1 ], [ , , , , , , , , , , , 1, , , , , , , , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , , 1 ], [ , , 1, , , , , 1, , 1 ], [ 1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , , , , , , 1, , , , , , , 1 ], , [ , , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , , 1, 1, , 1, 1, 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ], , [ 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , , , , , , , , 1, , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1 ], [ , 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1 ], [ 1, , , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1 ], [ , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1 ], [ , 1, , , , , , , , 1, , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1 ], [ 1, 1, , , 1, , , 1, 1, 1, , , , 1 ], , [ , , , , , , , , , , , , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1 ], [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , 1 ], [ , 1, , , , 1, , , , , , 1, , , 1, , , , , 1 ], [ , 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, 1, 1, 1, , , , 1, 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , 1, , , , 1 ], , [ 1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1 ], [ , , 1, , , , , , 1, , , , 1, , 1, , , , , 1 ], [ 1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1 ], [ , 1, , 1, , , , , , , , , , , , 1 ], , [ 1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ 1 ] ], [ , [ 1, , , , , , , , , 1, , , , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1 ], [ , 1, , , , , , , 1, , , , 1, , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1 ], [ 1 ], [ , 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1 ], [ 1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1 ], [ , , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , 1 ], [ , , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1 ], [ 1, , , , , 1, , , , 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1 ], [ , 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1 ], [ , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1 ], [ 1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , , , 1, , 1, , 1, , , , 1 ], [ , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1, , , , , , , , , 1 ], [ , , , , , , , , 1, 1, , , , , , , , , 1, , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , , , , , 1, , , , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , 1, , , , , , , , , , , , , 1 ], [ , , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1 ], , [ , , 1, , , 1, , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , 1, , 1, 1, , 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1 ], [ , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , 1 ], [ 1, , , , , , , , , 1 ], , [ , 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, , 1, 1, , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1 ], , [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1 ], [ , 1, , , 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1 ], [ 1, , , 1, , , , 1, 1,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1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1 ], [ , , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , , , , , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , , 1, , , , , 1, , 1 ], [ , 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , , 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , , 1, , 1, , 1, , , , , , 1, , 1, , , , 1, 1 ] ], [ , [ , 1, , 1, , , , , , , , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , , , 1, , , , , , 1 ], [ , 1, , , , , , , , , , 1, , , , , , , , , 1, 1 ], , [ , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ , , , , 1, , , 1, , , , , , , 1, , , , 1, 1 ], [ , 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1 ], , [ 1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, , , , , , 1, , , , , , 1, 1, , , , 1, 1, , , 1 ], [ , 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, , , 1, , , , 1, , , , 1, 1 ], [ , , , , 1 ], [ , , , , , , , , , 1, , , 1 ], , [ , , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1 ], [ , 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , , , , 1 ], [ , 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], , [ , 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1 ], [ , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , , , , , , 1 ] ], [ , [ , 1 ], , , , , , , , , , , , , , , , , , , , [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1 ], [ , 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1 ], [ , 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , 1, 1, , , , 1 ], [ , , , , , , 1 ], [ , , 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1 ], , [ , 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1 ], [ , , , , , , , 1, , , , , , , , , 1 ], [ , 1, , , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1 ], [ , , , , , , , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1 ], , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1 ], [ , , , , , , , , , , , , , , 1, , , , , , 1 ], , [ , , , , , , , , , 1, , , , , , 1, , , , , 1 ], [ , , 1, , , , , , , 1, , , 1, 1 ], [ , , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1 ], , [ 1, 1, , , , , , , , , , 1, , 1, , 1, , , 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , 1 ], [ , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ,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, 1 ], [ , 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1 ] ], [ , [ , , , , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1 ], , [ , 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, 1, , , 1, , , , , , , , , 1, 1, , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1 ], [ , , , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1 ], [ , 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , 1, , , 1 ], [ , , , , , 1, , , 1, , , , 1 ], [ , 1 ], , [ , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , , 1 ] ], [ , [ , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1 ], [ , , 1, , , , , , , , , 1 ], , , [ 1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1 ], , [ , , , , , , , , , , , , , , , , , , 1, , 1 ], , [ 1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1 ], , [ , 1, , , , , , , , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1 ], [ , , , , , , , , , , , , , , , , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , 1, , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , 1 ], , , [ , 1, , , , , , , , , , , , , , 1, , , , 1, 1 ], [ , , , , , , , , , 1, , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , , , , , , , 1 ], [ , , , , 1, , , 1, , , 1, 1, , , , , , , , , , 1, , , , 1 ], [ , 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , , , , , 1 ], [ , 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, , , , , , , , , , 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , 1 ], [ , 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1 ], [ , , , 1 ], , [ , 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1 ], [ , , , , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1 ], , [ , 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , 1, , , , 1, , , , , 1, , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1 ], [ , , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , 1, , , , , , , , 1, , 1, , 1, , , , , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1 ], [ , 1 ], [ , 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1 ], [ 1, 1, , 1, 1, 1, , , , , , , , , , , , , 1, , 1, 1, 1 ], [ , 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, , , , 1, 1 ], [ , , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1 ], [ , , , , , 1, , , , 1, , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1 ], [ , , 1, , , , , , , , , 1, , 1, , , , , 1, , 1 ], [ , 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1 ], [ , , , , , , , , 1, , , , , 1, , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1 ], [ , , , , , , , , 1, , , , 1, , 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1 ], , [ , 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , , 1 ], [ 1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], , [ , 1, , , , , , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1 ], [ , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1 ], [ 1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1 ], [ , 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1 ], , [ , 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1 ], [ , , , 1, 1, , , 1, , , , , 1, , 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , , , , , , , 1, , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , 1 ], [ , 1, , , , , , 1, 1, , , , , , 1 ], , [ , 1, 1, , , , , , 1, , , , , 1, 1, , , , 1 ], [ 1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1 ], [ , 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1 ], , [ , 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1 ], [ , , , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1 ], [ , 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1 ], , [ , 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , 1, , , , , 1, , , 1, , , , 1, , 1 ], [ , 1, , , , , , , , , 1 ] ] ];\n function isValidLang(lang) {\n var array = langs;\n while (lang.length < 3) {\n lang += '`';\n }\n for (var _i18 = 0; _i18 <= lang.length - 1; _i18++) {\n var index = lang.charCodeAt(_i18) - 96;\n array = array[index];\n if (!array) {\n return false;\n }\n }\n return true;\n }\n function _validLangs(langArray) {\n langArray = Array.isArray(langArray) ? langArray : langs;\n var codes = [];\n langArray.forEach(function(lang, index) {\n var _char3 = String.fromCharCode(index + 96).replace('`', '');\n if (Array.isArray(lang)) {\n codes = codes.concat(_validLangs(lang).map(function(newLang) {\n return _char3 + newLang;\n }));\n } else {\n codes.push(_char3);\n }\n });\n return codes;\n }\n var valid_langs_default = isValidLang;\n var SerialVirtualNode = function(_abstract_virtual_nod2) {\n _inherits(SerialVirtualNode, _abstract_virtual_nod2);\n var _super2 = _createSuper(SerialVirtualNode);\n function SerialVirtualNode(serialNode) {\n var _this3;\n _classCallCheck(this, SerialVirtualNode);\n _this3 = _super2.call(this);\n _this3._props = normaliseProps(serialNode);\n _this3._attrs = normaliseAttrs(serialNode);\n return _this3;\n }\n _createClass(SerialVirtualNode, [ {\n key: 'props',\n get: function get() {\n return this._props;\n }\n }, {\n key: 'attr',\n value: function attr(attrName) {\n var _this$_attrs$attrName;\n return (_this$_attrs$attrName = this._attrs[attrName]) !== null && _this$_attrs$attrName !== void 0 ? _this$_attrs$attrName : null;\n }\n }, {\n key: 'hasAttr',\n value: function hasAttr(attrName) {\n return this._attrs[attrName] !== void 0;\n }\n }, {\n key: 'attrNames',\n get: function get() {\n return Object.keys(this._attrs);\n }\n } ]);\n return SerialVirtualNode;\n }(abstract_virtual_node_default);\n var nodeNamesToTypes = {\n '#cdata-section': 2,\n '#text': 3,\n '#comment': 8,\n '#document': 9,\n '#document-fragment': 11\n };\n var nodeTypeToName = {};\n var nodeNames = Object.keys(nodeNamesToTypes);\n nodeNames.forEach(function(nodeName2) {\n nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;\n });\n function normaliseProps(serialNode) {\n var _serialNode$nodeName, _ref63, _serialNode$nodeType;\n var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];\n var nodeType = (_ref63 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref63 !== void 0 ? _ref63 : 1;\n assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \\''.concat(nodeType, '\\''));\n assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \\''.concat(nodeName2, '\\''));\n nodeName2 = nodeName2.toLowerCase();\n var type = null;\n if (nodeName2 === 'input') {\n type = (serialNode.type || serialNode.attributes && serialNode.attributes.type || '').toLowerCase();\n if (!valid_input_type_default().includes(type)) {\n type = 'text';\n }\n }\n var props = _extends({}, serialNode, {\n nodeType: nodeType,\n nodeName: nodeName2\n });\n if (type) {\n props.type = type;\n }\n delete props.attributes;\n return Object.freeze(props);\n }\n function normaliseAttrs(_ref64) {\n var _ref64$attributes = _ref64.attributes, attributes2 = _ref64$attributes === void 0 ? {} : _ref64$attributes;\n var attrMap = {\n htmlFor: 'for',\n className: 'class'\n };\n return Object.keys(attributes2).reduce(function(attrs, attrName) {\n var value = attributes2[attrName];\n assert_default(_typeof(value) !== 'object' || value === null, 'expects attributes not to be an object, \\''.concat(attrName, '\\' was'));\n if (value !== void 0) {\n var mappedName = attrMap[attrName] || attrName;\n attrs[mappedName] = value !== null ? String(value) : null;\n }\n return attrs;\n }, {});\n }\n var serial_virtual_node_default = SerialVirtualNode;\n var imports_exports = {};\n __export(imports_exports, {\n CssSelectorParser: function CssSelectorParser() {\n return import_css_selector_parser2.CssSelectorParser;\n },\n doT: function doT() {\n return import_dot['default'];\n },\n emojiRegexText: function emojiRegexText() {\n return emoji_regex_default;\n },\n memoize: function memoize() {\n return import_memoizee2['default'];\n }\n });\n var import_css_selector_parser2 = __toModule(require_lib());\n var import_dot = __toModule(require_doT());\n var import_memoizee2 = __toModule(require_memoizee());\n var import_es6_promise = __toModule(require_es6_promise());\n var import_typedarray = __toModule(require_typedarray());\n var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());\n import_dot['default'].templateSettings.strip = false;\n if (!('Promise' in window)) {\n import_es6_promise['default'].polyfill();\n }\n if (!('Uint32Array' in window)) {\n window.Uint32Array = import_typedarray.Uint32Array;\n }\n if (window.Uint32Array) {\n if (!('some' in window.Uint32Array.prototype)) {\n Object.defineProperty(window.Uint32Array.prototype, 'some', {\n value: Array.prototype.some\n });\n }\n if (!('reduce' in window.Uint32Array.prototype)) {\n Object.defineProperty(window.Uint32Array.prototype, 'reduce', {\n value: Array.prototype.reduce\n });\n }\n }\n function cleanup(resolve, reject) {\n resolve = resolve || function res() {};\n reject = reject || axe.log;\n if (!axe._audit) {\n throw new Error('No audit configured');\n }\n var q = axe.utils.queue();\n var cleanupErrors = [];\n Object.keys(axe.plugins).forEach(function(key) {\n q.defer(function(res) {\n var rej = function rej2(err2) {\n cleanupErrors.push(err2);\n res();\n };\n try {\n axe.plugins[key].cleanup(res, rej);\n } catch (err2) {\n rej(err2);\n }\n });\n });\n var flattenedTree = axe.utils.getFlattenedTree(document.body);\n axe.utils.querySelectorAll(flattenedTree, 'iframe, frame').forEach(function(node) {\n q.defer(function(res, rej) {\n return axe.utils.sendCommandToFrame(node.actualNode, {\n command: 'cleanup-plugin'\n }, res, rej);\n });\n });\n q.then(function(results) {\n if (cleanupErrors.length === 0) {\n resolve(results);\n } else {\n reject(cleanupErrors);\n }\n })['catch'](reject);\n }\n var cleanup_default = cleanup;\n var reporters = {};\n var defaultReporter;\n function hasReporter(reporterName) {\n return reporters.hasOwnProperty(reporterName);\n }\n function getReporter(reporter) {\n if (typeof reporter === 'string' && reporters[reporter]) {\n return reporters[reporter];\n }\n if (typeof reporter === 'function') {\n return reporter;\n }\n return defaultReporter;\n }\n function addReporter(name, cb, isDefault) {\n reporters[name] = cb;\n if (isDefault) {\n defaultReporter = cb;\n }\n }\n function configure(spec) {\n var audit;\n audit = axe._audit;\n if (!audit) {\n throw new Error('No audit configured');\n }\n if (spec.axeVersion || spec.ver) {\n var specVersion = spec.axeVersion || spec.ver;\n if (!/^\\d+\\.\\d+\\.\\d+(-canary)?/.test(specVersion)) {\n throw new Error('Invalid configured version '.concat(specVersion));\n }\n var _specVersion$split = specVersion.split('-'), _specVersion$split2 = _slicedToArray(_specVersion$split, 2), version = _specVersion$split2[0], canary = _specVersion$split2[1];\n var _version$split$map = version.split('.').map(Number), _version$split$map2 = _slicedToArray(_version$split$map, 3), major = _version$split$map2[0], minor = _version$split$map2[1], patch = _version$split$map2[2];\n var _axe$version$split = axe.version.split('-'), _axe$version$split2 = _slicedToArray(_axe$version$split, 2), axeVersion = _axe$version$split2[0], axeCanary = _axe$version$split2[1];\n var _axeVersion$split$map = axeVersion.split('.').map(Number), _axeVersion$split$map2 = _slicedToArray(_axeVersion$split$map, 3), axeMajor = _axeVersion$split$map2[0], axeMinor = _axeVersion$split$map2[1], axePatch = _axeVersion$split$map2[2];\n if (major !== axeMajor || axeMinor < minor || axeMinor === minor && axePatch < patch || major === axeMajor && minor === axeMinor && patch === axePatch && canary && canary !== axeCanary) {\n throw new Error('Configured version '.concat(specVersion, ' is not compatible with current axe version ').concat(axe.version));\n }\n }\n if (spec.reporter && (typeof spec.reporter === 'function' || hasReporter(spec.reporter))) {\n audit.reporter = spec.reporter;\n }\n if (spec.checks) {\n if (!Array.isArray(spec.checks)) {\n throw new TypeError('Checks property must be an array');\n }\n spec.checks.forEach(function(check) {\n if (!check.id) {\n throw new TypeError('Configured check '.concat(JSON.stringify(check), ' is invalid. Checks must be an object with at least an id property'));\n }\n audit.addCheck(check);\n });\n }\n var modifiedRules = [];\n if (spec.rules) {\n if (!Array.isArray(spec.rules)) {\n throw new TypeError('Rules property must be an array');\n }\n spec.rules.forEach(function(rule) {\n if (!rule.id) {\n throw new TypeError('Configured rule '.concat(JSON.stringify(rule), ' is invalid. Rules must be an object with at least an id property'));\n }\n modifiedRules.push(rule.id);\n audit.addRule(rule);\n });\n }\n if (spec.disableOtherRules) {\n audit.rules.forEach(function(rule) {\n if (modifiedRules.includes(rule.id) === false) {\n rule.enabled = false;\n }\n });\n }\n if (typeof spec.branding !== 'undefined') {\n audit.setBranding(spec.branding);\n } else {\n audit._constructHelpUrls();\n }\n if (spec.tagExclude) {\n audit.tagExclude = spec.tagExclude;\n }\n if (spec.locale) {\n audit.applyLocale(spec.locale);\n }\n if (spec.standards) {\n configureStandards(spec.standards);\n }\n if (spec.noHtml) {\n audit.noHtml = true;\n }\n if (spec.allowedOrigins) {\n if (!Array.isArray(spec.allowedOrigins)) {\n throw new TypeError('Allowed origins property must be an array');\n }\n if (spec.allowedOrigins.includes('*')) {\n throw new Error('\"*\" is not allowed. Use \"'.concat(constants_default.allOrigins, '\" instead'));\n }\n audit.setAllowedOrigins(spec.allowedOrigins);\n }\n }\n var configure_default = configure;\n function frameMessenger2(frameHandler) {\n _respondable.updateMessenger(frameHandler);\n }\n function getRules(tags) {\n tags = tags || [];\n var matchingRules = !tags.length ? axe._audit.rules : axe._audit.rules.filter(function(item) {\n return !!tags.filter(function(tag) {\n return item.tags.indexOf(tag) !== -1;\n }).length;\n });\n var ruleData = axe._audit.data.rules || {};\n return matchingRules.map(function(matchingRule) {\n var rd = ruleData[matchingRule.id] || {};\n return {\n ruleId: matchingRule.id,\n description: rd.description,\n help: rd.help,\n helpUrl: rd.helpUrl,\n tags: matchingRule.tags,\n actIds: matchingRule.actIds\n };\n });\n }\n var get_rules_default = getRules;\n var aria_exports = {};\n __export(aria_exports, {\n allowedAttr: function allowedAttr() {\n return allowed_attr_default;\n },\n arialabelText: function arialabelText() {\n return arialabel_text_default;\n },\n arialabelledbyText: function arialabelledbyText() {\n return arialabelledby_text_default;\n },\n getAccessibleRefs: function getAccessibleRefs() {\n return get_accessible_refs_default;\n },\n getElementUnallowedRoles: function getElementUnallowedRoles() {\n return get_element_unallowed_roles_default;\n },\n getExplicitRole: function getExplicitRole() {\n return get_explicit_role_default;\n },\n getImplicitRole: function getImplicitRole() {\n return implicit_role_default;\n },\n getOwnedVirtual: function getOwnedVirtual() {\n return get_owned_virtual_default;\n },\n getRole: function getRole() {\n return get_role_default;\n },\n getRoleType: function getRoleType() {\n return get_role_type_default;\n },\n getRolesByType: function getRolesByType() {\n return get_roles_by_type_default;\n },\n getRolesWithNameFromContents: function getRolesWithNameFromContents() {\n return get_roles_with_name_from_contents_default;\n },\n implicitNodes: function implicitNodes() {\n return implicit_nodes_default;\n },\n implicitRole: function implicitRole() {\n return implicit_role_default;\n },\n isAccessibleRef: function isAccessibleRef() {\n return is_accessible_ref_default;\n },\n isAriaRoleAllowedOnElement: function isAriaRoleAllowedOnElement() {\n return is_aria_role_allowed_on_element_default;\n },\n isComboboxPopup: function isComboboxPopup() {\n return _isComboboxPopup;\n },\n isUnsupportedRole: function isUnsupportedRole() {\n return is_unsupported_role_default;\n },\n isValidRole: function isValidRole() {\n return is_valid_role_default;\n },\n label: function label() {\n return label_default2;\n },\n labelVirtual: function labelVirtual() {\n return label_virtual_default;\n },\n lookupTable: function lookupTable() {\n return lookup_table_default;\n },\n namedFromContents: function namedFromContents() {\n return named_from_contents_default;\n },\n requiredAttr: function requiredAttr() {\n return required_attr_default;\n },\n requiredContext: function requiredContext() {\n return required_context_default;\n },\n requiredOwned: function requiredOwned() {\n return required_owned_default;\n },\n validateAttr: function validateAttr() {\n return validate_attr_default;\n },\n validateAttrValue: function validateAttrValue() {\n return validate_attr_value_default;\n }\n });\n function allowedAttr(role) {\n var roleDef = standards_default.ariaRoles[role];\n var attrs = _toConsumableArray(get_global_aria_attrs_default());\n if (!roleDef) {\n return attrs;\n }\n if (roleDef.allowedAttrs) {\n attrs.push.apply(attrs, _toConsumableArray(roleDef.allowedAttrs));\n }\n if (roleDef.requiredAttrs) {\n attrs.push.apply(attrs, _toConsumableArray(roleDef.requiredAttrs));\n }\n return attrs;\n }\n var allowed_attr_default = allowedAttr;\n var idRefsRegex = /^idrefs?$/;\n function cacheIdRefs(node, idRefs, refAttrs) {\n if (node.hasAttribute) {\n if (node.nodeName.toUpperCase() === 'LABEL' && node.hasAttribute('for')) {\n var id = node.getAttribute('for');\n idRefs[id] = idRefs[id] || [];\n idRefs[id].push(node);\n }\n for (var _i19 = 0; _i19 < refAttrs.length; ++_i19) {\n var attr = refAttrs[_i19];\n var attrValue = sanitize_default(node.getAttribute(attr) || '');\n if (!attrValue) {\n continue;\n }\n var tokens = token_list_default(attrValue);\n for (var k = 0; k < tokens.length; ++k) {\n idRefs[tokens[k]] = idRefs[tokens[k]] || [];\n idRefs[tokens[k]].push(node);\n }\n }\n }\n for (var _i20 = 0; _i20 < node.childNodes.length; _i20++) {\n if (node.childNodes[_i20].nodeType === 1) {\n cacheIdRefs(node.childNodes[_i20], idRefs, refAttrs);\n }\n }\n }\n function getAccessibleRefs(node) {\n node = node.actualNode || node;\n var root = get_root_node_default2(node);\n root = root.documentElement || root;\n var idRefsByRoot = cache_default.get('idRefsByRoot', function() {\n return new WeakMap();\n });\n var idRefs = idRefsByRoot.get(root);\n if (!idRefs) {\n idRefs = {};\n idRefsByRoot.set(root, idRefs);\n var refAttrs = Object.keys(standards_default.ariaAttrs).filter(function(attr) {\n var type = standards_default.ariaAttrs[attr].type;\n return idRefsRegex.test(type);\n });\n cacheIdRefs(root, idRefs, refAttrs);\n }\n return idRefs[node.id] || [];\n }\n var get_accessible_refs_default = getAccessibleRefs;\n function isAriaRoleAllowedOnElement(node, role) {\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n var implicitRole3 = implicit_role_default(vNode);\n var spec = get_element_spec_default(vNode);\n if (Array.isArray(spec.allowedRoles)) {\n return spec.allowedRoles.includes(role);\n }\n if (role === implicitRole3) {\n return false;\n }\n return !!spec.allowedRoles;\n }\n var is_aria_role_allowed_on_element_default = isAriaRoleAllowedOnElement;\n var dpubRoles2 = [ 'doc-backlink', 'doc-biblioentry', 'doc-biblioref', 'doc-cover', 'doc-endnote', 'doc-glossref', 'doc-noteref' ];\n var landmarkRoles = {\n header: 'banner',\n footer: 'contentinfo'\n };\n function getRoleSegments(vNode) {\n var roles = [];\n if (!vNode) {\n return roles;\n }\n if (vNode.hasAttr('role')) {\n var nodeRoles = token_list_default(vNode.attr('role').toLowerCase());\n roles = roles.concat(nodeRoles);\n }\n return roles.filter(function(role) {\n return is_valid_role_default(role);\n });\n }\n function getElementUnallowedRoles(node) {\n var allowImplicit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);\n if (!is_html_element_default(vNode)) {\n return [];\n }\n var nodeName2 = vNode.props.nodeName;\n var implicitRole3 = implicit_role_default(vNode) || landmarkRoles[nodeName2];\n var roleSegments = getRoleSegments(vNode);\n return roleSegments.filter(function(role) {\n return !roleIsAllowed(role, vNode, allowImplicit, implicitRole3);\n });\n }\n function roleIsAllowed(role, vNode, allowImplicit, implicitRole3) {\n if (allowImplicit && role === implicitRole3) {\n return true;\n }\n if (dpubRoles2.includes(role) && get_role_type_default(role) !== implicitRole3) {\n return false;\n }\n return is_aria_role_allowed_on_element_default(vNode, role);\n }\n var get_element_unallowed_roles_default = getElementUnallowedRoles;\n function getAriaRolesByType(type) {\n return Object.keys(standards_default.ariaRoles).filter(function(roleName) {\n return standards_default.ariaRoles[roleName].type === type;\n });\n }\n var get_aria_roles_by_type_default = getAriaRolesByType;\n function getRolesByType(roleType) {\n return get_aria_roles_by_type_default(roleType);\n }\n var get_roles_by_type_default = getRolesByType;\n function getAriaRolesSupportingNameFromContent() {\n return cache_default.get('ariaRolesNameFromContent', function() {\n return Object.keys(standards_default.ariaRoles).filter(function(roleName) {\n return standards_default.ariaRoles[roleName].nameFromContent;\n });\n });\n }\n var get_aria_roles_supporting_name_from_content_default = getAriaRolesSupportingNameFromContent;\n function getRolesWithNameFromContents() {\n return get_aria_roles_supporting_name_from_content_default();\n }\n var get_roles_with_name_from_contents_default = getRolesWithNameFromContents;\n var isNull = function isNull(value) {\n return value === null;\n };\n var isNotNull = function isNotNull(value) {\n return value !== null;\n };\n var lookupTable = {};\n lookupTable.attributes = {\n 'aria-activedescendant': {\n type: 'idref',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-atomic': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-autocomplete': {\n type: 'nmtoken',\n values: [ 'inline', 'list', 'both', 'none' ],\n unsupported: false\n },\n 'aria-busy': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-checked': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'mixed', 'undefined' ],\n unsupported: false\n },\n 'aria-colcount': {\n type: 'int',\n unsupported: false\n },\n 'aria-colindex': {\n type: 'int',\n unsupported: false\n },\n 'aria-colspan': {\n type: 'int',\n unsupported: false\n },\n 'aria-controls': {\n type: 'idrefs',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-current': {\n type: 'nmtoken',\n allowEmpty: true,\n values: [ 'page', 'step', 'location', 'date', 'time', 'true', 'false' ],\n unsupported: false\n },\n 'aria-describedby': {\n type: 'idrefs',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-describedat': {\n unsupported: true,\n unstandardized: true\n },\n 'aria-details': {\n type: 'idref',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-disabled': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-dropeffect': {\n type: 'nmtokens',\n values: [ 'copy', 'move', 'reference', 'execute', 'popup', 'none' ],\n unsupported: false\n },\n 'aria-errormessage': {\n type: 'idref',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-expanded': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ],\n unsupported: false\n },\n 'aria-flowto': {\n type: 'idrefs',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-grabbed': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ],\n unsupported: false\n },\n 'aria-haspopup': {\n type: 'nmtoken',\n allowEmpty: true,\n values: [ 'true', 'false', 'menu', 'listbox', 'tree', 'grid', 'dialog' ],\n unsupported: false\n },\n 'aria-hidden': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-invalid': {\n type: 'nmtoken',\n allowEmpty: true,\n values: [ 'true', 'false', 'spelling', 'grammar' ],\n unsupported: false\n },\n 'aria-keyshortcuts': {\n type: 'string',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-label': {\n type: 'string',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-labelledby': {\n type: 'idrefs',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-level': {\n type: 'int',\n unsupported: false\n },\n 'aria-live': {\n type: 'nmtoken',\n values: [ 'off', 'polite', 'assertive' ],\n unsupported: false\n },\n 'aria-modal': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-multiline': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-multiselectable': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-orientation': {\n type: 'nmtoken',\n values: [ 'horizontal', 'vertical' ],\n unsupported: false\n },\n 'aria-owns': {\n type: 'idrefs',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-placeholder': {\n type: 'string',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-posinset': {\n type: 'int',\n unsupported: false\n },\n 'aria-pressed': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'mixed', 'undefined' ],\n unsupported: false\n },\n 'aria-readonly': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-relevant': {\n type: 'nmtokens',\n values: [ 'additions', 'removals', 'text', 'all' ],\n unsupported: false\n },\n 'aria-required': {\n type: 'boolean',\n values: [ 'true', 'false' ],\n unsupported: false\n },\n 'aria-roledescription': {\n type: 'string',\n allowEmpty: true,\n unsupported: false\n },\n 'aria-rowcount': {\n type: 'int',\n unsupported: false\n },\n 'aria-rowindex': {\n type: 'int',\n unsupported: false\n },\n 'aria-rowspan': {\n type: 'int',\n unsupported: false\n },\n 'aria-selected': {\n type: 'nmtoken',\n values: [ 'true', 'false', 'undefined' ],\n unsupported: false\n },\n 'aria-setsize': {\n type: 'int',\n unsupported: false\n },\n 'aria-sort': {\n type: 'nmtoken',\n values: [ 'ascending', 'descending', 'other', 'none' ],\n unsupported: false\n },\n 'aria-valuemax': {\n type: 'decimal',\n unsupported: false\n },\n 'aria-valuemin': {\n type: 'decimal',\n unsupported: false\n },\n 'aria-valuenow': {\n type: 'decimal',\n unsupported: false\n },\n 'aria-valuetext': {\n type: 'string',\n unsupported: false\n }\n };\n lookupTable.globalAttributes = [ 'aria-atomic', 'aria-busy', 'aria-controls', 'aria-current', 'aria-describedby', 'aria-details', 'aria-disabled', 'aria-dropeffect', 'aria-flowto', 'aria-grabbed', 'aria-haspopup', 'aria-hidden', 'aria-invalid', 'aria-keyshortcuts', 'aria-label', 'aria-labelledby', 'aria-live', 'aria-owns', 'aria-relevant', 'aria-roledescription' ];\n lookupTable.role = {\n alert: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n alertdialog: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-modal', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'dialog', 'section' ]\n },\n application: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage', 'aria-activedescendant' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'article', 'audio', 'embed', 'iframe', 'object', 'section', 'svg', 'video' ]\n },\n article: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'article' ],\n unsupported: false\n },\n banner: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'header' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n button: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-pressed', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'button', 'input[type=\"button\"]', 'input[type=\"image\"]', 'input[type=\"reset\"]', 'input[type=\"submit\"]', 'summary' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n cell: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-colindex', 'aria-colspan', 'aria-rowindex', 'aria-rowspan', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'row' ],\n implicit: [ 'td', 'th' ],\n unsupported: false\n },\n checkbox: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-checked', 'aria-required', 'aria-readonly', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'input[type=\"checkbox\"]' ],\n unsupported: false,\n allowedElements: [ 'button' ]\n },\n columnheader: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-required', 'aria-readonly', 'aria-selected', 'aria-sort', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'row' ],\n implicit: [ 'th' ],\n unsupported: false\n },\n combobox: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-autocomplete', 'aria-required', 'aria-activedescendant', 'aria-orientation', 'aria-errormessage' ],\n required: [ 'aria-expanded' ]\n },\n owned: {\n all: [ 'listbox', 'tree', 'grid', 'dialog', 'textbox' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: 'input',\n properties: {\n type: [ 'text', 'search', 'tel', 'url', 'email' ]\n }\n } ]\n },\n command: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n complementary: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'aside' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n composite: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n contentinfo: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'footer' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n definition: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'dd', 'dfn' ],\n unsupported: false\n },\n dialog: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-modal', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'dialog' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n directory: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n document: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'body' ],\n unsupported: false,\n allowedElements: [ 'article', 'embed', 'iframe', 'object', 'section', 'svg' ]\n },\n 'doc-abstract': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-acknowledgments': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-afterword': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-appendix': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-backlink': {\n type: 'link',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n 'doc-biblioentry': {\n type: 'listitem',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: [ 'doc-bibliography' ],\n unsupported: false,\n allowedElements: [ 'li' ]\n },\n 'doc-bibliography': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'doc-biblioentry' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-biblioref': {\n type: 'link',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n 'doc-chapter': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-colophon': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-conclusion': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-cover': {\n type: 'img',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false\n },\n 'doc-credit': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-credits': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-dedication': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-endnote': {\n type: 'listitem',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: [ 'doc-endnotes' ],\n unsupported: false,\n allowedElements: [ 'li' ]\n },\n 'doc-endnotes': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'doc-endnote' ]\n },\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-epigraph': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false\n },\n 'doc-epilogue': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-errata': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-example': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'aside', 'section' ]\n },\n 'doc-footnote': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'aside', 'footer', 'header' ]\n },\n 'doc-foreword': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-glossary': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: [ 'term', 'definition' ],\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'dl' ]\n },\n 'doc-glossref': {\n type: 'link',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n 'doc-index': {\n type: 'navigation',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'nav', 'section' ]\n },\n 'doc-introduction': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-noteref': {\n type: 'link',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n 'doc-notice': {\n type: 'note',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-pagebreak': {\n type: 'separator',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'hr' ]\n },\n 'doc-pagelist': {\n type: 'navigation',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'nav', 'section' ]\n },\n 'doc-part': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-preface': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-prologue': {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-pullquote': {\n type: 'none',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'aside', 'section' ]\n },\n 'doc-qna': {\n type: 'section',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n 'doc-subtitle': {\n type: 'sectionhead',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: {\n nodeName: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ]\n }\n },\n 'doc-tip': {\n type: 'note',\n attributes: {\n allowed: [ 'aria-expanded' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'aside' ]\n },\n 'doc-toc': {\n type: 'navigation',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n namefrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'nav', 'section' ]\n },\n feed: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'article' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'article', 'aside', 'section' ]\n },\n figure: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'figure' ],\n unsupported: false\n },\n form: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'form' ],\n unsupported: false\n },\n grid: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-colcount', 'aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-rowcount', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'rowgroup', 'row' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'table' ],\n unsupported: false\n },\n gridcell: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-selected', 'aria-readonly', 'aria-required', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'row' ],\n implicit: [ 'td', 'th' ],\n unsupported: false\n },\n group: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'details', 'optgroup' ],\n unsupported: false,\n allowedElements: [ 'dl', 'figcaption', 'fieldset', 'figure', 'footer', 'header', 'ol', 'ul' ]\n },\n heading: {\n type: 'structure',\n attributes: {\n required: [ 'aria-level' ],\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ],\n unsupported: false\n },\n img: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'img' ],\n unsupported: false,\n allowedElements: [ 'embed', 'iframe', 'object', 'svg' ]\n },\n input: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n landmark: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n link: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'a[href]', 'area[href]' ],\n unsupported: false,\n allowedElements: [ 'button', {\n nodeName: 'input',\n properties: {\n type: [ 'image', 'button' ]\n }\n } ]\n },\n list: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: {\n all: [ 'listitem' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'ol', 'ul', 'dl' ],\n unsupported: false\n },\n listbox: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-expanded', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n all: [ 'option' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'select' ],\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n listitem: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'list' ],\n implicit: [ 'li', 'dt' ],\n unsupported: false\n },\n log: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n main: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'main' ],\n unsupported: false,\n allowedElements: [ 'article', 'section' ]\n },\n marquee: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n math: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'math' ],\n unsupported: false\n },\n menu: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'menuitem', 'menuitemradio', 'menuitemcheckbox' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'menu[type=\"context\"]' ],\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n menubar: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'menuitem', 'menuitemradio', 'menuitemcheckbox' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n menuitem: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'menu', 'menubar' ],\n implicit: [ 'menuitem[type=\"command\"]' ],\n unsupported: false,\n allowedElements: [ 'button', 'li', {\n nodeName: 'iput',\n properties: {\n type: [ 'image', 'button' ]\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n menuitemcheckbox: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-checked', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'menu', 'menubar' ],\n implicit: [ 'menuitem[type=\"checkbox\"]' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'button', 'li' ]\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'checkbox', 'image', 'button' ]\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n menuitemradio: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-checked', 'aria-selected', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'menu', 'menubar' ],\n implicit: [ 'menuitem[type=\"radio\"]' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'button', 'li' ]\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'image', 'button', 'radio' ]\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n navigation: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'nav' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n none: {\n type: 'structure',\n attributes: null,\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'article', 'aside', 'dl', 'embed', 'figcaption', 'fieldset', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hr', 'iframe', 'li', 'ol', 'section', 'ul' ]\n }, {\n nodeName: 'img',\n attributes: {\n alt: isNotNull\n }\n } ]\n },\n note: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'aside' ]\n },\n option: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-selected', 'aria-posinset', 'aria-setsize', 'aria-checked', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'listbox' ],\n implicit: [ 'option' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'button', 'li' ]\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'checkbox', 'button' ]\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n presentation: {\n type: 'structure',\n attributes: null,\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'article', 'aside', 'dl', 'embed', 'figcaption', 'fieldset', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hr', 'iframe', 'li', 'ol', 'section', 'ul' ]\n }, {\n nodeName: 'img',\n attributes: {\n alt: isNotNull\n }\n } ]\n },\n progressbar: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-valuetext', 'aria-valuenow', 'aria-valuemax', 'aria-valuemin', 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'progress' ],\n unsupported: false\n },\n radio: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-selected', 'aria-posinset', 'aria-setsize', 'aria-required', 'aria-errormessage', 'aria-checked' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'input[type=\"radio\"]' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'button', 'li' ]\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'image', 'button' ]\n }\n } ]\n },\n radiogroup: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-required', 'aria-expanded', 'aria-readonly', 'aria-errormessage', 'aria-orientation' ]\n },\n owned: {\n all: [ 'radio' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: {\n nodeName: [ 'ol', 'ul', 'fieldset' ]\n }\n },\n range: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n region: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'section[aria-label]', 'section[aria-labelledby]', 'section[title]' ],\n unsupported: false,\n allowedElements: {\n nodeName: [ 'article', 'aside' ]\n }\n },\n roletype: {\n type: 'abstract',\n unsupported: false\n },\n row: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-colindex', 'aria-expanded', 'aria-level', 'aria-selected', 'aria-rowindex', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'cell', 'columnheader', 'rowheader', 'gridcell' ]\n },\n nameFrom: [ 'author', 'contents' ],\n context: [ 'rowgroup', 'grid', 'treegrid', 'table' ],\n implicit: [ 'tr' ],\n unsupported: false\n },\n rowgroup: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-errormessage' ]\n },\n owned: {\n all: [ 'row' ]\n },\n nameFrom: [ 'author', 'contents' ],\n context: [ 'grid', 'table', 'treegrid' ],\n implicit: [ 'tbody', 'thead', 'tfoot' ],\n unsupported: false\n },\n rowheader: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-required', 'aria-readonly', 'aria-selected', 'aria-sort', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'row' ],\n implicit: [ 'th' ],\n unsupported: false\n },\n scrollbar: {\n type: 'widget',\n attributes: {\n required: [ 'aria-controls', 'aria-valuenow' ],\n allowed: [ 'aria-valuetext', 'aria-orientation', 'aria-errormessage', 'aria-valuemax', 'aria-valuemin' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false\n },\n search: {\n type: 'landmark',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: {\n nodeName: [ 'aside', 'form', 'section' ]\n }\n },\n searchbox: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-readonly', 'aria-required', 'aria-placeholder', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'input[type=\"search\"]' ],\n unsupported: false,\n allowedElements: {\n nodeName: 'input',\n properties: {\n type: 'text'\n }\n }\n },\n section: {\n nameFrom: [ 'author', 'contents' ],\n type: 'abstract',\n unsupported: false\n },\n sectionhead: {\n nameFrom: [ 'author', 'contents' ],\n type: 'abstract',\n unsupported: false\n },\n select: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n },\n separator: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-orientation', 'aria-valuenow', 'aria-valuemax', 'aria-valuemin', 'aria-valuetext', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'hr' ],\n unsupported: false,\n allowedElements: [ 'li' ]\n },\n slider: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-valuetext', 'aria-orientation', 'aria-readonly', 'aria-errormessage', 'aria-valuemax', 'aria-valuemin' ],\n required: [ 'aria-valuenow' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'input[type=\"range\"]' ],\n unsupported: false\n },\n spinbutton: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-valuetext', 'aria-required', 'aria-readonly', 'aria-errormessage', 'aria-valuemax', 'aria-valuemin' ],\n required: [ 'aria-valuenow' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'input[type=\"number\"]' ],\n unsupported: false,\n allowedElements: {\n nodeName: 'input',\n properties: {\n type: [ 'text', 'tel' ]\n }\n }\n },\n status: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'output' ],\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n structure: {\n type: 'abstract',\n unsupported: false\n },\n switch: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-errormessage' ],\n required: [ 'aria-checked' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'button', {\n nodeName: 'input',\n properties: {\n type: [ 'checkbox', 'image', 'button' ]\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n tab: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-selected', 'aria-expanded', 'aria-setsize', 'aria-posinset', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'tablist' ],\n unsupported: false,\n allowedElements: [ {\n nodeName: [ 'button', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li' ]\n }, {\n nodeName: 'input',\n properties: {\n type: 'button'\n }\n }, {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n table: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-colcount', 'aria-rowcount', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'rowgroup', 'row' ]\n },\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'table' ],\n unsupported: false\n },\n tablist: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n all: [ 'tab' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n tabpanel: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'section' ]\n },\n term: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n implicit: [ 'dt' ],\n unsupported: false\n },\n textbox: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-readonly', 'aria-required', 'aria-placeholder', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'input[type=\"text\"]', 'input[type=\"email\"]', 'input[type=\"password\"]', 'input[type=\"tel\"]', 'input[type=\"url\"]', 'input:not([type])', 'textarea' ],\n unsupported: false\n },\n timer: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false\n },\n toolbar: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author' ],\n context: null,\n implicit: [ 'menu[type=\"toolbar\"]' ],\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n tooltip: {\n type: 'structure',\n attributes: {\n allowed: [ 'aria-expanded', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: null,\n unsupported: false\n },\n tree: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-multiselectable', 'aria-required', 'aria-expanded', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n all: [ 'treeitem' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false,\n allowedElements: [ 'ol', 'ul' ]\n },\n treegrid: {\n type: 'composite',\n attributes: {\n allowed: [ 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-rowcount', 'aria-orientation', 'aria-errormessage' ]\n },\n owned: {\n one: [ 'rowgroup', 'row' ]\n },\n nameFrom: [ 'author' ],\n context: null,\n unsupported: false\n },\n treeitem: {\n type: 'widget',\n attributes: {\n allowed: [ 'aria-checked', 'aria-selected', 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-errormessage' ]\n },\n owned: null,\n nameFrom: [ 'author', 'contents' ],\n context: [ 'group', 'tree' ],\n unsupported: false,\n allowedElements: [ 'li', {\n nodeName: 'a',\n attributes: {\n href: isNotNull\n }\n } ]\n },\n widget: {\n type: 'abstract',\n unsupported: false\n },\n window: {\n nameFrom: [ 'author' ],\n type: 'abstract',\n unsupported: false\n }\n };\n lookupTable.implicitHtmlRole = implicit_html_roles_default;\n lookupTable.elementsAllowedNoRole = [ {\n nodeName: [ 'base', 'body', 'caption', 'col', 'colgroup', 'datalist', 'dd', 'details', 'dt', 'head', 'html', 'keygen', 'label', 'legend', 'main', 'map', 'math', 'meta', 'meter', 'noscript', 'optgroup', 'param', 'picture', 'progress', 'script', 'source', 'style', 'template', 'textarea', 'title', 'track' ]\n }, {\n nodeName: 'area',\n attributes: {\n href: isNotNull\n }\n }, {\n nodeName: 'input',\n properties: {\n type: [ 'color', 'data', 'datatime', 'file', 'hidden', 'month', 'number', 'password', 'range', 'reset', 'submit', 'time', 'week' ]\n }\n }, {\n nodeName: 'link',\n attributes: {\n href: isNotNull\n }\n }, {\n nodeName: 'menu',\n attributes: {\n type: 'context'\n }\n }, {\n nodeName: 'menuitem',\n attributes: {\n type: [ 'command', 'checkbox', 'radio' ]\n }\n }, {\n nodeName: 'select',\n condition: function condition(vNode) {\n if (!(vNode instanceof axe.AbstractVirtualNode)) {\n vNode = axe.utils.getNodeFromTree(vNode);\n }\n return Number(vNode.attr('size')) > 1;\n },\n properties: {\n multiple: true\n }\n }, {\n nodeName: [ 'clippath', 'cursor', 'defs', 'desc', 'feblend', 'fecolormatrix', 'fecomponenttransfer', 'fecomposite', 'feconvolvematrix', 'fediffuselighting', 'fedisplacementmap', 'fedistantlight', 'fedropshadow', 'feflood', 'fefunca', 'fefuncb', 'fefuncg', 'fefuncr', 'fegaussianblur', 'feimage', 'femerge', 'femergenode', 'femorphology', 'feoffset', 'fepointlight', 'fespecularlighting', 'fespotlight', 'fetile', 'feturbulence', 'filter', 'hatch', 'hatchpath', 'lineargradient', 'marker', 'mask', 'meshgradient', 'meshpatch', 'meshrow', 'metadata', 'mpath', 'pattern', 'radialgradient', 'solidcolor', 'stop', 'switch', 'view' ]\n } ];\n lookupTable.elementsAllowedAnyRole = [ {\n nodeName: 'a',\n attributes: {\n href: isNull\n }\n }, {\n nodeName: 'img',\n attributes: {\n alt: isNull\n }\n }, {\n nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]\n } ];\n lookupTable.evaluateRoleForElement = {\n A: function A(_ref65) {\n var node = _ref65.node, out = _ref65.out;\n if (node.namespaceURI === 'http://www.w3.org/2000/svg') {\n return true;\n }\n if (node.href.length) {\n return out;\n }\n return true;\n },\n AREA: function AREA(_ref66) {\n var node = _ref66.node;\n return !node.href;\n },\n BUTTON: function BUTTON(_ref67) {\n var node = _ref67.node, role = _ref67.role, out = _ref67.out;\n if (node.getAttribute('type') === 'menu') {\n return role === 'menuitem';\n }\n return out;\n },\n IMG: function IMG(_ref68) {\n var node = _ref68.node, role = _ref68.role, out = _ref68.out;\n switch (node.alt) {\n case null:\n return out;\n\n case '':\n return role === 'presentation' || role === 'none';\n\n default:\n return role !== 'presentation' && role !== 'none';\n }\n },\n INPUT: function INPUT(_ref69) {\n var node = _ref69.node, role = _ref69.role, out = _ref69.out;\n switch (node.type) {\n case 'button':\n case 'image':\n return out;\n\n case 'checkbox':\n if (role === 'button' && node.hasAttribute('aria-pressed')) {\n return true;\n }\n return out;\n\n case 'radio':\n return role === 'menuitemradio';\n\n case 'text':\n return role === 'combobox' || role === 'searchbox' || role === 'spinbutton';\n\n case 'tel':\n return role === 'combobox' || role === 'spinbutton';\n\n case 'url':\n case 'search':\n case 'email':\n return role === 'combobox';\n\n default:\n return false;\n }\n },\n LI: function LI(_ref70) {\n var node = _ref70.node, out = _ref70.out;\n var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');\n if (hasImplicitListitemRole) {\n return out;\n }\n return true;\n },\n MENU: function MENU(_ref71) {\n var node = _ref71.node;\n if (node.getAttribute('type') === 'context') {\n return false;\n }\n return true;\n },\n OPTION: function OPTION(_ref72) {\n var node = _ref72.node;\n var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');\n return !withinOptionList;\n },\n SELECT: function SELECT(_ref73) {\n var node = _ref73.node, role = _ref73.role;\n return !node.multiple && node.size <= 1 && role === 'menu';\n },\n SVG: function SVG(_ref74) {\n var node = _ref74.node, out = _ref74.out;\n if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {\n return true;\n }\n return out;\n }\n };\n lookupTable.rolesOfType = {\n widget: [ 'button', 'checkbox', 'dialog', 'gridcell', 'link', 'log', 'marquee', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'progressbar', 'radio', 'scrollbar', 'searchbox', 'slider', 'spinbutton', 'status', 'switch', 'tab', 'tabpanel', 'textbox', 'timer', 'tooltip', 'tree', 'treeitem' ]\n };\n var lookup_table_default = lookupTable;\n function implicitNodes(role) {\n var implicit = null;\n var roles = lookup_table_default.role[role];\n if (roles && roles.implicit) {\n implicit = clone_default(roles.implicit);\n }\n return implicit;\n }\n var implicit_nodes_default = implicitNodes;\n function isAccessibleRef(node) {\n return !!get_accessible_refs_default(node).length;\n }\n var is_accessible_ref_default = isAccessibleRef;\n function _isComboboxPopup(virtualNode) {\n var _popupRoles;\n var _ref75 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref75.popupRoles;\n var role = get_role_default(virtualNode);\n (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;\n if (!popupRoles.includes(role)) {\n return false;\n }\n var vParent = nearestParentWithRole(virtualNode);\n if (isCombobox(vParent)) {\n return true;\n }\n var id = virtualNode.props.id;\n if (!id) {\n return false;\n }\n if (!virtualNode.actualNode) {\n throw new Error('Unable to determine combobox popup without an actualNode');\n }\n var root = get_root_node_default(virtualNode.actualNode);\n var ownedCombobox = root.querySelectorAll('[aria-owns~=\"'.concat(id, '\"][role~=\"combobox\"]:not(select),\\n [aria-controls~=\"').concat(id, '\"][role~=\"combobox\"]:not(select)'));\n return Array.from(ownedCombobox).some(isCombobox);\n }\n var isCombobox = function isCombobox(node) {\n return node && get_role_default(node) === 'combobox';\n };\n function nearestParentWithRole(vNode) {\n while (vNode = vNode.parent) {\n if (get_role_default(vNode, {\n noPresentational: true\n }) !== null) {\n return vNode;\n }\n }\n return null;\n }\n function label2(node) {\n node = get_node_from_tree_default(node);\n return label_virtual_default(node);\n }\n var label_default2 = label2;\n function requiredAttr(role) {\n var roleDef = standards_default.ariaRoles[role];\n if (!roleDef || !Array.isArray(roleDef.requiredAttrs)) {\n return [];\n }\n return _toConsumableArray(roleDef.requiredAttrs);\n }\n var required_attr_default = requiredAttr;\n function requiredContext(role) {\n var roleDef = standards_default.ariaRoles[role];\n if (!roleDef || !Array.isArray(roleDef.requiredContext)) {\n return null;\n }\n return _toConsumableArray(roleDef.requiredContext);\n }\n var required_context_default = requiredContext;\n function requiredOwned(role) {\n var roleDef = standards_default.ariaRoles[role];\n if (!roleDef || !Array.isArray(roleDef.requiredOwned)) {\n return null;\n }\n return _toConsumableArray(roleDef.requiredOwned);\n }\n var required_owned_default = requiredOwned;\n function validateAttrValue(vNode, attr) {\n vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);\n var matches4;\n var list;\n var value = vNode.attr(attr);\n var attrInfo = standards_default.ariaAttrs[attr];\n if (!attrInfo) {\n return true;\n }\n if (attrInfo.allowEmpty && (!value || value.trim() === '')) {\n return true;\n }\n switch (attrInfo.type) {\n case 'boolean':\n return [ 'true', 'false' ].includes(value.toLowerCase());\n\n case 'nmtoken':\n return typeof value === 'string' && attrInfo.values.includes(value.toLowerCase());\n\n case 'nmtokens':\n list = token_list_default(value);\n return list.reduce(function(result, token) {\n return result && attrInfo.values.includes(token);\n }, list.length !== 0);\n\n case 'idref':\n try {\n var doc = get_root_node_default2(vNode.actualNode);\n return !!(value && doc.getElementById(value));\n } catch (e) {\n throw new TypeError('Cannot resolve id references for partial DOM');\n }\n\n case 'idrefs':\n return idrefs_default(vNode, attr).some(function(node) {\n return !!node;\n });\n\n case 'string':\n return value.trim() !== '';\n\n case 'decimal':\n matches4 = value.match(/^[-+]?([0-9]*)\\.?([0-9]*)$/);\n return !!(matches4 && (matches4[1] || matches4[2]));\n\n case 'int':\n var minValue = typeof attrInfo.minValue !== 'undefined' ? attrInfo.minValue : -Infinity;\n return /^[-+]?[0-9]+$/.test(value) && parseInt(value) >= minValue;\n }\n }\n var validate_attr_value_default = validateAttrValue;\n function validateAttr(att) {\n var attrDefinition = standards_default.ariaAttrs[att];\n return !!attrDefinition;\n }\n var validate_attr_default = validateAttr;\n function abstractroleEvaluate(node, options, virtualNode) {\n var abstractRoles = token_list_default(virtualNode.attr('role')).filter(function(role) {\n return get_role_type_default(role) === 'abstract';\n });\n if (abstractRoles.length > 0) {\n this.data(abstractRoles);\n return true;\n }\n return false;\n }\n var abstractrole_evaluate_default = abstractroleEvaluate;\n function ariaAllowedAttrEvaluate(node, options, virtualNode) {\n var invalid = [];\n var role = get_role_default(virtualNode);\n var attrs = virtualNode.attrNames;\n var allowed = allowed_attr_default(role);\n if (Array.isArray(options[role])) {\n allowed = unique_array_default(options[role].concat(allowed));\n }\n var tableMap = cache_default.get('aria-allowed-attr-table', function() {\n return new WeakMap();\n });\n function validateRowAttrs() {\n if (virtualNode.parent && role === 'row') {\n var table = closest_default(virtualNode, 'table, [role=\"treegrid\"], [role=\"table\"], [role=\"grid\"]');\n var tableRole = tableMap.get(table);\n if (table && !tableRole) {\n tableRole = get_role_default(table);\n tableMap.set(table, tableRole);\n }\n if ([ 'table', 'grid' ].includes(tableRole) && role === 'row') {\n return true;\n }\n }\n }\n var ariaAttr = Array.isArray(options.validTreeRowAttrs) ? options.validTreeRowAttrs : [];\n var preChecks = {};\n ariaAttr.forEach(function(attr) {\n preChecks[attr] = validateRowAttrs;\n });\n if (allowed) {\n for (var _i21 = 0; _i21 < attrs.length; _i21++) {\n var _preChecks$attrName;\n var attrName = attrs[_i21];\n if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {\n invalid.push(attrName + '=\"' + virtualNode.attr(attrName) + '\"');\n } else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {\n invalid.push(attrName + '=\"' + virtualNode.attr(attrName) + '\"');\n }\n }\n }\n if (invalid.length) {\n this.data(invalid);\n if (!is_html_element_default(virtualNode) && !role && !_isFocusable(virtualNode)) {\n return void 0;\n }\n return false;\n }\n return true;\n }\n function ariaAllowedRoleEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var virtualNode = arguments.length > 2 ? arguments[2] : undefined;\n var _options$allowImplici = options.allowImplicit, allowImplicit = _options$allowImplici === void 0 ? true : _options$allowImplici, _options$ignoredTags = options.ignoredTags, ignoredTags = _options$ignoredTags === void 0 ? [] : _options$ignoredTags;\n var nodeName2 = virtualNode.props.nodeName;\n if (ignoredTags.map(function(tag) {\n return tag.toLowerCase();\n }).includes(nodeName2)) {\n return true;\n }\n var unallowedRoles = get_element_unallowed_roles_default(virtualNode, allowImplicit);\n if (unallowedRoles.length) {\n this.data(unallowedRoles);\n if (!_isVisibleToScreenReaders(virtualNode)) {\n return void 0;\n }\n return false;\n }\n return true;\n }\n var aria_allowed_role_evaluate_default = ariaAllowedRoleEvaluate;\n function ariaBusyEvaluate(node, options, virtualNode) {\n return virtualNode.attr('aria-busy') === 'true';\n }\n function ariaErrormessageEvaluate(node, options, virtualNode) {\n options = Array.isArray(options) ? options : [];\n var attr = virtualNode.attr('aria-errormessage');\n var hasAttr = virtualNode.hasAttr('aria-errormessage');\n var invaid = virtualNode.attr('aria-invalid');\n var hasInvallid = virtualNode.hasAttr('aria-invalid');\n if (!hasInvallid || invaid === 'false') {\n return true;\n }\n function validateAttrValue2(attr2) {\n if (attr2.trim() === '') {\n return standards_default.ariaAttrs['aria-errormessage'].allowEmpty;\n }\n var idref;\n try {\n idref = attr2 && idrefs_default(virtualNode, 'aria-errormessage')[0];\n } catch (e) {\n this.data({\n messageKey: 'idrefs',\n values: token_list_default(attr2)\n });\n return void 0;\n }\n if (idref) {\n if (!_isVisibleToScreenReaders(idref)) {\n this.data({\n messageKey: 'hidden',\n values: token_list_default(attr2)\n });\n return false;\n }\n return idref.getAttribute('role') === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr2) > -1;\n }\n return;\n }\n if (options.indexOf(attr) === -1 && hasAttr) {\n this.data(token_list_default(attr));\n return validateAttrValue2.call(this, attr);\n }\n return true;\n }\n var aria_errormessage_evaluate_default = ariaErrormessageEvaluate;\n function ariaHiddenBodyEvaluate(node, options, virtualNode) {\n return virtualNode.attr('aria-hidden') !== 'true';\n }\n var aria_hidden_body_evaluate_default = ariaHiddenBodyEvaluate;\n function ariaLevelEvaluate(node, options, virtualNode) {\n var ariaHeadingLevel = virtualNode.attr('aria-level');\n var ariaLevel = parseInt(ariaHeadingLevel, 10);\n if (ariaLevel > 6) {\n return void 0;\n }\n return true;\n }\n var aria_level_evaluate_default = ariaLevelEvaluate;\n function ariaProhibitedAttrEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var virtualNode = arguments.length > 2 ? arguments[2] : undefined;\n var elementsAllowedAriaLabel = (options === null || options === void 0 ? void 0 : options.elementsAllowedAriaLabel) || [];\n var nodeName2 = virtualNode.props.nodeName;\n var role = get_role_default(virtualNode, {\n chromium: true\n });\n var prohibitedList = listProhibitedAttrs(role, nodeName2, elementsAllowedAriaLabel);\n var prohibited = prohibitedList.filter(function(attrName) {\n if (!virtualNode.attrNames.includes(attrName)) {\n return false;\n }\n return sanitize_default(virtualNode.attr(attrName)) !== '';\n });\n if (prohibited.length === 0) {\n return false;\n }\n var messageKey = virtualNode.hasAttr('role') ? 'hasRole' : 'noRole';\n messageKey += prohibited.length > 1 ? 'Plural' : 'Singular';\n this.data({\n role: role,\n nodeName: nodeName2,\n messageKey: messageKey,\n prohibited: prohibited\n });\n var textContent = subtree_text_default(virtualNode, {\n subtreeDescendant: true\n });\n if (sanitize_default(textContent) !== '') {\n return void 0;\n }\n return true;\n }\n function listProhibitedAttrs(role, nodeName2, elementsAllowedAriaLabel) {\n var roleSpec = standards_default.ariaRoles[role];\n if (roleSpec) {\n return roleSpec.prohibitedAttrs || [];\n }\n if (!!role || elementsAllowedAriaLabel.includes(nodeName2)) {\n return [];\n }\n return [ 'aria-label', 'aria-labelledby' ];\n }\n var standards_exports = {};\n __export(standards_exports, {\n getAriaRolesByType: function getAriaRolesByType() {\n return get_aria_roles_by_type_default;\n },\n getAriaRolesSupportingNameFromContent: function getAriaRolesSupportingNameFromContent() {\n return get_aria_roles_supporting_name_from_content_default;\n },\n getElementSpec: function getElementSpec() {\n return get_element_spec_default;\n },\n getElementsByContentType: function getElementsByContentType() {\n return get_elements_by_content_type_default;\n },\n getGlobalAriaAttrs: function getGlobalAriaAttrs() {\n return get_global_aria_attrs_default;\n },\n implicitHtmlRoles: function implicitHtmlRoles() {\n return implicit_html_roles_default;\n }\n });\n function ariaRequiredAttrEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var virtualNode = arguments.length > 2 ? arguments[2] : undefined;\n var role = get_explicit_role_default(virtualNode);\n var attrs = virtualNode.attrNames;\n var requiredAttrs = required_attr_default(role);\n if (Array.isArray(options[role])) {\n requiredAttrs = unique_array_default(options[role], requiredAttrs);\n }\n if (!role || !attrs.length || !requiredAttrs.length) {\n return true;\n }\n if (isStaticSeparator(virtualNode, role) || isClosedCombobox(virtualNode, role)) {\n return true;\n }\n var elmSpec = get_element_spec_default(virtualNode);\n var missingAttrs = requiredAttrs.filter(function(requiredAttr2) {\n return !virtualNode.attr(requiredAttr2) && !hasImplicitAttr(elmSpec, requiredAttr2);\n });\n if (missingAttrs.length) {\n this.data(missingAttrs);\n return false;\n }\n return true;\n }\n function isStaticSeparator(vNode, role) {\n return role === 'separator' && !_isFocusable(vNode);\n }\n function hasImplicitAttr(elmSpec, attr) {\n var _elmSpec$implicitAttr;\n return ((_elmSpec$implicitAttr = elmSpec.implicitAttrs) === null || _elmSpec$implicitAttr === void 0 ? void 0 : _elmSpec$implicitAttr[attr]) !== void 0;\n }\n function isClosedCombobox(vNode, role) {\n return role === 'combobox' && vNode.attr('aria-expanded') === 'false';\n }\n function ariaRequiredChildrenEvaluate(node, options, virtualNode) {\n var reviewEmpty = options && Array.isArray(options.reviewEmpty) ? options.reviewEmpty : [];\n var role = get_explicit_role_default(virtualNode, {\n dpub: true\n });\n var required = required_owned_default(role);\n if (required === null) {\n return true;\n }\n var ownedRoles = getOwnedRoles(virtualNode, required);\n var unallowed = ownedRoles.filter(function(_ref76) {\n var role2 = _ref76.role;\n return !required.includes(role2);\n });\n if (unallowed.length) {\n this.relatedNodes(unallowed.map(function(_ref77) {\n var ownedElement = _ref77.ownedElement;\n return ownedElement;\n }));\n this.data({\n messageKey: 'unallowed',\n values: unallowed.map(function(_ref78) {\n var ownedElement = _ref78.ownedElement, attr = _ref78.attr;\n return getUnallowedSelector(ownedElement, attr);\n }).filter(function(selector, index, array) {\n return array.indexOf(selector) === index;\n }).join(', ')\n });\n return false;\n }\n var missing = missingRequiredChildren(virtualNode, role, required, ownedRoles);\n if (!missing) {\n return true;\n }\n this.data(missing);\n if (reviewEmpty.includes(role) && !has_content_virtual_default(virtualNode, false, true) && !ownedRoles.length && (!virtualNode.hasAttr('aria-owns') || !idrefs_default(node, 'aria-owns').length)) {\n return void 0;\n }\n return false;\n }\n function getOwnedRoles(virtualNode, required) {\n var ownedRoles = [];\n var ownedElements = get_owned_virtual_default(virtualNode);\n var _loop5 = function _loop5(_i22) {\n var ownedElement = ownedElements[_i22];\n if (ownedElement.props.nodeType !== 1) {\n return 'continue';\n }\n var role = get_role_default(ownedElement, {\n noPresentational: true\n });\n var globalAriaAttr = getGlobalAriaAttr(ownedElement);\n var hasGlobalAriaOrFocusable = !!globalAriaAttr || _isFocusable(ownedElement);\n if (!_isVisibleToScreenReaders(ownedElement) || !role && !hasGlobalAriaOrFocusable || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {\n return requiredRole === role;\n })) {\n ownedElements.push.apply(ownedElements, _toConsumableArray(ownedElement.children));\n } else if (role || hasGlobalAriaOrFocusable) {\n ownedRoles.push({\n role: role,\n attr: globalAriaAttr || 'tabindex',\n ownedElement: ownedElement\n });\n }\n };\n for (var _i22 = 0; _i22 < ownedElements.length; _i22++) {\n var _ret2 = _loop5(_i22);\n if (_ret2 === 'continue') {\n continue;\n }\n }\n return ownedRoles;\n }\n function missingRequiredChildren(virtualNode, role, required, ownedRoles) {\n var _loop6 = function _loop6(_i23) {\n var role2 = ownedRoles[_i23].role;\n if (required.includes(role2)) {\n required = required.filter(function(requiredRole) {\n return requiredRole !== role2;\n });\n return {\n v: null\n };\n }\n };\n for (var _i23 = 0; _i23 < ownedRoles.length; _i23++) {\n var _ret3 = _loop6(_i23);\n if (_typeof(_ret3) === 'object') {\n return _ret3.v;\n }\n }\n if (required.length) {\n return required;\n }\n return null;\n }\n function getGlobalAriaAttr(vNode) {\n return get_global_aria_attrs_default().find(function(attr) {\n return vNode.hasAttr(attr);\n });\n }\n function getUnallowedSelector(vNode, attr) {\n var _vNode$props = vNode.props, nodeName2 = _vNode$props.nodeName, nodeType = _vNode$props.nodeType;\n if (nodeType === 3) {\n return '#text';\n }\n var role = get_explicit_role_default(vNode, {\n dpub: true\n });\n if (role) {\n return '[role='.concat(role, ']');\n }\n if (attr) {\n return nodeName2 + '['.concat(attr, ']');\n }\n return nodeName2;\n }\n function getMissingContext(virtualNode, ownGroupRoles, reqContext, includeElement) {\n var explicitRole2 = get_explicit_role_default(virtualNode);\n if (!reqContext) {\n reqContext = required_context_default(explicitRole2);\n }\n if (!reqContext) {\n return null;\n }\n var allowsGroup = reqContext.includes('group');\n var vNode = includeElement ? virtualNode : virtualNode.parent;\n while (vNode) {\n var role = get_role_default(vNode, {\n noPresentational: true\n });\n if (!role) {\n vNode = vNode.parent;\n } else if (role === 'group' && allowsGroup) {\n if (ownGroupRoles.includes(explicitRole2)) {\n reqContext.push(explicitRole2);\n }\n reqContext = reqContext.filter(function(r) {\n return r !== 'group';\n });\n vNode = vNode.parent;\n } else if (reqContext.includes(role)) {\n return null;\n } else {\n return reqContext;\n }\n }\n return reqContext;\n }\n function getAriaOwners(element) {\n var owners = [], o = null;\n while (element) {\n if (element.getAttribute('id')) {\n var id = escape_selector_default(element.getAttribute('id'));\n var doc = get_root_node_default2(element);\n o = doc.querySelector('[aria-owns~='.concat(id, ']'));\n if (o) {\n owners.push(o);\n }\n }\n element = element.parentElement;\n }\n return owners.length ? owners : null;\n }\n function ariaRequiredParentEvaluate(node, options, virtualNode) {\n var ownGroupRoles = options && Array.isArray(options.ownGroupRoles) ? options.ownGroupRoles : [];\n var missingParents = getMissingContext(virtualNode, ownGroupRoles);\n if (!missingParents) {\n return true;\n }\n var owners = getAriaOwners(node);\n if (owners) {\n for (var _i24 = 0, l = owners.length; _i24 < l; _i24++) {\n missingParents = getMissingContext(get_node_from_tree_default(owners[_i24]), ownGroupRoles, missingParents, true);\n if (!missingParents) {\n return true;\n }\n }\n }\n this.data(missingParents);\n return false;\n }\n var aria_required_parent_evaluate_default = ariaRequiredParentEvaluate;\n function ariaRoledescriptionEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var virtualNode = arguments.length > 2 ? arguments[2] : undefined;\n var role = get_role_default(virtualNode);\n var supportedRoles = options.supportedRoles || [];\n if (supportedRoles.includes(role)) {\n return true;\n }\n if (role && role !== 'presentation' && role !== 'none') {\n return void 0;\n }\n return false;\n }\n var aria_roledescription_evaluate_default = ariaRoledescriptionEvaluate;\n function ariaUnsupportedAttrEvaluate(node, options, virtualNode) {\n var unsupportedAttrs = virtualNode.attrNames.filter(function(name) {\n var attribute = standards_default.ariaAttrs[name];\n if (!validate_attr_default(name)) {\n return false;\n }\n var unsupported2 = attribute.unsupported;\n if (_typeof(unsupported2) !== 'object') {\n return !!unsupported2;\n }\n return !matches_default3(node, unsupported2.exceptions);\n });\n if (unsupportedAttrs.length) {\n this.data(unsupportedAttrs);\n return true;\n }\n return false;\n }\n var aria_unsupported_attr_evaluate_default = ariaUnsupportedAttrEvaluate;\n function ariaValidAttrEvaluate(node, options, virtualNode) {\n options = Array.isArray(options.value) ? options.value : [];\n var invalid = [];\n var aria = /^aria-/;\n virtualNode.attrNames.forEach(function(attr) {\n if (options.indexOf(attr) === -1 && aria.test(attr) && !validate_attr_default(attr)) {\n invalid.push(attr);\n }\n });\n if (invalid.length) {\n this.data(invalid);\n return false;\n }\n return true;\n }\n var aria_valid_attr_evaluate_default = ariaValidAttrEvaluate;\n function ariaValidAttrValueEvaluate(node, options, virtualNode) {\n options = Array.isArray(options.value) ? options.value : [];\n var needsReview = '';\n var messageKey = '';\n var invalid = [];\n var aria = /^aria-/;\n var skipAttrs = [ 'aria-errormessage' ];\n var preChecks = {\n 'aria-controls': function ariaControls() {\n return virtualNode.attr('aria-expanded') !== 'false' && virtualNode.attr('aria-selected') !== 'false';\n },\n 'aria-current': function ariaCurrent(validValue) {\n if (!validValue) {\n needsReview = 'aria-current=\"'.concat(virtualNode.attr('aria-current'), '\"');\n messageKey = 'ariaCurrent';\n }\n return;\n },\n 'aria-owns': function ariaOwns() {\n return virtualNode.attr('aria-expanded') !== 'false';\n },\n 'aria-describedby': function ariaDescribedby(validValue) {\n if (!validValue) {\n needsReview = 'aria-describedby=\"'.concat(virtualNode.attr('aria-describedby'), '\"');\n messageKey = axe._tree && axe._tree[0]._hasShadowRoot ? 'noIdShadow' : 'noId';\n }\n return;\n },\n 'aria-labelledby': function ariaLabelledby(validValue) {\n if (!validValue) {\n needsReview = 'aria-labelledby=\"'.concat(virtualNode.attr('aria-labelledby'), '\"');\n messageKey = axe._tree && axe._tree[0]._hasShadowRoot ? 'noIdShadow' : 'noId';\n }\n }\n };\n virtualNode.attrNames.forEach(function(attrName) {\n if (skipAttrs.includes(attrName) || options.includes(attrName) || !aria.test(attrName)) {\n return;\n }\n var validValue;\n var attrValue = virtualNode.attr(attrName);\n try {\n validValue = validate_attr_value_default(virtualNode, attrName);\n } catch (e) {\n needsReview = ''.concat(attrName, '=\"').concat(attrValue, '\"');\n messageKey = 'idrefs';\n return;\n }\n if ((preChecks[attrName] ? preChecks[attrName](validValue) : true) && !validValue) {\n if (attrValue === '' && !isStringType(attrName)) {\n needsReview = attrName;\n messageKey = 'empty';\n } else {\n invalid.push(''.concat(attrName, '=\"').concat(attrValue, '\"'));\n }\n }\n });\n if (invalid.length) {\n this.data(invalid);\n return false;\n }\n if (needsReview) {\n this.data({\n messageKey: messageKey,\n needsReview: needsReview\n });\n return void 0;\n }\n return true;\n }\n function isStringType(attrName) {\n var _standards_default$ar;\n return ((_standards_default$ar = standards_default.ariaAttrs[attrName]) === null || _standards_default$ar === void 0 ? void 0 : _standards_default$ar.type) === 'string';\n }\n function deprecatedroleEvaluate(node, options, virtualNode) {\n var role = get_role_default(virtualNode, {\n dpub: true,\n fallback: true\n });\n var roleDefinition = standards_default.ariaRoles[role];\n if (!(roleDefinition !== null && roleDefinition !== void 0 && roleDefinition.deprecated)) {\n return false;\n }\n this.data(role);\n return true;\n }\n function nonePresentationOnElementWithNoImplicitRole(virtualNode, explicitRoles) {\n var hasImplicitRole = implicit_role_default(virtualNode);\n return !hasImplicitRole && explicitRoles.length === 2 && explicitRoles.includes('none') && explicitRoles.includes('presentation');\n }\n function fallbackroleEvaluate(node, options, virtualNode) {\n var explicitRoles = token_list_default(virtualNode.attr('role'));\n if (explicitRoles.length <= 1) {\n return false;\n }\n return nonePresentationOnElementWithNoImplicitRole(virtualNode, explicitRoles) ? void 0 : true;\n }\n var fallbackrole_evaluate_default = fallbackroleEvaluate;\n function hasGlobalAriaAttributeEvaluate(node, options, virtualNode) {\n var globalAttrs = get_global_aria_attrs_default().filter(function(attr) {\n return virtualNode.hasAttr(attr);\n });\n this.data(globalAttrs);\n return globalAttrs.length > 0;\n }\n var has_global_aria_attribute_evaluate_default = hasGlobalAriaAttributeEvaluate;\n function hasWidgetRoleEvaluate(node) {\n var role = node.getAttribute('role');\n if (role === null) {\n return false;\n }\n var roleType = get_role_type_default(role);\n return roleType === 'widget' || roleType === 'composite';\n }\n var has_widget_role_evaluate_default = hasWidgetRoleEvaluate;\n function invalidroleEvaluate(node, options, virtualNode) {\n var allRoles = token_list_default(virtualNode.attr('role'));\n var allInvalid = allRoles.every(function(role) {\n return !is_valid_role_default(role, {\n allowAbstract: true\n });\n });\n if (allInvalid) {\n this.data(allRoles);\n return true;\n }\n return false;\n }\n var invalidrole_evaluate_default = invalidroleEvaluate;\n function isElementFocusableEvaluate(node, options, virtualNode) {\n return _isFocusable(virtualNode);\n }\n var is_element_focusable_evaluate_default = isElementFocusableEvaluate;\n function noImplicitExplicitLabelEvaluate(node, options, virtualNode) {\n var role = get_role_default(virtualNode, {\n noImplicit: true\n });\n this.data(role);\n var label3;\n var accText;\n try {\n label3 = sanitize_default(label_text_default(virtualNode)).toLowerCase();\n accText = sanitize_default(accessible_text_virtual_default(virtualNode)).toLowerCase();\n } catch (e) {\n return void 0;\n }\n if (!accText && !label3) {\n return false;\n }\n if (!accText && label3) {\n return void 0;\n }\n if (!accText.includes(label3)) {\n return void 0;\n }\n return false;\n }\n var no_implicit_explicit_label_evaluate_default = noImplicitExplicitLabelEvaluate;\n function unsupportedroleEvaluate(node, options, virtualNode) {\n var role = get_role_default(virtualNode, {\n dpub: true,\n fallback: true\n });\n var isUnsupported = is_unsupported_role_default(role);\n if (isUnsupported) {\n this.data(role);\n }\n return isUnsupported;\n }\n var unsupportedrole_evaluate_default = unsupportedroleEvaluate;\n var VALID_TAG_NAMES_FOR_SCROLLABLE_REGIONS = {\n ARTICLE: true,\n ASIDE: true,\n NAV: true,\n SECTION: true\n };\n var VALID_ROLES_FOR_SCROLLABLE_REGIONS = {\n application: true,\n article: true,\n banner: false,\n complementary: true,\n contentinfo: true,\n form: true,\n main: true,\n navigation: true,\n region: true,\n search: false\n };\n function validScrollableTagName(node) {\n var nodeName2 = node.nodeName.toUpperCase();\n return VALID_TAG_NAMES_FOR_SCROLLABLE_REGIONS[nodeName2] || false;\n }\n function validScrollableRole(node, options) {\n var role = get_explicit_role_default(node);\n if (!role) {\n return false;\n }\n return VALID_ROLES_FOR_SCROLLABLE_REGIONS[role] || options.roles.includes(role) || false;\n }\n function validScrollableSemanticsEvaluate(node, options) {\n return validScrollableRole(node, options) || validScrollableTagName(node);\n }\n var valid_scrollable_semantics_evaluate_default = validScrollableSemanticsEvaluate;\n var color_exports = {};\n __export(color_exports, {\n Color: function Color() {\n return color_default;\n },\n centerPointOfRect: function centerPointOfRect() {\n return center_point_of_rect_default;\n },\n elementHasImage: function elementHasImage() {\n return element_has_image_default;\n },\n elementIsDistinct: function elementIsDistinct() {\n return element_is_distinct_default;\n },\n filteredRectStack: function filteredRectStack() {\n return filtered_rect_stack_default;\n },\n flattenColors: function flattenColors() {\n return flatten_colors_default;\n },\n flattenShadowColors: function flattenShadowColors() {\n return _flattenShadowColors;\n },\n getBackgroundColor: function getBackgroundColor() {\n return _getBackgroundColor2;\n },\n getBackgroundStack: function getBackgroundStack() {\n return _getBackgroundStack;\n },\n getContrast: function getContrast() {\n return get_contrast_default;\n },\n getForegroundColor: function getForegroundColor() {\n return _getForegroundColor;\n },\n getOwnBackgroundColor: function getOwnBackgroundColor() {\n return get_own_background_color_default;\n },\n getRectStack: function getRectStack() {\n return get_rect_stack_default;\n },\n getStackingContext: function getStackingContext() {\n return _getStackingContext;\n },\n getTextShadowColors: function getTextShadowColors() {\n return get_text_shadow_colors_default;\n },\n hasValidContrastRatio: function hasValidContrastRatio() {\n return has_valid_contrast_ratio_default;\n },\n incompleteData: function incompleteData() {\n return incomplete_data_default;\n },\n stackingContextToColor: function stackingContextToColor() {\n return _stackingContextToColor;\n }\n });\n function centerPointOfRect(rect) {\n if (rect.left > window.innerWidth) {\n return void 0;\n }\n if (rect.top > window.innerHeight) {\n return void 0;\n }\n var x = Math.min(Math.ceil(rect.left + rect.width / 2), window.innerWidth - 1);\n var y = Math.min(Math.ceil(rect.top + rect.height / 2), window.innerHeight - 1);\n return {\n x: x,\n y: y\n };\n }\n var center_point_of_rect_default = centerPointOfRect;\n function _getFonts(style) {\n return style.getPropertyValue('font-family').split(/[,;]/g).map(function(font) {\n return font.trim().toLowerCase();\n });\n }\n function elementIsDistinct(node, ancestorNode) {\n var nodeStyle = window.getComputedStyle(node);\n if (nodeStyle.getPropertyValue('background-image') !== 'none') {\n return true;\n }\n var hasBorder = [ 'border-bottom', 'border-top', 'outline' ].reduce(function(result, edge) {\n var borderClr = new color_default();\n borderClr.parseString(nodeStyle.getPropertyValue(edge + '-color'));\n return result || nodeStyle.getPropertyValue(edge + '-style') !== 'none' && parseFloat(nodeStyle.getPropertyValue(edge + '-width')) > 0 && borderClr.alpha !== 0;\n }, false);\n if (hasBorder) {\n return true;\n }\n var parentStyle = window.getComputedStyle(ancestorNode);\n if (_getFonts(nodeStyle)[0] !== _getFonts(parentStyle)[0]) {\n return true;\n }\n var hasStyle = [ 'text-decoration-line', 'text-decoration-style', 'font-weight', 'font-style', 'font-size' ].reduce(function(result, cssProp) {\n return result || nodeStyle.getPropertyValue(cssProp) !== parentStyle.getPropertyValue(cssProp);\n }, false);\n var tDec = nodeStyle.getPropertyValue('text-decoration');\n if (tDec.split(' ').length < 3) {\n hasStyle = hasStyle || tDec !== parentStyle.getPropertyValue('text-decoration');\n }\n return hasStyle;\n }\n var element_is_distinct_default = elementIsDistinct;\n function getRectStack2(elm) {\n var boundingStack = get_element_stack_default(elm);\n var filteredArr = get_text_element_stack_default(elm);\n if (!filteredArr || filteredArr.length <= 1) {\n return [ boundingStack ];\n }\n if (filteredArr.some(function(stack) {\n return stack === void 0;\n })) {\n return null;\n }\n filteredArr.splice(0, 0, boundingStack);\n return filteredArr;\n }\n var get_rect_stack_default = getRectStack2;\n function filteredRectStack(elm) {\n var rectStack = get_rect_stack_default(elm);\n if (rectStack && rectStack.length === 1) {\n return rectStack[0];\n }\n if (rectStack && rectStack.length > 1) {\n var boundingStack = rectStack.shift();\n var isSame;\n rectStack.forEach(function(rectList, index) {\n if (index === 0) {\n return;\n }\n var rectA = rectStack[index - 1], rectB = rectStack[index];\n isSame = rectA.every(function(element, elementIndex) {\n return element === rectB[elementIndex];\n }) || boundingStack.includes(elm);\n });\n if (!isSame) {\n incomplete_data_default.set('bgColor', 'elmPartiallyObscuring');\n return null;\n }\n return rectStack[0];\n }\n incomplete_data_default.set('bgColor', 'outsideViewport');\n return null;\n }\n var filtered_rect_stack_default = filteredRectStack;\n function clamp(value, min, max) {\n return Math.min(Math.max(min, value), max);\n }\n var blendFunctions = {\n normal: function normal(Cb, Cs) {\n return Cs;\n },\n multiply: function multiply(Cb, Cs) {\n return Cs * Cb;\n },\n screen: function screen(Cb, Cs) {\n return Cb + Cs - Cb * Cs;\n },\n overlay: function overlay(Cb, Cs) {\n return this['hard-light'](Cs, Cb);\n },\n darken: function darken(Cb, Cs) {\n return Math.min(Cb, Cs);\n },\n lighten: function lighten(Cb, Cs) {\n return Math.max(Cb, Cs);\n },\n 'color-dodge': function colorDodge(Cb, Cs) {\n return Cb === 0 ? 0 : Cs === 1 ? 1 : Math.min(1, Cb / (1 - Cs));\n },\n 'color-burn': function colorBurn(Cb, Cs) {\n return Cb === 1 ? 1 : Cs === 0 ? 0 : 1 - Math.min(1, (1 - Cb) / Cs);\n },\n 'hard-light': function hardLight(Cb, Cs) {\n return Cs <= .5 ? this.multiply(Cb, 2 * Cs) : this.screen(Cb, 2 * Cs - 1);\n },\n 'soft-light': function softLight(Cb, Cs) {\n if (Cs <= .5) {\n return Cb - (1 - 2 * Cs) * Cb * (1 - Cb);\n } else {\n var D = Cb <= .25 ? ((16 * Cb - 12) * Cb + 4) * Cb : Math.sqrt(Cb);\n return Cb + (2 * Cs - 1) * (D - Cb);\n }\n },\n difference: function difference(Cb, Cs) {\n return Math.abs(Cb - Cs);\n },\n exclusion: function exclusion(Cb, Cs) {\n return Cb + Cs - 2 * Cb * Cs;\n }\n };\n function simpleAlphaCompositing(Cs, \\u03b1s, Cb, \\u03b1b, blendMode) {\n return \\u03b1s * (1 - \\u03b1b) * Cs + \\u03b1s * \\u03b1b * blendFunctions[blendMode](Cb / 255, Cs / 255) * 255 + (1 - \\u03b1s) * \\u03b1b * Cb;\n }\n function flattenColors(sourceColor, backdrop) {\n var blendMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'normal';\n var r = simpleAlphaCompositing(sourceColor.red, sourceColor.alpha, backdrop.red, backdrop.alpha, blendMode);\n var g = simpleAlphaCompositing(sourceColor.green, sourceColor.alpha, backdrop.green, backdrop.alpha, blendMode);\n var b = simpleAlphaCompositing(sourceColor.blue, sourceColor.alpha, backdrop.blue, backdrop.alpha, blendMode);\n var \\u03b1o = clamp(sourceColor.alpha + backdrop.alpha * (1 - sourceColor.alpha), 0, 1);\n if (\\u03b1o === 0) {\n return new color_default(r, g, b, \\u03b1o);\n }\n var Cr = Math.round(r / \\u03b1o);\n var Cg = Math.round(g / \\u03b1o);\n var Cb = Math.round(b / \\u03b1o);\n return new color_default(Cr, Cg, Cb, \\u03b1o);\n }\n var flatten_colors_default = flattenColors;\n function _flattenShadowColors(fgColor, bgColor) {\n var alpha = fgColor.alpha;\n var r = (1 - alpha) * bgColor.red + alpha * fgColor.red;\n var g = (1 - alpha) * bgColor.green + alpha * fgColor.green;\n var b = (1 - alpha) * bgColor.blue + alpha * fgColor.blue;\n var a = fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha);\n return new color_default(r, g, b, a);\n }\n function _getBackgroundStack(node) {\n var stacks = get_text_element_stack_default(node).map(function(stack) {\n stack = reduce_to_elements_below_floating_default(stack, node);\n stack = sortPageBackground(stack);\n return stack;\n });\n for (var index = 0; index < stacks.length; index++) {\n var stack = stacks[index];\n if (stack[0] !== node) {\n incomplete_data_default.set('bgColor', 'bgOverlap');\n return null;\n }\n if (index !== 0 && !shallowArraysEqual(stack, stacks[0])) {\n incomplete_data_default.set('bgColor', 'elmPartiallyObscuring');\n return null;\n }\n }\n return stacks[0] || null;\n }\n function sortPageBackground(elmStack) {\n var bodyIndex = elmStack.indexOf(document.body);\n var bgNodes = elmStack;\n var htmlBgColor = get_own_background_color_default(window.getComputedStyle(document.documentElement));\n if (bodyIndex > 1 && htmlBgColor.alpha === 0 && !element_has_image_default(document.documentElement)) {\n if (bodyIndex > 1) {\n bgNodes.splice(bodyIndex, 1);\n bgNodes.push(document.body);\n }\n var htmlIndex = bgNodes.indexOf(document.documentElement);\n if (htmlIndex > 0) {\n bgNodes.splice(htmlIndex, 1);\n bgNodes.push(document.documentElement);\n }\n }\n return bgNodes;\n }\n function shallowArraysEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (a === null || b === null) {\n return false;\n }\n if (a.length !== b.length) {\n return false;\n }\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n }\n function getTextShadowColors(node) {\n var _ref79 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref79.minRatio, maxRatio = _ref79.maxRatio;\n var style = window.getComputedStyle(node);\n var textShadow = style.getPropertyValue('text-shadow');\n if (textShadow === 'none') {\n return [];\n }\n var fontSizeStr = style.getPropertyValue('font-size');\n var fontSize = parseInt(fontSizeStr);\n assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));\n var shadowColors = [];\n var shadows = parseTextShadows(textShadow);\n shadows.forEach(function(_ref80) {\n var colorStr = _ref80.colorStr, pixels = _ref80.pixels;\n colorStr = colorStr || style.getPropertyValue('color');\n var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;\n if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {\n var color = textShadowColor({\n colorStr: colorStr,\n offsetY: offsetY,\n offsetX: offsetX,\n blurRadius: blurRadius,\n fontSize: fontSize\n });\n shadowColors.push(color);\n }\n });\n return shadowColors;\n }\n function parseTextShadows(textShadow) {\n var current = {\n pixels: []\n };\n var str = textShadow.trim();\n var shadows = [ current ];\n if (!str) {\n return [];\n }\n while (str) {\n var colorMatch = str.match(/^rgba?\\([0-9,.\\s]+\\)/i) || str.match(/^[a-z]+/i) || str.match(/^#[0-9a-f]+/i);\n var pixelMatch = str.match(/^([0-9.-]+)px/i) || str.match(/^(0)/);\n if (colorMatch) {\n assert_default(!current.colorStr, 'Multiple colors identified in text-shadow: '.concat(textShadow));\n str = str.replace(colorMatch[0], '').trim();\n current.colorStr = colorMatch[0];\n } else if (pixelMatch) {\n assert_default(current.pixels.length < 3, 'Too many pixel units in text-shadow: '.concat(textShadow));\n str = str.replace(pixelMatch[0], '').trim();\n var pixelUnit = parseFloat((pixelMatch[1][0] === '.' ? '0' : '') + pixelMatch[1]);\n current.pixels.push(pixelUnit);\n } else if (str[0] === ',') {\n assert_default(current.pixels.length >= 2, 'Missing pixel value in text-shadow: '.concat(textShadow));\n current = {\n pixels: []\n };\n shadows.push(current);\n str = str.substr(1).trim();\n } else {\n throw new Error('Unable to process text-shadows: '.concat(textShadow));\n }\n }\n return shadows;\n }\n function textShadowColor(_ref81) {\n var colorStr = _ref81.colorStr, offsetX = _ref81.offsetX, offsetY = _ref81.offsetY, blurRadius = _ref81.blurRadius, fontSize = _ref81.fontSize;\n if (offsetX > blurRadius || offsetY > blurRadius) {\n return new color_default(0, 0, 0, 0);\n }\n var shadowColor = new color_default();\n shadowColor.parseString(colorStr);\n shadowColor.alpha *= blurRadiusToAlpha(blurRadius, fontSize);\n return shadowColor;\n }\n function blurRadiusToAlpha(blurRadius, fontSize) {\n if (blurRadius === 0) {\n return 1;\n }\n var relativeBlur = blurRadius / fontSize;\n return .185 / (relativeBlur + .4);\n }\n var get_text_shadow_colors_default = getTextShadowColors;\n function _getStackingContext(elm, elmStack) {\n var _elmStack;\n var vNode = get_node_from_tree_default(elm);\n if (vNode._stackingContext) {\n return vNode._stackingContext;\n }\n var stackingContext = [];\n var contextMap = new Map();\n elmStack = (_elmStack = elmStack) !== null && _elmStack !== void 0 ? _elmStack : _getBackgroundStack(elm);\n elmStack.forEach(function(bgElm) {\n var _stackingOrder2;\n var bgVNode = get_node_from_tree_default(bgElm);\n var bgColor = getOwnBackgroundColor2(bgVNode);\n var stackingOrder = bgVNode._stackingOrder.filter(function(_ref82) {\n var vNode2 = _ref82.vNode;\n return !!vNode2;\n });\n stackingOrder.forEach(function(_ref83, index) {\n var _stackingOrder;\n var vNode2 = _ref83.vNode;\n var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;\n var context2 = addToStackingContext(contextMap, vNode2, ancestorVNode2);\n if (index === 0 && !contextMap.get(vNode2)) {\n stackingContext.unshift(context2);\n }\n contextMap.set(vNode2, context2);\n });\n var ancestorVNode = (_stackingOrder2 = stackingOrder[stackingOrder.length - 1]) === null || _stackingOrder2 === void 0 ? void 0 : _stackingOrder2.vNode;\n var context = addToStackingContext(contextMap, bgVNode, ancestorVNode);\n if (!stackingOrder.length) {\n stackingContext.unshift(context);\n }\n context.bgColor = bgColor;\n });\n vNode._stackingContext = stackingContext;\n return stackingContext;\n }\n function _stackingContextToColor(context) {\n var _context$descendants;\n if (!((_context$descendants = context.descendants) !== null && _context$descendants !== void 0 && _context$descendants.length)) {\n var color2 = context.bgColor;\n color2.alpha *= context.opacity;\n return {\n color: color2,\n blendMode: context.blendMode\n };\n }\n var sourceColor = context.descendants.reduce(reduceToColor, createStackingContext());\n var color = flatten_colors_default(sourceColor, context.bgColor, context.descendants[0].blendMode);\n color.alpha *= context.opacity;\n return {\n color: color,\n blendMode: context.blendMode\n };\n }\n function reduceToColor(backdropContext, sourceContext) {\n var backdrop;\n if (backdropContext instanceof color_default) {\n backdrop = backdropContext;\n } else {\n backdrop = _stackingContextToColor(backdropContext).color;\n }\n var sourceColor = _stackingContextToColor(sourceContext).color;\n return flatten_colors_default(sourceColor, backdrop, sourceContext.blendMode);\n }\n function createStackingContext(vNode, ancestorContext) {\n var _vNode$getComputedSty;\n return {\n vNode: vNode,\n ancestor: ancestorContext,\n opacity: parseFloat((_vNode$getComputedSty = vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('opacity')) !== null && _vNode$getComputedSty !== void 0 ? _vNode$getComputedSty : 1),\n bgColor: new color_default(0, 0, 0, 0),\n blendMode: normalizeBlendMode(vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('mix-blend-mode')),\n descendants: []\n };\n }\n function normalizeBlendMode(blendmode) {\n return !!blendmode ? blendmode : void 0;\n }\n function addToStackingContext(contextMap, vNode, ancestorVNode) {\n var _contextMap$get;\n var ancestorContext = contextMap.get(ancestorVNode);\n var context = (_contextMap$get = contextMap.get(vNode)) !== null && _contextMap$get !== void 0 ? _contextMap$get : createStackingContext(vNode, ancestorContext);\n if (ancestorContext && ancestorVNode !== vNode && !ancestorContext.descendants.includes(context)) {\n ancestorContext.descendants.unshift(context);\n }\n return context;\n }\n function getOwnBackgroundColor2(vNode) {\n var bgColor = new color_default();\n bgColor.parseString(vNode.getComputedStylePropertyValue('background-color'));\n return bgColor;\n }\n function _getBackgroundColor2(elm) {\n var bgElms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var shadowOutlineEmMax = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .1;\n var vNode = get_node_from_tree_default(elm);\n var bgColorCache = vNode._cache.getBackgroundColor;\n if (bgColorCache) {\n bgElms.push.apply(bgElms, _toConsumableArray(bgColorCache.bgElms));\n incomplete_data_default.set('bgColor', bgColorCache.incompleteData);\n return bgColorCache.bgColor;\n }\n var bgColor = _getBackgroundColor(elm, bgElms, shadowOutlineEmMax);\n vNode._cache.getBackgroundColor = {\n bgColor: bgColor,\n bgElms: bgElms,\n incompleteData: incomplete_data_default.get('bgColor')\n };\n return bgColor;\n }\n function _getBackgroundColor(elm, bgElms, shadowOutlineEmMax) {\n var _bgColors;\n var elmStack = _getBackgroundStack(elm);\n if (!elmStack) {\n return null;\n }\n var textRects = get_visible_child_text_rects_default(elm);\n var bgColors = get_text_shadow_colors_default(elm, {\n minRatio: shadowOutlineEmMax\n });\n if (bgColors.length) {\n bgColors = [ {\n color: bgColors.reduce(_flattenShadowColors)\n } ];\n }\n for (var _i25 = 0; _i25 < elmStack.length; _i25++) {\n var bgElm = elmStack[_i25];\n var bgElmStyle = window.getComputedStyle(bgElm);\n if (element_has_image_default(bgElm, bgElmStyle)) {\n bgElms.push(bgElm);\n return null;\n }\n var bgColor = get_own_background_color_default(bgElmStyle);\n if (bgColor.alpha === 0) {\n continue;\n }\n if (bgElmStyle.getPropertyValue('display') !== 'inline' && !fullyEncompasses(bgElm, textRects)) {\n bgElms.push(bgElm);\n incomplete_data_default.set('bgColor', 'elmPartiallyObscured');\n return null;\n }\n bgElms.push(bgElm);\n if (bgColor.alpha === 1) {\n break;\n }\n }\n var stackingContext = _getStackingContext(elm, elmStack);\n bgColors = stackingContext.map(_stackingContextToColor).concat(bgColors);\n var pageBgs = getPageBackgroundColors(elm, elmStack.includes(document.body));\n (_bgColors = bgColors).unshift.apply(_bgColors, _toConsumableArray(pageBgs));\n if (bgColors.length === 0) {\n return new color_default(255, 255, 255, 1);\n }\n var blendedColor = bgColors.reduce(function(bgColor, fgColor) {\n return flatten_colors_default(fgColor.color, bgColor.color instanceof color_default ? bgColor.color : bgColor, fgColor.blendMode);\n });\n return flatten_colors_default(blendedColor.color instanceof color_default ? blendedColor.color : blendedColor, new color_default(255, 255, 255, 1));\n }\n function fullyEncompasses(node, rects) {\n rects = Array.isArray(rects) ? rects : [ rects ];\n var nodeRect = node.getBoundingClientRect();\n var right = nodeRect.right, bottom = nodeRect.bottom;\n var style = window.getComputedStyle(node);\n var overflow = style.getPropertyValue('overflow');\n if ([ 'scroll', 'auto' ].includes(overflow) || node instanceof window.HTMLHtmlElement) {\n right = nodeRect.left + node.scrollWidth;\n bottom = nodeRect.top + node.scrollHeight;\n }\n return rects.every(function(rect) {\n return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right;\n });\n }\n function normalizeBlendMode2(blendmode) {\n return !!blendmode ? blendmode : void 0;\n }\n function getPageBackgroundColors(elm, stackContainsBody) {\n var pageColors = [];\n if (!stackContainsBody) {\n var html = document.documentElement;\n var body = document.body;\n var htmlStyle = window.getComputedStyle(html);\n var bodyStyle = window.getComputedStyle(body);\n var htmlBgColor = get_own_background_color_default(htmlStyle);\n var bodyBgColor = get_own_background_color_default(bodyStyle);\n var bodyBgColorApplies = bodyBgColor.alpha !== 0 && fullyEncompasses(body, elm.getBoundingClientRect());\n if (bodyBgColor.alpha !== 0 && htmlBgColor.alpha === 0 || bodyBgColorApplies && bodyBgColor.alpha !== 1) {\n pageColors.unshift({\n color: bodyBgColor,\n blendMode: normalizeBlendMode2(bodyStyle.getPropertyValue('mix-blend-mode'))\n });\n }\n if (htmlBgColor.alpha !== 0 && (!bodyBgColorApplies || bodyBgColorApplies && bodyBgColor.alpha !== 1)) {\n pageColors.unshift({\n color: htmlBgColor,\n blendMode: normalizeBlendMode2(htmlStyle.getPropertyValue('mix-blend-mode'))\n });\n }\n }\n return pageColors;\n }\n function getContrast(bgColor, fgColor) {\n if (!fgColor || !bgColor) {\n return null;\n }\n if (fgColor.alpha < 1) {\n fgColor = flatten_colors_default(fgColor, bgColor);\n }\n var bL = bgColor.getRelativeLuminance();\n var fL = fgColor.getRelativeLuminance();\n return (Math.max(fL, bL) + .05) / (Math.min(fL, bL) + .05);\n }\n var get_contrast_default = getContrast;\n function _getForegroundColor(node, _, bgColor) {\n var _bgColor;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var nodeStyle = window.getComputedStyle(node);\n var colorStack = [ function() {\n return getStrokeColor(nodeStyle, options);\n }, function() {\n return getTextColor(nodeStyle);\n }, function() {\n return get_text_shadow_colors_default(node, {\n minRatio: 0\n });\n } ];\n var fgColors = [];\n for (var _i26 = 0, _colorStack = colorStack; _i26 < _colorStack.length; _i26++) {\n var colorFn = _colorStack[_i26];\n var color = colorFn();\n if (!color) {\n continue;\n }\n fgColors = fgColors.concat(color);\n if (color.alpha === 1) {\n break;\n }\n }\n var fgColor = fgColors.reduce(function(source, backdrop) {\n return flatten_colors_default(source, backdrop);\n });\n (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);\n if (bgColor === null) {\n var reason = incomplete_data_default.get('bgColor');\n incomplete_data_default.set('fgColor', reason);\n return null;\n }\n var stackingContexts = _getStackingContext(node);\n var context = findNodeInContexts(stackingContexts, node);\n return flatten_colors_default(calculateBlendedForegroundColor(fgColor, context, stackingContexts), new color_default(255, 255, 255, 1));\n }\n function getTextColor(nodeStyle) {\n return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));\n }\n function getStrokeColor(nodeStyle, _ref84) {\n var _ref84$textStrokeEmMi = _ref84.textStrokeEmMin, textStrokeEmMin = _ref84$textStrokeEmMi === void 0 ? 0 : _ref84$textStrokeEmMi;\n var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));\n if (strokeWidth === 0) {\n return null;\n }\n var fontSize = nodeStyle.getPropertyValue('font-size');\n var relativeStrokeWidth = strokeWidth / parseFloat(fontSize);\n if (isNaN(relativeStrokeWidth) || relativeStrokeWidth < textStrokeEmMin) {\n return null;\n }\n var strokeColor = nodeStyle.getPropertyValue('-webkit-text-stroke-color');\n return new color_default().parseString(strokeColor);\n }\n function calculateBlendedForegroundColor(fgColor, context, stackingContexts) {\n while (context) {\n var _context$ancestor;\n if (context.opacity === 1 && context.ancestor) {\n context = context.ancestor;\n continue;\n }\n fgColor.alpha *= context.opacity;\n var stack = ((_context$ancestor = context.ancestor) === null || _context$ancestor === void 0 ? void 0 : _context$ancestor.descendants) || stackingContexts;\n if (context.opacity !== 1) {\n stack = stack.slice(0, stack.indexOf(context));\n }\n var bgColors = stack.map(_stackingContextToColor);\n if (!bgColors.length) {\n context = context.ancestor;\n continue;\n }\n var bgColor = bgColors.reduce(function(backdrop, source) {\n return flatten_colors_default(source.color, backdrop.color instanceof color_default ? backdrop.color : backdrop);\n }, {\n color: new color_default(0, 0, 0, 0),\n blendMode: 'normal'\n });\n fgColor = flatten_colors_default(fgColor, bgColor);\n context = context.ancestor;\n }\n return fgColor;\n }\n function findNodeInContexts(contexts, node) {\n var _iterator8 = _createForOfIteratorHelper(contexts), _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {\n var _context$vNode;\n var context = _step8.value;\n if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) {\n return context;\n }\n var found = findNodeInContexts(context.descendants, node);\n if (found) {\n return found;\n }\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n }\n function hasValidContrastRatio(bg, fg, fontSize, isBold) {\n var contrast = get_contrast_default(bg, fg);\n var isSmallFont = isBold && Math.ceil(fontSize * 72) / 96 < 14 || !isBold && Math.ceil(fontSize * 72) / 96 < 18;\n var expectedContrastRatio = isSmallFont ? 4.5 : 3;\n return {\n isValid: contrast > expectedContrastRatio,\n contrastRatio: contrast,\n expectedContrastRatio: expectedContrastRatio\n };\n }\n var has_valid_contrast_ratio_default = hasValidContrastRatio;\n function colorContrastEvaluate(node, options, virtualNode) {\n var ignoreUnicode = options.ignoreUnicode, ignoreLength = options.ignoreLength, ignorePseudo = options.ignorePseudo, boldValue = options.boldValue, boldTextPt = options.boldTextPt, largeTextPt = options.largeTextPt, contrastRatio = options.contrastRatio, shadowOutlineEmMax = options.shadowOutlineEmMax, pseudoSizeThreshold = options.pseudoSizeThreshold;\n if (!_isVisibleOnScreen(node)) {\n this.data({\n messageKey: 'hidden'\n });\n return true;\n }\n var visibleText = visible_virtual_default(virtualNode, false, true);\n if (ignoreUnicode && textIsEmojis(visibleText)) {\n this.data({\n messageKey: 'nonBmp'\n });\n return void 0;\n }\n var nodeStyle = window.getComputedStyle(node);\n var fontSize = parseFloat(nodeStyle.getPropertyValue('font-size'));\n var fontWeight = nodeStyle.getPropertyValue('font-weight');\n var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';\n var ptSize = Math.ceil(fontSize * 72) / 96;\n var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;\n var _ref85 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref85.expected, minThreshold = _ref85.minThreshold, maxThreshold = _ref85.maxThreshold;\n var pseudoElm = findPseudoElement(virtualNode, {\n ignorePseudo: ignorePseudo,\n pseudoSizeThreshold: pseudoSizeThreshold\n });\n if (pseudoElm) {\n this.data({\n fontSize: ''.concat((fontSize * 72 / 96).toFixed(1), 'pt (').concat(fontSize, 'px)'),\n fontWeight: bold ? 'bold' : 'normal',\n messageKey: 'pseudoContent',\n expectedContrastRatio: expected + ':1'\n });\n this.relatedNodes(pseudoElm.actualNode);\n return void 0;\n }\n var bgNodes = [];\n var bgColor = _getBackgroundColor2(node, bgNodes, shadowOutlineEmMax);\n var fgColor = _getForegroundColor(node, false, bgColor, options);\n var shadowColors = get_text_shadow_colors_default(node, {\n minRatio: .001,\n maxRatio: shadowOutlineEmMax\n });\n var contrast = null;\n var contrastContributor = null;\n var shadowColor = null;\n if (shadowColors.length === 0) {\n contrast = get_contrast_default(bgColor, fgColor);\n } else if (fgColor && bgColor) {\n shadowColor = [].concat(_toConsumableArray(shadowColors), [ bgColor ]).reduce(_flattenShadowColors);\n var fgBgContrast = get_contrast_default(bgColor, fgColor);\n var bgShContrast = get_contrast_default(bgColor, shadowColor);\n var fgShContrast = get_contrast_default(shadowColor, fgColor);\n contrast = Math.max(fgBgContrast, bgShContrast, fgShContrast);\n if (contrast !== fgBgContrast) {\n contrastContributor = bgShContrast > fgShContrast ? 'shadowOnBgColor' : 'fgOnShadowColor';\n }\n }\n var isValid = contrast > expected;\n if (typeof minThreshold === 'number' && (typeof contrast !== 'number' || contrast < minThreshold) || typeof maxThreshold === 'number' && (typeof contrast !== 'number' || contrast > maxThreshold)) {\n this.data({\n contrastRatio: contrast\n });\n return true;\n }\n var truncatedResult = Math.floor(contrast * 100) / 100;\n var missing;\n if (bgColor === null) {\n missing = incomplete_data_default.get('bgColor');\n } else if (!isValid) {\n missing = contrastContributor;\n }\n var equalRatio = truncatedResult === 1;\n var shortTextContent = visibleText.length === 1;\n if (equalRatio) {\n missing = incomplete_data_default.set('bgColor', 'equalRatio');\n } else if (!isValid && shortTextContent && !ignoreLength) {\n missing = 'shortTextContent';\n }\n this.data({\n fgColor: fgColor ? fgColor.toHexString() : void 0,\n bgColor: bgColor ? bgColor.toHexString() : void 0,\n contrastRatio: truncatedResult,\n fontSize: ''.concat((fontSize * 72 / 96).toFixed(1), 'pt (').concat(fontSize, 'px)'),\n fontWeight: bold ? 'bold' : 'normal',\n messageKey: missing,\n expectedContrastRatio: expected + ':1',\n shadowColor: shadowColor ? shadowColor.toHexString() : void 0\n });\n if (fgColor === null || bgColor === null || equalRatio || shortTextContent && !ignoreLength && !isValid) {\n missing = null;\n incomplete_data_default.clear();\n this.relatedNodes(bgNodes);\n return void 0;\n }\n if (!isValid) {\n this.relatedNodes(bgNodes);\n }\n return isValid;\n }\n function findPseudoElement(vNode, _ref86) {\n var _ref86$pseudoSizeThre = _ref86.pseudoSizeThreshold, pseudoSizeThreshold = _ref86$pseudoSizeThre === void 0 ? .25 : _ref86$pseudoSizeThre, _ref86$ignorePseudo = _ref86.ignorePseudo, ignorePseudo = _ref86$ignorePseudo === void 0 ? false : _ref86$ignorePseudo;\n if (ignorePseudo) {\n return;\n }\n var rect = vNode.boundingClientRect;\n var minimumSize = rect.width * rect.height * pseudoSizeThreshold;\n do {\n var beforeSize = getPseudoElementArea(vNode.actualNode, ':before');\n var afterSize = getPseudoElementArea(vNode.actualNode, ':after');\n if (beforeSize + afterSize > minimumSize) {\n return vNode;\n }\n } while (vNode = vNode.parent);\n }\n var getPseudoElementArea = memoize_default(function getPseudoElementArea2(node, pseudo) {\n var style = window.getComputedStyle(node, pseudo);\n var matchPseudoStyle = function matchPseudoStyle(prop, value) {\n return style.getPropertyValue(prop) === value;\n };\n if (matchPseudoStyle('content', 'none') || matchPseudoStyle('display', 'none') || matchPseudoStyle('visibility', 'hidden') || matchPseudoStyle('position', 'absolute') === false) {\n return 0;\n }\n if (get_own_background_color_default(style).alpha === 0 && matchPseudoStyle('background-image', 'none')) {\n return 0;\n }\n var pseudoWidth = parseUnit(style.getPropertyValue('width'));\n var pseudoHeight = parseUnit(style.getPropertyValue('height'));\n if (pseudoWidth.unit !== 'px' || pseudoHeight.unit !== 'px') {\n return pseudoWidth.value === 0 || pseudoHeight.value === 0 ? 0 : Infinity;\n }\n return pseudoWidth.value * pseudoHeight.value;\n });\n function textIsEmojis(visibleText) {\n var options = {\n nonBmp: true\n };\n var hasUnicodeChars = has_unicode_default(visibleText, options);\n var hasNonUnicodeChars = sanitize_default(remove_unicode_default(visibleText, options)) === '';\n return hasUnicodeChars && hasNonUnicodeChars;\n }\n function parseUnit(str) {\n var unitRegex = /^([0-9.]+)([a-z]+)$/i;\n var _ref87 = str.match(unitRegex) || [], _ref88 = _slicedToArray(_ref87, 3), _ref88$ = _ref88[1], value = _ref88$ === void 0 ? '' : _ref88$, _ref88$2 = _ref88[2], unit = _ref88$2 === void 0 ? '' : _ref88$2;\n return {\n value: parseFloat(value),\n unit: unit.toLowerCase()\n };\n }\n function getContrast2(color1, color2) {\n var c1lum = color1.getRelativeLuminance();\n var c2lum = color2.getRelativeLuminance();\n return (Math.max(c1lum, c2lum) + .05) / (Math.min(c1lum, c2lum) + .05);\n }\n var blockLike2 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];\n function isBlock2(elm) {\n var display = window.getComputedStyle(elm).getPropertyValue('display');\n return blockLike2.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';\n }\n function linkInTextBlockEvaluate(node, options) {\n var requiredContrastRatio = options.requiredContrastRatio, allowSameColor = options.allowSameColor;\n if (isBlock2(node)) {\n return false;\n }\n var parentBlock = get_composed_parent_default(node);\n while (parentBlock && parentBlock.nodeType === 1 && !isBlock2(parentBlock)) {\n parentBlock = get_composed_parent_default(parentBlock);\n }\n if (!parentBlock) {\n return void 0;\n }\n this.relatedNodes([ parentBlock ]);\n var nodeColor = _getForegroundColor(node);\n var parentColor = _getForegroundColor(parentBlock);\n var nodeBackgroundColor = _getBackgroundColor2(node);\n var parentBackgroundColor = _getBackgroundColor2(parentBlock);\n var textContrast = nodeColor && parentColor ? getContrast2(nodeColor, parentColor) : void 0;\n if (textContrast) {\n textContrast = Math.floor(textContrast * 100) / 100;\n }\n if (textContrast && textContrast >= requiredContrastRatio) {\n return true;\n }\n var backgroundContrast = nodeBackgroundColor && parentBackgroundColor ? getContrast2(nodeBackgroundColor, parentBackgroundColor) : void 0;\n if (backgroundContrast) {\n backgroundContrast = Math.floor(backgroundContrast * 100) / 100;\n }\n if (backgroundContrast && backgroundContrast >= requiredContrastRatio) {\n return true;\n }\n if (!backgroundContrast) {\n var _incomplete_data_defa;\n var reason = (_incomplete_data_defa = incomplete_data_default.get('bgColor')) !== null && _incomplete_data_defa !== void 0 ? _incomplete_data_defa : 'bgContrast';\n this.data({\n messageKey: reason\n });\n incomplete_data_default.clear();\n return void 0;\n }\n if (!textContrast) {\n return void 0;\n }\n if (allowSameColor && textContrast === 1 && backgroundContrast === 1) {\n return true;\n }\n if (textContrast === 1 && backgroundContrast > 1) {\n this.data({\n messageKey: 'bgContrast',\n contrastRatio: backgroundContrast,\n requiredContrastRatio: requiredContrastRatio,\n nodeBackgroundColor: nodeBackgroundColor ? nodeBackgroundColor.toHexString() : void 0,\n parentBackgroundColor: parentBackgroundColor ? parentBackgroundColor.toHexString() : void 0\n });\n return false;\n }\n this.data({\n messageKey: 'fgContrast',\n contrastRatio: textContrast,\n requiredContrastRatio: requiredContrastRatio,\n nodeColor: nodeColor ? nodeColor.toHexString() : void 0,\n parentColor: parentColor ? parentColor.toHexString() : void 0\n });\n return false;\n }\n var link_in_text_block_evaluate_default = linkInTextBlockEvaluate;\n var blockLike3 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];\n function isBlock3(elm) {\n var display = window.getComputedStyle(elm).getPropertyValue('display');\n return blockLike3.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';\n }\n function linkInTextBlockStyleEvaluate(node) {\n if (isBlock3(node)) {\n return false;\n }\n var parentBlock = get_composed_parent_default(node);\n while (parentBlock && parentBlock.nodeType === 1 && !isBlock3(parentBlock)) {\n parentBlock = get_composed_parent_default(parentBlock);\n }\n if (!parentBlock) {\n return void 0;\n }\n this.relatedNodes([ parentBlock ]);\n return element_is_distinct_default(node, parentBlock);\n }\n var link_in_text_block_style_evaluate_default = linkInTextBlockStyleEvaluate;\n function autocompleteAppropriateEvaluate(node, options, virtualNode) {\n if (virtualNode.props.nodeName !== 'input') {\n return true;\n }\n var number = [ 'text', 'search', 'number', 'tel' ];\n var url = [ 'text', 'search', 'url' ];\n var allowedTypesMap = {\n bday: [ 'text', 'search', 'date' ],\n email: [ 'text', 'search', 'email' ],\n username: [ 'text', 'search', 'email' ],\n 'street-address': [ 'text' ],\n tel: [ 'text', 'search', 'tel' ],\n 'tel-country-code': [ 'text', 'search', 'tel' ],\n 'tel-national': [ 'text', 'search', 'tel' ],\n 'tel-area-code': [ 'text', 'search', 'tel' ],\n 'tel-local': [ 'text', 'search', 'tel' ],\n 'tel-local-prefix': [ 'text', 'search', 'tel' ],\n 'tel-local-suffix': [ 'text', 'search', 'tel' ],\n 'tel-extension': [ 'text', 'search', 'tel' ],\n 'cc-number': number,\n 'cc-exp': [ 'text', 'search', 'month', 'tel' ],\n 'cc-exp-month': number,\n 'cc-exp-year': number,\n 'cc-csc': number,\n 'transaction-amount': number,\n 'bday-day': number,\n 'bday-month': number,\n 'bday-year': number,\n 'new-password': [ 'text', 'search', 'password' ],\n 'current-password': [ 'text', 'search', 'password' ],\n url: url,\n photo: url,\n impp: url\n };\n if (_typeof(options) === 'object') {\n Object.keys(options).forEach(function(key) {\n if (!allowedTypesMap[key]) {\n allowedTypesMap[key] = [];\n }\n allowedTypesMap[key] = allowedTypesMap[key].concat(options[key]);\n });\n }\n var autocompleteAttr = virtualNode.attr('autocomplete');\n var autocompleteTerms = autocompleteAttr.split(/\\s+/g).map(function(term) {\n return term.toLowerCase();\n });\n var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];\n if (_autocomplete.stateTerms.includes(purposeTerm)) {\n return true;\n }\n var allowedTypes = allowedTypesMap[purposeTerm];\n var type = virtualNode.hasAttr('type') ? sanitize_default(virtualNode.attr('type')).toLowerCase() : 'text';\n type = valid_input_type_default().includes(type) ? type : 'text';\n if (typeof allowedTypes === 'undefined') {\n return type === 'text';\n }\n return allowedTypes.includes(type);\n }\n var autocomplete_appropriate_evaluate_default = autocompleteAppropriateEvaluate;\n function autocompleteValidEvaluate(node, options, virtualNode) {\n var autocomplete2 = virtualNode.attr('autocomplete') || '';\n return is_valid_autocomplete_default(autocomplete2, options);\n }\n var autocomplete_valid_evaluate_default = autocompleteValidEvaluate;\n function attrNonSpaceContentEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var vNode = arguments.length > 2 ? arguments[2] : undefined;\n if (!options.attribute || typeof options.attribute !== 'string') {\n throw new TypeError('attr-non-space-content requires options.attribute to be a string');\n }\n if (!vNode.hasAttr(options.attribute)) {\n this.data({\n messageKey: 'noAttr'\n });\n return false;\n }\n var attribute = vNode.attr(options.attribute);\n var attributeIsEmpty = !sanitize_default(attribute);\n if (attributeIsEmpty) {\n this.data({\n messageKey: 'emptyAttr'\n });\n return false;\n }\n return true;\n }\n var attr_non_space_content_evaluate_default = attrNonSpaceContentEvaluate;\n function pageHasElmAfter(results) {\n var elmUsedAnywhere = results.some(function(frameResult) {\n return frameResult.result === true;\n });\n if (elmUsedAnywhere) {\n results.forEach(function(result) {\n result.result = true;\n });\n }\n return results;\n }\n var has_descendant_after_default = pageHasElmAfter;\n function hasDescendant(node, options, virtualNode) {\n if (!options || !options.selector || typeof options.selector !== 'string') {\n throw new TypeError('has-descendant requires options.selector to be a string');\n }\n if (options.passForModal && is_modal_open_default()) {\n return true;\n }\n var matchingElms = query_selector_all_filter_default(virtualNode, options.selector, function(vNode) {\n return _isVisibleToScreenReaders(vNode);\n });\n this.relatedNodes(matchingElms.map(function(vNode) {\n return vNode.actualNode;\n }));\n return matchingElms.length > 0;\n }\n var has_descendant_evaluate_default = hasDescendant;\n function hasTextContentEvaluate(node, options, virtualNode) {\n try {\n return sanitize_default(subtree_text_default(virtualNode)) !== '';\n } catch (e) {\n return void 0;\n }\n }\n function matchesDefinitionEvaluate(_, options, virtualNode) {\n return matches_default3(virtualNode, options.matcher);\n }\n var matches_definition_evaluate_default = matchesDefinitionEvaluate;\n function pageNoDuplicateAfter(results) {\n return results.filter(function(checkResult) {\n return checkResult.data !== 'ignored';\n });\n }\n var page_no_duplicate_after_default = pageNoDuplicateAfter;\n function pageNoDuplicateEvaluate(node, options, virtualNode) {\n if (!options || !options.selector || typeof options.selector !== 'string') {\n throw new TypeError('page-no-duplicate requires options.selector to be a string');\n }\n var key = 'page-no-duplicate;' + options.selector;\n if (cache_default.get(key)) {\n this.data('ignored');\n return;\n }\n cache_default.set(key, true);\n var elms = query_selector_all_filter_default(axe._tree[0], options.selector, function(elm) {\n return _isVisibleToScreenReaders(elm);\n });\n if (typeof options.nativeScopeFilter === 'string') {\n elms = elms.filter(function(elm) {\n return elm.actualNode.hasAttribute('role') || !find_up_virtual_default(elm, options.nativeScopeFilter);\n });\n }\n this.relatedNodes(elms.filter(function(elm) {\n return elm !== virtualNode;\n }).map(function(elm) {\n return elm.actualNode;\n }));\n return elms.length <= 1;\n }\n var page_no_duplicate_evaluate_default = pageNoDuplicateEvaluate;\n function accesskeysAfter(results) {\n var seen = {};\n return results.filter(function(r) {\n if (!r.data) {\n return false;\n }\n var key = r.data.toUpperCase();\n if (!seen[key]) {\n seen[key] = r;\n r.relatedNodes = [];\n return true;\n }\n seen[key].relatedNodes.push(r.relatedNodes[0]);\n return false;\n }).map(function(r) {\n r.result = !!r.relatedNodes.length;\n return r;\n });\n }\n var accesskeys_after_default = accesskeysAfter;\n function accesskeysEvaluate(node, options, vNode) {\n if (!_isHiddenForEveryone(vNode)) {\n this.data(vNode.attr('accesskey'));\n this.relatedNodes([ node ]);\n }\n return true;\n }\n var accesskeys_evaluate_default = accesskeysEvaluate;\n function focusableContentEvaluate(node, options, virtualNode) {\n var tabbableElements = virtualNode.tabbableElements;\n if (!tabbableElements) {\n return false;\n }\n var tabbableContentElements = tabbableElements.filter(function(el) {\n return el !== virtualNode;\n });\n return tabbableContentElements.length > 0;\n }\n var focusable_content_evaluate_default = focusableContentEvaluate;\n function focusableDisabledEvaluate(node, options, virtualNode) {\n var elementsThatCanBeDisabled = [ 'button', 'fieldset', 'input', 'select', 'textarea' ];\n var tabbableElements = virtualNode.tabbableElements;\n if (!tabbableElements || !tabbableElements.length) {\n return true;\n }\n var relatedNodes = tabbableElements.filter(function(vNode) {\n return elementsThatCanBeDisabled.includes(vNode.props.nodeName);\n });\n this.relatedNodes(relatedNodes.map(function(vNode) {\n return vNode.actualNode;\n }));\n if (relatedNodes.length === 0 || is_modal_open_default()) {\n return true;\n }\n return relatedNodes.every(function(vNode) {\n var pointerEvents = vNode.getComputedStylePropertyValue('pointer-events');\n var width = parseInt(vNode.getComputedStylePropertyValue('width'));\n var height = parseInt(vNode.getComputedStylePropertyValue('height'));\n return vNode.actualNode.onfocus || (width === 0 || height === 0) && pointerEvents === 'none';\n }) ? void 0 : false;\n }\n var focusable_disabled_evaluate_default = focusableDisabledEvaluate;\n function focusableElementEvaluate(node, options, virtualNode) {\n if (virtualNode.hasAttr('contenteditable') && isContenteditable(virtualNode)) {\n return true;\n }\n return _isInTabOrder(virtualNode);\n function isContenteditable(vNode) {\n var contenteditable = vNode.attr('contenteditable');\n if (contenteditable === 'true' || contenteditable === '') {\n return true;\n }\n if (contenteditable === 'false') {\n return false;\n }\n var ancestor = closest_default(virtualNode.parent, '[contenteditable]');\n if (!ancestor) {\n return false;\n }\n return isContenteditable(ancestor);\n }\n }\n var focusable_element_evaluate_default = focusableElementEvaluate;\n function focusableModalOpenEvaluate(node, options, virtualNode) {\n var tabbableElements = virtualNode.tabbableElements.map(function(_ref89) {\n var actualNode = _ref89.actualNode;\n return actualNode;\n });\n if (!tabbableElements || !tabbableElements.length) {\n return true;\n }\n if (is_modal_open_default()) {\n this.relatedNodes(tabbableElements);\n return void 0;\n }\n return true;\n }\n var focusable_modal_open_evaluate_default = focusableModalOpenEvaluate;\n function focusableNoNameEvaluate(node, options, virtualNode) {\n var tabIndex = virtualNode.attr('tabindex');\n var inFocusOrder = _isFocusable(virtualNode) && tabIndex > -1;\n if (!inFocusOrder) {\n return false;\n }\n try {\n return !accessible_text_virtual_default(virtualNode);\n } catch (e) {\n return void 0;\n }\n }\n var focusable_no_name_evaluate_default = focusableNoNameEvaluate;\n function focusableNotTabbableEvaluate(node, options, virtualNode) {\n var elementsThatCanBeDisabled = [ 'button', 'fieldset', 'input', 'select', 'textarea' ];\n var tabbableElements = virtualNode.tabbableElements;\n if (!tabbableElements || !tabbableElements.length) {\n return true;\n }\n var relatedNodes = tabbableElements.filter(function(vNode) {\n return !elementsThatCanBeDisabled.includes(vNode.props.nodeName);\n });\n this.relatedNodes(relatedNodes.map(function(vNode) {\n return vNode.actualNode;\n }));\n if (relatedNodes.length === 0 || is_modal_open_default()) {\n return true;\n }\n return relatedNodes.every(function(vNode) {\n var pointerEvents = vNode.getComputedStylePropertyValue('pointer-events');\n var width = parseInt(vNode.getComputedStylePropertyValue('width'));\n var height = parseInt(vNode.getComputedStylePropertyValue('height'));\n return vNode.actualNode.onfocus || (width === 0 || height === 0) && pointerEvents === 'none';\n }) ? void 0 : false;\n }\n var focusable_not_tabbable_evaluate_default = focusableNotTabbableEvaluate;\n function frameFocusableContentEvaluate(node, options, virtualNode) {\n if (!virtualNode.children) {\n return void 0;\n }\n try {\n return !virtualNode.children.some(function(child) {\n return focusableDescendants(child);\n });\n } catch (e) {\n return void 0;\n }\n }\n function focusableDescendants(vNode) {\n if (_isInTabOrder(vNode)) {\n return true;\n }\n if (!vNode.children) {\n if (vNode.props.nodeType === 1) {\n throw new Error('Cannot determine children');\n }\n return false;\n }\n return vNode.children.some(function(child) {\n return focusableDescendants(child);\n });\n }\n function landmarkIsTopLevelEvaluate(node) {\n var landmarks = get_aria_roles_by_type_default('landmark');\n var parent = get_composed_parent_default(node);\n var nodeRole = get_role_default(node);\n this.data({\n role: nodeRole\n });\n while (parent) {\n var role = parent.getAttribute('role');\n if (!role && parent.nodeName.toUpperCase() !== 'FORM') {\n role = implicit_role_default(parent);\n }\n if (role && landmarks.includes(role) && !(role === 'main' && nodeRole === 'complementary')) {\n return false;\n }\n parent = get_composed_parent_default(parent);\n }\n return true;\n }\n var landmark_is_top_level_evaluate_default = landmarkIsTopLevelEvaluate;\n function noFocusableContentEvaluate(node, options, virtualNode) {\n if (!virtualNode.children) {\n return void 0;\n }\n try {\n var focusableDescendants2 = getFocusableDescendants(virtualNode);\n if (!focusableDescendants2.length) {\n return true;\n }\n var notHiddenElements = focusableDescendants2.filter(usesUnreliableHidingStrategy);\n if (notHiddenElements.length > 0) {\n this.data({\n messageKey: 'notHidden'\n });\n this.relatedNodes(notHiddenElements);\n } else {\n this.relatedNodes(focusableDescendants2);\n }\n return false;\n } catch (e) {\n return void 0;\n }\n }\n function getFocusableDescendants(vNode) {\n if (!vNode.children) {\n if (vNode.props.nodeType === 1) {\n throw new Error('Cannot determine children');\n }\n return [];\n }\n var retVal = [];\n vNode.children.forEach(function(child) {\n if (get_role_type_default(child) === 'widget' && _isFocusable(child)) {\n retVal.push(child);\n } else {\n retVal.push.apply(retVal, _toConsumableArray(getFocusableDescendants(child)));\n }\n });\n return retVal;\n }\n function usesUnreliableHidingStrategy(vNode) {\n var tabIndex = parseInt(vNode.attr('tabindex'), 10);\n return !isNaN(tabIndex) && tabIndex < 0;\n }\n function tabindexEvaluate(node, options, virtualNode) {\n var tabIndex = parseInt(virtualNode.attr('tabindex'), 10);\n return isNaN(tabIndex) ? true : tabIndex <= 0;\n }\n var tabindex_evaluate_default = tabindexEvaluate;\n function altSpaceValueEvaluate(node, options, virtualNode) {\n var alt = virtualNode.attr('alt');\n var isOnlySpace = /^\\s+$/;\n return typeof alt === 'string' && isOnlySpace.test(alt);\n }\n var alt_space_value_evaluate_default = altSpaceValueEvaluate;\n function duplicateImgLabelEvaluate(node, options, virtualNode) {\n if ([ 'none', 'presentation' ].includes(get_role_default(virtualNode))) {\n return false;\n }\n var parentVNode = closest_default(virtualNode, options.parentSelector);\n if (!parentVNode) {\n return false;\n }\n var visibleText = visible_virtual_default(parentVNode, true).toLowerCase();\n if (visibleText === '') {\n return false;\n }\n return visibleText === accessible_text_virtual_default(virtualNode).toLowerCase();\n }\n var duplicate_img_label_evaluate_default = duplicateImgLabelEvaluate;\n function explicitEvaluate(node, options, virtualNode) {\n var _this4 = this;\n if (!virtualNode.attr('id')) {\n return false;\n }\n if (!virtualNode.actualNode) {\n return void 0;\n }\n var root = get_root_node_default2(virtualNode.actualNode);\n var id = escape_selector_default(virtualNode.attr('id'));\n var labels = Array.from(root.querySelectorAll('label[for=\"'.concat(id, '\"]')));\n this.relatedNodes(labels);\n if (!labels.length) {\n return false;\n }\n try {\n return labels.some(function(label3) {\n if (!_isVisibleOnScreen(label3)) {\n return true;\n } else {\n var explicitLabel = sanitize_default(accessible_text_default(label3, {\n inControlContext: true,\n startNode: virtualNode\n }));\n _this4.data({\n explicitLabel: explicitLabel\n });\n return !!explicitLabel;\n }\n });\n } catch (e) {\n return void 0;\n }\n }\n var explicit_evaluate_default = explicitEvaluate;\n function helpSameAsLabelEvaluate(node, options, virtualNode) {\n var labelText2 = label_virtual_default2(virtualNode), check = node.getAttribute('title');\n if (!labelText2) {\n return false;\n }\n if (!check) {\n check = '';\n if (node.getAttribute('aria-describedby')) {\n var ref = idrefs_default(node, 'aria-describedby');\n check = ref.map(function(thing) {\n return thing ? accessible_text_default(thing) : '';\n }).join('');\n }\n }\n return sanitize_default(check) === sanitize_default(labelText2);\n }\n var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate;\n function hiddenExplicitLabelEvaluate(node, options, virtualNode) {\n if (virtualNode.hasAttr('id')) {\n if (!virtualNode.actualNode) {\n return void 0;\n }\n var root = get_root_node_default2(node);\n var id = escape_selector_default(node.getAttribute('id'));\n var label3 = root.querySelector('label[for=\"'.concat(id, '\"]'));\n if (label3 && !_isVisibleToScreenReaders(label3)) {\n var name;\n try {\n name = accessible_text_virtual_default(virtualNode).trim();\n } catch (e) {\n return void 0;\n }\n var isNameEmpty = name === '';\n return isNameEmpty;\n }\n }\n return false;\n }\n var hidden_explicit_label_evaluate_default = hiddenExplicitLabelEvaluate;\n function implicitEvaluate(node, options, virtualNode) {\n try {\n var label3 = closest_default(virtualNode, 'label');\n if (label3) {\n var implicitLabel = sanitize_default(accessible_text_virtual_default(label3, {\n inControlContext: true,\n startNode: virtualNode\n }));\n if (label3.actualNode) {\n this.relatedNodes([ label3.actualNode ]);\n }\n this.data({\n implicitLabel: implicitLabel\n });\n return !!implicitLabel;\n }\n return false;\n } catch (e) {\n return void 0;\n }\n }\n var implicit_evaluate_default = implicitEvaluate;\n function isStringContained(compare, compareWith) {\n var curatedCompareWith = curateString(compareWith);\n var curatedCompare = curateString(compare);\n if (!curatedCompareWith || !curatedCompare) {\n return false;\n }\n return curatedCompareWith.includes(curatedCompare);\n }\n function curateString(str) {\n var noUnicodeStr = remove_unicode_default(str, {\n emoji: true,\n nonBmp: true,\n punctuations: true\n });\n return sanitize_default(noUnicodeStr);\n }\n function labelContentNameMismatchEvaluate(node, options, virtualNode) {\n var _options$occurrenceTh;\n var pixelThreshold = options === null || options === void 0 ? void 0 : options.pixelThreshold;\n var occurrenceThreshold = (_options$occurrenceTh = options === null || options === void 0 ? void 0 : options.occurrenceThreshold) !== null && _options$occurrenceTh !== void 0 ? _options$occurrenceTh : options === null || options === void 0 ? void 0 : options.occuranceThreshold;\n var accText = accessible_text_default(node).toLowerCase();\n if (is_human_interpretable_default(accText) < 1) {\n return void 0;\n }\n var visibleText = sanitize_default(subtree_text_default(virtualNode, {\n subtreeDescendant: true,\n ignoreIconLigature: true,\n pixelThreshold: pixelThreshold,\n occurrenceThreshold: occurrenceThreshold\n })).toLowerCase();\n if (!visibleText) {\n return true;\n }\n if (is_human_interpretable_default(visibleText) < 1) {\n if (isStringContained(visibleText, accText)) {\n return true;\n }\n return void 0;\n }\n return isStringContained(visibleText, accText);\n }\n var label_content_name_mismatch_evaluate_default = labelContentNameMismatchEvaluate;\n function multipleLabelEvaluate(node) {\n var id = escape_selector_default(node.getAttribute('id'));\n var parent = node.parentNode;\n var root = get_root_node_default2(node);\n root = root.documentElement || root;\n var labels = Array.from(root.querySelectorAll('label[for=\"'.concat(id, '\"]')));\n if (labels.length) {\n labels = labels.filter(function(label3) {\n return !_isHiddenForEveryone(label3);\n });\n }\n while (parent) {\n if (parent.nodeName.toUpperCase() === 'LABEL' && labels.indexOf(parent) === -1) {\n labels.push(parent);\n }\n parent = parent.parentNode;\n }\n this.relatedNodes(labels);\n if (labels.length > 1) {\n var ATVisibleLabels = labels.filter(function(label3) {\n return _isVisibleToScreenReaders(label3);\n });\n if (ATVisibleLabels.length > 1) {\n return void 0;\n }\n var labelledby = idrefs_default(node, 'aria-labelledby');\n return !labelledby.includes(ATVisibleLabels[0]) ? void 0 : false;\n }\n return false;\n }\n var multiple_label_evaluate_default = multipleLabelEvaluate;\n function titleOnlyEvaluate(node, options, virtualNode) {\n var labelText2 = label_virtual_default2(virtualNode);\n var title = title_text_default(virtualNode);\n var ariaDescribedBy = virtualNode.attr('aria-describedby');\n return !labelText2 && !!(title || ariaDescribedBy);\n }\n var title_only_evaluate_default = titleOnlyEvaluate;\n function landmarkIsUniqueAfter(results) {\n var uniqueLandmarks = [];\n return results.filter(function(currentResult) {\n var findMatch = function findMatch(someResult) {\n return currentResult.data.role === someResult.data.role && currentResult.data.accessibleText === someResult.data.accessibleText;\n };\n var matchedResult = uniqueLandmarks.find(findMatch);\n if (matchedResult) {\n matchedResult.result = false;\n matchedResult.relatedNodes.push(currentResult.relatedNodes[0]);\n return false;\n }\n uniqueLandmarks.push(currentResult);\n currentResult.relatedNodes = [];\n return true;\n });\n }\n var landmark_is_unique_after_default = landmarkIsUniqueAfter;\n function landmarkIsUniqueEvaluate(node, options, virtualNode) {\n var role = get_role_default(node);\n var accessibleText2 = accessible_text_virtual_default(virtualNode);\n accessibleText2 = accessibleText2 ? accessibleText2.toLowerCase() : null;\n this.data({\n role: role,\n accessibleText: accessibleText2\n });\n this.relatedNodes([ node ]);\n return true;\n }\n var landmark_is_unique_evaluate_default = landmarkIsUniqueEvaluate;\n function hasValue(value) {\n return (value || '').trim() !== '';\n }\n function hasLangEvaluate(node, options, virtualNode) {\n var xhtml2 = typeof document !== 'undefined' ? is_xhtml_default(document) : false;\n if (options.attributes.includes('xml:lang') && options.attributes.includes('lang') && hasValue(virtualNode.attr('xml:lang')) && !hasValue(virtualNode.attr('lang')) && !xhtml2) {\n this.data({\n messageKey: 'noXHTML'\n });\n return false;\n }\n var hasLang = options.attributes.some(function(name) {\n return hasValue(virtualNode.attr(name));\n });\n if (!hasLang) {\n this.data({\n messageKey: 'noLang'\n });\n return false;\n }\n return true;\n }\n var has_lang_evaluate_default = hasLangEvaluate;\n function validLangEvaluate(node, options, virtualNode) {\n var invalid = [];\n options.attributes.forEach(function(langAttr) {\n var langVal = virtualNode.attr(langAttr);\n if (typeof langVal !== 'string') {\n return;\n }\n var baselangVal = get_base_lang_default(langVal);\n var invalidLang = options.value ? !options.value.map(get_base_lang_default).includes(baselangVal) : !valid_langs_default(baselangVal);\n if (baselangVal !== '' && invalidLang || langVal !== '' && !sanitize_default(langVal)) {\n invalid.push(langAttr + '=\"' + virtualNode.attr(langAttr) + '\"');\n }\n });\n if (!invalid.length) {\n return false;\n }\n if (virtualNode.props.nodeName !== 'html' && !_hasLangText(virtualNode)) {\n return false;\n }\n this.data(invalid);\n return true;\n }\n var valid_lang_evaluate_default = validLangEvaluate;\n function xmlLangMismatchEvaluate(node, options, vNode) {\n var primaryLangValue = get_base_lang_default(vNode.attr('lang'));\n var primaryXmlLangValue = get_base_lang_default(vNode.attr('xml:lang'));\n return primaryLangValue === primaryXmlLangValue;\n }\n var xml_lang_mismatch_evaluate_default = xmlLangMismatchEvaluate;\n function dlitemEvaluate(node) {\n var parent = get_composed_parent_default(node);\n var parentTagName = parent.nodeName.toUpperCase();\n var parentRole = get_explicit_role_default(parent);\n if (parentTagName === 'DIV' && [ 'presentation', 'none', null ].includes(parentRole)) {\n parent = get_composed_parent_default(parent);\n parentTagName = parent.nodeName.toUpperCase();\n parentRole = get_explicit_role_default(parent);\n }\n if (parentTagName !== 'DL') {\n return false;\n }\n if (!parentRole || [ 'presentation', 'none', 'list' ].includes(parentRole)) {\n return true;\n }\n return false;\n }\n var dlitem_evaluate_default = dlitemEvaluate;\n function invalidChildrenEvaluate(node) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var virtualNode = arguments.length > 2 ? arguments[2] : undefined;\n var relatedNodes = [];\n var issues = [];\n if (!virtualNode.children) {\n return void 0;\n }\n var vChildren = mapWithNested(virtualNode.children);\n while (vChildren.length) {\n var _vChild$actualNode;\n var _vChildren$shift = vChildren.shift(), vChild = _vChildren$shift.vChild, nested = _vChildren$shift.nested;\n if (options.divGroups && !nested && isDivGroup(vChild)) {\n if (!vChild.children) {\n return void 0;\n }\n var vGrandChildren = mapWithNested(vChild.children, true);\n vChildren.push.apply(vChildren, _toConsumableArray(vGrandChildren));\n continue;\n }\n var issue = getInvalidSelector(vChild, nested, options);\n if (!issue) {\n continue;\n }\n if (!issues.includes(issue)) {\n issues.push(issue);\n }\n if ((vChild === null || vChild === void 0 ? void 0 : (_vChild$actualNode = vChild.actualNode) === null || _vChild$actualNode === void 0 ? void 0 : _vChild$actualNode.nodeType) === 1) {\n relatedNodes.push(vChild.actualNode);\n }\n }\n if (issues.length === 0) {\n return false;\n }\n this.data({\n values: issues.join(', ')\n });\n this.relatedNodes(relatedNodes);\n return true;\n }\n function getInvalidSelector(vChild, nested, _ref90) {\n var _ref90$validRoles = _ref90.validRoles, validRoles = _ref90$validRoles === void 0 ? [] : _ref90$validRoles, _ref90$validNodeNames = _ref90.validNodeNames, validNodeNames = _ref90$validNodeNames === void 0 ? [] : _ref90$validNodeNames;\n var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;\n var selector = nested ? 'div > ' : '';\n if (nodeType === 3 && nodeValue.trim() !== '') {\n return selector + '#text';\n }\n if (nodeType !== 1 || !_isVisibleToScreenReaders(vChild)) {\n return false;\n }\n var role = get_explicit_role_default(vChild);\n if (role) {\n return validRoles.includes(role) ? false : selector + '[role='.concat(role, ']');\n } else {\n return validNodeNames.includes(nodeName2) ? false : selector + nodeName2;\n }\n }\n function isDivGroup(vNode) {\n return vNode.props.nodeName === 'div' && get_explicit_role_default(vNode) === null;\n }\n function mapWithNested(vNodes) {\n var nested = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return vNodes.map(function(vChild) {\n return {\n vChild: vChild,\n nested: nested\n };\n });\n }\n function listitemEvaluate(node, options, virtualNode) {\n var parent = virtualNode.parent;\n if (!parent) {\n return void 0;\n }\n var parentNodeName = parent.props.nodeName;\n var parentRole = get_explicit_role_default(parent);\n if ([ 'presentation', 'none', 'list' ].includes(parentRole)) {\n return true;\n }\n if (parentRole && is_valid_role_default(parentRole)) {\n this.data({\n messageKey: 'roleNotValid'\n });\n return false;\n }\n return [ 'ul', 'ol', 'menu' ].includes(parentNodeName);\n }\n function onlyDlitemsEvaluate(node, options, virtualNode) {\n var ALLOWED_ROLES = [ 'definition', 'term', 'list' ];\n var base = {\n badNodes: [],\n hasNonEmptyTextNode: false\n };\n var content = virtualNode.children.reduce(function(content2, child) {\n var actualNode = child.actualNode;\n if (actualNode.nodeName.toUpperCase() === 'DIV' && get_role_default(actualNode) === null) {\n return content2.concat(child.children);\n }\n return content2.concat(child);\n }, []);\n var result = content.reduce(function(out, childNode) {\n var actualNode = childNode.actualNode;\n var tagName = actualNode.nodeName.toUpperCase();\n if (actualNode.nodeType === 1 && _isVisibleToScreenReaders(actualNode)) {\n var explicitRole2 = get_explicit_role_default(actualNode);\n if (tagName !== 'DT' && tagName !== 'DD' || explicitRole2) {\n if (!ALLOWED_ROLES.includes(explicitRole2)) {\n out.badNodes.push(actualNode);\n }\n }\n } else if (actualNode.nodeType === 3 && actualNode.nodeValue.trim() !== '') {\n out.hasNonEmptyTextNode = true;\n }\n return out;\n }, base);\n if (result.badNodes.length) {\n this.relatedNodes(result.badNodes);\n }\n return !!result.badNodes.length || result.hasNonEmptyTextNode;\n }\n var only_dlitems_evaluate_default = onlyDlitemsEvaluate;\n function onlyListitemsEvaluate(node, options, virtualNode) {\n var hasNonEmptyTextNode = false;\n var atLeastOneListitem = false;\n var isEmpty = true;\n var badNodes = [];\n var badRoleNodes = [];\n var badRoles = [];\n virtualNode.children.forEach(function(vNode) {\n var actualNode = vNode.actualNode;\n if (actualNode.nodeType === 3 && actualNode.nodeValue.trim() !== '') {\n hasNonEmptyTextNode = true;\n return;\n }\n if (actualNode.nodeType !== 1 || !_isVisibleToScreenReaders(actualNode)) {\n return;\n }\n isEmpty = false;\n var isLi = actualNode.nodeName.toUpperCase() === 'LI';\n var role = get_role_default(vNode);\n var isListItemRole = role === 'listitem';\n if (!isLi && !isListItemRole) {\n badNodes.push(actualNode);\n }\n if (isLi && !isListItemRole) {\n badRoleNodes.push(actualNode);\n if (!badRoles.includes(role)) {\n badRoles.push(role);\n }\n }\n if (isListItemRole) {\n atLeastOneListitem = true;\n }\n });\n if (hasNonEmptyTextNode || badNodes.length) {\n this.relatedNodes(badNodes);\n return true;\n }\n if (isEmpty || atLeastOneListitem) {\n return false;\n }\n this.relatedNodes(badRoleNodes);\n this.data({\n messageKey: 'roleNotValid',\n roles: badRoles.join(', ')\n });\n return true;\n }\n var only_listitems_evaluate_default = onlyListitemsEvaluate;\n function structuredDlitemsEvaluate(node, options, virtualNode) {\n var children = virtualNode.children;\n if (!children || !children.length) {\n return false;\n }\n var hasDt = false, hasDd = false, nodeName2;\n for (var i = 0; i < children.length; i++) {\n nodeName2 = children[i].props.nodeName.toUpperCase();\n if (nodeName2 === 'DT') {\n hasDt = true;\n }\n if (hasDt && nodeName2 === 'DD') {\n return false;\n }\n if (nodeName2 === 'DD') {\n hasDd = true;\n }\n }\n return hasDt || hasDd;\n }\n var structured_dlitems_evaluate_default = structuredDlitemsEvaluate;\n function captionEvaluate(node, options, virtualNode) {\n var tracks = query_selector_all_default(virtualNode, 'track');\n var hasCaptions = tracks.some(function(vNode) {\n return (vNode.attr('kind') || '').toLowerCase() === 'captions';\n });\n return hasCaptions ? false : void 0;\n }\n var caption_evaluate_default = captionEvaluate;\n var joinStr = ' > ';\n function frameTestedAfter(results) {\n var iframes = {};\n return results.filter(function(result) {\n var frameResult = result.node.ancestry[result.node.ancestry.length - 1] !== 'html';\n if (frameResult) {\n var ancestry2 = result.node.ancestry.flat(Infinity).join(joinStr);\n iframes[ancestry2] = result;\n return true;\n }\n var ancestry = result.node.ancestry.slice(0, result.node.ancestry.length - 1).flat(Infinity).join(joinStr);\n if (iframes[ancestry]) {\n iframes[ancestry].result = true;\n }\n return false;\n });\n }\n var frame_tested_after_default = frameTestedAfter;\n function frameTestedEvaluate(node, options) {\n return options.isViolation ? false : void 0;\n }\n var frame_tested_evaluate_default = frameTestedEvaluate;\n function noAutoplayAudioEvaluate(node, options) {\n if (!node.duration) {\n console.warn('axe.utils.preloadMedia did not load metadata');\n return void 0;\n }\n var _options$allowedDurat = options.allowedDuration, allowedDuration = _options$allowedDurat === void 0 ? 3 : _options$allowedDurat;\n var playableDuration = getPlayableDuration(node);\n if (playableDuration <= allowedDuration && !node.hasAttribute('loop')) {\n return true;\n }\n if (!node.hasAttribute('controls')) {\n return false;\n }\n return true;\n function getPlayableDuration(elm) {\n if (!elm.currentSrc) {\n return 0;\n }\n var playbackRange = getPlaybackRange(elm.currentSrc);\n if (!playbackRange) {\n return Math.abs(elm.duration - (elm.currentTime || 0));\n }\n if (playbackRange.length === 1) {\n return Math.abs(elm.duration - playbackRange[0]);\n }\n return Math.abs(playbackRange[1] - playbackRange[0]);\n }\n function getPlaybackRange(src) {\n var match = src.match(/#t=(.*)/);\n if (!match) {\n return;\n }\n var _match = _slicedToArray(match, 2), value = _match[1];\n var ranges = value.split(',');\n return ranges.map(function(range) {\n if (/:/.test(range)) {\n return convertHourMinSecToSeconds(range);\n }\n return parseFloat(range);\n });\n }\n function convertHourMinSecToSeconds(hhMmSs) {\n var parts = hhMmSs.split(':');\n var secs = 0;\n var mins = 1;\n while (parts.length > 0) {\n secs += mins * parseInt(parts.pop(), 10);\n mins *= 60;\n }\n return parseFloat(secs);\n }\n }\n var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;\n function cssOrientationLockEvaluate(node, options, virtualNode, context) {\n var _ref91 = context || {}, _ref91$cssom = _ref91.cssom, cssom = _ref91$cssom === void 0 ? void 0 : _ref91$cssom;\n var _ref92 = options || {}, _ref92$degreeThreshol = _ref92.degreeThreshold, degreeThreshold = _ref92$degreeThreshol === void 0 ? 0 : _ref92$degreeThreshol;\n if (!cssom || !cssom.length) {\n return void 0;\n }\n var isLocked = false;\n var relatedElements = [];\n var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);\n var _loop7 = function _loop7() {\n var key = _Object$keys2[_i27];\n var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;\n var orientationRules = rules.filter(isMediaRuleWithOrientation);\n if (!orientationRules.length) {\n return 'continue';\n }\n orientationRules.forEach(function(_ref93) {\n var cssRules = _ref93.cssRules;\n Array.from(cssRules).forEach(function(cssRule) {\n var locked = getIsOrientationLocked(cssRule);\n if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {\n var elms = Array.from(root.querySelectorAll(cssRule.selectorText)) || [];\n relatedElements = relatedElements.concat(elms);\n }\n isLocked = isLocked || locked;\n });\n });\n };\n for (var _i27 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i27 < _Object$keys2.length; _i27++) {\n var _ret4 = _loop7();\n if (_ret4 === 'continue') {\n continue;\n }\n }\n if (!isLocked) {\n return true;\n }\n if (relatedElements.length) {\n this.relatedNodes(relatedElements);\n }\n return false;\n function groupCssomByDocument(cssObjectModel) {\n return cssObjectModel.reduce(function(out, _ref94) {\n var sheet = _ref94.sheet, root = _ref94.root, shadowId = _ref94.shadowId;\n var key = shadowId ? shadowId : 'topDocument';\n if (!out[key]) {\n out[key] = {\n root: root,\n rules: []\n };\n }\n if (!sheet || !sheet.cssRules) {\n return out;\n }\n var rules = Array.from(sheet.cssRules);\n out[key].rules = out[key].rules.concat(rules);\n return out;\n }, {});\n }\n function isMediaRuleWithOrientation(_ref95) {\n var type = _ref95.type, cssText = _ref95.cssText;\n if (type !== 4) {\n return false;\n }\n return /orientation:\\s*landscape/i.test(cssText) || /orientation:\\s*portrait/i.test(cssText);\n }\n function getIsOrientationLocked(_ref96) {\n var selectorText = _ref96.selectorText, style = _ref96.style;\n if (!selectorText || style.length <= 0) {\n return false;\n }\n var transformStyle = style.transform || style.webkitTransform || style.msTransform || false;\n if (!transformStyle && !style.rotate) {\n return false;\n }\n var transformDegrees = getTransformDegrees(transformStyle);\n var rotateDegrees = getRotationInDegrees('rotate', style.rotate);\n var degrees = transformDegrees + rotateDegrees;\n if (!degrees) {\n return false;\n }\n degrees = Math.abs(degrees);\n if (Math.abs(degrees - 180) % 180 <= degreeThreshold) {\n return false;\n }\n return Math.abs(degrees - 90) % 90 <= degreeThreshold;\n }\n function getTransformDegrees(transformStyle) {\n if (!transformStyle) {\n return 0;\n }\n var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\\(([^)]+)\\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);\n if (!matches4) {\n return 0;\n }\n var _matches = _slicedToArray(matches4, 3), transformFn = _matches[1], transformFnValue = _matches[2];\n return getRotationInDegrees(transformFn, transformFnValue);\n }\n function getRotationInDegrees(transformFunction, transformFnValue) {\n switch (transformFunction) {\n case 'rotate':\n case 'rotateZ':\n return getAngleInDegrees(transformFnValue);\n\n case 'rotate3d':\n var _transformFnValue$spl = transformFnValue.split(',').map(function(value) {\n return value.trim();\n }), _transformFnValue$spl2 = _slicedToArray(_transformFnValue$spl, 4), z = _transformFnValue$spl2[2], angleWithUnit = _transformFnValue$spl2[3];\n if (parseInt(z) === 0) {\n return;\n }\n return getAngleInDegrees(angleWithUnit);\n\n case 'matrix':\n case 'matrix3d':\n return getAngleInDegreesFromMatrixTransform(transformFnValue);\n\n default:\n return 0;\n }\n }\n function getAngleInDegrees(angleWithUnit) {\n var _ref97 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref98 = _slicedToArray(_ref97, 1), unit = _ref98[0];\n if (!unit) {\n return 0;\n }\n var angle = parseFloat(angleWithUnit.replace(unit, ''));\n switch (unit) {\n case 'rad':\n return convertRadToDeg(angle);\n\n case 'grad':\n return convertGradToDeg(angle);\n\n case 'turn':\n return convertTurnToDeg(angle);\n\n case 'deg':\n default:\n return parseInt(angle);\n }\n }\n function getAngleInDegreesFromMatrixTransform(transformFnValue) {\n var values = transformFnValue.split(',');\n if (values.length <= 6) {\n var _values = _slicedToArray(values, 2), a = _values[0], b2 = _values[1];\n var radians = Math.atan2(parseFloat(b2), parseFloat(a));\n return convertRadToDeg(radians);\n }\n var sinB = parseFloat(values[8]);\n var b = Math.asin(sinB);\n var cosB = Math.cos(b);\n var rotateZRadians = Math.acos(parseFloat(values[0]) / cosB);\n return convertRadToDeg(rotateZRadians);\n }\n function convertRadToDeg(radians) {\n return Math.round(radians * (180 / Math.PI));\n }\n function convertGradToDeg(grad) {\n grad = grad % 400;\n if (grad < 0) {\n grad += 400;\n }\n return Math.round(grad / 400 * 360);\n }\n function convertTurnToDeg(turn) {\n return Math.round(360 / (1 / turn));\n }\n }\n var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;\n function metaViewportScaleEvaluate(node, options, virtualNode) {\n var _ref99 = options || {}, _ref99$scaleMinimum = _ref99.scaleMinimum, scaleMinimum = _ref99$scaleMinimum === void 0 ? 2 : _ref99$scaleMinimum, _ref99$lowerBound = _ref99.lowerBound, lowerBound = _ref99$lowerBound === void 0 ? false : _ref99$lowerBound;\n var content = virtualNode.attr('content') || '';\n if (!content) {\n return true;\n }\n var result = content.split(/[;,]/).reduce(function(out, item) {\n var contentValue = item.trim();\n if (!contentValue) {\n return out;\n }\n var _contentValue$split = contentValue.split('='), _contentValue$split2 = _slicedToArray(_contentValue$split, 2), key = _contentValue$split2[0], value = _contentValue$split2[1];\n if (!key || !value) {\n return out;\n }\n var curatedKey = key.toLowerCase().trim();\n var curatedValue = value.toLowerCase().trim();\n if (curatedKey === 'maximum-scale' && curatedValue === 'yes') {\n curatedValue = 1;\n }\n if (curatedKey === 'maximum-scale' && parseFloat(curatedValue) < 0) {\n return out;\n }\n out[curatedKey] = curatedValue;\n return out;\n }, {});\n if (lowerBound && result['maximum-scale'] && parseFloat(result['maximum-scale']) < lowerBound) {\n return true;\n }\n if (!lowerBound && result['user-scalable'] === 'no') {\n this.data('user-scalable=no');\n return false;\n }\n var userScalableAsFloat = parseFloat(result['user-scalable']);\n if (!lowerBound && result['user-scalable'] && (userScalableAsFloat || userScalableAsFloat === 0) && userScalableAsFloat > -1 && userScalableAsFloat < 1) {\n this.data('user-scalable');\n return false;\n }\n if (result['maximum-scale'] && parseFloat(result['maximum-scale']) < scaleMinimum) {\n this.data('maximum-scale');\n return false;\n }\n return true;\n }\n var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;\n var roundingMargin = .05;\n function targetOffsetEvaluate(node, options, vNode) {\n var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;\n var closeNeighbors = [];\n var closestOffset = minOffset;\n var _iterator9 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step9;\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {\n var vNeighbor = _step9.value;\n if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {\n continue;\n }\n var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor));\n if (offset + roundingMargin >= minOffset) {\n continue;\n }\n closestOffset = Math.min(closestOffset, offset);\n closeNeighbors.push(vNeighbor);\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n if (closeNeighbors.length === 0) {\n this.data({\n closestOffset: closestOffset,\n minOffset: minOffset\n });\n return true;\n }\n this.relatedNodes(closeNeighbors.map(function(_ref100) {\n var actualNode = _ref100.actualNode;\n return actualNode;\n }));\n if (!closeNeighbors.some(_isInTabOrder)) {\n this.data({\n messageKey: 'nonTabbableNeighbor',\n closestOffset: closestOffset,\n minOffset: minOffset\n });\n return void 0;\n }\n this.data({\n closestOffset: closestOffset,\n minOffset: minOffset\n });\n return _isInTabOrder(vNode) ? false : void 0;\n }\n function roundToSingleDecimal(num) {\n return Math.round(num * 10) / 10;\n }\n var roundingMargin2 = .05;\n function targetSize(node, options, vNode) {\n var minSize = (options === null || options === void 0 ? void 0 : options.minSize) || 24;\n var nodeRect = vNode.boundingClientRect;\n var hasMinimumSize = rectHasMinimumSize.bind(null, minSize);\n var nearbyElms = _findNearbyElms(vNode);\n var overflowingContent = filterOverflowingContent(vNode, nearbyElms);\n var _filterByElmsOverlap = filterByElmsOverlap(vNode, nearbyElms), fullyObscuringElms = _filterByElmsOverlap.fullyObscuringElms, partialObscuringElms = _filterByElmsOverlap.partialObscuringElms;\n if (fullyObscuringElms.length && !overflowingContent.length) {\n this.relatedNodes(mapActualNodes(fullyObscuringElms));\n this.data({\n messageKey: 'obscured'\n });\n return true;\n }\n var negativeOutcome = _isInTabOrder(vNode) ? false : void 0;\n if (!hasMinimumSize(nodeRect) && !overflowingContent.length) {\n this.data(_extends({\n minSize: minSize\n }, toDecimalSize(nodeRect)));\n return negativeOutcome;\n }\n var obscuredWidgets = filterFocusableWidgets(partialObscuringElms);\n var largestInnerRect = getLargestUnobscuredArea(vNode, obscuredWidgets);\n if (overflowingContent.length) {\n if (fullyObscuringElms.length || !hasMinimumSize(largestInnerRect || nodeRect)) {\n this.data({\n minSize: minSize,\n messageKey: 'contentOverflow'\n });\n this.relatedNodes(mapActualNodes(overflowingContent));\n return void 0;\n }\n }\n if (obscuredWidgets.length !== 0 && !hasMinimumSize(largestInnerRect)) {\n var allTabbable = obscuredWidgets.every(_isInTabOrder);\n var messageKey = 'partiallyObscured'.concat(allTabbable ? '' : 'NonTabbable');\n this.data(_extends({\n messageKey: messageKey,\n minSize: minSize\n }, toDecimalSize(largestInnerRect)));\n this.relatedNodes(mapActualNodes(obscuredWidgets));\n return allTabbable ? negativeOutcome : void 0;\n }\n this.data(_extends({\n minSize: minSize\n }, toDecimalSize(largestInnerRect || nodeRect)));\n this.relatedNodes(mapActualNodes(obscuredWidgets));\n return true;\n }\n function filterOverflowingContent(vNode, nearbyElms) {\n return nearbyElms.filter(function(nearbyElm) {\n return !isEnclosedRect(nearbyElm, vNode) && isDescendantNotInTabOrder(vNode, nearbyElm);\n });\n }\n function filterByElmsOverlap(vNode, nearbyElms) {\n var fullyObscuringElms = [];\n var partialObscuringElms = [];\n var _iterator10 = _createForOfIteratorHelper(nearbyElms), _step10;\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {\n var vNeighbor = _step10.value;\n if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {\n if (isEnclosedRect(vNode, vNeighbor)) {\n fullyObscuringElms.push(vNeighbor);\n } else {\n partialObscuringElms.push(vNeighbor);\n }\n }\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n return {\n fullyObscuringElms: fullyObscuringElms,\n partialObscuringElms: partialObscuringElms\n };\n }\n function getLargestUnobscuredArea(vNode, obscuredNodes) {\n var nodeRect = vNode.boundingClientRect;\n if (obscuredNodes.length === 0) {\n return null;\n }\n var obscuringRects = obscuredNodes.map(function(_ref101) {\n var rect = _ref101.boundingClientRect;\n return rect;\n });\n var unobscuredRects = _splitRects(nodeRect, obscuringRects);\n return getLargestRect(unobscuredRects);\n }\n function getLargestRect(rects, minSize) {\n return rects.reduce(function(rectA, rectB) {\n var rectAisMinimum = rectHasMinimumSize(minSize, rectA);\n var rectBisMinimum = rectHasMinimumSize(minSize, rectB);\n if (rectAisMinimum !== rectBisMinimum) {\n return rectAisMinimum ? rectA : rectB;\n }\n var areaA = rectA.width * rectA.height;\n var areaB = rectB.width * rectB.height;\n return areaA > areaB ? rectA : rectB;\n });\n }\n function filterFocusableWidgets(vNodes) {\n return vNodes.filter(function(vNode) {\n return get_role_type_default(vNode) === 'widget' && _isFocusable(vNode);\n });\n }\n function isEnclosedRect(vNodeA, vNodeB) {\n var rectA = vNodeA.boundingClientRect;\n var rectB = vNodeB.boundingClientRect;\n return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;\n }\n function getCssPointerEvents(vNode) {\n return vNode.getComputedStylePropertyValue('pointer-events');\n }\n function toDecimalSize(rect) {\n return {\n width: Math.round(rect.width * 10) / 10,\n height: Math.round(rect.height * 10) / 10\n };\n }\n function isDescendantNotInTabOrder(vAncestor, vNode) {\n return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);\n }\n function rectHasMinimumSize(minSize, _ref102) {\n var width = _ref102.width, height = _ref102.height;\n return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;\n }\n function mapActualNodes(vNodes) {\n return vNodes.map(function(_ref103) {\n var actualNode = _ref103.actualNode;\n return actualNode;\n });\n }\n function headingOrderAfter(results) {\n var headingOrder = getHeadingOrder(results);\n results.forEach(function(result) {\n result.result = getHeadingOrderOutcome(result, headingOrder);\n });\n return results;\n }\n function getHeadingOrderOutcome(result, headingOrder) {\n var _headingOrder$index$l, _headingOrder$index, _headingOrder$level, _headingOrder;\n var index = findHeadingOrderIndex(headingOrder, result.node.ancestry);\n var currLevel = (_headingOrder$index$l = (_headingOrder$index = headingOrder[index]) === null || _headingOrder$index === void 0 ? void 0 : _headingOrder$index.level) !== null && _headingOrder$index$l !== void 0 ? _headingOrder$index$l : -1;\n var prevLevel = (_headingOrder$level = (_headingOrder = headingOrder[index - 1]) === null || _headingOrder === void 0 ? void 0 : _headingOrder.level) !== null && _headingOrder$level !== void 0 ? _headingOrder$level : -1;\n if (index === 0) {\n return true;\n }\n if (currLevel === -1) {\n return void 0;\n }\n return currLevel - prevLevel <= 1;\n }\n function getHeadingOrder(results) {\n results = _toConsumableArray(results);\n results.sort(function(_ref104, _ref105) {\n var nodeA = _ref104.node;\n var nodeB = _ref105.node;\n return nodeA.ancestry.length - nodeB.ancestry.length;\n });\n var headingOrder = results.reduce(mergeHeadingOrder, []);\n return headingOrder.filter(function(_ref106) {\n var level = _ref106.level;\n return level !== -1;\n });\n }\n function mergeHeadingOrder(mergedHeadingOrder, result) {\n var _result$data;\n var frameHeadingOrder = (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.headingOrder;\n var frameAncestry = shortenArray(result.node.ancestry, 1);\n if (!frameHeadingOrder) {\n return mergedHeadingOrder;\n }\n var normalizedHeadingOrder = frameHeadingOrder.map(function(heading) {\n return addFrameToHeadingAncestry(heading, frameAncestry);\n });\n var index = getFrameIndex(mergedHeadingOrder, frameAncestry);\n if (index === -1) {\n mergedHeadingOrder.push.apply(mergedHeadingOrder, _toConsumableArray(normalizedHeadingOrder));\n } else {\n mergedHeadingOrder.splice.apply(mergedHeadingOrder, [ index, 0 ].concat(_toConsumableArray(normalizedHeadingOrder)));\n }\n return mergedHeadingOrder;\n }\n function getFrameIndex(headingOrder, frameAncestry) {\n while (frameAncestry.length) {\n var index = findHeadingOrderIndex(headingOrder, frameAncestry);\n if (index !== -1) {\n return index;\n }\n frameAncestry = shortenArray(frameAncestry, 1);\n }\n return -1;\n }\n function findHeadingOrderIndex(headingOrder, ancestry) {\n return headingOrder.findIndex(function(heading) {\n return match_ancestry_default(heading.ancestry, ancestry);\n });\n }\n function addFrameToHeadingAncestry(heading, frameAncestry) {\n var ancestry = frameAncestry.concat(heading.ancestry);\n return _extends({}, heading, {\n ancestry: ancestry\n });\n }\n function shortenArray(arr, spliceLength) {\n return arr.slice(0, arr.length - spliceLength);\n }\n function getLevel(vNode) {\n var role = get_role_default(vNode);\n var headingRole = role && role.includes('heading');\n var ariaHeadingLevel = vNode.attr('aria-level');\n var ariaLevel = parseInt(ariaHeadingLevel, 10);\n var _ref107 = vNode.props.nodeName.match(/h(\\d)/) || [], _ref108 = _slicedToArray(_ref107, 2), headingLevel = _ref108[1];\n if (!headingRole) {\n return -1;\n }\n if (headingLevel && !ariaHeadingLevel) {\n return parseInt(headingLevel, 10);\n }\n if (isNaN(ariaLevel) || ariaLevel < 1) {\n if (headingLevel) {\n return parseInt(headingLevel, 10);\n }\n return 2;\n }\n if (ariaLevel) {\n return ariaLevel;\n }\n return -1;\n }\n function headingOrderEvaluate() {\n var headingOrder = cache_default.get('headingOrder');\n if (headingOrder) {\n return true;\n }\n var selector = 'h1, h2, h3, h4, h5, h6, [role=heading], iframe, frame';\n var vNodes = query_selector_all_filter_default(axe._tree[0], selector, _isVisibleToScreenReaders);\n headingOrder = vNodes.map(function(vNode) {\n return {\n ancestry: [ _getAncestry(vNode.actualNode) ],\n level: getLevel(vNode)\n };\n });\n this.data({\n headingOrder: headingOrder\n });\n cache_default.set('headingOrder', vNodes);\n return true;\n }\n var heading_order_evaluate_default = headingOrderEvaluate;\n function isIdenticalObject(a, b) {\n if (!a || !b) {\n return false;\n }\n var aProps = Object.getOwnPropertyNames(a);\n var bProps = Object.getOwnPropertyNames(b);\n if (aProps.length !== bProps.length) {\n return false;\n }\n var result = aProps.every(function(propName) {\n var aValue = a[propName];\n var bValue = b[propName];\n if (_typeof(aValue) !== _typeof(bValue)) {\n return false;\n }\n if (_typeof(aValue) === 'object' || _typeof(bValue) === 'object') {\n return isIdenticalObject(aValue, bValue);\n }\n return aValue === bValue;\n });\n return result;\n }\n function identicalLinksSamePurposeAfter(results) {\n if (results.length < 2) {\n return results;\n }\n var incompleteResults = results.filter(function(_ref109) {\n var result = _ref109.result;\n return result !== void 0;\n });\n var uniqueResults = [];\n var nameMap = {};\n var _loop8 = function _loop8(index) {\n var _currentResult$relate;\n var currentResult = incompleteResults[index];\n var _currentResult$data = currentResult.data, name = _currentResult$data.name, urlProps = _currentResult$data.urlProps;\n if (nameMap[name]) {\n return 'continue';\n }\n var sameNameResults = incompleteResults.filter(function(_ref110, resultNum) {\n var data2 = _ref110.data;\n return data2.name === name && resultNum !== index;\n });\n var isSameUrl = sameNameResults.every(function(_ref111) {\n var data2 = _ref111.data;\n return isIdenticalObject(data2.urlProps, urlProps);\n });\n if (sameNameResults.length && !isSameUrl) {\n currentResult.result = void 0;\n }\n currentResult.relatedNodes = [];\n (_currentResult$relate = currentResult.relatedNodes).push.apply(_currentResult$relate, _toConsumableArray(sameNameResults.map(function(node) {\n return node.relatedNodes[0];\n })));\n nameMap[name] = sameNameResults;\n uniqueResults.push(currentResult);\n };\n for (var index = 0; index < incompleteResults.length; index++) {\n var _ret5 = _loop8(index);\n if (_ret5 === 'continue') {\n continue;\n }\n }\n return uniqueResults;\n }\n var identical_links_same_purpose_after_default = identicalLinksSamePurposeAfter;\n var commons_exports = {};\n __export(commons_exports, {\n aria: function aria() {\n return aria_exports;\n },\n color: function color() {\n return color_exports;\n },\n dom: function dom() {\n return dom_exports;\n },\n forms: function forms() {\n return forms_exports;\n },\n matches: function matches() {\n return matches_default3;\n },\n math: function math() {\n return math_exports;\n },\n standards: function standards() {\n return standards_exports;\n },\n table: function table() {\n return table_exports;\n },\n text: function text() {\n return text_exports;\n },\n utils: function utils() {\n return utils_exports;\n }\n });\n var forms_exports = {};\n __export(forms_exports, {\n isAriaCombobox: function isAriaCombobox() {\n return is_aria_combobox_default;\n },\n isAriaListbox: function isAriaListbox() {\n return is_aria_listbox_default;\n },\n isAriaRange: function isAriaRange() {\n return is_aria_range_default;\n },\n isAriaTextbox: function isAriaTextbox() {\n return is_aria_textbox_default;\n },\n isDisabled: function isDisabled() {\n return is_disabled_default;\n },\n isNativeSelect: function isNativeSelect() {\n return is_native_select_default;\n },\n isNativeTextbox: function isNativeTextbox() {\n return is_native_textbox_default;\n }\n });\n var disabledNodeNames = [ 'fieldset', 'button', 'select', 'input', 'textarea' ];\n function isDisabled(virtualNode) {\n var disabledState = virtualNode._isDisabled;\n if (typeof disabledState === 'boolean') {\n return disabledState;\n }\n var nodeName2 = virtualNode.props.nodeName;\n var ariaDisabled = virtualNode.attr('aria-disabled');\n if (disabledNodeNames.includes(nodeName2) && virtualNode.hasAttr('disabled')) {\n disabledState = true;\n } else if (ariaDisabled) {\n disabledState = ariaDisabled.toLowerCase() === 'true';\n } else if (virtualNode.parent) {\n disabledState = isDisabled(virtualNode.parent);\n } else {\n disabledState = false;\n }\n virtualNode._isDisabled = disabledState;\n return disabledState;\n }\n var is_disabled_default = isDisabled;\n var table_exports = {};\n __export(table_exports, {\n getAllCells: function getAllCells() {\n return get_all_cells_default;\n },\n getCellPosition: function getCellPosition() {\n return get_cell_position_default;\n },\n getHeaders: function getHeaders() {\n return get_headers_default;\n },\n getScope: function getScope() {\n return get_scope_default;\n },\n isColumnHeader: function isColumnHeader() {\n return is_column_header_default;\n },\n isDataCell: function isDataCell() {\n return is_data_cell_default;\n },\n isDataTable: function isDataTable() {\n return is_data_table_default;\n },\n isHeader: function isHeader() {\n return is_header_default;\n },\n isRowHeader: function isRowHeader() {\n return is_row_header_default;\n },\n toArray: function toArray() {\n return to_grid_default;\n },\n toGrid: function toGrid() {\n return to_grid_default;\n },\n traverse: function traverse() {\n return traverse_default;\n }\n });\n function getAllCells(tableElm) {\n var rowIndex, cellIndex, rowLength, cellLength;\n var cells = [];\n for (rowIndex = 0, rowLength = tableElm.rows.length; rowIndex < rowLength; rowIndex++) {\n for (cellIndex = 0, cellLength = tableElm.rows[rowIndex].cells.length; cellIndex < cellLength; cellIndex++) {\n cells.push(tableElm.rows[rowIndex].cells[cellIndex]);\n }\n }\n return cells;\n }\n var get_all_cells_default = getAllCells;\n function traverseForHeaders(headerType, position, tableGrid) {\n var property = headerType === 'row' ? '_rowHeaders' : '_colHeaders';\n var predicate = headerType === 'row' ? is_row_header_default : is_column_header_default;\n var startCell = tableGrid[position.y][position.x];\n var colspan = startCell.colSpan - 1;\n var rowspanAttr = startCell.getAttribute('rowspan');\n var rowspanValue = parseInt(rowspanAttr) === 0 || startCell.rowspan === 0 ? tableGrid.length : startCell.rowSpan;\n var rowspan = rowspanValue - 1;\n var rowStart = position.y + rowspan;\n var colStart = position.x + colspan;\n var rowEnd = headerType === 'row' ? position.y : 0;\n var colEnd = headerType === 'row' ? 0 : position.x;\n var headers;\n var cells = [];\n for (var row = rowStart; row >= rowEnd && !headers; row--) {\n for (var col = colStart; col >= colEnd; col--) {\n var cell = tableGrid[row] ? tableGrid[row][col] : void 0;\n if (!cell) {\n continue;\n }\n var vNode = axe.utils.getNodeFromTree(cell);\n if (vNode[property]) {\n headers = vNode[property];\n break;\n }\n cells.push(cell);\n }\n }\n headers = (headers || []).concat(cells.filter(predicate));\n cells.forEach(function(tableCell) {\n var vNode = axe.utils.getNodeFromTree(tableCell);\n vNode[property] = headers;\n });\n return headers;\n }\n function getHeaders(cell, tableGrid) {\n if (cell.getAttribute('headers')) {\n var headers = idrefs_default(cell, 'headers');\n if (headers.filter(function(header) {\n return header;\n }).length) {\n return headers;\n }\n }\n if (!tableGrid) {\n tableGrid = to_grid_default(find_up_default(cell, 'table'));\n }\n var position = get_cell_position_default(cell, tableGrid);\n var rowHeaders = traverseForHeaders('row', position, tableGrid);\n var colHeaders = traverseForHeaders('col', position, tableGrid);\n return [].concat(rowHeaders, colHeaders).reverse();\n }\n var get_headers_default = getHeaders;\n function isDataCell(cell) {\n if (!cell.children.length && !cell.textContent.trim()) {\n return false;\n }\n var role = cell.getAttribute('role');\n if (is_valid_role_default(role)) {\n return [ 'cell', 'gridcell' ].includes(role);\n } else {\n return cell.nodeName.toUpperCase() === 'TD';\n }\n }\n var is_data_cell_default = isDataCell;\n function isDataTable(node) {\n var role = (node.getAttribute('role') || '').toLowerCase();\n if ((role === 'presentation' || role === 'none') && !_isFocusable(node)) {\n return false;\n }\n if (node.getAttribute('contenteditable') === 'true' || find_up_default(node, '[contenteditable=\"true\"]')) {\n return true;\n }\n if (role === 'grid' || role === 'treegrid' || role === 'table') {\n return true;\n }\n if (get_role_type_default(role) === 'landmark') {\n return true;\n }\n if (node.getAttribute('datatable') === '0') {\n return false;\n }\n if (node.getAttribute('summary')) {\n return true;\n }\n if (node.tHead || node.tFoot || node.caption) {\n return true;\n }\n for (var childIndex = 0, childLength = node.children.length; childIndex < childLength; childIndex++) {\n if (node.children[childIndex].nodeName.toUpperCase() === 'COLGROUP') {\n return true;\n }\n }\n var cells = 0;\n var rowLength = node.rows.length;\n var row, cell;\n var hasBorder = false;\n for (var rowIndex = 0; rowIndex < rowLength; rowIndex++) {\n row = node.rows[rowIndex];\n for (var cellIndex = 0, cellLength = row.cells.length; cellIndex < cellLength; cellIndex++) {\n cell = row.cells[cellIndex];\n if (cell.nodeName.toUpperCase() === 'TH') {\n return true;\n }\n if (!hasBorder && (cell.offsetWidth !== cell.clientWidth || cell.offsetHeight !== cell.clientHeight)) {\n hasBorder = true;\n }\n if (cell.getAttribute('scope') || cell.getAttribute('headers') || cell.getAttribute('abbr')) {\n return true;\n }\n if ([ 'columnheader', 'rowheader' ].includes((cell.getAttribute('role') || '').toLowerCase())) {\n return true;\n }\n if (cell.children.length === 1 && cell.children[0].nodeName.toUpperCase() === 'ABBR') {\n return true;\n }\n cells++;\n }\n }\n if (node.getElementsByTagName('table').length) {\n return false;\n }\n if (rowLength < 2) {\n return false;\n }\n var sampleRow = node.rows[Math.ceil(rowLength / 2)];\n if (sampleRow.cells.length === 1 && sampleRow.cells[0].colSpan === 1) {\n return false;\n }\n if (sampleRow.cells.length >= 5) {\n return true;\n }\n if (hasBorder) {\n return true;\n }\n var bgColor, bgImage;\n for (rowIndex = 0; rowIndex < rowLength; rowIndex++) {\n row = node.rows[rowIndex];\n if (bgColor && bgColor !== window.getComputedStyle(row).getPropertyValue('background-color')) {\n return true;\n } else {\n bgColor = window.getComputedStyle(row).getPropertyValue('background-color');\n }\n if (bgImage && bgImage !== window.getComputedStyle(row).getPropertyValue('background-image')) {\n return true;\n } else {\n bgImage = window.getComputedStyle(row).getPropertyValue('background-image');\n }\n }\n if (rowLength >= 20) {\n return true;\n }\n if (get_element_coordinates_default(node).width > get_viewport_size_default(window).width * .95) {\n return false;\n }\n if (cells < 10) {\n return false;\n }\n if (node.querySelector('object, embed, iframe, applet')) {\n return false;\n }\n return true;\n }\n var is_data_table_default = isDataTable;\n function isHeader(cell) {\n if (is_column_header_default(cell) || is_row_header_default(cell)) {\n return true;\n }\n if (cell.getAttribute('id')) {\n var id = escape_selector_default(cell.getAttribute('id'));\n return !!document.querySelector('[headers~=\"'.concat(id, '\"]'));\n }\n return false;\n }\n var is_header_default = isHeader;\n function traverseTable(dir, position, tableGrid, callback) {\n var result;\n var cell = tableGrid[position.y] ? tableGrid[position.y][position.x] : void 0;\n if (!cell) {\n return [];\n }\n if (typeof callback === 'function') {\n result = callback(cell, position, tableGrid);\n if (result === true) {\n return [ cell ];\n }\n }\n result = traverseTable(dir, {\n x: position.x + dir.x,\n y: position.y + dir.y\n }, tableGrid, callback);\n result.unshift(cell);\n return result;\n }\n function traverse(dir, startPos, tableGrid, callback) {\n if (Array.isArray(startPos)) {\n callback = tableGrid;\n tableGrid = startPos;\n startPos = {\n x: 0,\n y: 0\n };\n }\n if (typeof dir === 'string') {\n switch (dir) {\n case 'left':\n dir = {\n x: -1,\n y: 0\n };\n break;\n\n case 'up':\n dir = {\n x: 0,\n y: -1\n };\n break;\n\n case 'right':\n dir = {\n x: 1,\n y: 0\n };\n break;\n\n case 'down':\n dir = {\n x: 0,\n y: 1\n };\n break;\n }\n }\n return traverseTable(dir, {\n x: startPos.x + dir.x,\n y: startPos.y + dir.y\n }, tableGrid, callback);\n }\n var traverse_default = traverse;\n function identicalLinksSamePurposeEvaluate(node, options, virtualNode) {\n var accText = text_exports.accessibleTextVirtual(virtualNode);\n var name = text_exports.sanitize(text_exports.removeUnicode(accText, {\n emoji: true,\n nonBmp: true,\n punctuations: true\n })).toLowerCase();\n if (!name) {\n return void 0;\n }\n var afterData = {\n name: name,\n urlProps: dom_exports.urlPropsFromAttribute(node, 'href')\n };\n this.data(afterData);\n this.relatedNodes([ node ]);\n return true;\n }\n var identical_links_same_purpose_evaluate_default = identicalLinksSamePurposeEvaluate;\n function internalLinkPresentEvaluate(node, options, virtualNode) {\n var links = query_selector_all_default(virtualNode, 'a[href]');\n return links.some(function(vLink) {\n return /^#[^/!]/.test(vLink.attr('href'));\n });\n }\n var internal_link_present_evaluate_default = internalLinkPresentEvaluate;\n var separatorRegex = /[;,\\s]/;\n var validRedirectNumRegex = /^[0-9.]+$/;\n function metaRefreshEvaluate(node, options, virtualNode) {\n var _ref112 = options || {}, minDelay = _ref112.minDelay, maxDelay = _ref112.maxDelay;\n var content = (virtualNode.attr('content') || '').trim();\n var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];\n if (!redirectStr.match(validRedirectNumRegex)) {\n return true;\n }\n var redirectDelay = parseFloat(redirectStr);\n this.data({\n redirectDelay: redirectDelay\n });\n if (typeof minDelay === 'number' && redirectDelay <= options.minDelay) {\n return true;\n }\n if (typeof maxDelay === 'number' && redirectDelay > options.maxDelay) {\n return true;\n }\n return false;\n }\n function normalizeFontWeight(weight) {\n switch (weight) {\n case 'lighter':\n return 100;\n\n case 'normal':\n return 400;\n\n case 'bold':\n return 700;\n\n case 'bolder':\n return 900;\n }\n weight = parseInt(weight);\n return !isNaN(weight) ? weight : 400;\n }\n function getTextContainer(elm) {\n var nextNode = elm;\n var outerText = elm.textContent.trim();\n var innerText = outerText;\n while (innerText === outerText && nextNode !== void 0) {\n var _i28 = -1;\n elm = nextNode;\n if (elm.children.length === 0) {\n return elm;\n }\n do {\n _i28++;\n innerText = elm.children[_i28].textContent.trim();\n } while (innerText === '' && _i28 + 1 < elm.children.length);\n nextNode = elm.children[_i28];\n }\n return elm;\n }\n function getStyleValues(node) {\n var style = window.getComputedStyle(getTextContainer(node));\n return {\n fontWeight: normalizeFontWeight(style.getPropertyValue('font-weight')),\n fontSize: parseInt(style.getPropertyValue('font-size')),\n isItalic: style.getPropertyValue('font-style') === 'italic'\n };\n }\n function isHeaderStyle(styleA, styleB, margins) {\n return margins.reduce(function(out, margin) {\n return out || (!margin.size || styleA.fontSize / margin.size > styleB.fontSize) && (!margin.weight || styleA.fontWeight - margin.weight > styleB.fontWeight) && (!margin.italic || styleA.isItalic && !styleB.isItalic);\n }, false);\n }\n function pAsHeadingEvaluate(node, options, virtualNode) {\n var siblings = Array.from(node.parentNode.children);\n var currentIndex = siblings.indexOf(node);\n options = options || {};\n var margins = options.margins || [];\n var nextSibling = siblings.slice(currentIndex + 1).find(function(elm) {\n return elm.nodeName.toUpperCase() === 'P';\n });\n var prevSibling = siblings.slice(0, currentIndex).reverse().find(function(elm) {\n return elm.nodeName.toUpperCase() === 'P';\n });\n var currStyle = getStyleValues(node);\n var nextStyle = nextSibling ? getStyleValues(nextSibling) : null;\n var prevStyle = prevSibling ? getStyleValues(prevSibling) : null;\n var optionsPassLength = options.passLength;\n var optionsFailLength = options.failLength;\n var headingLength = node.textContent.trim().length;\n var paragraphLength = nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.textContent.trim().length;\n if (headingLength > paragraphLength * optionsPassLength) {\n return true;\n }\n if (!nextStyle || !isHeaderStyle(currStyle, nextStyle, margins)) {\n return true;\n }\n var blockquote = find_up_virtual_default(virtualNode, 'blockquote');\n if (blockquote && blockquote.nodeName.toUpperCase() === 'BLOCKQUOTE') {\n return void 0;\n }\n if (prevStyle && !isHeaderStyle(currStyle, prevStyle, margins)) {\n return void 0;\n }\n if (headingLength > paragraphLength * optionsFailLength) {\n return void 0;\n }\n return false;\n }\n var p_as_heading_evaluate_default = pAsHeadingEvaluate;\n function regionAfter(results) {\n var iframeResults = results.filter(function(r) {\n return r.data.isIframe;\n });\n results.forEach(function(r) {\n if (r.result || r.node.ancestry.length === 1) {\n return;\n }\n var frameAncestry = r.node.ancestry.slice(0, -1);\n var _iterator11 = _createForOfIteratorHelper(iframeResults), _step11;\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {\n var iframeResult = _step11.value;\n if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {\n r.result = iframeResult.result;\n break;\n }\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n });\n iframeResults.forEach(function(r) {\n if (!r.result) {\n r.result = true;\n }\n });\n return results;\n }\n var region_after_default = regionAfter;\n var landmarkRoles2 = get_aria_roles_by_type_default('landmark');\n var implicitAriaLiveRoles = [ 'alert', 'log', 'status' ];\n function regionEvaluate(node, options, virtualNode) {\n this.data({\n isIframe: [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName)\n });\n var regionlessNodes = cache_default.get('regionlessNodes', function() {\n return getRegionlessNodes(options);\n });\n return !regionlessNodes.includes(virtualNode);\n }\n function getRegionlessNodes(options) {\n var regionlessNodes = findRegionlessElms(axe._tree[0], options).map(function(vNode) {\n while (vNode.parent && !vNode.parent._hasRegionDescendant && vNode.parent.actualNode !== document.body) {\n vNode = vNode.parent;\n }\n return vNode;\n }).filter(function(vNode, index, array) {\n return array.indexOf(vNode) === index;\n });\n return regionlessNodes;\n }\n function findRegionlessElms(virtualNode, options) {\n var node = virtualNode.actualNode;\n if (get_role_default(virtualNode) === 'button' || isRegion(virtualNode, options) || [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) || _isSkipLink(virtualNode.actualNode) && get_element_by_reference_default(virtualNode.actualNode, 'href') || !_isVisibleToScreenReaders(node)) {\n var vNode = virtualNode;\n while (vNode) {\n vNode._hasRegionDescendant = true;\n vNode = vNode.parent;\n }\n if ([ 'iframe', 'frame' ].includes(virtualNode.props.nodeName)) {\n return [ virtualNode ];\n }\n return [];\n } else if (node !== document.body && has_content_default(node, true)) {\n return [ virtualNode ];\n } else {\n return virtualNode.children.filter(function(_ref113) {\n var actualNode = _ref113.actualNode;\n return actualNode.nodeType === 1;\n }).map(function(vNode) {\n return findRegionlessElms(vNode, options);\n }).reduce(function(a, b) {\n return a.concat(b);\n }, []);\n }\n }\n function isRegion(virtualNode, options) {\n var node = virtualNode.actualNode;\n var role = get_role_default(virtualNode);\n var ariaLive = (node.getAttribute('aria-live') || '').toLowerCase().trim();\n if ([ 'assertive', 'polite' ].includes(ariaLive) || implicitAriaLiveRoles.includes(role)) {\n return true;\n }\n if (landmarkRoles2.includes(role)) {\n return true;\n }\n if (options.regionMatcher && matches_default3(virtualNode, options.regionMatcher)) {\n return true;\n }\n return false;\n }\n function skipLinkEvaluate(node) {\n var target = get_element_by_reference_default(node, 'href');\n if (target) {\n return _isVisibleToScreenReaders(target) || void 0;\n }\n return false;\n }\n var skip_link_evaluate_default = skipLinkEvaluate;\n function uniqueFrameTitleAfter(results) {\n var titles = {};\n results.forEach(function(r) {\n titles[r.data] = titles[r.data] !== void 0 ? ++titles[r.data] : 0;\n });\n results.forEach(function(r) {\n r.result = !!titles[r.data];\n });\n return results;\n }\n var unique_frame_title_after_default = uniqueFrameTitleAfter;\n function uniqueFrameTitleEvaluate(node, options, vNode) {\n var title = sanitize_default(vNode.attr('title')).toLowerCase();\n this.data(title);\n return true;\n }\n var unique_frame_title_evaluate_default = uniqueFrameTitleEvaluate;\n function duplicateIdAfter(results) {\n var uniqueIds = [];\n return results.filter(function(r) {\n if (uniqueIds.indexOf(r.data) === -1) {\n uniqueIds.push(r.data);\n return true;\n }\n return false;\n });\n }\n var duplicate_id_after_default = duplicateIdAfter;\n function duplicateIdEvaluate(node) {\n var id = node.getAttribute('id').trim();\n if (!id) {\n return true;\n }\n var root = get_root_node_default2(node);\n var matchingNodes = Array.from(root.querySelectorAll('[id=\"'.concat(escape_selector_default(id), '\"]'))).filter(function(foundNode) {\n return foundNode !== node;\n });\n if (matchingNodes.length) {\n this.relatedNodes(matchingNodes);\n }\n this.data(id);\n return matchingNodes.length === 0;\n }\n var duplicate_id_evaluate_default = duplicateIdEvaluate;\n function ariaLabelEvaluate(node, options, virtualNode) {\n return !!sanitize_default(arialabel_text_default(virtualNode));\n }\n var aria_label_evaluate_default = ariaLabelEvaluate;\n function ariaLabelledbyEvaluate(node, options, virtualNode) {\n try {\n return !!sanitize_default(arialabelledby_text_default(virtualNode));\n } catch (e) {\n return void 0;\n }\n }\n var aria_labelledby_evaluate_default = ariaLabelledbyEvaluate;\n function avoidInlineSpacingEvaluate(node, options) {\n var overriddenProperties = options.cssProperties.filter(function(property) {\n if (node.style.getPropertyPriority(property) === 'important') {\n return property;\n }\n });\n if (overriddenProperties.length > 0) {\n this.data(overriddenProperties);\n return false;\n }\n return true;\n }\n var avoid_inline_spacing_evaluate_default = avoidInlineSpacingEvaluate;\n function docHasTitleEvaluate() {\n var title = document.title;\n return !!sanitize_default(title);\n }\n var doc_has_title_evaluate_default = docHasTitleEvaluate;\n function existsEvaluate() {\n return void 0;\n }\n var exists_evaluate_default = existsEvaluate;\n function hasAltEvaluate(node, options, virtualNode) {\n var nodeName2 = virtualNode.props.nodeName;\n if (![ 'img', 'input', 'area' ].includes(nodeName2)) {\n return false;\n }\n return virtualNode.hasAttr('alt');\n }\n var has_alt_evaluate_default = hasAltEvaluate;\n function inlineStyleProperty(node, options) {\n var cssProperty = options.cssProperty, absoluteValues = options.absoluteValues, minValue = options.minValue, maxValue = options.maxValue, _options$normalValue = options.normalValue, normalValue = _options$normalValue === void 0 ? 0 : _options$normalValue, noImportant = options.noImportant, multiLineOnly = options.multiLineOnly;\n if (!noImportant && node.style.getPropertyPriority(cssProperty) !== 'important' || multiLineOnly && !_isMultiline(node)) {\n return true;\n }\n var data2 = {};\n if (typeof minValue === 'number') {\n data2.minValue = minValue;\n }\n if (typeof maxValue === 'number') {\n data2.maxValue = maxValue;\n }\n var declaredPropValue = node.style.getPropertyValue(cssProperty);\n if ([ 'inherit', 'unset', 'revert', 'revert-layer' ].includes(declaredPropValue)) {\n this.data(_extends({\n value: declaredPropValue\n }, data2));\n return true;\n }\n var value = getNumberValue(node, {\n absoluteValues: absoluteValues,\n cssProperty: cssProperty,\n normalValue: normalValue\n });\n this.data(_extends({\n value: value\n }, data2));\n if (typeof value !== 'number') {\n return void 0;\n }\n if ((typeof minValue !== 'number' || value >= minValue) && (typeof maxValue !== 'number' || value <= maxValue)) {\n return true;\n }\n return false;\n }\n function getNumberValue(domNode, _ref114) {\n var cssProperty = _ref114.cssProperty, absoluteValues = _ref114.absoluteValues, normalValue = _ref114.normalValue;\n var computedStyle = window.getComputedStyle(domNode);\n var cssPropValue = computedStyle.getPropertyValue(cssProperty);\n if (cssPropValue === 'normal') {\n return normalValue;\n }\n var parsedValue = parseFloat(cssPropValue);\n if (absoluteValues) {\n return parsedValue;\n }\n var fontSize = parseFloat(computedStyle.getPropertyValue('font-size'));\n var value = Math.round(parsedValue / fontSize * 100) / 100;\n if (isNaN(value)) {\n return cssPropValue;\n }\n return value;\n }\n function isOnScreenEvaluate(node) {\n return _isVisibleOnScreen(node);\n }\n var is_on_screen_evaluate_default = isOnScreenEvaluate;\n function nonEmptyIfPresentEvaluate(node, options, virtualNode) {\n var nodeName2 = virtualNode.props.nodeName;\n var type = (virtualNode.attr('type') || '').toLowerCase();\n var label3 = virtualNode.attr('value');\n if (label3) {\n this.data({\n messageKey: 'has-label'\n });\n }\n if (nodeName2 === 'input' && [ 'submit', 'reset' ].includes(type)) {\n return label3 === null;\n }\n return false;\n }\n var non_empty_if_present_evaluate_default = nonEmptyIfPresentEvaluate;\n function presentationalRoleEvaluate(node, options, virtualNode) {\n var explicitRole2 = get_explicit_role_default(virtualNode);\n if ([ 'presentation', 'none' ].includes(explicitRole2) && [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) && virtualNode.hasAttr('title')) {\n this.data({\n messageKey: 'iframe',\n nodeName: virtualNode.props.nodeName\n });\n return false;\n }\n var role = get_role_default(virtualNode);\n if ([ 'presentation', 'none' ].includes(role)) {\n this.data({\n role: role\n });\n return true;\n }\n if (![ 'presentation', 'none' ].includes(explicitRole2)) {\n return false;\n }\n var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {\n return virtualNode.hasAttr(attr);\n });\n var focusable = _isFocusable(virtualNode);\n var messageKey;\n if (hasGlobalAria && !focusable) {\n messageKey = 'globalAria';\n } else if (!hasGlobalAria && focusable) {\n messageKey = 'focusable';\n } else {\n messageKey = 'both';\n }\n this.data({\n messageKey: messageKey,\n role: role\n });\n return false;\n }\n function svgNonEmptyTitleEvaluate(node, options, virtualNode) {\n if (!virtualNode.children) {\n return void 0;\n }\n var titleNode = virtualNode.children.find(function(_ref115) {\n var props = _ref115.props;\n return props.nodeName === 'title';\n });\n if (!titleNode) {\n this.data({\n messageKey: 'noTitle'\n });\n return false;\n }\n try {\n var titleText2 = subtree_text_default(titleNode, {\n includeHidden: true\n }).trim();\n if (titleText2 === '') {\n this.data({\n messageKey: 'emptyTitle'\n });\n return false;\n }\n } catch (e) {\n return void 0;\n }\n return true;\n }\n var svg_non_empty_title_evaluate_default = svgNonEmptyTitleEvaluate;\n function captionFakedEvaluate(node) {\n var table = to_grid_default(node);\n var firstRow = table[0];\n if (table.length <= 1 || firstRow.length <= 1 || node.rows.length <= 1) {\n return true;\n }\n return firstRow.reduce(function(out, curr, i) {\n return out || curr !== firstRow[i + 1] && firstRow[i + 1] !== void 0;\n }, false);\n }\n var caption_faked_evaluate_default = captionFakedEvaluate;\n function html5ScopeEvaluate(node) {\n if (!is_html5_default(document)) {\n return true;\n }\n return node.nodeName.toUpperCase() === 'TH';\n }\n var html5_scope_evaluate_default = html5ScopeEvaluate;\n var same_caption_summary_evaluate_default = sameCaptionSummaryEvaluate;\n function sameCaptionSummaryEvaluate(node, options, virtualNode) {\n if (virtualNode.children === void 0) {\n return void 0;\n }\n var summary = virtualNode.attr('summary');\n var captionNode = virtualNode.children.find(isCaptionNode);\n var caption = captionNode ? sanitize_default(subtree_text_default(captionNode)) : false;\n if (!caption || !summary) {\n return false;\n }\n return sanitize_default(summary).toLowerCase() === sanitize_default(caption).toLowerCase();\n }\n function isCaptionNode(virtualNode) {\n return virtualNode.props.nodeName === 'caption';\n }\n function scopeValueEvaluate(node, options) {\n var value = node.getAttribute('scope').toLowerCase();\n return options.values.indexOf(value) !== -1;\n }\n var scope_value_evaluate_default = scopeValueEvaluate;\n function tdHasHeaderEvaluate(node) {\n var badCells = [];\n var cells = get_all_cells_default(node);\n var tableGrid = to_grid_default(node);\n cells.forEach(function(cell) {\n if (has_content_default(cell) && is_data_cell_default(cell) && !label_default2(cell)) {\n var hasHeaders = get_headers_default(cell, tableGrid).some(function(header) {\n return header !== null && !!has_content_default(header);\n });\n if (!hasHeaders) {\n badCells.push(cell);\n }\n }\n });\n if (badCells.length) {\n this.relatedNodes(badCells);\n return false;\n }\n return true;\n }\n var td_has_header_evaluate_default = tdHasHeaderEvaluate;\n function tdHeadersAttrEvaluate(node) {\n var cells = [];\n var reviewCells = [];\n var badCells = [];\n for (var rowIndex = 0; rowIndex < node.rows.length; rowIndex++) {\n var row = node.rows[rowIndex];\n for (var cellIndex = 0; cellIndex < row.cells.length; cellIndex++) {\n cells.push(row.cells[cellIndex]);\n }\n }\n var ids = cells.reduce(function(ids2, cell) {\n if (cell.getAttribute('id')) {\n ids2.push(cell.getAttribute('id'));\n }\n return ids2;\n }, []);\n cells.forEach(function(cell) {\n var isSelf = false;\n var notOfTable = false;\n if (!cell.hasAttribute('headers') || !_isVisibleToScreenReaders(cell)) {\n return;\n }\n var headersAttr = cell.getAttribute('headers').trim();\n if (!headersAttr) {\n return reviewCells.push(cell);\n }\n var headers = token_list_default(headersAttr);\n if (headers.length !== 0) {\n if (cell.getAttribute('id')) {\n isSelf = headers.indexOf(cell.getAttribute('id').trim()) !== -1;\n }\n notOfTable = headers.some(function(header) {\n return !ids.includes(header);\n });\n if (isSelf || notOfTable) {\n badCells.push(cell);\n }\n }\n });\n if (badCells.length > 0) {\n this.relatedNodes(badCells);\n return false;\n }\n if (reviewCells.length) {\n this.relatedNodes(reviewCells);\n return void 0;\n }\n return true;\n }\n var td_headers_attr_evaluate_default = tdHeadersAttrEvaluate;\n function thHasDataCellsEvaluate(node) {\n var cells = get_all_cells_default(node);\n var checkResult = this;\n var reffedHeaders = [];\n cells.forEach(function(cell) {\n var headers2 = cell.getAttribute('headers');\n if (headers2) {\n reffedHeaders = reffedHeaders.concat(headers2.split(/\\s+/));\n }\n var ariaLabel = cell.getAttribute('aria-labelledby');\n if (ariaLabel) {\n reffedHeaders = reffedHeaders.concat(ariaLabel.split(/\\s+/));\n }\n });\n var headers = cells.filter(function(cell) {\n if (sanitize_default(cell.textContent) === '') {\n return false;\n }\n return cell.nodeName.toUpperCase() === 'TH' || [ 'rowheader', 'columnheader' ].indexOf(cell.getAttribute('role')) !== -1;\n });\n var tableGrid = to_grid_default(node);\n var out = true;\n headers.forEach(function(header) {\n if (header.getAttribute('id') && reffedHeaders.includes(header.getAttribute('id'))) {\n return;\n }\n var pos = get_cell_position_default(header, tableGrid);\n var hasCell = false;\n if (is_column_header_default(header)) {\n hasCell = traverse_default('down', pos, tableGrid).find(function(cell) {\n return !is_column_header_default(cell) && get_headers_default(cell, tableGrid).includes(header);\n });\n }\n if (!hasCell && is_row_header_default(header)) {\n hasCell = traverse_default('right', pos, tableGrid).find(function(cell) {\n return !is_row_header_default(cell) && get_headers_default(cell, tableGrid).includes(header);\n });\n }\n if (!hasCell) {\n checkResult.relatedNodes(header);\n }\n out = out && hasCell;\n });\n return out ? true : void 0;\n }\n var th_has_data_cells_evaluate_default = thHasDataCellsEvaluate;\n function hiddenContentEvaluate(node, options, virtualNode) {\n var allowlist = [ 'SCRIPT', 'HEAD', 'TITLE', 'NOSCRIPT', 'STYLE', 'TEMPLATE' ];\n if (!allowlist.includes(node.nodeName.toUpperCase()) && has_content_virtual_default(virtualNode)) {\n var styles = window.getComputedStyle(node);\n if (styles.getPropertyValue('display') === 'none') {\n return void 0;\n } else if (styles.getPropertyValue('visibility') === 'hidden') {\n var parent = get_composed_parent_default(node);\n var parentStyle = parent && window.getComputedStyle(parent);\n if (!parentStyle || parentStyle.getPropertyValue('visibility') !== 'hidden') {\n return void 0;\n }\n }\n }\n return true;\n }\n var hidden_content_evaluate_default = hiddenContentEvaluate;\n function ariaAllowedAttrMatches(node, virtualNode) {\n var aria = /^aria-/;\n var attrs = virtualNode.attrNames;\n if (attrs.length) {\n for (var _i29 = 0, l = attrs.length; _i29 < l; _i29++) {\n if (aria.test(attrs[_i29])) {\n return true;\n }\n }\n }\n return false;\n }\n var aria_allowed_attr_matches_default = ariaAllowedAttrMatches;\n function ariaAllowedRoleMatches(node, virtualNode) {\n return get_explicit_role_default(virtualNode, {\n dpub: true,\n fallback: true\n }) !== null;\n }\n var aria_allowed_role_matches_default = ariaAllowedRoleMatches;\n function ariaHasAttrMatches(node, virtualNode) {\n var aria = /^aria-/;\n return virtualNode.attrNames.some(function(attr) {\n return aria.test(attr);\n });\n }\n var aria_has_attr_matches_default = ariaHasAttrMatches;\n function shouldMatchElement(el) {\n if (!el) {\n return true;\n }\n if (el.getAttribute('aria-hidden') === 'true') {\n return false;\n }\n return shouldMatchElement(get_composed_parent_default(el));\n }\n function ariaHiddenFocusMatches(node) {\n return shouldMatchElement(get_composed_parent_default(node));\n }\n var aria_hidden_focus_matches_default = ariaHiddenFocusMatches;\n function ariaRequiredChildrenMatches(node, virtualNode) {\n var role = get_explicit_role_default(virtualNode, {\n dpub: true\n });\n return !!required_owned_default(role);\n }\n var aria_required_children_matches_default = ariaRequiredChildrenMatches;\n function ariaRequiredParentMatches(node, virtualNode) {\n var role = get_explicit_role_default(virtualNode);\n return !!required_context_default(role);\n }\n var aria_required_parent_matches_default = ariaRequiredParentMatches;\n function autocompleteMatches(node, virtualNode) {\n var autocomplete2 = virtualNode.attr('autocomplete');\n if (!autocomplete2 || sanitize_default(autocomplete2) === '') {\n return false;\n }\n var nodeName2 = virtualNode.props.nodeName;\n if ([ 'textarea', 'input', 'select' ].includes(nodeName2) === false) {\n return false;\n }\n var excludedInputTypes = [ 'submit', 'reset', 'button', 'hidden' ];\n if (nodeName2 === 'input' && excludedInputTypes.includes(virtualNode.props.type)) {\n return false;\n }\n var ariaDisabled = virtualNode.attr('aria-disabled') || 'false';\n if (virtualNode.hasAttr('disabled') || ariaDisabled.toLowerCase() === 'true') {\n return false;\n }\n var role = virtualNode.attr('role');\n var tabIndex = virtualNode.attr('tabindex');\n if (tabIndex === '-1' && role) {\n var roleDef = standards_default.ariaRoles[role];\n if (roleDef === void 0 || roleDef.type !== 'widget') {\n return false;\n }\n }\n if (tabIndex === '-1' && virtualNode.actualNode && !_isVisibleOnScreen(virtualNode) && !_isVisibleToScreenReaders(virtualNode)) {\n return false;\n }\n return true;\n }\n var autocomplete_matches_default = autocompleteMatches;\n function isInitiatorMatches(node, virtualNode, context) {\n return context.initiator;\n }\n var is_initiator_matches_default = isInitiatorMatches;\n function bypassMatches(node, virtualNode, context) {\n if (is_initiator_matches_default(node, virtualNode, context)) {\n return !!node.querySelector('a[href]');\n }\n return true;\n }\n var bypass_matches_default = bypassMatches;\n function colorContrastMatches(node, virtualNode) {\n var _virtualNode$props = virtualNode.props, nodeName2 = _virtualNode$props.nodeName, inputType = _virtualNode$props.type;\n if (nodeName2 === 'option') {\n return false;\n }\n if (nodeName2 === 'select' && !node.options.length) {\n return false;\n }\n var nonTextInput = [ 'hidden', 'range', 'color', 'checkbox', 'radio', 'image' ];\n if (nodeName2 === 'input' && nonTextInput.includes(inputType)) {\n return false;\n }\n if (is_disabled_default(virtualNode) || _isInert(virtualNode)) {\n return false;\n }\n var formElements = [ 'input', 'select', 'textarea' ];\n if (formElements.includes(nodeName2)) {\n var style = window.getComputedStyle(node);\n var textIndent = parseInt(style.getPropertyValue('text-indent'), 10);\n if (textIndent) {\n var rect = node.getBoundingClientRect();\n rect = {\n top: rect.top,\n bottom: rect.bottom,\n left: rect.left + textIndent,\n right: rect.right + textIndent\n };\n if (!visually_overlaps_default(rect, node)) {\n return false;\n }\n }\n return true;\n }\n var nodeParentLabel = find_up_virtual_default(virtualNode, 'label');\n if (nodeName2 === 'label' || nodeParentLabel) {\n var labelNode = nodeParentLabel || node;\n var labelVirtual3 = nodeParentLabel ? get_node_from_tree_default(nodeParentLabel) : virtualNode;\n if (labelNode.htmlFor) {\n var doc = get_root_node_default2(labelNode);\n var explicitControl = doc.getElementById(labelNode.htmlFor);\n var explicitControlVirtual = explicitControl && get_node_from_tree_default(explicitControl);\n if (explicitControlVirtual && is_disabled_default(explicitControlVirtual)) {\n return false;\n }\n }\n var query = 'input:not([type=\"hidden\"],[type=\"image\"],[type=\"button\"],[type=\"submit\"],[type=\"reset\"]), select, textarea';\n var implicitControl = query_selector_all_default(labelVirtual3, query)[0];\n if (implicitControl && is_disabled_default(implicitControl)) {\n return false;\n }\n }\n var ariaLabelledbyControls = [];\n var ancestorNode = virtualNode;\n while (ancestorNode) {\n if (ancestorNode.props.id) {\n var virtualControls = get_accessible_refs_default(ancestorNode).filter(function(control) {\n return token_list_default(control.getAttribute('aria-labelledby') || '').includes(ancestorNode.props.id);\n }).map(function(control) {\n return get_node_from_tree_default(control);\n });\n ariaLabelledbyControls.push.apply(ariaLabelledbyControls, _toConsumableArray(virtualControls));\n }\n ancestorNode = ancestorNode.parent;\n }\n if (ariaLabelledbyControls.length > 0 && ariaLabelledbyControls.every(is_disabled_default)) {\n return false;\n }\n if (!hasRealTextChildren(virtualNode)) {\n return false;\n }\n var range = document.createRange();\n var childNodes = virtualNode.children;\n for (var index = 0; index < childNodes.length; index++) {\n var child = childNodes[index];\n if (child.actualNode.nodeType === 3 && sanitize_default(child.actualNode.nodeValue) !== '') {\n range.selectNodeContents(child.actualNode);\n }\n }\n var rects = range.getClientRects();\n for (var _index2 = 0; _index2 < rects.length; _index2++) {\n if (visually_overlaps_default(rects[_index2], node)) {\n return true;\n }\n }\n return false;\n }\n var color_contrast_matches_default = colorContrastMatches;\n var removeUnicodeOptions = {\n emoji: true,\n nonBmp: false,\n punctuations: true\n };\n function hasRealTextChildren(virtualNode) {\n var visibleText = visible_virtual_default(virtualNode, false, true);\n if (visibleText === '' || remove_unicode_default(visibleText, removeUnicodeOptions) === '') {\n return false;\n }\n return virtualNode.children.some(function(vChild) {\n return vChild.props.nodeName === '#text' && !is_icon_ligature_default(vChild);\n });\n }\n function dataTableLargeMatches(node) {\n if (is_data_table_default(node)) {\n var tableArray = to_grid_default(node);\n return tableArray.length >= 3 && tableArray[0].length >= 3 && tableArray[1].length >= 3 && tableArray[2].length >= 3;\n }\n return false;\n }\n var data_table_large_matches_default = dataTableLargeMatches;\n function dataTableMatches(node) {\n return is_data_table_default(node);\n }\n var data_table_matches_default = dataTableMatches;\n function duplicateIdActiveMatches(node) {\n var id = node.getAttribute('id').trim();\n var idSelector = '*[id=\"'.concat(escape_selector_default(id), '\"]');\n var idMatchingElms = Array.from(get_root_node_default2(node).querySelectorAll(idSelector));\n return !is_accessible_ref_default(node) && idMatchingElms.some(_isFocusable);\n }\n var duplicate_id_active_matches_default = duplicateIdActiveMatches;\n function duplicateIdAriaMatches(node) {\n return is_accessible_ref_default(node);\n }\n var duplicate_id_aria_matches_default = duplicateIdAriaMatches;\n function duplicateIdMiscMatches(node) {\n var id = node.getAttribute('id').trim();\n var idSelector = '*[id=\"'.concat(escape_selector_default(id), '\"]');\n var idMatchingElms = Array.from(get_root_node_default2(node).querySelectorAll(idSelector));\n return !is_accessible_ref_default(node) && idMatchingElms.every(function(elm) {\n return !_isFocusable(elm);\n });\n }\n var duplicate_id_misc_matches_default = duplicateIdMiscMatches;\n function frameFocusableContentMatches(node, virtualNode, context) {\n var _context$size, _context$size2;\n return !context.initiator && !context.focusable && ((_context$size = context.size) === null || _context$size === void 0 ? void 0 : _context$size.width) * ((_context$size2 = context.size) === null || _context$size2 === void 0 ? void 0 : _context$size2.height) > 1;\n }\n var frame_focusable_content_matches_default = frameFocusableContentMatches;\n function frameTitleHasTextMatches(node) {\n var title = node.getAttribute('title');\n return !!sanitize_default(title);\n }\n var frame_title_has_text_matches_default = frameTitleHasTextMatches;\n function hasImplicitChromiumRoleMatches(node, virtualNode) {\n return implicit_role_default(virtualNode, {\n chromium: true\n }) !== null;\n }\n var has_implicit_chromium_role_matches_default = hasImplicitChromiumRoleMatches;\n function headingMatches(node, virtualNode) {\n return get_role_default(virtualNode) === 'heading';\n }\n function svgNamespaceMatches(node, virtualNode) {\n try {\n var nodeName2 = virtualNode.props.nodeName;\n if (nodeName2 === 'svg') {\n return true;\n }\n return !!closest_default(virtualNode, 'svg');\n } catch (e) {\n return false;\n }\n }\n var svg_namespace_matches_default = svgNamespaceMatches;\n function htmlNamespaceMatches(node, virtualNode) {\n return !svg_namespace_matches_default(node, virtualNode);\n }\n var html_namespace_matches_default = htmlNamespaceMatches;\n function identicalLinksSamePurposeMatches(node, virtualNode) {\n var hasAccName = !!accessible_text_virtual_default(virtualNode);\n if (!hasAccName) {\n return false;\n }\n var role = get_role_default(node);\n if (role && role !== 'link') {\n return false;\n }\n return true;\n }\n var identical_links_same_purpose_matches_default = identicalLinksSamePurposeMatches;\n function insertedIntoFocusOrderMatches(node) {\n return inserted_into_focus_order_default(node);\n }\n var inserted_into_focus_order_matches_default = insertedIntoFocusOrderMatches;\n function hasVisibleTextMatches(node) {\n return _isVisibleOnScreen(node);\n }\n function isVisibleOnScreenMatches(node, virtualNode) {\n return _isVisibleOnScreen(virtualNode);\n }\n function labelContentNameMismatchMatches(node, virtualNode) {\n var role = get_role_default(node);\n if (!role) {\n return false;\n }\n var widgetRoles = get_aria_roles_by_type_default('widget');\n var isWidgetType2 = widgetRoles.includes(role);\n if (!isWidgetType2) {\n return false;\n }\n var rolesWithNameFromContents = get_aria_roles_supporting_name_from_content_default();\n if (!rolesWithNameFromContents.includes(role)) {\n return false;\n }\n if (!sanitize_default(arialabel_text_default(virtualNode)) && !sanitize_default(arialabelledby_text_default(node))) {\n return false;\n }\n if (!sanitize_default(visible_virtual_default(virtualNode))) {\n return false;\n }\n return true;\n }\n var label_content_name_mismatch_matches_default = labelContentNameMismatchMatches;\n function labelMatches(node, virtualNode) {\n if (virtualNode.props.nodeName !== 'input' || virtualNode.hasAttr('type') === false) {\n return true;\n }\n var type = virtualNode.attr('type').toLowerCase();\n return [ 'hidden', 'image', 'button', 'submit', 'reset' ].includes(type) === false;\n }\n var label_matches_default = labelMatches;\n function landmarkHasBodyContextMatches(node, virtualNode) {\n var nativeScopeFilter = 'article, aside, main, nav, section';\n return node.hasAttribute('role') || !find_up_virtual_default(virtualNode, nativeScopeFilter);\n }\n var landmark_has_body_context_matches_default = landmarkHasBodyContextMatches;\n function landmarkUniqueMatches(node, virtualNode) {\n var excludedParentsForHeaderFooterLandmarks = [ 'article', 'aside', 'main', 'nav', 'section' ].join(',');\n function isHeaderFooterLandmark(headerFooterElement) {\n return !closest_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);\n }\n function isLandmarkVirtual(virtualNode2) {\n var actualNode = virtualNode2.actualNode;\n var landmarkRoles3 = get_aria_roles_by_type_default('landmark');\n var role = get_role_default(actualNode);\n if (!role) {\n return false;\n }\n var nodeName2 = actualNode.nodeName.toUpperCase();\n if (nodeName2 === 'HEADER' || nodeName2 === 'FOOTER') {\n return isHeaderFooterLandmark(virtualNode2);\n }\n if (nodeName2 === 'SECTION' || nodeName2 === 'FORM') {\n var accessibleText2 = accessible_text_virtual_default(virtualNode2);\n return !!accessibleText2;\n }\n return landmarkRoles3.indexOf(role) >= 0 || role === 'region';\n }\n return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(node);\n }\n var landmark_unique_matches_default = landmarkUniqueMatches;\n function dataTableMatches2(node) {\n return !is_data_table_default(node) && !_isFocusable(node);\n }\n var layout_table_matches_default = dataTableMatches2;\n function linkInTextBlockMatches(node) {\n var text = sanitize_default(node.innerText);\n var role = node.getAttribute('role');\n if (role && role !== 'link') {\n return false;\n }\n if (!text) {\n return false;\n }\n if (!_isVisibleOnScreen(node)) {\n return false;\n }\n return is_in_text_block_default(node);\n }\n var link_in_text_block_matches_default = linkInTextBlockMatches;\n function nestedInteractiveMatches(node, virtualNode) {\n var role = get_role_default(virtualNode);\n if (!role) {\n return false;\n }\n return !!standards_default.ariaRoles[role].childrenPresentational;\n }\n var nested_interactive_matches_default = nestedInteractiveMatches;\n function noAutoplayAudioMatches(node) {\n if (!node.currentSrc) {\n return false;\n }\n if (node.hasAttribute('paused') || node.hasAttribute('muted')) {\n return false;\n }\n return true;\n }\n var no_autoplay_audio_matches_default = noAutoplayAudioMatches;\n function noEmptyRoleMatches(node, virtualNode) {\n if (!virtualNode.hasAttr('role')) {\n return false;\n }\n if (!virtualNode.attr('role').trim()) {\n return false;\n }\n return true;\n }\n var no_empty_role_matches_default = noEmptyRoleMatches;\n function noExplicitNameRequired(node, virtualNode) {\n var role = get_explicit_role_default(virtualNode);\n if (!role || [ 'none', 'presentation' ].includes(role)) {\n return true;\n }\n var _ref116 = aria_roles_default[role] || {}, accessibleNameRequired = _ref116.accessibleNameRequired;\n if (accessibleNameRequired || _isFocusable(virtualNode)) {\n return true;\n }\n return false;\n }\n var no_explicit_name_required_matches_default = noExplicitNameRequired;\n function noNamingMethodMatches(node, virtualNode) {\n var _get_element_spec_def3 = get_element_spec_default(virtualNode), namingMethods = _get_element_spec_def3.namingMethods;\n if (namingMethods && namingMethods.length !== 0) {\n return false;\n }\n if (get_explicit_role_default(virtualNode) === 'combobox' && query_selector_all_default(virtualNode, 'input:not([type=\"hidden\"])').length) {\n return false;\n }\n if (_isComboboxPopup(virtualNode, {\n popupRoles: [ 'listbox' ]\n })) {\n return false;\n }\n return true;\n }\n var no_naming_method_matches_default = noNamingMethodMatches;\n function noNegativeTabindexMatches(node, virtualNode) {\n var tabindex = parseInt(virtualNode.attr('tabindex'), 10);\n return isNaN(tabindex) || tabindex >= 0;\n }\n var no_negative_tabindex_matches_default = noNegativeTabindexMatches;\n function noRoleMatches(node, vNode) {\n return !vNode.attr('role');\n }\n var no_role_matches_default = noRoleMatches;\n function notHtmlMatches(node, virtualNode) {\n return virtualNode.props.nodeName !== 'html';\n }\n var not_html_matches_default = notHtmlMatches;\n var object_is_loaded_matches_default = function object_is_loaded_matches_default(node, vNode) {\n return [ no_explicit_name_required_matches_default, objectHasLoaded ].every(function(fn) {\n return fn(node, vNode);\n });\n };\n function objectHasLoaded(node) {\n var _node$ownerDocument;\n if (!(node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.createRange)) {\n return true;\n }\n var range = node.ownerDocument.createRange();\n range.setStart(node, 0);\n range.setEnd(node, node.childNodes.length);\n return range.getClientRects().length === 0;\n }\n function pAsHeadingMatches(node) {\n var children = Array.from(node.parentNode.childNodes);\n var nodeText = node.textContent.trim();\n var isSentence = /[.!?:;](?![.!?:;])/g;\n if (nodeText.length === 0 || (nodeText.match(isSentence) || []).length >= 2) {\n return false;\n }\n var siblingsAfter = children.slice(children.indexOf(node) + 1).filter(function(elm) {\n return elm.nodeName.toUpperCase() === 'P' && elm.textContent.trim() !== '';\n });\n return siblingsAfter.length !== 0;\n }\n var p_as_heading_matches_default = pAsHeadingMatches;\n function presentationRoleConflictMatches(node, virtualNode) {\n return implicit_role_default(virtualNode, {\n chromiumRoles: true\n }) !== null;\n }\n var presentation_role_conflict_matches_default = presentationRoleConflictMatches;\n function scrollableRegionFocusableMatches(node, virtualNode) {\n return _getScroll(node, 13) !== void 0 && _isComboboxPopup(virtualNode) === false && isNoneEmptyElement(virtualNode);\n }\n function isNoneEmptyElement(vNode) {\n return query_selector_all_default(vNode, '*').some(function(elm) {\n return has_content_virtual_default(elm, true, true);\n });\n }\n function skipLinkMatches(node) {\n return _isSkipLink(node) && is_offscreen_default(node);\n }\n var skip_link_matches_default = skipLinkMatches;\n function tableOrGridRoleMatches(_, vNode) {\n var role = get_role_default(vNode);\n return [ 'treegrid', 'grid', 'table' ].includes(role);\n }\n function widgetNotInline(node, vNode) {\n return matchesFns.every(function(fn) {\n return fn(node, vNode);\n });\n }\n var matchesFns = [ function(node, vNode) {\n return isWidgetType(vNode);\n }, function(node, vNode) {\n return isNotAreaElement(vNode);\n }, function(node, vNode) {\n return !svg_namespace_matches_default(node, vNode);\n }, function(node, vNode) {\n return _isFocusable(vNode);\n }, function(node, vNode) {\n return _isInTabOrder(vNode) || !hasWidgetAncestorInTabOrder(vNode);\n }, function(node) {\n return !is_in_text_block_default(node, {\n noLengthCompare: true\n });\n } ];\n function isWidgetType(vNode) {\n return get_role_type_default(vNode) === 'widget';\n }\n function isNotAreaElement(vNode) {\n return vNode.props.nodeName !== 'area';\n }\n var hasWidgetAncestorInTabOrder = memoize_default(function hasWidgetAncestorInTabOrderMemoized(vNode) {\n if (!(vNode !== null && vNode !== void 0 && vNode.parent)) {\n return false;\n }\n if (isWidgetType(vNode.parent) && _isInTabOrder(vNode.parent)) {\n return true;\n }\n return hasWidgetAncestorInTabOrderMemoized(vNode.parent);\n });\n function windowIsTopMatches(node) {\n return node.ownerDocument.defaultView.self === node.ownerDocument.defaultView.top;\n }\n var window_is_top_matches_default = windowIsTopMatches;\n function xmlLangMismatchMatches(node) {\n var primaryLangValue = get_base_lang_default(node.getAttribute('lang'));\n var primaryXmlLangValue = get_base_lang_default(node.getAttribute('xml:lang'));\n return valid_langs_default(primaryLangValue) && valid_langs_default(primaryXmlLangValue);\n }\n var xml_lang_mismatch_matches_default = xmlLangMismatchMatches;\n var metadataFunctionMap = {\n 'abstractrole-evaluate': abstractrole_evaluate_default,\n 'accesskeys-after': accesskeys_after_default,\n 'accesskeys-evaluate': accesskeys_evaluate_default,\n 'alt-space-value-evaluate': alt_space_value_evaluate_default,\n 'aria-allowed-attr-evaluate': ariaAllowedAttrEvaluate,\n 'aria-allowed-attr-matches': aria_allowed_attr_matches_default,\n 'aria-allowed-role-evaluate': aria_allowed_role_evaluate_default,\n 'aria-allowed-role-matches': aria_allowed_role_matches_default,\n 'aria-busy-evaluate': ariaBusyEvaluate,\n 'aria-errormessage-evaluate': aria_errormessage_evaluate_default,\n 'aria-has-attr-matches': aria_has_attr_matches_default,\n 'aria-hidden-body-evaluate': aria_hidden_body_evaluate_default,\n 'aria-hidden-focus-matches': aria_hidden_focus_matches_default,\n 'aria-label-evaluate': aria_label_evaluate_default,\n 'aria-labelledby-evaluate': aria_labelledby_evaluate_default,\n 'aria-level-evaluate': aria_level_evaluate_default,\n 'aria-prohibited-attr-evaluate': ariaProhibitedAttrEvaluate,\n 'aria-required-attr-evaluate': ariaRequiredAttrEvaluate,\n 'aria-required-children-evaluate': ariaRequiredChildrenEvaluate,\n 'aria-required-children-matches': aria_required_children_matches_default,\n 'aria-required-parent-evaluate': aria_required_parent_evaluate_default,\n 'aria-required-parent-matches': aria_required_parent_matches_default,\n 'aria-roledescription-evaluate': aria_roledescription_evaluate_default,\n 'aria-unsupported-attr-evaluate': aria_unsupported_attr_evaluate_default,\n 'aria-valid-attr-evaluate': aria_valid_attr_evaluate_default,\n 'aria-valid-attr-value-evaluate': ariaValidAttrValueEvaluate,\n 'attr-non-space-content-evaluate': attr_non_space_content_evaluate_default,\n 'autocomplete-appropriate-evaluate': autocomplete_appropriate_evaluate_default,\n 'autocomplete-matches': autocomplete_matches_default,\n 'autocomplete-valid-evaluate': autocomplete_valid_evaluate_default,\n 'avoid-inline-spacing-evaluate': avoid_inline_spacing_evaluate_default,\n 'bypass-matches': bypass_matches_default,\n 'caption-evaluate': caption_evaluate_default,\n 'caption-faked-evaluate': caption_faked_evaluate_default,\n 'color-contrast-evaluate': colorContrastEvaluate,\n 'color-contrast-matches': color_contrast_matches_default,\n 'css-orientation-lock-evaluate': css_orientation_lock_evaluate_default,\n 'data-table-large-matches': data_table_large_matches_default,\n 'data-table-matches': data_table_matches_default,\n 'deprecatedrole-evaluate': deprecatedroleEvaluate,\n 'dlitem-evaluate': dlitem_evaluate_default,\n 'doc-has-title-evaluate': doc_has_title_evaluate_default,\n 'duplicate-id-active-matches': duplicate_id_active_matches_default,\n 'duplicate-id-after': duplicate_id_after_default,\n 'duplicate-id-aria-matches': duplicate_id_aria_matches_default,\n 'duplicate-id-evaluate': duplicate_id_evaluate_default,\n 'duplicate-id-misc-matches': duplicate_id_misc_matches_default,\n 'duplicate-img-label-evaluate': duplicate_img_label_evaluate_default,\n 'exists-evaluate': exists_evaluate_default,\n 'explicit-evaluate': explicit_evaluate_default,\n 'fallbackrole-evaluate': fallbackrole_evaluate_default,\n 'focusable-content-evaluate': focusable_content_evaluate_default,\n 'focusable-disabled-evaluate': focusable_disabled_evaluate_default,\n 'focusable-element-evaluate': focusable_element_evaluate_default,\n 'focusable-modal-open-evaluate': focusable_modal_open_evaluate_default,\n 'focusable-no-name-evaluate': focusable_no_name_evaluate_default,\n 'focusable-not-tabbable-evaluate': focusable_not_tabbable_evaluate_default,\n 'frame-focusable-content-evaluate': frameFocusableContentEvaluate,\n 'frame-focusable-content-matches': frame_focusable_content_matches_default,\n 'frame-tested-after': frame_tested_after_default,\n 'frame-tested-evaluate': frame_tested_evaluate_default,\n 'frame-title-has-text-matches': frame_title_has_text_matches_default,\n 'has-alt-evaluate': has_alt_evaluate_default,\n 'has-descendant-after': has_descendant_after_default,\n 'has-descendant-evaluate': has_descendant_evaluate_default,\n 'has-global-aria-attribute-evaluate': has_global_aria_attribute_evaluate_default,\n 'has-implicit-chromium-role-matches': has_implicit_chromium_role_matches_default,\n 'has-lang-evaluate': has_lang_evaluate_default,\n 'has-text-content-evaluate': hasTextContentEvaluate,\n 'has-widget-role-evaluate': has_widget_role_evaluate_default,\n 'heading-matches': headingMatches,\n 'heading-order-after': headingOrderAfter,\n 'heading-order-evaluate': heading_order_evaluate_default,\n 'help-same-as-label-evaluate': help_same_as_label_evaluate_default,\n 'hidden-content-evaluate': hidden_content_evaluate_default,\n 'hidden-explicit-label-evaluate': hidden_explicit_label_evaluate_default,\n 'html-namespace-matches': html_namespace_matches_default,\n 'html5-scope-evaluate': html5_scope_evaluate_default,\n 'identical-links-same-purpose-after': identical_links_same_purpose_after_default,\n 'identical-links-same-purpose-evaluate': identical_links_same_purpose_evaluate_default,\n 'identical-links-same-purpose-matches': identical_links_same_purpose_matches_default,\n 'implicit-evaluate': implicit_evaluate_default,\n 'inline-style-property-evaluate': inlineStyleProperty,\n 'inserted-into-focus-order-matches': inserted_into_focus_order_matches_default,\n 'internal-link-present-evaluate': internal_link_present_evaluate_default,\n 'invalid-children-evaluate': invalidChildrenEvaluate,\n 'invalidrole-evaluate': invalidrole_evaluate_default,\n 'is-element-focusable-evaluate': is_element_focusable_evaluate_default,\n 'is-initiator-matches': is_initiator_matches_default,\n 'is-on-screen-evaluate': is_on_screen_evaluate_default,\n 'is-visible-matches': hasVisibleTextMatches,\n 'is-visible-on-screen-matches': isVisibleOnScreenMatches,\n 'label-content-name-mismatch-evaluate': label_content_name_mismatch_evaluate_default,\n 'label-content-name-mismatch-matches': label_content_name_mismatch_matches_default,\n 'label-matches': label_matches_default,\n 'landmark-has-body-context-matches': landmark_has_body_context_matches_default,\n 'landmark-is-top-level-evaluate': landmark_is_top_level_evaluate_default,\n 'landmark-is-unique-after': landmark_is_unique_after_default,\n 'landmark-is-unique-evaluate': landmark_is_unique_evaluate_default,\n 'landmark-unique-matches': landmark_unique_matches_default,\n 'layout-table-matches': layout_table_matches_default,\n 'link-in-text-block-evaluate': link_in_text_block_evaluate_default,\n 'link-in-text-block-matches': link_in_text_block_matches_default,\n 'link-in-text-block-style-evaluate': link_in_text_block_style_evaluate_default,\n 'listitem-evaluate': listitemEvaluate,\n 'matches-definition-evaluate': matches_definition_evaluate_default,\n 'meta-refresh-evaluate': metaRefreshEvaluate,\n 'meta-viewport-scale-evaluate': meta_viewport_scale_evaluate_default,\n 'multiple-label-evaluate': multiple_label_evaluate_default,\n 'nested-interactive-matches': nested_interactive_matches_default,\n 'no-autoplay-audio-evaluate': no_autoplay_audio_evaluate_default,\n 'no-autoplay-audio-matches': no_autoplay_audio_matches_default,\n 'no-empty-role-matches': no_empty_role_matches_default,\n 'no-explicit-name-required-matches': no_explicit_name_required_matches_default,\n 'no-focusable-content-evaluate': noFocusableContentEvaluate,\n 'no-implicit-explicit-label-evaluate': no_implicit_explicit_label_evaluate_default,\n 'no-naming-method-matches': no_naming_method_matches_default,\n 'no-negative-tabindex-matches': no_negative_tabindex_matches_default,\n 'no-role-matches': no_role_matches_default,\n 'non-empty-if-present-evaluate': non_empty_if_present_evaluate_default,\n 'not-html-matches': not_html_matches_default,\n 'object-is-loaded-matches': object_is_loaded_matches_default,\n 'only-dlitems-evaluate': only_dlitems_evaluate_default,\n 'only-listitems-evaluate': only_listitems_evaluate_default,\n 'p-as-heading-evaluate': p_as_heading_evaluate_default,\n 'p-as-heading-matches': p_as_heading_matches_default,\n 'page-no-duplicate-after': page_no_duplicate_after_default,\n 'page-no-duplicate-evaluate': page_no_duplicate_evaluate_default,\n 'presentation-role-conflict-matches': presentation_role_conflict_matches_default,\n 'presentational-role-evaluate': presentationalRoleEvaluate,\n 'region-after': region_after_default,\n 'region-evaluate': regionEvaluate,\n 'same-caption-summary-evaluate': same_caption_summary_evaluate_default,\n 'scope-value-evaluate': scope_value_evaluate_default,\n 'scrollable-region-focusable-matches': scrollableRegionFocusableMatches,\n 'skip-link-evaluate': skip_link_evaluate_default,\n 'skip-link-matches': skip_link_matches_default,\n 'structured-dlitems-evaluate': structured_dlitems_evaluate_default,\n 'svg-namespace-matches': svg_namespace_matches_default,\n 'svg-non-empty-title-evaluate': svg_non_empty_title_evaluate_default,\n 'tabindex-evaluate': tabindex_evaluate_default,\n 'table-or-grid-role-matches': tableOrGridRoleMatches,\n 'target-offset-evaluate': targetOffsetEvaluate,\n 'target-size-evaluate': targetSize,\n 'td-has-header-evaluate': td_has_header_evaluate_default,\n 'td-headers-attr-evaluate': td_headers_attr_evaluate_default,\n 'th-has-data-cells-evaluate': th_has_data_cells_evaluate_default,\n 'title-only-evaluate': title_only_evaluate_default,\n 'unique-frame-title-after': unique_frame_title_after_default,\n 'unique-frame-title-evaluate': unique_frame_title_evaluate_default,\n 'unsupportedrole-evaluate': unsupportedrole_evaluate_default,\n 'valid-lang-evaluate': valid_lang_evaluate_default,\n 'valid-scrollable-semantics-evaluate': valid_scrollable_semantics_evaluate_default,\n 'widget-not-inline-matches': widgetNotInline,\n 'window-is-top-matches': window_is_top_matches_default,\n 'xml-lang-mismatch-evaluate': xml_lang_mismatch_evaluate_default,\n 'xml-lang-mismatch-matches': xml_lang_mismatch_matches_default\n };\n var metadata_function_map_default = metadataFunctionMap;\n function CheckResult(check) {\n this.id = check.id;\n this.data = null;\n this.relatedNodes = [];\n this.result = null;\n }\n var check_result_default = CheckResult;\n function createExecutionContext(spec) {\n if (typeof spec === 'string') {\n if (metadata_function_map_default[spec]) {\n return metadata_function_map_default[spec];\n }\n if (/^\\s*function[\\s\\w]*\\(/.test(spec)) {\n return new Function('return ' + spec + ';')();\n }\n throw new ReferenceError('Function ID does not exist in the metadata-function-map: '.concat(spec));\n }\n return spec;\n }\n function normalizeOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (Array.isArray(options) || _typeof(options) !== 'object') {\n options = {\n value: options\n };\n }\n return options;\n }\n function Check(spec) {\n if (spec) {\n this.id = spec.id;\n this.configure(spec);\n }\n }\n Check.prototype.enabled = true;\n Check.prototype.run = function run(node, options, context, resolve, reject) {\n options = options || {};\n var enabled = options.hasOwnProperty('enabled') ? options.enabled : this.enabled;\n var checkOptions = this.getOptions(options.options);\n if (enabled) {\n var checkResult = new check_result_default(this);\n var helper = check_helper_default(checkResult, options, resolve, reject);\n var result;\n try {\n result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);\n } catch (e) {\n if (node && node.actualNode) {\n e.errorNode = new dq_element_default(node).toJSON();\n }\n reject(e);\n return;\n }\n if (!helper.isAsync) {\n checkResult.result = result;\n resolve(checkResult);\n }\n } else {\n resolve(null);\n }\n };\n Check.prototype.runSync = function runSync(node, options, context) {\n options = options || {};\n var _options = options, _options$enabled = _options.enabled, enabled = _options$enabled === void 0 ? this.enabled : _options$enabled;\n if (!enabled) {\n return null;\n }\n var checkOptions = this.getOptions(options.options);\n var checkResult = new check_result_default(this);\n var helper = check_helper_default(checkResult, options);\n helper.async = function async() {\n throw new Error('Cannot run async check while in a synchronous run');\n };\n var result;\n try {\n result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);\n } catch (e) {\n if (node && node.actualNode) {\n e.errorNode = new dq_element_default(node).toJSON();\n }\n throw e;\n }\n checkResult.result = result;\n return checkResult;\n };\n Check.prototype.configure = function configure2(spec) {\n var _this5 = this;\n if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {\n this._internalCheck = true;\n }\n if (spec.hasOwnProperty('enabled')) {\n this.enabled = spec.enabled;\n }\n if (spec.hasOwnProperty('options')) {\n if (this._internalCheck) {\n this.options = normalizeOptions(spec.options);\n } else {\n this.options = spec.options;\n }\n }\n [ 'evaluate', 'after' ].filter(function(prop) {\n return spec.hasOwnProperty(prop);\n }).forEach(function(prop) {\n return _this5[prop] = createExecutionContext(spec[prop]);\n });\n };\n Check.prototype.getOptions = function getOptions(options) {\n if (this._internalCheck) {\n return deep_merge_default(this.options, normalizeOptions(options || {}));\n } else {\n return options || this.options;\n }\n };\n var check_default = Check;\n function RuleResult(rule) {\n this.id = rule.id;\n this.result = constants_default.NA;\n this.pageLevel = rule.pageLevel;\n this.impact = null;\n this.nodes = [];\n }\n var rule_result_default = RuleResult;\n function Rule(spec, parentAudit) {\n this._audit = parentAudit;\n this.id = spec.id;\n this.selector = spec.selector || '*';\n if (spec.impact) {\n assert_default(constants_default.impact.includes(spec.impact), 'Impact '.concat(spec.impact, ' is not a valid impact'));\n this.impact = spec.impact;\n }\n this.excludeHidden = typeof spec.excludeHidden === 'boolean' ? spec.excludeHidden : true;\n this.enabled = typeof spec.enabled === 'boolean' ? spec.enabled : true;\n this.pageLevel = typeof spec.pageLevel === 'boolean' ? spec.pageLevel : false;\n this.reviewOnFail = typeof spec.reviewOnFail === 'boolean' ? spec.reviewOnFail : false;\n this.any = spec.any || [];\n this.all = spec.all || [];\n this.none = spec.none || [];\n this.tags = spec.tags || [];\n this.preload = spec.preload ? true : false;\n this.actIds = spec.actIds;\n if (spec.matches) {\n this.matches = createExecutionContext(spec.matches);\n }\n }\n Rule.prototype.matches = function matches3() {\n return true;\n };\n Rule.prototype.gather = function gather(context) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var markStart = 'mark_gather_start_' + this.id;\n var markEnd = 'mark_gather_end_' + this.id;\n var markHiddenStart = 'mark_isVisibleToScreenReaders_start_' + this.id;\n var markHiddenEnd = 'mark_isVisibleToScreenReaders_end_' + this.id;\n if (options.performanceTimer) {\n performance_timer_default.mark(markStart);\n }\n var elements = _select(this.selector, context);\n if (this.excludeHidden) {\n if (options.performanceTimer) {\n performance_timer_default.mark(markHiddenStart);\n }\n elements = elements.filter(function(element) {\n return _isVisibleToScreenReaders(element);\n });\n if (options.performanceTimer) {\n performance_timer_default.mark(markHiddenEnd);\n performance_timer_default.measure('rule_' + this.id + '#gather_axe.utils.isVisibleToScreenReaders', markHiddenStart, markHiddenEnd);\n }\n }\n if (options.performanceTimer) {\n performance_timer_default.mark(markEnd);\n performance_timer_default.measure('rule_' + this.id + '#gather', markStart, markEnd);\n }\n return elements;\n };\n Rule.prototype.runChecks = function runChecks(type, node, options, context, resolve, reject) {\n var self2 = this;\n var checkQueue = queue_default();\n this[type].forEach(function(c) {\n var check = self2._audit.checks[c.id || c];\n var option = get_check_option_default(check, self2.id, options);\n checkQueue.defer(function(res, rej) {\n check.run(node, option, context, res, rej);\n });\n });\n checkQueue.then(function(results) {\n results = results.filter(function(check) {\n return check;\n });\n resolve({\n type: type,\n results: results\n });\n })['catch'](reject);\n };\n Rule.prototype.runChecksSync = function runChecksSync(type, node, options, context) {\n var self2 = this;\n var results = [];\n this[type].forEach(function(c) {\n var check = self2._audit.checks[c.id || c];\n var option = get_check_option_default(check, self2.id, options);\n results.push(check.runSync(node, option, context));\n });\n results = results.filter(function(check) {\n return check;\n });\n return {\n type: type,\n results: results\n };\n };\n Rule.prototype.run = function run2(context) {\n var _this6 = this;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var resolve = arguments.length > 2 ? arguments[2] : undefined;\n var reject = arguments.length > 3 ? arguments[3] : undefined;\n if (options.performanceTimer) {\n this._trackPerformance();\n }\n var q = queue_default();\n var ruleResult = new rule_result_default(this);\n var nodes;\n try {\n nodes = this.gatherAndMatchNodes(context, options);\n } catch (error) {\n reject(new SupportError({\n cause: error,\n ruleId: this.id\n }));\n return;\n }\n if (options.performanceTimer) {\n this._logGatherPerformance(nodes);\n }\n nodes.forEach(function(node) {\n q.defer(function(resolveNode, rejectNode) {\n var checkQueue = queue_default();\n [ 'any', 'all', 'none' ].forEach(function(type) {\n checkQueue.defer(function(res, rej) {\n _this6.runChecks(type, node, options, context, res, rej);\n });\n });\n checkQueue.then(function(results) {\n var result = getResult(results);\n if (result) {\n result.node = new dq_element_default(node, options);\n ruleResult.nodes.push(result);\n if (_this6.reviewOnFail) {\n [ 'any', 'all' ].forEach(function(type) {\n result[type].forEach(function(checkResult) {\n if (checkResult.result === false) {\n checkResult.result = void 0;\n }\n });\n });\n result.none.forEach(function(checkResult) {\n if (checkResult.result === true) {\n checkResult.result = void 0;\n }\n });\n }\n }\n resolveNode();\n })['catch'](function(err2) {\n return rejectNode(err2);\n });\n });\n });\n q.defer(function(resolve2) {\n return setTimeout(resolve2, 0);\n });\n if (options.performanceTimer) {\n this._logRulePerformance();\n }\n q.then(function() {\n return resolve(ruleResult);\n })['catch'](function(error) {\n return reject(error);\n });\n };\n Rule.prototype.runSync = function runSync2(context) {\n var _this7 = this;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (options.performanceTimer) {\n this._trackPerformance();\n }\n var ruleResult = new rule_result_default(this);\n var nodes;\n try {\n nodes = this.gatherAndMatchNodes(context, options);\n } catch (error) {\n throw new SupportError({\n cause: error,\n ruleId: this.id\n });\n }\n if (options.performanceTimer) {\n this._logGatherPerformance(nodes);\n }\n nodes.forEach(function(node) {\n var results = [];\n [ 'any', 'all', 'none' ].forEach(function(type) {\n results.push(_this7.runChecksSync(type, node, options, context));\n });\n var result = getResult(results);\n if (result) {\n result.node = node.actualNode ? new dq_element_default(node, options) : null;\n ruleResult.nodes.push(result);\n if (_this7.reviewOnFail) {\n [ 'any', 'all' ].forEach(function(type) {\n result[type].forEach(function(checkResult) {\n if (checkResult.result === false) {\n checkResult.result = void 0;\n }\n });\n });\n result.none.forEach(function(checkResult) {\n if (checkResult.result === true) {\n checkResult.result = void 0;\n }\n });\n }\n }\n });\n if (options.performanceTimer) {\n this._logRulePerformance();\n }\n return ruleResult;\n };\n Rule.prototype._trackPerformance = function _trackPerformance() {\n this._markStart = 'mark_rule_start_' + this.id;\n this._markEnd = 'mark_rule_end_' + this.id;\n this._markChecksStart = 'mark_runchecks_start_' + this.id;\n this._markChecksEnd = 'mark_runchecks_end_' + this.id;\n };\n Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {\n log_default('gather (', nodes.length, '):', performance_timer_default.timeElapsed() + 'ms');\n performance_timer_default.mark(this._markChecksStart);\n };\n Rule.prototype._logRulePerformance = function _logRulePerformance() {\n performance_timer_default.mark(this._markChecksEnd);\n performance_timer_default.mark(this._markEnd);\n performance_timer_default.measure('runchecks_' + this.id, this._markChecksStart, this._markChecksEnd);\n performance_timer_default.measure('rule_' + this.id, this._markStart, this._markEnd);\n };\n function getResult(results) {\n if (results.length) {\n var hasResults = false;\n var result = {};\n results.forEach(function(r) {\n var res = r.results.filter(function(result2) {\n return result2;\n });\n result[r.type] = res;\n if (res.length) {\n hasResults = true;\n }\n });\n if (hasResults) {\n return result;\n }\n return null;\n }\n }\n Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {\n var _this8 = this;\n var markMatchesStart = 'mark_matches_start_' + this.id;\n var markMatchesEnd = 'mark_matches_end_' + this.id;\n var nodes = this.gather(context, options);\n if (options.performanceTimer) {\n performance_timer_default.mark(markMatchesStart);\n }\n nodes = nodes.filter(function(node) {\n return _this8.matches(node.actualNode, node, context);\n });\n if (options.performanceTimer) {\n performance_timer_default.mark(markMatchesEnd);\n performance_timer_default.measure('rule_' + this.id + '#matches', markMatchesStart, markMatchesEnd);\n }\n return nodes;\n };\n function findAfterChecks(rule) {\n return get_all_checks_default(rule).map(function(c) {\n var check = rule._audit.checks[c.id || c];\n return check && typeof check.after === 'function' ? check : null;\n }).filter(Boolean);\n }\n function findCheckResults(nodes, checkID) {\n var checkResults = [];\n nodes.forEach(function(nodeResult) {\n var checks = get_all_checks_default(nodeResult);\n checks.forEach(function(checkResult) {\n if (checkResult.id === checkID) {\n checkResult.node = nodeResult.node;\n checkResults.push(checkResult);\n }\n });\n });\n return checkResults;\n }\n function filterChecks(checks) {\n return checks.filter(function(check) {\n return check.filtered !== true;\n });\n }\n function sanitizeNodes(result) {\n var checkTypes2 = [ 'any', 'all', 'none' ];\n var nodes = result.nodes.filter(function(detail) {\n var length = 0;\n checkTypes2.forEach(function(type) {\n detail[type] = filterChecks(detail[type]);\n length += detail[type].length;\n });\n return length > 0;\n });\n if (result.pageLevel && nodes.length) {\n nodes = [ nodes.reduce(function(a, b) {\n if (a) {\n checkTypes2.forEach(function(type) {\n a[type].push.apply(a[type], b[type]);\n });\n return a;\n }\n }) ];\n }\n return nodes;\n }\n Rule.prototype.after = function after(result, options) {\n var _this9 = this;\n var afterChecks = findAfterChecks(this);\n var ruleID = this.id;\n afterChecks.forEach(function(check) {\n var beforeResults = findCheckResults(result.nodes, check.id);\n var option = get_check_option_default(check, ruleID, options);\n var afterResults = check.after(beforeResults, option);\n if (_this9.reviewOnFail) {\n afterResults.forEach(function(checkResult) {\n var changeAnyAllResults = (_this9.any.includes(checkResult.id) || _this9.all.includes(checkResult.id)) && checkResult.result === false;\n var changeNoneResult = _this9.none.includes(checkResult.id) && checkResult.result === true;\n if (changeAnyAllResults || changeNoneResult) {\n checkResult.result = void 0;\n }\n });\n }\n beforeResults.forEach(function(item) {\n delete item.node;\n if (afterResults.indexOf(item) === -1) {\n item.filtered = true;\n }\n });\n });\n result.nodes = sanitizeNodes(result);\n return result;\n };\n Rule.prototype.configure = function configure3(spec) {\n if (spec.hasOwnProperty('selector')) {\n this.selector = spec.selector;\n }\n if (spec.hasOwnProperty('excludeHidden')) {\n this.excludeHidden = typeof spec.excludeHidden === 'boolean' ? spec.excludeHidden : true;\n }\n if (spec.hasOwnProperty('enabled')) {\n this.enabled = typeof spec.enabled === 'boolean' ? spec.enabled : true;\n }\n if (spec.hasOwnProperty('pageLevel')) {\n this.pageLevel = typeof spec.pageLevel === 'boolean' ? spec.pageLevel : false;\n }\n if (spec.hasOwnProperty('reviewOnFail')) {\n this.reviewOnFail = typeof spec.reviewOnFail === 'boolean' ? spec.reviewOnFail : false;\n }\n if (spec.hasOwnProperty('any')) {\n this.any = spec.any;\n }\n if (spec.hasOwnProperty('all')) {\n this.all = spec.all;\n }\n if (spec.hasOwnProperty('none')) {\n this.none = spec.none;\n }\n if (spec.hasOwnProperty('tags')) {\n this.tags = spec.tags;\n }\n if (spec.hasOwnProperty('actIds')) {\n this.actIds = spec.actIds;\n }\n if (spec.hasOwnProperty('matches')) {\n this.matches = createExecutionContext(spec.matches);\n }\n if (spec.impact) {\n assert_default(constants_default.impact.includes(spec.impact), 'Impact '.concat(spec.impact, ' is not a valid impact'));\n this.impact = spec.impact;\n }\n };\n var rule_default = Rule;\n var import_dot2 = __toModule(require_doT());\n var dotRegex = /\\{\\{.+?\\}\\}/g;\n function getDefaultOrigin() {\n if (window.origin && window.origin !== 'null') {\n return window.origin;\n }\n if (window.location && window.location.origin && window.location.origin !== 'null') {\n return window.location.origin;\n }\n }\n function getDefaultConfiguration(audit) {\n var config;\n if (audit) {\n config = clone_default(audit);\n config.commons = audit.commons;\n } else {\n config = {};\n }\n config.reporter = config.reporter || null;\n config.noHtml = config.noHtml || false;\n if (!config.allowedOrigins) {\n var defaultOrigin = getDefaultOrigin();\n config.allowedOrigins = defaultOrigin ? [ defaultOrigin ] : [];\n }\n config.rules = config.rules || [];\n config.checks = config.checks || [];\n config.data = _extends({\n checks: {},\n rules: {}\n }, config.data);\n return config;\n }\n function unpackToObject(collection, audit, method) {\n var i, l;\n for (i = 0, l = collection.length; i < l; i++) {\n audit[method](collection[i]);\n }\n }\n var mergeCheckLocale = function mergeCheckLocale(a, b) {\n var pass = b.pass, fail = b.fail;\n if (typeof pass === 'string' && dotRegex.test(pass)) {\n pass = import_dot2['default'].compile(pass);\n }\n if (typeof fail === 'string' && dotRegex.test(fail)) {\n fail = import_dot2['default'].compile(fail);\n }\n return _extends({}, a, {\n messages: {\n pass: pass || a.messages.pass,\n fail: fail || a.messages.fail,\n incomplete: _typeof(a.messages.incomplete) === 'object' ? _extends({}, a.messages.incomplete, b.incomplete) : b.incomplete\n }\n });\n };\n var mergeRuleLocale = function mergeRuleLocale(a, b) {\n var help = b.help, description = b.description;\n if (typeof help === 'string' && dotRegex.test(help)) {\n help = import_dot2['default'].compile(help);\n }\n if (typeof description === 'string' && dotRegex.test(description)) {\n description = import_dot2['default'].compile(description);\n }\n return _extends({}, a, {\n help: help || a.help,\n description: description || a.description\n });\n };\n var mergeFailureMessage = function mergeFailureMessage(a, b) {\n var failureMessage = b.failureMessage;\n if (typeof failureMessage === 'string' && dotRegex.test(failureMessage)) {\n failureMessage = import_dot2['default'].compile(failureMessage);\n }\n return _extends({}, a, {\n failureMessage: failureMessage || a.failureMessage\n });\n };\n var mergeFallbackMessage = function mergeFallbackMessage(a, b) {\n if (typeof b === 'string' && dotRegex.test(b)) {\n b = import_dot2['default'].compile(b);\n }\n return b || a;\n };\n var Audit = function() {\n function Audit(audit) {\n _classCallCheck(this, Audit);\n this.lang = 'en';\n this.defaultConfig = audit;\n this.standards = standards_default;\n this._init();\n this._defaultLocale = null;\n }\n _createClass(Audit, [ {\n key: '_setDefaultLocale',\n value: function _setDefaultLocale() {\n if (this._defaultLocale) {\n return;\n }\n var locale = {\n checks: {},\n rules: {},\n failureSummaries: {},\n incompleteFallbackMessage: '',\n lang: this.lang\n };\n var checkIDs = Object.keys(this.data.checks);\n for (var _i30 = 0; _i30 < checkIDs.length; _i30++) {\n var id = checkIDs[_i30];\n var check = this.data.checks[id];\n var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;\n locale.checks[id] = {\n pass: pass,\n fail: fail,\n incomplete: incomplete\n };\n }\n var ruleIDs = Object.keys(this.data.rules);\n for (var _i31 = 0; _i31 < ruleIDs.length; _i31++) {\n var _id = ruleIDs[_i31];\n var rule = this.data.rules[_id];\n var description = rule.description, help = rule.help;\n locale.rules[_id] = {\n description: description,\n help: help\n };\n }\n var failureSummaries = Object.keys(this.data.failureSummaries);\n for (var _i32 = 0; _i32 < failureSummaries.length; _i32++) {\n var type = failureSummaries[_i32];\n var failureSummary2 = this.data.failureSummaries[type];\n var failureMessage = failureSummary2.failureMessage;\n locale.failureSummaries[type] = {\n failureMessage: failureMessage\n };\n }\n locale.incompleteFallbackMessage = this.data.incompleteFallbackMessage;\n this._defaultLocale = locale;\n }\n }, {\n key: '_resetLocale',\n value: function _resetLocale() {\n var defaultLocale = this._defaultLocale;\n if (!defaultLocale) {\n return;\n }\n this.applyLocale(defaultLocale);\n }\n }, {\n key: '_applyCheckLocale',\n value: function _applyCheckLocale(checks) {\n var keys = Object.keys(checks);\n for (var _i33 = 0; _i33 < keys.length; _i33++) {\n var id = keys[_i33];\n if (!this.data.checks[id]) {\n throw new Error('Locale provided for unknown check: \"'.concat(id, '\"'));\n }\n this.data.checks[id] = mergeCheckLocale(this.data.checks[id], checks[id]);\n }\n }\n }, {\n key: '_applyRuleLocale',\n value: function _applyRuleLocale(rules) {\n var keys = Object.keys(rules);\n for (var _i34 = 0; _i34 < keys.length; _i34++) {\n var id = keys[_i34];\n if (!this.data.rules[id]) {\n throw new Error('Locale provided for unknown rule: \"'.concat(id, '\"'));\n }\n this.data.rules[id] = mergeRuleLocale(this.data.rules[id], rules[id]);\n }\n }\n }, {\n key: '_applyFailureSummaries',\n value: function _applyFailureSummaries(messages) {\n var keys = Object.keys(messages);\n for (var _i35 = 0; _i35 < keys.length; _i35++) {\n var key = keys[_i35];\n if (!this.data.failureSummaries[key]) {\n throw new Error('Locale provided for unknown failureMessage: \"'.concat(key, '\"'));\n }\n this.data.failureSummaries[key] = mergeFailureMessage(this.data.failureSummaries[key], messages[key]);\n }\n }\n }, {\n key: 'applyLocale',\n value: function applyLocale(locale) {\n this._setDefaultLocale();\n if (locale.checks) {\n this._applyCheckLocale(locale.checks);\n }\n if (locale.rules) {\n this._applyRuleLocale(locale.rules);\n }\n if (locale.failureSummaries) {\n this._applyFailureSummaries(locale.failureSummaries, 'failureSummaries');\n }\n if (locale.incompleteFallbackMessage) {\n this.data.incompleteFallbackMessage = mergeFallbackMessage(this.data.incompleteFallbackMessage, locale.incompleteFallbackMessage);\n }\n if (locale.lang) {\n this.lang = locale.lang;\n }\n }\n }, {\n key: 'setAllowedOrigins',\n value: function setAllowedOrigins(allowedOrigins) {\n var defaultOrigin = getDefaultOrigin();\n this.allowedOrigins = [];\n var _iterator12 = _createForOfIteratorHelper(allowedOrigins), _step12;\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {\n var origin = _step12.value;\n if (origin === constants_default.allOrigins) {\n this.allowedOrigins = [ '*' ];\n return;\n } else if (origin !== constants_default.sameOrigin) {\n this.allowedOrigins.push(origin);\n } else if (defaultOrigin) {\n this.allowedOrigins.push(defaultOrigin);\n }\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n }\n }, {\n key: '_init',\n value: function _init() {\n var audit = getDefaultConfiguration(this.defaultConfig);\n this.lang = audit.lang || 'en';\n this.reporter = audit.reporter;\n this.commands = {};\n this.rules = [];\n this.checks = {};\n this.brand = 'axe';\n this.application = 'axeAPI';\n this.tagExclude = [ 'experimental' ];\n this.noHtml = audit.noHtml;\n this.allowedOrigins = audit.allowedOrigins;\n unpackToObject(audit.rules, this, 'addRule');\n unpackToObject(audit.checks, this, 'addCheck');\n this.data = {};\n this.data.checks = audit.data && audit.data.checks || {};\n this.data.rules = audit.data && audit.data.rules || {};\n this.data.failureSummaries = audit.data && audit.data.failureSummaries || {};\n this.data.incompleteFallbackMessage = audit.data && audit.data.incompleteFallbackMessage || '';\n this._constructHelpUrls();\n }\n }, {\n key: 'registerCommand',\n value: function registerCommand(command) {\n this.commands[command.id] = command.callback;\n }\n }, {\n key: 'addRule',\n value: function addRule(spec) {\n if (spec.metadata) {\n this.data.rules[spec.id] = spec.metadata;\n }\n var rule = this.getRule(spec.id);\n if (rule) {\n rule.configure(spec);\n } else {\n this.rules.push(new rule_default(spec, this));\n }\n }\n }, {\n key: 'addCheck',\n value: function addCheck(spec) {\n var metadata = spec.metadata;\n if (_typeof(metadata) === 'object') {\n this.data.checks[spec.id] = metadata;\n if (_typeof(metadata.messages) === 'object') {\n Object.keys(metadata.messages).filter(function(prop) {\n return metadata.messages.hasOwnProperty(prop) && typeof metadata.messages[prop] === 'string';\n }).forEach(function(prop) {\n if (metadata.messages[prop].indexOf('function') === 0) {\n metadata.messages[prop] = new Function('return ' + metadata.messages[prop] + ';')();\n }\n });\n }\n }\n if (this.checks[spec.id]) {\n this.checks[spec.id].configure(spec);\n } else {\n this.checks[spec.id] = new check_default(spec);\n }\n }\n }, {\n key: 'run',\n value: function run(context, options, resolve, reject) {\n this.normalizeOptions(options);\n axe._selectCache = [];\n var allRulesToRun = getRulesToRun(this.rules, context, options);\n var runNowRules = allRulesToRun.now;\n var runLaterRules = allRulesToRun.later;\n var nowRulesQueue = queue_default();\n runNowRules.forEach(function(rule) {\n nowRulesQueue.defer(getDefferedRule(rule, context, options));\n });\n var preloaderQueue = queue_default();\n if (runLaterRules.length) {\n preloaderQueue.defer(function(resolve2) {\n preload_default(options).then(function(assets) {\n return resolve2(assets);\n })['catch'](function(err2) {\n console.warn('Couldn\\'t load preload assets: ', err2);\n resolve2(void 0);\n });\n });\n }\n var queueForNowRulesAndPreloader = queue_default();\n queueForNowRulesAndPreloader.defer(nowRulesQueue);\n queueForNowRulesAndPreloader.defer(preloaderQueue);\n queueForNowRulesAndPreloader.then(function(nowRulesAndPreloaderResults) {\n var assetsFromQueue = nowRulesAndPreloaderResults.pop();\n if (assetsFromQueue && assetsFromQueue.length) {\n var assets = assetsFromQueue[0];\n if (assets) {\n context = _extends({}, context, assets);\n }\n }\n var nowRulesResults = nowRulesAndPreloaderResults[0];\n if (!runLaterRules.length) {\n axe._selectCache = void 0;\n resolve(nowRulesResults.filter(function(result) {\n return !!result;\n }));\n return;\n }\n var laterRulesQueue = queue_default();\n runLaterRules.forEach(function(rule) {\n var deferredRule = getDefferedRule(rule, context, options);\n laterRulesQueue.defer(deferredRule);\n });\n laterRulesQueue.then(function(laterRuleResults) {\n axe._selectCache = void 0;\n resolve(nowRulesResults.concat(laterRuleResults).filter(function(result) {\n return !!result;\n }));\n })['catch'](reject);\n })['catch'](reject);\n }\n }, {\n key: 'after',\n value: function after(results, options) {\n var rules = this.rules;\n return results.map(function(ruleResult) {\n var rule = find_by_default(rules, 'id', ruleResult.id);\n if (!rule) {\n throw new Error('Result for unknown rule. You may be running mismatch axe-core versions');\n }\n return rule.after(ruleResult, options);\n });\n }\n }, {\n key: 'getRule',\n value: function getRule(ruleId) {\n return this.rules.find(function(rule) {\n return rule.id === ruleId;\n });\n }\n }, {\n key: 'normalizeOptions',\n value: function normalizeOptions(options) {\n var audit = this;\n var tags = [];\n var ruleIds = [];\n audit.rules.forEach(function(rule) {\n ruleIds.push(rule.id);\n rule.tags.forEach(function(tag) {\n if (!tags.includes(tag)) {\n tags.push(tag);\n }\n });\n });\n if ([ 'object', 'string' ].includes(_typeof(options.runOnly))) {\n if (typeof options.runOnly === 'string') {\n options.runOnly = [ options.runOnly ];\n }\n if (Array.isArray(options.runOnly)) {\n var hasTag = options.runOnly.find(function(value) {\n return tags.includes(value);\n });\n var hasRule = options.runOnly.find(function(value) {\n return ruleIds.includes(value);\n });\n if (hasTag && hasRule) {\n throw new Error('runOnly cannot be both rules and tags');\n }\n if (hasRule) {\n options.runOnly = {\n type: 'rule',\n values: options.runOnly\n };\n } else {\n options.runOnly = {\n type: 'tag',\n values: options.runOnly\n };\n }\n }\n var only = options.runOnly;\n if (only.value && !only.values) {\n only.values = only.value;\n delete only.value;\n }\n if (!Array.isArray(only.values) || only.values.length === 0) {\n throw new Error('runOnly.values must be a non-empty array');\n }\n if ([ 'rule', 'rules' ].includes(only.type)) {\n only.type = 'rule';\n only.values.forEach(function(ruleId) {\n if (!ruleIds.includes(ruleId)) {\n throw new Error('unknown rule `' + ruleId + '` in options.runOnly');\n }\n });\n } else if ([ 'tag', 'tags', void 0 ].includes(only.type)) {\n only.type = 'tag';\n var unmatchedTags = only.values.filter(function(tag) {\n return !tags.includes(tag) && !/wcag2[1-3]a{1,3}/.test(tag);\n });\n if (unmatchedTags.length !== 0) {\n axe.log('Could not find tags `' + unmatchedTags.join('`, `') + '`');\n }\n } else {\n throw new Error('Unknown runOnly type \\''.concat(only.type, '\\''));\n }\n }\n if (_typeof(options.rules) === 'object') {\n Object.keys(options.rules).forEach(function(ruleId) {\n if (!ruleIds.includes(ruleId)) {\n throw new Error('unknown rule `' + ruleId + '` in options.rules');\n }\n });\n }\n return options;\n }\n }, {\n key: 'setBranding',\n value: function setBranding(branding) {\n var previous = {\n brand: this.brand,\n application: this.application\n };\n if (typeof branding === 'string') {\n this.application = branding;\n }\n if (branding && branding.hasOwnProperty('brand') && branding.brand && typeof branding.brand === 'string') {\n this.brand = branding.brand;\n }\n if (branding && branding.hasOwnProperty('application') && branding.application && typeof branding.application === 'string') {\n this.application = branding.application;\n }\n this._constructHelpUrls(previous);\n }\n }, {\n key: '_constructHelpUrls',\n value: function _constructHelpUrls() {\n var _this10 = this;\n var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var version = (axe.version.match(/^[1-9][0-9]*\\.[0-9]+/) || [ 'x.y' ])[0];\n this.rules.forEach(function(rule) {\n if (!_this10.data.rules[rule.id]) {\n _this10.data.rules[rule.id] = {};\n }\n var metaData = _this10.data.rules[rule.id];\n if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {\n metaData.helpUrl = getHelpUrl(_this10, rule.id, version);\n }\n });\n }\n }, {\n key: 'resetRulesAndChecks',\n value: function resetRulesAndChecks() {\n this._init();\n this._resetLocale();\n }\n } ]);\n return Audit;\n }();\n function getRulesToRun(rules, context, options) {\n var base = {\n now: [],\n later: []\n };\n var splitRules = rules.reduce(function(out, rule) {\n if (!rule_should_run_default(rule, context, options)) {\n return out;\n }\n if (rule.preload) {\n out.later.push(rule);\n return out;\n }\n out.now.push(rule);\n return out;\n }, base);\n return splitRules;\n }\n function getDefferedRule(rule, context, options) {\n if (options.performanceTimer) {\n performance_timer_default.mark('mark_rule_start_' + rule.id);\n }\n return function(resolve, reject) {\n rule.run(context, options, function(ruleResult) {\n resolve(ruleResult);\n }, function(err2) {\n if (!options.debug) {\n var errResult = Object.assign(new rule_result_default(rule), {\n result: constants_default.CANTTELL,\n description: 'An error occured while running this rule',\n message: err2.message,\n stack: err2.stack,\n error: err2,\n errorNode: err2.errorNode\n });\n resolve(errResult);\n } else {\n reject(err2);\n }\n });\n };\n }\n function getHelpUrl(_ref117, ruleId, version) {\n var brand = _ref117.brand, application = _ref117.application, lang = _ref117.lang;\n return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');\n }\n var audit_default = Audit;\n function setupGlobals(context) {\n var hasWindow = window && 'Node' in window && 'NodeList' in window;\n var hasDoc = !!document;\n if (hasWindow && hasDoc) {\n return;\n }\n if (!context || !context.ownerDocument) {\n throw new Error('Required \"window\" or \"document\" globals not defined and cannot be deduced from the context. Either set the globals before running or pass in a valid Element.');\n }\n if (!hasDoc) {\n cache_default.set('globalDocumentSet', true);\n document = context.ownerDocument;\n }\n if (!hasWindow) {\n cache_default.set('globalWindowSet', true);\n window = document.defaultView;\n }\n }\n function resetGlobals() {\n if (cache_default.get('globalDocumentSet')) {\n cache_default.set('globalDocumentSet', false);\n document = null;\n }\n if (cache_default.get('globalWindowSet')) {\n cache_default.set('globalWindowSet', false);\n window = null;\n }\n }\n function teardown() {\n resetGlobals();\n axe._memoizedFns.forEach(function(fn) {\n return fn.clear();\n });\n cache_default.clear();\n axe._tree = void 0;\n axe._selectorData = void 0;\n axe._selectCache = void 0;\n }\n var teardown_default = teardown;\n function runRules(context, options, resolve, reject) {\n try {\n context = new Context(context);\n axe._tree = context.flatTree;\n axe._selectorData = _getSelectorData(context.flatTree);\n } catch (e) {\n teardown_default();\n return reject(e);\n }\n var q = queue_default();\n var audit = axe._audit;\n if (options.performanceTimer) {\n performance_timer_default.auditStart();\n }\n if (context.frames.length && options.iframes !== false) {\n q.defer(function(res, rej) {\n _collectResultsFromFrames(context, options, 'rules', null, res, rej);\n });\n }\n q.defer(function(res, rej) {\n audit.run(context, options, res, rej);\n });\n q.then(function(data2) {\n try {\n if (options.performanceTimer) {\n performance_timer_default.auditEnd();\n }\n var results = merge_results_default(data2.map(function(results2) {\n return {\n results: results2\n };\n }));\n if (context.initiator) {\n results = audit.after(results, options);\n results.forEach(publish_metadata_default);\n results = results.map(finalize_result_default);\n }\n try {\n resolve(results, teardown_default);\n } catch (e) {\n teardown_default();\n log_default(e);\n }\n } catch (e) {\n teardown_default();\n reject(e);\n }\n })['catch'](function(e) {\n teardown_default();\n reject(e);\n });\n }\n var run_rules_default = runRules;\n function runCommand(data2, keepalive, callback) {\n var resolve = callback;\n var reject = function reject2(err2) {\n if (err2 instanceof Error === false) {\n err2 = new Error(err2);\n }\n callback(err2);\n };\n var context = data2 && data2.context || {};\n if (context.hasOwnProperty('include') && !context.include.length) {\n context.include = [ document ];\n }\n var options = data2 && data2.options || {};\n switch (data2.command) {\n case 'rules':\n return run_rules_default(context, options, function(results, cleanup3) {\n resolve(results);\n cleanup3();\n }, reject);\n\n case 'cleanup-plugin':\n return cleanup_default(resolve, reject);\n\n default:\n if (axe._audit && axe._audit.commands && axe._audit.commands[data2.command]) {\n return axe._audit.commands[data2.command](data2, callback);\n }\n }\n }\n if (window.top !== window) {\n _respondable.subscribe('axe.start', runCommand);\n _respondable.subscribe('axe.ping', function(data2, keepalive, respond) {\n respond({\n axe: true\n });\n });\n }\n function load(audit) {\n axe._audit = new audit_default(audit);\n }\n var load_default = load;\n function Plugin(spec) {\n this._run = spec.run;\n this._collect = spec.collect;\n this._registry = {};\n spec.commands.forEach(function(command) {\n axe._audit.registerCommand(command);\n });\n }\n Plugin.prototype.run = function run3() {\n return this._run.apply(this, arguments);\n };\n Plugin.prototype.collect = function collect() {\n return this._collect.apply(this, arguments);\n };\n Plugin.prototype.cleanup = function cleanup2(done) {\n var q = axe.utils.queue();\n var that = this;\n Object.keys(this._registry).forEach(function(key) {\n q.defer(function(_done) {\n that._registry[key].cleanup(_done);\n });\n });\n q.then(done);\n };\n Plugin.prototype.add = function add(impl) {\n this._registry[impl.id] = impl;\n };\n function registerPlugin(plugin) {\n axe.plugins[plugin.id] = new Plugin(plugin);\n }\n var plugins_default = registerPlugin;\n function reset() {\n var audit = axe._audit;\n if (!audit) {\n throw new Error('No audit configured');\n }\n audit.resetRulesAndChecks();\n resetStandards();\n }\n var reset_default = reset;\n function runVirtualRule(ruleId, vNode) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n options.reporter = options.reporter || axe._audit.reporter || 'v1';\n axe._selectorData = {};\n if (!(vNode instanceof abstract_virtual_node_default)) {\n vNode = new serial_virtual_node_default(vNode);\n }\n var rule = get_rule_default(ruleId);\n if (!rule) {\n throw new Error('unknown rule `' + ruleId + '`');\n }\n rule = Object.create(rule, {\n excludeHidden: {\n value: false\n }\n });\n var context = {\n initiator: true,\n include: [ vNode ],\n exclude: [],\n frames: [],\n page: false,\n focusable: true,\n size: {},\n flatTree: []\n };\n var rawResults = rule.runSync(context, options);\n publish_metadata_default(rawResults);\n finalize_result_default(rawResults);\n var results = aggregate_result_default([ rawResults ]);\n results.violations.forEach(function(result) {\n return result.nodes.forEach(function(nodeResult) {\n nodeResult.failureSummary = failure_summary_default(nodeResult);\n });\n });\n return _extends({}, _getEnvironmentData(), results, {\n toolOptions: options\n });\n }\n function normalizeRunParams(_ref118) {\n var _ref120, _options$reporter, _axe$_audit;\n var _ref119 = _slicedToArray(_ref118, 3), context = _ref119[0], options = _ref119[1], callback = _ref119[2];\n var typeErr = new TypeError('axe.run arguments are invalid');\n if (!isContextSpec(context)) {\n if (callback !== void 0) {\n throw typeErr;\n }\n callback = options;\n options = context;\n context = document;\n }\n if (_typeof(options) !== 'object') {\n if (callback !== void 0) {\n throw typeErr;\n }\n callback = options;\n options = {};\n }\n if (typeof callback !== 'function' && callback !== void 0) {\n throw typeErr;\n }\n options = clone_default(options);\n options.reporter = (_ref120 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref120 !== void 0 ? _ref120 : 'v1';\n return {\n context: context,\n options: options,\n callback: callback\n };\n }\n var noop2 = function noop2() {};\n function run4() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n setupGlobals(args[0]);\n var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;\n var _getPromiseHandlers = getPromiseHandlers(callback), thenable = _getPromiseHandlers.thenable, resolve = _getPromiseHandlers.resolve, reject = _getPromiseHandlers.reject;\n try {\n assert_default(axe._audit, 'No audit configured');\n assert_default(!axe._running, 'Axe is already running. Use `await axe.run()` to wait for the previous run to finish before starting a new run.');\n } catch (e) {\n return handleError(e, callback);\n }\n axe._running = true;\n if (options.performanceTimer) {\n axe.utils.performanceTimer.start();\n }\n function handleRunRules(rawResults, cleanup3) {\n var respond = function respond(results) {\n axe._running = false;\n cleanup3();\n try {\n callback(null, results);\n } catch (e) {\n axe.log(e);\n }\n resolve(results);\n };\n if (options.performanceTimer) {\n axe.utils.performanceTimer.end();\n }\n try {\n createReport(rawResults, options, respond);\n } catch (err2) {\n axe._running = false;\n cleanup3();\n callback(err2);\n reject(err2);\n }\n }\n function errorRunRules(err2) {\n if (options.performanceTimer) {\n axe.utils.performanceTimer.end();\n }\n axe._running = false;\n resetGlobals();\n callback(err2);\n reject(err2);\n }\n axe._runRules(context, options, handleRunRules, errorRunRules);\n return thenable;\n }\n function getPromiseHandlers(callback) {\n var thenable, reject, resolve;\n if (typeof Promise === 'function' && callback === noop2) {\n thenable = new Promise(function(_resolve, _reject) {\n reject = _reject;\n resolve = _resolve;\n });\n } else {\n resolve = reject = noop2;\n }\n return {\n thenable: thenable,\n reject: reject,\n resolve: resolve\n };\n }\n function createReport(rawResults, options, respond) {\n var reporter = getReporter(options.reporter);\n var results = reporter(rawResults, options, respond);\n if (results !== void 0) {\n respond(results);\n }\n }\n function handleError(err2, callback) {\n resetGlobals();\n if (typeof callback === 'function' && callback !== noop2) {\n callback(err2.message);\n return;\n }\n throw err2;\n }\n function runPartial() {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;\n assert_default(axe._audit, 'Axe is not configured. Audit is missing.');\n assert_default(!axe._running, 'Axe is already running. Use `await axe.run()` to wait for the previous run to finish before starting a new run.');\n var contextObj = new Context(context, axe._tree);\n axe._tree = contextObj.flatTree;\n axe._selectorData = _getSelectorData(contextObj.flatTree);\n axe._running = true;\n return new Promise(function(res, rej) {\n axe._audit.run(contextObj, options, res, rej);\n }).then(function(results) {\n results = results.map(function(_ref121) {\n var nodes = _ref121.nodes, result = _objectWithoutProperties(_ref121, _excluded8);\n return _extends({\n nodes: nodes.map(serializeNode)\n }, result);\n });\n var frames = contextObj.frames.map(function(_ref122) {\n var node = _ref122.node;\n return new dq_element_default(node, options).toJSON();\n });\n var environmentData;\n if (contextObj.initiator) {\n environmentData = _getEnvironmentData();\n }\n axe._running = false;\n teardown_default();\n return {\n results: results,\n frames: frames,\n environmentData: environmentData\n };\n })['catch'](function(err2) {\n axe._running = false;\n teardown_default();\n return Promise.reject(err2);\n });\n }\n function serializeNode(_ref123) {\n var node = _ref123.node, nodeResult = _objectWithoutProperties(_ref123, _excluded9);\n nodeResult.node = node.toJSON();\n for (var _i36 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i36 < _arr2.length; _i36++) {\n var type = _arr2[_i36];\n nodeResult[type] = nodeResult[type].map(function(_ref124) {\n var relatedNodes = _ref124.relatedNodes, checkResult = _objectWithoutProperties(_ref124, _excluded10);\n return _extends({}, checkResult, {\n relatedNodes: relatedNodes.map(function(node2) {\n return node2.toJSON();\n })\n });\n });\n }\n return nodeResult;\n }\n function finishRun(partialResults) {\n var _ref126, _options$reporter2, _axe$_audit2;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options = clone_default(options);\n var _ref125 = partialResults.find(function(r) {\n return r.environmentData;\n }) || {}, environmentData = _ref125.environmentData;\n axe._audit.normalizeOptions(options);\n options.reporter = (_ref126 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref126 !== void 0 ? _ref126 : 'v1';\n setFrameSpec(partialResults);\n var results = merge_results_default(partialResults);\n results = axe._audit.after(results, options);\n results.forEach(publish_metadata_default);\n results = results.map(finalize_result_default);\n return createReport2(results, _extends({\n environmentData: environmentData\n }, options));\n }\n function setFrameSpec(partialResults) {\n var frameStack = [];\n var _iterator13 = _createForOfIteratorHelper(partialResults), _step13;\n try {\n for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {\n var partialResult = _step13.value;\n var frameSpec = frameStack.shift();\n if (!partialResult) {\n continue;\n }\n partialResult.frameSpec = frameSpec !== null && frameSpec !== void 0 ? frameSpec : null;\n var frameSpecs = getMergedFrameSpecs(partialResult);\n frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));\n }\n } catch (err) {\n _iterator13.e(err);\n } finally {\n _iterator13.f();\n }\n }\n function getMergedFrameSpecs(_ref127) {\n var childFrameSpecs = _ref127.frames, parentFrameSpec = _ref127.frameSpec;\n if (!parentFrameSpec) {\n return childFrameSpecs;\n }\n return childFrameSpecs.map(function(childFrameSpec) {\n return dq_element_default.mergeSpecs(childFrameSpec, parentFrameSpec);\n });\n }\n function createReport2(results, options) {\n return new Promise(function(resolve) {\n var reporter = getReporter(options.reporter);\n reporter(results, options, resolve);\n });\n }\n function setup(node) {\n if (axe._tree) {\n throw new Error('Axe is already setup. Call `axe.teardown()` before calling `axe.setup` again.');\n }\n axe._tree = get_flattened_tree_default(node);\n axe._selectorData = _getSelectorData(axe._tree);\n return axe._tree[0];\n }\n var setup_default = setup;\n var naReporter = function naReporter(results, options, callback) {\n console.warn('\"na\" reporter will be deprecated in axe v4.0. Use the \"v2\" reporter instead.');\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n var _options2 = options, environmentData = _options2.environmentData, toolOptions = _objectWithoutProperties(_options2, _excluded11);\n callback(_extends({}, _getEnvironmentData(environmentData), {\n toolOptions: toolOptions\n }, process_aggregate_default(results, options)));\n };\n var na_default = naReporter;\n var noPassesReporter = function noPassesReporter(results, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded12);\n options.resultTypes = [ 'violations' ];\n var _process_aggregate_de = process_aggregate_default(results, options), violations = _process_aggregate_de.violations;\n callback(_extends({}, _getEnvironmentData(environmentData), {\n toolOptions: toolOptions,\n violations: violations\n }));\n };\n var no_passes_default = noPassesReporter;\n var rawReporter = function rawReporter(results, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (!results || !Array.isArray(results)) {\n return callback(results);\n }\n var transformedResults = results.map(function(result) {\n var transformedResult = _extends({}, result);\n var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];\n for (var _i37 = 0, _types = types; _i37 < _types.length; _i37++) {\n var type = _types[_i37];\n if (transformedResult[type] && Array.isArray(transformedResult[type])) {\n transformedResult[type] = transformedResult[type].map(function(_ref128) {\n var _node;\n var node = _ref128.node, typeResult = _objectWithoutProperties(_ref128, _excluded13);\n node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;\n return _extends({\n node: node\n }, typeResult);\n });\n }\n }\n return transformedResult;\n });\n callback(transformedResults);\n };\n var raw_default = rawReporter;\n var rawEnvReporter = function rawEnvReporter(results, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded14);\n raw_default(results, toolOptions, function(raw) {\n var env = _getEnvironmentData(environmentData);\n callback({\n raw: raw,\n env: env\n });\n });\n };\n var raw_env_default = rawEnvReporter;\n var v1Reporter = function v1Reporter(results, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded15);\n var out = process_aggregate_default(results, options);\n var addFailureSummaries = function addFailureSummaries(result) {\n result.nodes.forEach(function(nodeResult) {\n nodeResult.failureSummary = failure_summary_default(nodeResult);\n });\n };\n out.incomplete.forEach(addFailureSummaries);\n out.violations.forEach(addFailureSummaries);\n callback(_extends({}, _getEnvironmentData(environmentData), {\n toolOptions: toolOptions\n }, out));\n };\n var v1_default = v1Reporter;\n var v2Reporter = function v2Reporter(results, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded16);\n var out = process_aggregate_default(results, options);\n callback(_extends({}, _getEnvironmentData(environmentData), {\n toolOptions: toolOptions\n }, out));\n };\n var v2_default = v2Reporter;\n var _thisWillBeDeletedDoNotUse = {\n base: {\n Audit: audit_default,\n CheckResult: check_result_default,\n Check: check_default,\n Context: Context,\n RuleResult: rule_result_default,\n Rule: rule_default,\n metadataFunctionMap: metadata_function_map_default\n },\n public: {\n reporters: reporters\n },\n helpers: {\n failureSummary: failure_summary_default,\n incompleteFallbackMessage: incompleteFallbackMessage,\n processAggregate: process_aggregate_default\n },\n utils: {\n setDefaultFrameMessenger: setDefaultFrameMessenger,\n cacheNodeSelectors: cacheNodeSelectors,\n getNodesMatchingExpression: getNodesMatchingExpression,\n convertSelector: _convertSelector\n },\n commons: {\n dom: {\n nativelyHidden: nativelyHidden,\n displayHidden: displayHidden,\n visibilityHidden: visibilityHidden,\n contentVisibiltyHidden: contentVisibiltyHidden,\n ariaHidden: ariaHidden,\n opacityHidden: opacityHidden,\n scrollHidden: scrollHidden,\n overflowHidden: overflowHidden,\n clipHidden: clipHidden,\n areaHidden: areaHidden,\n detailsHidden: detailsHidden\n }\n }\n };\n var exposed_for_testing_default = _thisWillBeDeletedDoNotUse;\n axe._thisWillBeDeletedDoNotUse = exposed_for_testing_default;\n axe.constants = constants_default;\n axe.log = log_default;\n axe.AbstractVirtualNode = abstract_virtual_node_default;\n axe.SerialVirtualNode = serial_virtual_node_default;\n axe.VirtualNode = virtual_node_default;\n axe._cache = cache_default;\n axe.imports = imports_exports;\n axe.cleanup = cleanup_default;\n axe.configure = configure_default;\n axe.frameMessenger = frameMessenger2;\n axe.getRules = get_rules_default;\n axe._load = load_default;\n axe.plugins = {};\n axe.registerPlugin = plugins_default;\n axe.hasReporter = hasReporter;\n axe.getReporter = getReporter;\n axe.addReporter = addReporter;\n axe.reset = reset_default;\n axe._runRules = run_rules_default;\n axe.runVirtualRule = runVirtualRule;\n axe.run = run4;\n axe.setup = setup_default;\n axe.teardown = teardown_default;\n axe.runPartial = runPartial;\n axe.finishRun = finishRun;\n axe.commons = commons_exports;\n axe.utils = utils_exports;\n axe.addReporter('na', na_default);\n axe.addReporter('no-passes', no_passes_default);\n axe.addReporter('rawEnv', raw_env_default);\n axe.addReporter('raw', raw_default);\n axe.addReporter('v1', v1_default);\n axe.addReporter('v2', v2_default, true);\n })();\n 'use strict';\n axe._load({\n lang: 'en',\n data: {\n rules: {\n accesskeys: {\n description: 'Ensures every accesskey attribute value is unique',\n help: 'accesskey attribute value should be unique'\n },\n 'area-alt': {\n description: 'Ensures elements of image maps have alternate text',\n help: 'Active elements must have alternate text'\n },\n 'aria-allowed-attr': {\n description: 'Ensures ARIA attributes are allowed for an element\\'s role',\n help: 'Elements must only use allowed ARIA attributes'\n },\n 'aria-allowed-role': {\n description: 'Ensures role attribute has an appropriate value for the element',\n help: 'ARIA role should be appropriate for the element'\n },\n 'aria-command-name': {\n description: 'Ensures every ARIA button, link and menuitem has an accessible name',\n help: 'ARIA commands must have an accessible name'\n },\n 'aria-dialog-name': {\n description: 'Ensures every ARIA dialog and alertdialog node has an accessible name',\n help: 'ARIA dialog and alertdialog nodes should have an accessible name'\n },\n 'aria-hidden-body': {\n description: 'Ensures aria-hidden=\\'true\\' is not present on the document body.',\n help: 'aria-hidden=\\'true\\' must not be present on the document body'\n },\n 'aria-hidden-focus': {\n description: 'Ensures aria-hidden elements are not focusable nor contain focusable elements',\n help: 'ARIA hidden element must not be focusable or contain focusable elements'\n },\n 'aria-input-field-name': {\n description: 'Ensures every ARIA input field has an accessible name',\n help: 'ARIA input fields must have an accessible name'\n },\n 'aria-meter-name': {\n description: 'Ensures every ARIA meter node has an accessible name',\n help: 'ARIA meter nodes must have an accessible name'\n },\n 'aria-progressbar-name': {\n description: 'Ensures every ARIA progressbar node has an accessible name',\n help: 'ARIA progressbar nodes must have an accessible name'\n },\n 'aria-required-attr': {\n description: 'Ensures elements with ARIA roles have all required ARIA attributes',\n help: 'Required ARIA attributes must be provided'\n },\n 'aria-required-children': {\n description: 'Ensures elements with an ARIA role that require child roles contain them',\n help: 'Certain ARIA roles must contain particular children'\n },\n 'aria-required-parent': {\n description: 'Ensures elements with an ARIA role that require parent roles are contained by them',\n help: 'Certain ARIA roles must be contained by particular parents'\n },\n 'aria-roledescription': {\n description: 'Ensure aria-roledescription is only used on elements with an implicit or explicit role',\n help: 'aria-roledescription must be on elements with a semantic role'\n },\n 'aria-roles': {\n description: 'Ensures all elements with a role attribute use a valid value',\n help: 'ARIA roles used must conform to valid values'\n },\n 'aria-text': {\n description: 'Ensures \"role=text\" is used on elements with no focusable descendants',\n help: '\"role=text\" should have no focusable descendants'\n },\n 'aria-toggle-field-name': {\n description: 'Ensures every ARIA toggle field has an accessible name',\n help: 'ARIA toggle fields must have an accessible name'\n },\n 'aria-tooltip-name': {\n description: 'Ensures every ARIA tooltip node has an accessible name',\n help: 'ARIA tooltip nodes must have an accessible name'\n },\n 'aria-treeitem-name': {\n description: 'Ensures every ARIA treeitem node has an accessible name',\n help: 'ARIA treeitem nodes should have an accessible name'\n },\n 'aria-valid-attr-value': {\n description: 'Ensures all ARIA attributes have valid values',\n help: 'ARIA attributes must conform to valid values'\n },\n 'aria-valid-attr': {\n description: 'Ensures attributes that begin with aria- are valid ARIA attributes',\n help: 'ARIA attributes must conform to valid names'\n },\n 'audio-caption': {\n description: 'Ensures