@inkeep/open-knowledge 0.35.1-beta.9 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +0 -21
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/{banner-dc_0Y_PF.mjs → banner-C1j6gKvV.mjs} +2 -2
- package/dist/cli.mjs +62 -62
- package/dist/{colors-B_qgKwrk.mjs → colors-CpVsnmzb.mjs} +1 -1
- package/dist/colors-DqFW4lvb.mjs +1 -0
- package/dist/constants-B51-MH_i.mjs +2 -0
- package/dist/{gh-detect-Cdvn1Wl3.mjs → gh-detect-93wtg_nV.mjs} +2 -2
- package/dist/git-handle-CeejIzW4.mjs +1 -0
- package/dist/{git-handle-XFgpH1XR.mjs → git-handle-DPCY4VMM.mjs} +2 -2
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +1 -1
- package/dist/{init-D0aMPn3q.mjs → init-CINP1v0y.mjs} +4 -4
- package/dist/init-EO9D9f7g.mjs +1 -0
- package/dist/{launch-json-removal-BFoEXgrV.mjs → launch-json-removal-Cp88-Nri.mjs} +2 -2
- package/dist/{lib-CW6dpYSh.mjs → lib-CsZlOZVg.mjs} +8 -8
- package/dist/loader-DrTu23Tp.mjs +1 -0
- package/dist/{loader-ymMOqJ4G.mjs → loader-a2k4G6Yz.mjs} +3 -3
- package/dist/{open-browser-hDKVLhdi.mjs → open-browser-CP3YN1jA.mjs} +2 -2
- package/dist/{preview-C40R8NHt.mjs → preview-CvyqQIIL.mjs} +2 -2
- package/dist/preview-Un26Rvbh.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-BzCteFud.js +2 -0
- package/dist/public/assets/CodeMirrorPropInput-BaaMh183.js +3 -0
- package/dist/public/assets/{ConsentDialogBody-CFh9gVKe.js → ConsentDialogBody-Dac-eNHp.js} +1 -1
- package/dist/public/assets/DocumentContext-DVJ7yEqv.js +36 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-N6XcDLKE.js → EnableSyncConfirmDialog-pUJ0-0Xd.js} +1 -1
- package/dist/public/assets/{GraphPanel-BqPMq7aw.js → GraphPanel-CLbL3_7S.js} +5 -5
- package/dist/public/assets/ManagedArtifactProperties-BbvAZvc9.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-BEhEYVhf.js → McpConsentDialogBody-D_ALgiPf.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-D1Zoh82_.js → MermaidDocEditor-C4zrJQLq.js} +1 -1
- package/dist/public/assets/PropertyPanel-D2cHpPyn.js +2 -0
- package/dist/public/assets/{ReportBugDialogBody-WNYejKs4.js → ReportBugDialogBody-By8lUyez.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-Ivdm3ToR.js +7 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-BdrVo8_D.js → ShareBranchSwitchDialog-COA225Wh.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-Hvt2MZBo.js → ShareReceiveDialog-CGeUbVX5.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-DgBQa7QK.js → ShareReceiveMissDialog-BiFbvWX1.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-C0gxnHUB.js → SkillEditorActions-HOX1vQzN.js} +1 -1
- package/dist/public/assets/{SourceEditor-Cp2KKJVb.js → SourceEditor-BbNBxNCg.js} +1 -1
- package/dist/public/assets/{TerminalPanel-Ch4_Ef5u.js → TerminalPanel-CJcXd9VC.js} +37 -37
- package/dist/public/assets/{abnfDiagram-VRR7QNED-DxPP95nn.js → abnfDiagram-VRR7QNED-s07JwBrQ.js} +1 -1
- package/dist/public/assets/agent-presence-DWEqGNHh.js +1 -0
- package/dist/public/assets/{arc-B-QPMw-K.js → arc-C2sMPVKm.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-CT1tXplN.js +1 -0
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-DI2cSyhR.js → architectureDiagram-ZJ3FMSHR-DQ9Uvn9z.js} +1 -1
- package/dist/public/assets/auth-state-cache-Di7tO3rZ.js +11 -0
- package/dist/public/assets/{blockDiagram-677ZJIJ3-h5oSMPKD.js → blockDiagram-677ZJIJ3-DSk8Ogpy.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-CK2iEE3c.js → c4Diagram-LMCZKHZV-Bz59H0KA.js} +1 -1
- package/dist/public/assets/{calendar-BWOC8yrW.js → calendar-BxfDpUWv.js} +1 -1
- package/dist/public/assets/channel-CSqODHBX.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-6231eKaz.js +1 -0
- package/dist/public/assets/{chunk-32BRIVSS-DSjkImiO.js → chunk-32BRIVSS-CrIqwJxq.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-Dcxgn7aY.js → chunk-52WLFC77-mgHjwXy8.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-BfGI-oMu.js → chunk-5FCAYU7R-DsN08wYr.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-weABv-wL.js → chunk-5HE753X5-DR9Xb784.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-DEhUP77q.js → chunk-5JV3BV7I-DUGJruxJ.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-D8ryhTto.js → chunk-5TONJI2A-DGpS165P.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-BlyT0CoP.js → chunk-5VM5RSS4-Y6UOitXa.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-D9n2zFWa.js → chunk-7BUUIJ7U-kgbsT0Ie.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-CZyszYrJ.js → chunk-BIQX33UG-ir0YjVc1.js} +1 -1
- package/dist/public/assets/{chunk-C7G6YPKG-DA4AzgS1.js → chunk-C7G6YPKG-C4mkeqaG.js} +1 -1
- package/dist/public/assets/{chunk-CQNSW5MT-ClwiAtII.js → chunk-CQNSW5MT-cO-NnCqU.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-CGwDjQlh.js → chunk-CYSBUYHQ-DOHROXyM.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-DjxQVp6i.js → chunk-EMLP6XTP-D4HTBqLV.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-BcSqmSt4.js → chunk-EX3LRPZG-Do_cb0BC.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-BTxv6yrt.js → chunk-FWX5IMBZ-CKeYA6zq.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-3n2-KijJ.js → chunk-HOUHSVGY-DLoarw7-.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-DWIJquJc.js → chunk-ICXQ74PX-MBl6EECh.js} +1 -1
- package/dist/public/assets/{chunk-JG7HCLWE-BZZpuOy0.js → chunk-JG7HCLWE-CUeTjaY5.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-DdwvzMEp.js → chunk-JWPE2WC7-CHGGBN9h.js} +1 -1
- package/dist/public/assets/{chunk-MOJQB5TN-CmK9Iu27.js → chunk-MOJQB5TN-CcZUk23X.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-LyrnwAsU.js → chunk-MOZMSUNE-5QQVj3ss.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-CeOp0xbH.js → chunk-OGEWGWER-BkptVqQ1.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-DFiAaUHT.js → chunk-OSBZ3O6U-ONf5Rxuf.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-BdJDvOQD.js → chunk-PUDLZKDR-DXTd_WWd.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-C3mWTH_s.js → chunk-Q4XR5HBZ-QUWmwLf-.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-Cip_ZYPa.js → chunk-QBLGF6JB-DAW-PjRz.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-DLyapyIO.js → chunk-R7FJI6CG-e7KlR5WR.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-C20EyDLP.js → chunk-RYQCIY6F-DKYUXbW_.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-DN2BTHsF.js → chunk-U6XO7XAA-zuSavVpE.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-BkdbQSd6.js → chunk-V7JOEXUC-BDcL_HF2.js} +1 -1
- package/dist/public/assets/chunk-VAUOI2AC-D5KfNXdk.js +1 -0
- package/dist/public/assets/{chunk-VR4S4FIN-BXKGzdjR.js → chunk-VR4S4FIN-CoKaVJob.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-DDA9TMxs.js → chunk-WYO6CB5R-CPK-Z4Zn.js} +1 -1
- package/dist/public/assets/chunk-XXDRQBXY-z12okRSH.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-CAY_zY8l.js → chunk-YOTPTUD7-ZJ64LPBH.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-gtD66mSa.js → chunk-ZGVPDNZ5-D8S_HhHE.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-Bh7823OJ.js → chunk-ZIRB5QZD-CBAmXOZf.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-3k_vKgMb.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-BWUMDcI-.js +1 -0
- package/dist/public/assets/{config-provider-gBTyVVxO.js → config-provider-DGMqQCfP.js} +2 -2
- package/dist/public/assets/{cose-bilkent-JH36ORCC-pqj5AHZx.js → cose-bilkent-JH36ORCC-BhCfvPJo.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-CCaQNOor.js +1 -0
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BCdPoMcA.js → cynefinDiagram-TSTJHNR4-DZZpsQlh.js} +1 -1
- package/dist/public/assets/{dagre-DK7PvNVd.js → dagre-BCcof4fp.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-BMhbjrXq.js → dagre-VKFMJZFB-BVGAKvzT.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY-CI-dlZCc.js → diagram-FQU43EPY-BEAcnoVT.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-7OA_hqYO.js → diagram-G47NLZAW-B5YwZccl.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-DGZoq1pS.js → diagram-NH7WQ7WH-DJ729xkg.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-BgAzAKhY.js → diagram-OA4YK3LP-ComZLTwZ.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-DWkPIxW4.js → diagram-WEI45ONY-DUpwGJzG.js} +1 -1
- package/dist/public/assets/{dialog-492Ff7fG.js → dialog-D9fMUB3u.js} +1 -1
- package/dist/public/assets/{dist-Bvng05Ux.js → dist-C6B3IZlW.js} +1 -1
- package/dist/public/assets/{dist-BkuNSvgE.js → dist-CN1nOe9M.js} +1 -1
- package/dist/public/assets/{dist-BiVF6Gdz.js → dist-CSbnaLam.js} +1 -1
- package/dist/public/assets/{dist-DEmM8o04.js → dist-Cf-rDWvg.js} +82 -82
- package/dist/public/assets/{dist-B768eFXg.js → dist-CiO2pCFe.js} +1 -1
- package/dist/public/assets/{dist-D1KI0nTz.js → dist-Cid07B-b.js} +1 -1
- package/dist/public/assets/{dist-BjlQpfm2.js → dist-D6P0HEvG.js} +1 -1
- package/dist/public/assets/{dist-DXywpqg-.js → dist-DLiIchlL.js} +1 -1
- package/dist/public/assets/{dist-CML_8CPx.js → dist-DQ98O3oW.js} +1 -1
- package/dist/public/assets/{dist-B76xtaAd.js → dist-Ddrqoe4c.js} +1 -1
- package/dist/public/assets/{dist-CCfVhAvJ.js → dist-RKGXlTOn.js} +1 -1
- package/dist/public/assets/{dist-BZciNIwH.js → dist-TIByzzIF.js} +1 -1
- package/dist/public/assets/{dist-BuhX1ZiW.js → dist-Uf9Tc8KS.js} +1 -1
- package/dist/public/assets/{doc-hash-DBnfNiP9.js → doc-hash-vKFY-V-Y.js} +1 -1
- package/dist/public/assets/{documents-events-Ynxz3YVq.js → documents-events-BzjmhSSx.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-BRvvZw_B.js → ebnfDiagram-CCIWWBDH-C0qN5Z1L.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-DVXRJxAV.js → erDiagram-Q63AITRT-B2y03i9k.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-Dv2dElMn.js +1 -0
- package/dist/public/assets/{file-tree-adapter-z-igJkOj.js → file-tree-adapter-DNsVn4SH.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-Cj2cm6wb.js +1 -0
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-DfilZK9a.js → ganttDiagram-NO4QXBWP-CbAMuscB.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-B_v5HTd2.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-CzPu78YW.js → gitGraphDiagram-IHSO6WYX-BDtmrkrv.js} +1 -1
- package/dist/public/assets/{graphlib-DcRmeD3e.js → graphlib-T74nenG1.js} +1 -1
- package/dist/public/assets/index-BFfvrj_R.js +2007 -0
- package/dist/public/assets/index-Zwl7lo8a.css +1 -0
- package/dist/public/assets/info-DKCQHKI2-ChXVyprm.js +1 -0
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-C6-KcSYK.js → infoDiagram-FWYZ7A6U-BgSrBQZn.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-BjawhLso.js → ishikawaDiagram-FXEZZL3T-B58n1EAe.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-CKJ88ogB.js → journeyDiagram-5HDEW3XC-CtbbmL9o.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-BGwYHT7Q.js → kanban-definition-HUTT4EX6-PYnVKIRv.js} +1 -1
- package/dist/public/assets/{line-BSndhJaA.js → line-Bn4tqKip.js} +1 -1
- package/dist/public/assets/{linear-CWEI_5Iw.js → linear-B7qown3H.js} +1 -1
- package/dist/public/assets/lint-config-client-C1xGkxTP.js +1 -0
- package/dist/public/assets/{map-CjcUXw9E.js → map-CAMtT7C7.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Dd1-Tdhf.js → mermaid-parser.core-B1wAzOcl.js} +2 -2
- package/dist/public/assets/{mermaid.core-C3NRxXYk.js → mermaid.core-CPVA3QHQ.js} +3 -3
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-CMjs8uw1.js → mindmap-definition-LN4V7U3C-dzrg2t0C.js} +1 -1
- package/dist/public/assets/{navigation-targets-Bi-igYug.js → navigation-targets-nvGLJ1po.js} +1 -1
- package/dist/public/assets/{now-DuonpS3w.js → now-7lIApcFa.js} +1 -1
- package/dist/public/assets/open-managed-artifact-tab-CUhx9b-j.js +5 -0
- package/dist/public/assets/{ordinal-DqdsPg4w.js → ordinal-RCdkn_04.js} +1 -1
- package/dist/public/assets/packet-7NZHBO7P--nGkFp-F.js +1 -0
- package/dist/public/assets/{pegDiagram-2B236MQR-DbZNXK4F.js → pegDiagram-2B236MQR-BSfr2juy.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-B2epkYbV.js → pending-receive-nav-store-HxClZpU_.js} +1 -1
- package/dist/public/assets/pie-RZYD4A2V-jLTQTVR2.js +1 -0
- package/dist/public/assets/{pieDiagram-ENE6RG2P-Cl1aNURz.js → pieDiagram-ENE6RG2P-BZpnpN-F.js} +1 -1
- package/dist/public/assets/prop-types-y7w6_eIH.js +1 -0
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-O0r_liGM.js → quadrantDiagram-ABIIQ3AL-DbLxt4AH.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-C3lNKZB3.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-zkTIyGxU.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-CGyrnBSJ.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BllS7VWZ.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-C1CM3IeV.js +1 -0
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-5qWlaSRR.js → railroadDiagram-RFXS5EU6-C848pWoS.js} +1 -1
- package/dist/public/assets/{receive-store-Cfx8Fm1O.js → receive-store-BBpK7Or2.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-P9qf5Z4Z.js → requirementDiagram-TGXJPOKE-BYghLNMR.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-BWtC9T4g.js → sankeyDiagram-HTMAVEWB-D4YIknL1.js} +1 -1
- package/dist/public/assets/{selection-context-BZ0vDvOZ.js → selection-context-iozWEaD1.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-B8Hbf_bB.js → sequenceDiagram-DBY2YBRQ-TyOsGnRM.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-B93fpSFm.js → sizeCapture-X5ZJPWSS-BM5e48hL.js} +1 -1
- package/dist/public/assets/skill-actions-DL-yNOVR.js +1 -0
- package/dist/public/assets/{skills-api-_7OVhd1o.js → skills-api-T6KNnXbb.js} +1 -1
- package/dist/public/assets/{src-BLjGyHA1.js → src-DL3Zlx5X.js} +1 -1
- package/dist/public/assets/{src-Bejbc0T8.js → src-DU4IiWLl.js} +1 -1
- package/dist/public/assets/{stateDiagram-2N3HPSRC-CCyXUsZO.js → stateDiagram-2N3HPSRC-1BTIo0Qo.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-C-nM9igb.js +1 -0
- package/dist/public/assets/{swimlanes-5IMT3BWC-B-sLEl82.js → swimlanes-5IMT3BWC-DN05P38q.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-DOdX5jTT.js +8 -0
- package/dist/public/assets/{target-navigation-intent-D32NU0VH.js → target-navigation-intent-JPOSvf1i.js} +1 -1
- package/dist/public/assets/{telemetry-impl-BWgeQHlt.js → telemetry-impl-jUMr-Cv1.js} +2 -2
- package/dist/public/assets/{telemetry-startup-kV7RyeHQ.js → telemetry-startup-jMwHqIQ4.js} +1 -1
- package/dist/public/assets/{timeline-definition-FHXFAJF6-B4-HCQ_I.js → timeline-definition-FHXFAJF6-m9Ty-Kvs.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-CQFmlWUc.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-BrZNJeo7.js +1 -0
- package/dist/public/assets/{typing-burst-detector-DZPDaaHu.js → typing-burst-detector-50DGt0NB.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DIFwGHaM.js → use-apply-config-color-theme-C4-L1m1x.js} +1 -1
- package/dist/public/assets/{vennDiagram-L72KCM5P-DIXJ-f9A.js → vennDiagram-L72KCM5P-CeGSzDp-.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-KBVce8aR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-EHGQE667-DuaGh-EA.js → wardleyDiagram-EHGQE667-CEiEgHEP.js} +1 -1
- package/dist/public/assets/{workspace-paths-DeyKDDDU.js → workspace-paths-BzYkZqjr.js} +1 -1
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-BGEm2ArJ.js → xychartDiagram-FW5EYKEG-D2AGvwUv.js} +1 -1
- package/dist/public/index.html +58 -60
- package/dist/{repair-launch-json-BzaW_t7r.mjs → repair-launch-json-xDbECVti.mjs} +2 -2
- package/dist/{repair-mcp-configs-yho_lu_J.mjs → repair-mcp-configs-BPCRXAai.mjs} +2 -2
- package/dist/{repair-skills-50Uzl9Et.mjs → repair-skills-CZbrTVch.mjs} +2 -2
- package/dist/repair-skills-CyhWReZX.mjs +1 -0
- package/dist/server-lock-DGqK-4av.mjs +1 -0
- package/dist/{server-lock-CTGMwZRP.mjs → server-lock-wMKEjgnN.mjs} +2 -2
- package/dist/{src-S2yxN8_s.mjs → src-BU7I7py6.mjs} +90 -90
- package/dist/src-C0CgVA8i.mjs +3305 -0
- package/dist/{src-DYZflqdx.mjs → src-FMIoftZv.mjs} +1 -1
- package/dist/src-cvLOShuL.mjs +21 -0
- package/dist/start-D7QSP49B.mjs +1 -0
- package/dist/start-DcF59Yvb.mjs +3 -0
- package/dist/{write-project-skill-DFZwle9U.mjs → write-project-skill-DkTM_Oeh.mjs} +2 -2
- package/package.json +5 -5
- package/dist/colors-DUjg75V3.mjs +0 -1
- package/dist/constants-rx2xsPC5.mjs +0 -2
- package/dist/git-handle-uEQwHyvr.mjs +0 -1
- package/dist/init-Bei6hvcu.mjs +0 -1
- package/dist/loader-BhQGz5q5.mjs +0 -1
- package/dist/preview-BBKZ9rl9.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-FexHGqMd.js +0 -1
- package/dist/public/assets/AgentDiffPane-Dcf2DUzT.js +0 -2
- package/dist/public/assets/CodeMirrorPropInput-CWbhbvpr.js +0 -3
- package/dist/public/assets/DocumentContext-O0A-tcJv.js +0 -36
- package/dist/public/assets/ManagedArtifactProperties-DCcQ10r7.js +0 -1
- package/dist/public/assets/PropertyPanel-BnoEwA0Y.js +0 -2
- package/dist/public/assets/SettingsDialogBody-kYDS3O-Q.js +0 -7
- package/dist/public/assets/TimelineDiffPane-Bs3d6DMI.js +0 -2
- package/dist/public/assets/agent-presence-YrdogQa3.js +0 -1
- package/dist/public/assets/architecture-TIHT7OUA-CltUrdi_.js +0 -1
- package/dist/public/assets/auth-state-cache-B5AqPHGa.js +0 -11
- package/dist/public/assets/channel-u6IlPa4M.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-Dp_z4y0p.js +0 -1
- package/dist/public/assets/chunk-VAUOI2AC-ql8j5-ta.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-BGFIrdGe.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-f__yrCN3.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-De7msUum.js +0 -1
- package/dist/public/assets/cynefin-VYW2F7L2-BaabRBtQ.js +0 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-CpX_MdG2.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-qBrVAQAs.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-Cl_Wohm-.js +0 -1
- package/dist/public/assets/index-CDLDmELK.js +0 -1995
- package/dist/public/assets/index-Dpd8B4Mp.css +0 -1
- package/dist/public/assets/info-DKCQHKI2-Df0PBh-0.js +0 -1
- package/dist/public/assets/lint-config-client-DPZxzs8Q.js +0 -1
- package/dist/public/assets/lru-string-cache-WgNrdYaR.js +0 -1
- package/dist/public/assets/open-managed-artifact-tab-n_ttWe3q.js +0 -5
- package/dist/public/assets/packet-7NZHBO7P-BzSOWp_y.js +0 -1
- package/dist/public/assets/panel-right-open-CBQxOUPX.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-DQMer8ON.js +0 -1
- package/dist/public/assets/prop-types-uamYPR-P.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-BcSNWNdo.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-Bki7TUdv.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-TNcYa0Mz.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BkoUFicN.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-CPN1xC04.js +0 -1
- package/dist/public/assets/skill-actions-Bo5y4Jmv.js +0 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-D5lbOImg.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-BI78kzuy.js +0 -8
- package/dist/public/assets/timeline-diff-store-HBj2AFCu.js +0 -1
- package/dist/public/assets/treeView-QDETBFTQ-CT2knITr.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-BWe4kQzY.js +0 -1
- package/dist/public/assets/use-activity-panel-CsmAywD8.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-BpeNmjL3.js +0 -18
- package/dist/public/assets/wardley-OPB4EBWU-BjTiRqi1.js +0 -1
- package/dist/repair-skills-RJeC7Jd-.mjs +0 -1
- package/dist/server-lock-DOwBtoDC.mjs +0 -1
- package/dist/src-DkZfCRv7.mjs +0 -21
- package/dist/src-_5Jz5f0v.mjs +0 -3311
- package/dist/start-BEzh4O4Y.mjs +0 -1
- package/dist/start-CA11ql1Y.mjs +0 -3
- /package/dist/public/assets/{ActivityPanelDiffView-CojvWN5u.js → ActivityPanelDiffView-COM6jgM6.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-W0BYeUy6.js → __vite-browser-external-B-733T4c.js} +0 -0
- /package/dist/public/assets/{array-DZrUSYBX.js → array-Dz4vndSy.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-kMpbALDh.js → chunk-KEIR6QF5-YxiaonDF.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-C7afl5rZ.js → chunk-Y2CYZVJY-B5uX60M6.js} +0 -0
- /package/dist/public/assets/{clike-BgMHoZVb.js → clike-DrU-cR_S.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter-CfjsRFpv.js → clipboard-adapter-BHfhAZ-n.js} +0 -0
- /package/dist/public/assets/{colors-BtGPfaz7.js → colors-yCcn8znj.js} +0 -0
- /package/dist/public/assets/{config-context-BaIZpYSb.js → config-context-BbS_JaHs.js} +0 -0
- /package/dist/public/assets/{cursor-jdIvZ4dc.js → cursor-Rw-XIAht.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-wfVGet9g.js → cytoscape.esm-D6meekAa.js} +0 -0
- /package/dist/public/assets/{defaultLocale-CCuQb4WR.js → defaultLocale-CKlKs72A.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-4c7gjz59.js → desktop-bridge-types-_D7JSBL8.js} +0 -0
- /package/dist/public/assets/{diff-B7WgJJz8.js → diff-BVcHwfdB.js} +0 -0
- /package/dist/public/assets/{dist-SUVx2c2e.js → dist-7hPoK5kq.js} +0 -0
- /package/dist/public/assets/{dist-o9cVHl8Q.js → dist-C87Ou6G5.js} +0 -0
- /package/dist/public/assets/{dist-DN9vrt63.js → dist-DMFtCzYE.js} +0 -0
- /package/dist/public/assets/{dist-BQhSFgYM.js → dist-DOee8t3p.js} +0 -0
- /package/dist/public/assets/{dist-CAIcun02.js → dist-Qabe7wDM.js} +0 -0
- /package/dist/public/assets/{documents-fetch-BzTSsuPI.js → documents-fetch-CD85Qoe6.js} +0 -0
- /package/dist/public/assets/{external-link-BUoZ56id.js → external-link-BfiFPJEx.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-GUkltgNP.js → file-tree-rename-validation-BBSv40Qz.js} +0 -0
- /package/dist/public/assets/{format-ClWHbKHd.js → format-DJS8_tfZ.js} +0 -0
- /package/dist/public/assets/{go-DTLWKePr.js → go-Ceq0cEZq.js} +0 -0
- /package/dist/public/assets/{init-B2r4ykR3.js → init-DSak-Kkw.js} +0 -0
- /package/dist/public/assets/{input-b4FSCbA5.js → input-BX4UDDMJ.js} +0 -0
- /package/dist/public/assets/{isObject-Bj-0X2GB.js → isObject-qQeVObYJ.js} +0 -0
- /package/dist/public/assets/{lua-B3utixrX.js → lua-DM28D-6o.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-DL93ger0.js → mcp-consent-store-O7e02Mi1.js} +0 -0
- /package/dist/public/assets/{min-B7KH7bOg.js → min-wGNVvSoq.js} +0 -0
- /package/dist/public/assets/{panzoom.es-Cs7b857v.js → panzoom.es-DeqEaiMH.js} +0 -0
- /package/dist/public/assets/{parse-api-error-DfesE4Y7.js → parse-api-error-Mgtc4OJu.js} +0 -0
- /package/dist/public/assets/{path-BQp9Hq4z.js → path-B3Wp5BLm.js} +0 -0
- /package/dist/public/assets/{pdf-BHHpPt0J.js → pdf-CSS8JMnh.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BZYXl7oP.js → pdf.worker-BojfP6R3.js} +0 -0
- /package/dist/public/assets/{perl-CZ2U9dfT.js → perl-D5vgbj2Y.js} +0 -0
- /package/dist/public/assets/{project-paths-CSBBkRS0.js → project-paths-DJDWBB-8.js} +0 -0
- /package/dist/public/assets/{properties-CwLn0BUZ.js → properties-C7p4lNrk.js} +0 -0
- /package/dist/public/assets/{r-Crnq5PtH.js → r-BcyApZ2Y.js} +0 -0
- /package/dist/public/assets/{refresh-cw-DgVrChIu.js → refresh-cw-FMnveNBD.js} +0 -0
- /package/dist/public/assets/{rough.esm-B1TTUqnd.js → rough.esm-CIwjGUJO.js} +0 -0
- /package/dist/public/assets/{ruby-nTEDjg1w.js → ruby-DxabsNt7.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-DTrx2e2E.js → share-metadata-rows-CVWX1vOJ.js} +0 -0
- /package/dist/public/assets/{shell-CJ7sRXEH.js → shell-B2Oc-2BR.js} +0 -0
- /package/dist/public/assets/{sql-B7jXn3j6.js → sql-DWXp9JcL.js} +0 -0
- /package/dist/public/assets/{src-CvdYkko8.js → src-DyReJWGm.js} +0 -0
- /package/dist/public/assets/{startup-marks-2VTPXUbb.js → startup-marks-BJwpvHMe.js} +0 -0
- /package/dist/public/assets/{stex-CLng_sPo.js → stex-lDOZN-ZW.js} +0 -0
- /package/dist/public/assets/{swift-DKG9kMYe.js → swift-BlyE8smW.js} +0 -0
- /package/dist/public/assets/{textarea-D45cTFgp.js → textarea--26Ac0EI.js} +0 -0
- /package/dist/public/assets/{toml-ClZMF6Q0.js → toml-Bg2104qZ.js} +0 -0
- /package/dist/public/assets/{trash-2-U9wpS1zc.js → trash-2-Cgf308yS.js} +0 -0
- /package/dist/public/assets/{triangle-alert-BaZPlVka.js → triangle-alert-VZ_Cki-r.js} +0 -0
- /package/dist/public/assets/{worktree-store-Dwj7qwtV.js → worktree-store-DFmh2OE1.js} +0 -0
- /package/dist/public/assets/{x-_C6KOlzX.js → x-BUBUnCd-.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./wrapper-DkhhSWAE.mjs";import{Blob as r,Buffer as i}from"buffer";import a from"fs";import{TextDecoder as o,TextEncoder as s}from"util";import c from"path";import{URL as l,URLSearchParams as u}from"url";import d from"stream";import f,{webcrypto as ee}from"crypto";import te from"zlib";import ne from"child_process";import re from"http";import ie from"https";import{isIP as ae}from"net";import{PerformanceEntry as oe,PerformanceObserver as se}from"node:perf_hooks";import{ReadableStream as ce}from"stream/web";import le,{Script as ue}from"vm";const de=Symbol(`abort`),fe=Symbol(`activeElement`),pe=Symbol(`asyncTaskManager`),me=Symbol(`bodyBuffer`),he=Symbol(`buffer`),ge=Symbol(`cachedResponse`),_e=Symbol(`callbacks`),ve=Symbol(`checked`),ye=Symbol(`childNodes`),be=Symbol(`children`),xe=Symbol(`classList`),Se=Symbol(`connectedToNode`),Ce=Symbol(`disconnectedFromNode`),we=Symbol(`connectedToDocument`),Te=Symbol(`disconnectedFromDocument`),Ee=Symbol(`contentLength`),De=Symbol(`contentType`),Oe=Symbol(`cssText`),ke=Symbol(`currentScript`),Ae=Symbol(`currentTarget`),je=Symbol(`data`),Me=Symbol(`defaultView`),Ne=Symbol(`destroy`),Pe=Symbol(`dirtyness`),p=Symbol(`end`),Fe=Symbol(`entries`),Ie=Symbol(`evaluateScript`),Le=Symbol(`exceptionObserver`),Re=Symbol(`formNode`),ze=Symbol(`internalId`),m=Symbol(`height`),Be=Symbol(`immediatePropagationStopped`),Ve=Symbol(`indeterminate`),He=Symbol(`isFirstWrite`),Ue=Symbol(`isFirstWriteAfterOpen`),We=Symbol(`isInPassiveEventListener`),Ge=Symbol(`isValue`),Ke=Symbol(`listenerOptions`),qe=Symbol(`listeners`),Je=Symbol(`itemsByName`),Ye=Symbol(`nextActiveElement`),Xe=Symbol(`observeMutations`),Ze=Symbol(`mutationListeners`),h=Symbol(`ownerDocument`),Qe=Symbol(`ownerElement`),$e=Symbol(`propagationStopped`),et=Symbol(`readyStateManager`),tt=Symbol(`referrer`),nt=Symbol(`registry`),rt=Symbol(`relList`),it=Symbol(`resetSelection`),at=Symbol(`rootNode`),ot=Symbol(`selectNode`),st=Symbol(`selectedness`),ct=Symbol(`selection`),lt=Symbol(`setupVMContext`),ut=Symbol(`shadowRoot`),g=Symbol(`start`),dt=Symbol(`style`),ft=Symbol(`target`),pt=Symbol(`textAreaNode`),mt=Symbol(`unobserveMutations`),ht=Symbol(`reportMutation`),gt=Symbol(`updateSelectedness`),_t=Symbol(`url`),_=Symbol(`value`),v=Symbol(`width`),y=Symbol(`window`),vt=Symbol(`windowResizeListener`),yt=Symbol(`mutationObservers`),bt=Symbol(`openerFrame`),xt=Symbol(`openerWindow`),St=Symbol(`pointerCaptures`),Ct=Symbol(`popup`),b=Symbol(`isConnected`),x=Symbol(`parentNode`),S=Symbol(`nodeType`),C=Symbol(`tagName`),wt=Symbol(`prefix`),Tt=Symbol(`scrollHeight`),Et=Symbol(`scrollWidth`),Dt=Symbol(`scrollTop`),Ot=Symbol(`scrollLeft`),kt=Symbol(`attributes`),At=Symbol(`attributesProxy`),w=Symbol(`namespaceURI`),jt=Symbol(`accessKey`),Mt=Symbol(`offsetHeight`),Nt=Symbol(`offsetWidth`),Pt=Symbol(`offsetLeft`),Ft=Symbol(`offsetTop`),It=Symbol(`clientHeight`),Lt=Symbol(`clientWidth`),Rt=Symbol(`clientLeft`),zt=Symbol(`clientTop`),T=Symbol(`name`),Bt=Symbol(`specified`),Vt=Symbol(`adoptedStyleSheets`),Ht=Symbol(`implementation`),Ut=Symbol(`readyState`),Wt=Symbol(`publicId`),Gt=Symbol(`systemId`),Kt=Symbol(`validationMessage`),qt=Symbol(`validity`),Jt=Symbol(`returnValue`),Yt=Symbol(`elements`),Xt=Symbol(`complete`),Zt=Symbol(`naturalHeight`),Qt=Symbol(`naturalWidth`),$t=Symbol(`loading`),E=Symbol(`x`),D=Symbol(`y`),en=Symbol(`files`),tn=Symbol(`sheet`),nn=Symbol(`volume`),rn=Symbol(`paused`),an=Symbol(`currentTime`),on=Symbol(`playbackRate`),sn=Symbol(`defaultPlaybackRate`),cn=Symbol(`muted`),ln=Symbol(`defaultMuted`),un=Symbol(`preservesPitch`),dn=Symbol(`buffered`),fn=Symbol(`duration`),pn=Symbol(`error`),mn=Symbol(`ended`),hn=Symbol(`networkState`),gn=Symbol(`textTracks`),_n=Symbol(`seeking`),vn=Symbol(`seekable`),yn=Symbol(`played`),bn=Symbol(`options`),xn=Symbol(`content`),Sn=Symbol(`mode`),Cn=Symbol(`host`),wn=Symbol(`setURL`),O=Symbol(`localName`),Tn=Symbol(`classRegistry`),En=Symbol(`nodeStream`),Dn=Symbol(`location`),On=Symbol(`history`),kn=Symbol(`navigator`),An=Symbol(`screen`),jn=Symbol(`sessionStorage`),Mn=Symbol(`localStorage`),Nn=Symbol(`sandbox`),Pn=Symbol(`cloneNode`),Fn=Symbol(`appendChild`),In=Symbol(`removeChild`),Ln=Symbol(`insertBefore`),Rn=Symbol(`replaceChild`),zn=Symbol(`tracks`),Bn=Symbol(`constraints`),Vn=Symbol(`capabilities`),Hn=Symbol(`settings`),Un=Symbol(`removeNamedItem`),k=Symbol(`items`),Wn=Symbol(`selectedOptions`),Gn=Symbol(`styleNode`),Kn=Symbol(`updateSheet`),qn=Symbol(`clearCache`),Jn=Symbol(`onSetAttribute`),Yn=Symbol(`onRemoveAttribute`),A=Symbol(`nodeArray`),Xn=Symbol(`elementArray`),j=Symbol(`cache`),Zn=Symbol(`affectsCache`),Qn=Symbol(`forms`),$n=Symbol(`affectsComputedStyleCache`),er=Symbol(`query`),tr=Symbol(`computedStyle`),nr=Symbol(`getFormControlItems`),rr=Symbol(`getFormControlNamedItem`),ir=Symbol(`dataset`),ar=Symbol(`itemsByNamespaceURI`),or=Symbol(`proxy`),sr=Symbol(`setNamedItem`),cr=Symbol(`getTokenList`),lr=Symbol(`attributeName`),ur=Symbol(`selectedIndex`),dr=Symbol(`self`),fr=Symbol(`parent`),pr=Symbol(`top`),mr=Symbol(`areas`),hr=Symbol(`defaultValue`),gr=Symbol(`elementIdMap`),_r=Symbol(`clonable`),vr=Symbol(`delegatesFocus`),yr=Symbol(`serializable`),br=Symbol(`slotAssignment`),xr=Symbol(`assignedNodes`),Sr=Symbol(`assignedToSlot`),Cr=Symbol(`cells`),wr=Symbol(`rows`),Tr=Symbol(`headers`),Er=Symbol(`tBodies`),Dr=Symbol(`track`),Or=Symbol(`controlsList`),kr=Symbol(`mediaKeys`),Ar=Symbol(`remote`),jr=Symbol(`sinkId`),Mr=Symbol(`srcObject`),Nr=Symbol(`cues`),Pr=Symbol(`activeCues`),Fr=Symbol(`kind`),Ir=Symbol(`label`),Lr=Symbol(`language`),Rr=Symbol(`id`),M=Symbol(`illegalConstructor`),zr=Symbol(`state`),Br=Symbol(`canvas`),Vr=Symbol(`popoverTargetElement`),Hr=Symbol(`composed`),Ur=Symbol(`bubbles`),Wr=Symbol(`cancelable`),Gr=Symbol(`defaultPrevented`),Kr=Symbol(`eventPhase`),qr=Symbol(`timeStamp`),Jr=Symbol(`type`),Yr=Symbol(`detail`),Xr=Symbol(`destroyed`),Zr=Symbol(`aborted`),Qr=Symbol(`browserFrames`),$r=Symbol(`windowInternalId`),N=Symbol(`getItemList`),ei=Symbol(`requiredExtensions`),ti=Symbol(`systemLanguage`),ni=Symbol(`transform`),ri=Symbol(`baseVal`),ii=Symbol(`animVal`),ai=Symbol(`pathLength`),oi=Symbol(`viewBox`),si=Symbol(`markerUnits`),ci=Symbol(`markerWidth`),li=Symbol(`markerHeight`),ui=Symbol(`values`),di=Symbol(`orientType`),fi=Symbol(`orientAngle`),pi=Symbol(`refX`),mi=Symbol(`refY`),P=Symbol(`readOnly`),hi=Symbol(`preserveAspectRatio`),gi=Symbol(`animatedPoints`),_i=Symbol(`points`),vi=Symbol(`rx`),yi=Symbol(`ry`),bi=Symbol(`cx`),xi=Symbol(`cy`),Si=Symbol(`r`),Ci=Symbol(`clipPathUnits`),wi=Symbol(`maskUnits`),Ti=Symbol(`maskContentUnits`),Ei=Symbol(`filterUnits`),Di=Symbol(`primitiveUnits`),Oi=Symbol(`href`),ki=Symbol(`x1`),Ai=Symbol(`y1`),ji=Symbol(`x2`),Mi=Symbol(`y2`),Ni=Symbol(`gradientUnits`),Pi=Symbol(`gradientTransform`),Fi=Symbol(`spreadMethod`),Ii=Symbol(`patternUnits`),Li=Symbol(`patternContentUnits`),Ri=Symbol(`patternTransform`),zi=Symbol(`fx`),Bi=Symbol(`fy`),Vi=Symbol(`offset`),Hi=Symbol(`disabled`),Ui=Symbol(`textLength`),Wi=Symbol(`lengthAdjust`),F=Symbol(`getAttribute`),I=Symbol(`setAttribute`),Gi=Symbol(`z`),Ki=Symbol(`w`),qi=Symbol(`toArray`),Ji=Symbol(`fromString`),Yi=Symbol(`fromArray`),Xi=Symbol(`m11`),Zi=Symbol(`m12`),Qi=Symbol(`m13`),$i=Symbol(`m14`),ea=Symbol(`m21`),ta=Symbol(`m22`),na=Symbol(`m23`),ra=Symbol(`m24`),ia=Symbol(`m31`),aa=Symbol(`m32`),oa=Symbol(`m33`),sa=Symbol(`m34`),ca=Symbol(`m41`),la=Symbol(`m42`),ua=Symbol(`m43`),da=Symbol(`m44`),fa=Symbol(`setMatrixValue`),pa=Symbol(`translateSelf`),ma=Symbol(`rotateSelf`),ha=Symbol(`rotateAxisAngleSelf`),ga=Symbol(`scaleSelf`),_a=Symbol(`scale3dSelf`),va=Symbol(`scaleNonUniformSelf`),ya=Symbol(`skewXSelf`),ba=Symbol(`skewYSelf`),xa=Symbol(`multiplySelf`),Sa=Symbol(`matrix`),Ca=Symbol(`getDOMMatrix`),wa=Symbol(`setDOMMatrix`),L=Symbol(`attributeValue`),Ta=Symbol(`startOffset`),Ea=Symbol(`method`),Da=Symbol(`spacing`),R=Symbol(`in1`),Oa=Symbol(`in2`),z=Symbol(`result`),ka=Symbol(`bias`),Aa=Symbol(`divisor`),ja=Symbol(`edgeMode`),Ma=Symbol(`kernelMatrix`),Na=Symbol(`kernelUnitLengthX`),Pa=Symbol(`kernelUnitLengthY`),Fa=Symbol(`orderX`),Ia=Symbol(`orderY`),La=Symbol(`preserveAlpha`),Ra=Symbol(`targetX`),za=Symbol(`targetY`),Ba=Symbol(`diffuseConstant`),Va=Symbol(`surfaceScale`),Ha=Symbol(`scale`),Ua=Symbol(`xChannelSelector`),Wa=Symbol(`yChannelSelector`),Ga=Symbol(`azimuth`),Ka=Symbol(`elevation`),qa=Symbol(`dx`),Ja=Symbol(`dy`),Ya=Symbol(`stdDeviationX`),Xa=Symbol(`stdDeviationY`),Za=Symbol(`tableValues`),Qa=Symbol(`slope`),$a=Symbol(`intercept`),eo=Symbol(`amplitude`),to=Symbol(`exponent`),no=Symbol(`crossOrigin`),ro=Symbol(`operator`),io=Symbol(`radiusX`),ao=Symbol(`radiusY`),oo=Symbol(`specularConstant`),so=Symbol(`specularExponent`),co=Symbol(`pointsAtX`),lo=Symbol(`pointsAtY`),uo=Symbol(`pointsAtZ`),fo=Symbol(`limitingConeAngle`),po=Symbol(`baseFrequencyX`),mo=Symbol(`baseFrequencyY`),ho=Symbol(`numOctaves`),go=Symbol(`seed`),_o=Symbol(`stitchTiles`),vo=Symbol(`rotateFromVectorSelf`),yo=Symbol(`flipXSelf`),bo=Symbol(`flipYSelf`),xo=Symbol(`invertSelf`),So=Symbol(`getLength`),Co=Symbol(`currentScale`),wo=Symbol(`rotate`),To=Symbol(`bindMethods`),Eo=Symbol(`xmlProcessingInstruction`),Do=Symbol(`filterNode`),Oo=Symbol(`customElementReactionStack`),ko=Symbol(`dispatching`),Ao=Symbol(`modules`),jo=Symbol(`preloads`),Mo=Symbol(`body`),No=Symbol(`redirect`),Po=Symbol(`referrerPolicy`),Fo=Symbol(`signal`),Io=Symbol(`bodyUsed`),Lo=Symbol(`credentials`),Ro=Symbol(`blocking`),zo=Symbol(`moduleImportMap`),Bo=Symbol(`dispatchError`),Vo=Symbol(`supports`),Ho=Symbol(`reason`),B=Symbol(`propertyEventListeners`),Uo=Symbol(`cssRules`),Wo=Symbol(`parentRule`),Go=Symbol(`parentStyleSheet`),Ko=Symbol(`conditionText`),qo=Symbol(`keyText`),Jo=Symbol(`media`),Yo=Symbol(`styleMap`),Xo=Symbol(`selectorText`),Zo=Symbol(`cssParser`),Qo=Symbol(`cssRule`),$o=Symbol(`rulePrefix`),es=Symbol(`virtualServerFile`),ts=Symbol(`frames`),ns=Symbol(`disableEvaluation`),rs=Symbol(`validateJavaScriptExecutionEnvironment`),is=Symbol(`openWebSockets`),as=Symbol(`webSocket`),os=Symbol(`moduleCache`),ss=Symbol(`context`),cs=Symbol(`querySelectorCache`);var ls;(function(e){e.strict=`Strict`,e.lax=`Lax`,e.none=`None`})(ls||={});var us=ls,ds={key:null,originURL:null,value:null,domain:``,path:``,expires:null,httpOnly:!1,secure:!1,sameSite:us.lax},fs=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}},ps=class{static cookieMatchesURL(e,t){let n=t.hostname===`localhost`||t.hostname?.endsWith(`.localhost`);return(!e.secure||t.protocol===`https:`||n)&&(!e.domain||t.hostname?.endsWith(e.domain))&&(!e.path||t.pathname?.startsWith(e.path))&&(e.sameSite===us.none&&e.secure||e.originURL?.hostname===t.hostname)}},ms=class{#e=[];addCookies(e){let t=new Map,n=e=>`${e.key}-${e.originURL.hostname}-${e.path}-${typeof e.value}`;for(let e=0,r=this.#e.length;e<r;e++)t.set(n(this.#e[e]),e);for(let r of e){let e=Object.assign({},ds,r);if(e&&e.key&&e.originURL){let r=t.get(n(e));r!==void 0&&this.#e.splice(r,1),fs.hasExpired(e)||(t.set(n(e),this.#e.length),this.#e.push(e))}}}getCookies(e=null,t=!1){let n=[];for(let r of this.#e)!fs.hasExpired(r)&&(!t||!r.httpOnly)&&(!e||ps.cookieMatchesURL(r,e))&&n.push(r);return n}clearCookies(){this.#e=[]}},hs;(function(e){e.fresh=`fresh`,e.stale=`stale`})(hs||={});var gs=hs,_s;(function(e){e.invalidStateError=`InvalidStateError`,e.indexSizeError=`IndexSizeError`,e.syntaxError=`SyntaxError`,e.hierarchyRequestError=`HierarchyRequestError`,e.notSupportedError=`NotSupportedError`,e.wrongDocumentError=`WrongDocumentError`,e.invalidNodeTypeError=`InvalidNodeTypeError`,e.invalidCharacterError=`InvalidCharacterError`,e.notFoundError=`NotFoundError`,e.securityError=`SecurityError`,e.networkError=`NetworkError`,e.domException=`DOMException`,e.invalidAccessError=`InvalidAccessError`,e.unknownError=`UnknownError`,e.abortError=`AbortError`,e.timeoutError=`TimeoutError`,e.encodingError=`EncodingError`,e.uriMismatchError=`URIMismatchError`,e.inUseAttributeError=`InUseAttributeError`,e.namespaceError=`NamespaceError`})(_s||={});var V=_s,vs=class extends Error{constructor(e,t=null){super(e),this.name=t||V.domException}},ys=class e{[Fe]={};constructor(t){if(t)if(t instanceof e)this[Fe]=JSON.parse(JSON.stringify(t[Fe]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new vs(`Failed to construct "Headers": The provided init is not a valid array.`,V.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(e,t){let n=e.toLowerCase();this[Fe][n]?this[Fe][n].value.push(t):this[Fe][n]={name:e,value:[t]}}delete(e){delete this[Fe][e.toLowerCase()]}get(e){return this[Fe][e.toLowerCase()]?.value.join(`, `)??null}set(e,t){this[Fe][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Fe][`set-cookie`];return e?e.value:[]}has(e){return!!this[Fe][e.toLowerCase()]}forEach(e,t){let n=t??this[y];for(let t of Object.values(this[Fe]))e.call(n,t.value.join(`, `),t.name,this)}*keys(){for(let e of Object.values(this[Fe]))yield e.name}*values(){for(let e of Object.values(this[Fe]))yield e.value.join(`, `)}*entries(){for(let e of Object.values(this[Fe]))yield[e.name,e.value.join(`, `)]}*[Symbol.iterator](){for(let e of Object.values(this[Fe]))yield[e.name,e.value.join(`, `)]}},bs=class{#e=new Set;#t=new Set;#n;constructor(e){this.#n=e}async load(e){if(!e)throw Error(`Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.`);let t=c.resolve(e),n=[];try{n=await a.promises.readdir(t)}catch{return}let r=[],i=this.#n;for(let e of n)e.endsWith(`.json`)&&r.push(a.promises.readFile(c.join(t,e),`utf8`).then(n=>{let r=JSON.parse(n);if(r.response&&r.request&&!r.virtual)return r.response.headers=new ys(r.response.headers),r.request.headers=new ys(r.request.headers),a.promises.readFile(c.join(t,e.split(`.`)[0]+`.data`)).then(e=>{r.response.body=e;let t=i.get(r.response.url);t||(t=[],i.set(r.response.url,t)),t.push(r)}).catch(()=>{let e=i.get(r.response.url);e||(e=[],i.set(r.response.url,e)),e.push(r)})}).catch(()=>{}));await Promise.all(r)}async save(e){if(!e)throw Error(`Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.`);if(!this.#n.size)return;let t=c.resolve(e);if(!this.#e.has(t)){this.#e.add(t);try{await a.promises.mkdir(t,{recursive:!0})}catch{}}let n=this.#n,r=[];for(let e of n.values())for(let n of e)if(!n.virtual){let e={},i={};for(let[t,r]of n.response.headers.entries())e[t]=r;for(let[e,t]of n.request.headers.entries())i[e]=t;let o={...n,response:{...n.response,headers:e,body:null},request:{...n.request,headers:i}},s=JSON.stringify(o,null,3),l=f.createHash(`md5`).update(s).digest(`hex`);this.#t.has(l)||(this.#t.add(l),r.push(a.promises.writeFile(c.join(t,`${l}.json`),s)),n.response.body&&r.push(a.promises.writeFile(c.join(t,`${l}.data`),n.response.body)))}await Promise.all(r)}};const xs=[`Cache-Control`,`Last-Modified`,`Vary`,`ETag`];var Ss=class{fileSystem;#e=new Map;constructor(){this.fileSystem=new bs(this.#e)}get(e){if(e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let t=e.url,n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++){let r=n[t],i=r.request.method===e.method;if(i)for(let t of Object.keys(r.vary)){let n=e.headers.get(t);if(n!==null&&r.vary[t]!==n){i=!1;break}}if(i){if(r.expires&&r.expires<Date.now()){if(r.lastModified)r.state=gs.stale;else if(!r.etag)return n.splice(t,1),null}return r}}return null}add(e,t){if(e.method!==`GET`&&e.method!==`HEAD`||e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let n=e.url,r=this.get(e);if(t.status===304){if(!r)throw Error(`ResponseCache: Cached response not found.`);for(let e of xs)t.headers.has(e)&&r.response.headers.set(e,t.headers.get(e));r.cacheUpdateTime=Date.now(),r.state=gs.fresh}else{if(r){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}}r={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new ys(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:gs.fresh,virtual:t.virtual??!1};let i=this.#e.get(n);i||(i=[],this.#e.set(n,i)),i.push(r)}if(t.headers.has(`Cache-Control`)){let e=t.headers.get(`Age`);for(let i of t.headers.get(`Cache-Control`).split(`,`)){let[t,a]=i.trim().split(`=`);switch(t){case`max-age`:r.expires=Date.now()+parseFloat(a)*1e3-(e?parseFloat(e)*1e3:0);break;case`no-cache`:case`no-store`:let t=this.#e.get(n);if(t){let e=t.indexOf(r);e!==-1&&t.splice(e,1)}return null;case`must-revalidate`:r.mustRevalidate=!0;break;case`stale-while-revalidate`:r.staleWhileRevalidate=!0;break}}}if(t.headers.has(`Last-Modified`)&&(r.lastModified=Date.parse(t.headers.get(`Last-Modified`))),t.headers.has(`Vary`))for(let n of t.headers.get(`Vary`).split(`,`)){let t=n.trim(),i=e.headers.get(t);i&&(r.vary[t]=i)}if(t.headers.has(`ETag`)&&(r.etag=t.headers.get(`ETag`)),!r.expires){let e=t.headers.get(`Expires`);e&&(r.expires=Date.parse(e))}if(!r.etag&&(!r.expires||r.expires<Date.now())){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}return null}return r}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:this.#e.keys()){let n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++)n[t].cacheUpdateTime<e.toTime&&(n.splice(t,1),t--,r--)}else e.url&&this.#e.delete(e.url);else this.#e.clear()}},Cs;(function(e){e[e.log=0]=`log`,e[e.info=1]=`info`,e[e.warn=2]=`warn`,e[e.error=3]=`error`})(Cs||={});var ws=Cs,Ts;(function(e){e[e.elementNode=1]=`elementNode`,e[e.attributeNode=2]=`attributeNode`,e[e.textNode=3]=`textNode`,e[e.cdataSectionNode=4]=`cdataSectionNode`,e[e.commentNode=8]=`commentNode`,e[e.documentNode=9]=`documentNode`,e[e.documentTypeNode=10]=`documentTypeNode`,e[e.documentFragmentNode=11]=`documentFragmentNode`,e[e.processingInstructionNode=7]=`processingInstructionNode`})(Ts||={});var H=Ts,Es;(function(e){e[e.none=0]=`none`,e[e.capturing=1]=`capturing`,e[e.atTarget=2]=`atTarget`,e[e.bubbling=3]=`bubbling`})(Es||={});var Ds=Es,U=class e{static NONE=Ds.none;static CAPTURING_PHASE=Ds.capturing;static AT_TARGET=Ds.atTarget;static BUBBLING_PHASE=Ds.bubbling;NONE=e.NONE;CAPTURING_PHASE=e.CAPTURING_PHASE;AT_TARGET=e.AT_TARGET;BUBBLING_PHASE=e.BUBBLING_PHASE;[Hr]=!1;[Ur]=!1;[Wr]=!1;[Gr]=!1;[Kr]=Ds.none;[qr]=performance.now();[Jr];[ko]=!1;[Be]=!1;[$e]=!1;[ft]=null;[Ae]=null;[We]=!1;constructor(e,t=null){this[Jr]=e,this[Ur]=t?.bubbles??!1,this[Wr]=t?.cancelable??!1,this[Hr]=t?.composed??!1}get composed(){return this[Hr]}get bubbles(){return this[Ur]}get cancelable(){return this[Wr]}get defaultPrevented(){return this[Gr]}get eventPhase(){return this[Kr]}get timeStamp(){return this[qr]}get type(){return this[Jr]}get target(){return this[ft]}get currentTarget(){return this[Ae]}get cancelBubble(){return this[$e]}composedPath(){if(!this[ft])return[];let e=[],t=this[ft];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Hr]&&t[S]===H.documentFragmentNode&&t.host)t=t.host;else if(t[S]===H.documentNode&&this[Jr]!==`load`)t=t[y];else break;return e}initEvent(e,t=!1,n=!1){this[Jr]=e,this[Ur]=t,this[Wr]=n,this[$e]=!1,this[Be]=!1,this[Gr]=!1}preventDefault(){!this[We]&&this.cancelable&&(this[Gr]=!0)}stopImmediatePropagation(){this[Be]=!0}stopPropagation(){this[$e]=!0}},Os;(function(e){e.log=`log`,e.table=`table`,e.trace=`trace`,e.dir=`dir`,e.dirxml=`dirxml`,e.group=`group`,e.groupCollapsed=`groupCollapsed`,e.debug=`debug`,e.timeLog=`timeLog`,e.info=`info`,e.count=`count`,e.timeEnd=`timeEnd`,e.warn=`warn`,e.countReset=`countReset`,e.error=`error`,e.assert=`assert`})(Os||={});var ks=Os,As=class{static toString(e){if(this.isLogEntryCollapsed(e))return``;let t=this.getLogEntryGroupTabbing(e),n=t;for(let r of e.message)if(n+=n!==``&&n!==t?` `:``,typeof r==`object`&&(r===null||r.constructor.name===`Object`||Array.isArray(r)))try{n+=JSON.stringify(r)}catch{n+=Error(`Failed to JSON stringify object in log entry.`).stack.replace(/\n at/gm,`
|
|
1
|
+
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./wrapper-DkhhSWAE.mjs";import{Blob as r,Buffer as i}from"buffer";import a from"fs";import{TextDecoder as o,TextEncoder as s}from"util";import c from"path";import{URL as l,URLSearchParams as u}from"url";import d from"stream";import f,{webcrypto as ee}from"crypto";import te from"zlib";import ne from"child_process";import re from"http";import ie from"https";import{isIP as ae}from"net";import{ReadableStream as oe}from"stream/web";import se,{Script as ce}from"vm";import{PerformanceEntry as le,PerformanceObserver as ue}from"node:perf_hooks";const de=Symbol(`abort`),fe=Symbol(`activeElement`),pe=Symbol(`asyncTaskManager`),me=Symbol(`bodyBuffer`),he=Symbol(`buffer`),ge=Symbol(`cachedResponse`),_e=Symbol(`callbacks`),ve=Symbol(`checked`),ye=Symbol(`childNodes`),be=Symbol(`children`),xe=Symbol(`classList`),Se=Symbol(`connectedToNode`),Ce=Symbol(`disconnectedFromNode`),we=Symbol(`connectedToDocument`),Te=Symbol(`disconnectedFromDocument`),Ee=Symbol(`contentLength`),De=Symbol(`contentType`),Oe=Symbol(`cssText`),ke=Symbol(`currentScript`),Ae=Symbol(`currentTarget`),je=Symbol(`data`),Me=Symbol(`defaultView`),Ne=Symbol(`destroy`),Pe=Symbol(`dirtyness`),p=Symbol(`end`),Fe=Symbol(`entries`),Ie=Symbol(`evaluateScript`),Le=Symbol(`exceptionObserver`),Re=Symbol(`formNode`),ze=Symbol(`internalId`),m=Symbol(`height`),Be=Symbol(`immediatePropagationStopped`),Ve=Symbol(`indeterminate`),He=Symbol(`isFirstWrite`),Ue=Symbol(`isFirstWriteAfterOpen`),We=Symbol(`isInPassiveEventListener`),Ge=Symbol(`isValue`),Ke=Symbol(`listenerOptions`),qe=Symbol(`listeners`),Je=Symbol(`itemsByName`),Ye=Symbol(`nextActiveElement`),Xe=Symbol(`observeMutations`),Ze=Symbol(`mutationListeners`),h=Symbol(`ownerDocument`),Qe=Symbol(`ownerElement`),$e=Symbol(`propagationStopped`),et=Symbol(`readyStateManager`),tt=Symbol(`referrer`),nt=Symbol(`registry`),rt=Symbol(`relList`),it=Symbol(`resetSelection`),at=Symbol(`rootNode`),ot=Symbol(`selectNode`),st=Symbol(`selectedness`),ct=Symbol(`selection`),lt=Symbol(`setupVMContext`),ut=Symbol(`shadowRoot`),g=Symbol(`start`),dt=Symbol(`style`),ft=Symbol(`target`),pt=Symbol(`textAreaNode`),mt=Symbol(`unobserveMutations`),ht=Symbol(`reportMutation`),gt=Symbol(`updateSelectedness`),_t=Symbol(`url`),_=Symbol(`value`),v=Symbol(`width`),y=Symbol(`window`),vt=Symbol(`windowResizeListener`),yt=Symbol(`mutationObservers`),bt=Symbol(`openerFrame`),xt=Symbol(`openerWindow`),St=Symbol(`pointerCaptures`),Ct=Symbol(`popup`),b=Symbol(`isConnected`),x=Symbol(`parentNode`),S=Symbol(`nodeType`),C=Symbol(`tagName`),wt=Symbol(`prefix`),Tt=Symbol(`scrollHeight`),Et=Symbol(`scrollWidth`),Dt=Symbol(`scrollTop`),Ot=Symbol(`scrollLeft`),kt=Symbol(`attributes`),At=Symbol(`attributesProxy`),w=Symbol(`namespaceURI`),jt=Symbol(`accessKey`),Mt=Symbol(`offsetHeight`),Nt=Symbol(`offsetWidth`),Pt=Symbol(`offsetLeft`),Ft=Symbol(`offsetTop`),It=Symbol(`clientHeight`),Lt=Symbol(`clientWidth`),Rt=Symbol(`clientLeft`),zt=Symbol(`clientTop`),T=Symbol(`name`),Bt=Symbol(`specified`),Vt=Symbol(`adoptedStyleSheets`),Ht=Symbol(`implementation`),Ut=Symbol(`readyState`),Wt=Symbol(`publicId`),Gt=Symbol(`systemId`),Kt=Symbol(`validationMessage`),qt=Symbol(`validity`),Jt=Symbol(`returnValue`),Yt=Symbol(`elements`),Xt=Symbol(`complete`),Zt=Symbol(`naturalHeight`),Qt=Symbol(`naturalWidth`),$t=Symbol(`loading`),E=Symbol(`x`),D=Symbol(`y`),en=Symbol(`files`),tn=Symbol(`sheet`),nn=Symbol(`volume`),rn=Symbol(`paused`),an=Symbol(`currentTime`),on=Symbol(`playbackRate`),sn=Symbol(`defaultPlaybackRate`),cn=Symbol(`muted`),ln=Symbol(`defaultMuted`),un=Symbol(`preservesPitch`),dn=Symbol(`buffered`),fn=Symbol(`duration`),pn=Symbol(`error`),mn=Symbol(`ended`),hn=Symbol(`networkState`),gn=Symbol(`textTracks`),_n=Symbol(`seeking`),vn=Symbol(`seekable`),yn=Symbol(`played`),bn=Symbol(`options`),xn=Symbol(`content`),Sn=Symbol(`mode`),Cn=Symbol(`host`),wn=Symbol(`setURL`),O=Symbol(`localName`),Tn=Symbol(`classRegistry`),En=Symbol(`nodeStream`),Dn=Symbol(`location`),On=Symbol(`history`),kn=Symbol(`navigator`),An=Symbol(`screen`),jn=Symbol(`sessionStorage`),Mn=Symbol(`localStorage`),Nn=Symbol(`sandbox`),Pn=Symbol(`cloneNode`),Fn=Symbol(`appendChild`),In=Symbol(`removeChild`),Ln=Symbol(`insertBefore`),Rn=Symbol(`replaceChild`),zn=Symbol(`tracks`),Bn=Symbol(`constraints`),Vn=Symbol(`capabilities`),Hn=Symbol(`settings`),Un=Symbol(`removeNamedItem`),k=Symbol(`items`),Wn=Symbol(`selectedOptions`),Gn=Symbol(`styleNode`),Kn=Symbol(`updateSheet`),qn=Symbol(`clearCache`),Jn=Symbol(`onSetAttribute`),Yn=Symbol(`onRemoveAttribute`),A=Symbol(`nodeArray`),Xn=Symbol(`elementArray`),j=Symbol(`cache`),Zn=Symbol(`affectsCache`),Qn=Symbol(`forms`),$n=Symbol(`affectsComputedStyleCache`),er=Symbol(`query`),tr=Symbol(`computedStyle`),nr=Symbol(`getFormControlItems`),rr=Symbol(`getFormControlNamedItem`),ir=Symbol(`dataset`),ar=Symbol(`itemsByNamespaceURI`),or=Symbol(`proxy`),sr=Symbol(`setNamedItem`),cr=Symbol(`getTokenList`),lr=Symbol(`attributeName`),ur=Symbol(`selectedIndex`),dr=Symbol(`self`),fr=Symbol(`parent`),pr=Symbol(`top`),mr=Symbol(`areas`),hr=Symbol(`defaultValue`),gr=Symbol(`elementIdMap`),_r=Symbol(`clonable`),vr=Symbol(`delegatesFocus`),yr=Symbol(`serializable`),br=Symbol(`slotAssignment`),xr=Symbol(`assignedNodes`),Sr=Symbol(`assignedToSlot`),Cr=Symbol(`cells`),wr=Symbol(`rows`),Tr=Symbol(`headers`),Er=Symbol(`tBodies`),Dr=Symbol(`track`),Or=Symbol(`controlsList`),kr=Symbol(`mediaKeys`),Ar=Symbol(`remote`),jr=Symbol(`sinkId`),Mr=Symbol(`srcObject`),Nr=Symbol(`cues`),Pr=Symbol(`activeCues`),Fr=Symbol(`kind`),Ir=Symbol(`label`),Lr=Symbol(`language`),Rr=Symbol(`id`),M=Symbol(`illegalConstructor`),zr=Symbol(`state`),Br=Symbol(`canvas`),Vr=Symbol(`popoverTargetElement`),Hr=Symbol(`composed`),Ur=Symbol(`bubbles`),Wr=Symbol(`cancelable`),Gr=Symbol(`defaultPrevented`),Kr=Symbol(`eventPhase`),qr=Symbol(`timeStamp`),Jr=Symbol(`type`),Yr=Symbol(`detail`),Xr=Symbol(`destroyed`),Zr=Symbol(`aborted`),Qr=Symbol(`browserFrames`),$r=Symbol(`windowInternalId`),N=Symbol(`getItemList`),ei=Symbol(`requiredExtensions`),ti=Symbol(`systemLanguage`),ni=Symbol(`transform`),ri=Symbol(`baseVal`),ii=Symbol(`animVal`),ai=Symbol(`pathLength`),oi=Symbol(`viewBox`),si=Symbol(`markerUnits`),ci=Symbol(`markerWidth`),li=Symbol(`markerHeight`),ui=Symbol(`values`),di=Symbol(`orientType`),fi=Symbol(`orientAngle`),pi=Symbol(`refX`),mi=Symbol(`refY`),P=Symbol(`readOnly`),hi=Symbol(`preserveAspectRatio`),gi=Symbol(`animatedPoints`),_i=Symbol(`points`),vi=Symbol(`rx`),yi=Symbol(`ry`),bi=Symbol(`cx`),xi=Symbol(`cy`),Si=Symbol(`r`),Ci=Symbol(`clipPathUnits`),wi=Symbol(`maskUnits`),Ti=Symbol(`maskContentUnits`),Ei=Symbol(`filterUnits`),Di=Symbol(`primitiveUnits`),Oi=Symbol(`href`),ki=Symbol(`x1`),Ai=Symbol(`y1`),ji=Symbol(`x2`),Mi=Symbol(`y2`),Ni=Symbol(`gradientUnits`),Pi=Symbol(`gradientTransform`),Fi=Symbol(`spreadMethod`),Ii=Symbol(`patternUnits`),Li=Symbol(`patternContentUnits`),Ri=Symbol(`patternTransform`),zi=Symbol(`fx`),Bi=Symbol(`fy`),Vi=Symbol(`offset`),Hi=Symbol(`disabled`),Ui=Symbol(`textLength`),Wi=Symbol(`lengthAdjust`),F=Symbol(`getAttribute`),I=Symbol(`setAttribute`),Gi=Symbol(`z`),Ki=Symbol(`w`),qi=Symbol(`toArray`),Ji=Symbol(`fromString`),Yi=Symbol(`fromArray`),Xi=Symbol(`m11`),Zi=Symbol(`m12`),Qi=Symbol(`m13`),$i=Symbol(`m14`),ea=Symbol(`m21`),ta=Symbol(`m22`),na=Symbol(`m23`),ra=Symbol(`m24`),ia=Symbol(`m31`),aa=Symbol(`m32`),oa=Symbol(`m33`),sa=Symbol(`m34`),ca=Symbol(`m41`),la=Symbol(`m42`),ua=Symbol(`m43`),da=Symbol(`m44`),fa=Symbol(`setMatrixValue`),pa=Symbol(`translateSelf`),ma=Symbol(`rotateSelf`),ha=Symbol(`rotateAxisAngleSelf`),ga=Symbol(`scaleSelf`),_a=Symbol(`scale3dSelf`),va=Symbol(`scaleNonUniformSelf`),ya=Symbol(`skewXSelf`),ba=Symbol(`skewYSelf`),xa=Symbol(`multiplySelf`),Sa=Symbol(`matrix`),Ca=Symbol(`getDOMMatrix`),wa=Symbol(`setDOMMatrix`),L=Symbol(`attributeValue`),Ta=Symbol(`startOffset`),Ea=Symbol(`method`),Da=Symbol(`spacing`),R=Symbol(`in1`),Oa=Symbol(`in2`),z=Symbol(`result`),ka=Symbol(`bias`),Aa=Symbol(`divisor`),ja=Symbol(`edgeMode`),Ma=Symbol(`kernelMatrix`),Na=Symbol(`kernelUnitLengthX`),Pa=Symbol(`kernelUnitLengthY`),Fa=Symbol(`orderX`),Ia=Symbol(`orderY`),La=Symbol(`preserveAlpha`),Ra=Symbol(`targetX`),za=Symbol(`targetY`),Ba=Symbol(`diffuseConstant`),Va=Symbol(`surfaceScale`),Ha=Symbol(`scale`),Ua=Symbol(`xChannelSelector`),Wa=Symbol(`yChannelSelector`),Ga=Symbol(`azimuth`),Ka=Symbol(`elevation`),qa=Symbol(`dx`),Ja=Symbol(`dy`),Ya=Symbol(`stdDeviationX`),Xa=Symbol(`stdDeviationY`),Za=Symbol(`tableValues`),Qa=Symbol(`slope`),$a=Symbol(`intercept`),eo=Symbol(`amplitude`),to=Symbol(`exponent`),no=Symbol(`crossOrigin`),ro=Symbol(`operator`),io=Symbol(`radiusX`),ao=Symbol(`radiusY`),oo=Symbol(`specularConstant`),so=Symbol(`specularExponent`),co=Symbol(`pointsAtX`),lo=Symbol(`pointsAtY`),uo=Symbol(`pointsAtZ`),fo=Symbol(`limitingConeAngle`),po=Symbol(`baseFrequencyX`),mo=Symbol(`baseFrequencyY`),ho=Symbol(`numOctaves`),go=Symbol(`seed`),_o=Symbol(`stitchTiles`),vo=Symbol(`rotateFromVectorSelf`),yo=Symbol(`flipXSelf`),bo=Symbol(`flipYSelf`),xo=Symbol(`invertSelf`),So=Symbol(`getLength`),Co=Symbol(`currentScale`),wo=Symbol(`rotate`),To=Symbol(`bindMethods`),Eo=Symbol(`xmlProcessingInstruction`),Do=Symbol(`filterNode`),Oo=Symbol(`customElementReactionStack`),ko=Symbol(`dispatching`),Ao=Symbol(`modules`),jo=Symbol(`preloads`),Mo=Symbol(`body`),No=Symbol(`redirect`),Po=Symbol(`referrerPolicy`),Fo=Symbol(`signal`),Io=Symbol(`bodyUsed`),Lo=Symbol(`credentials`),Ro=Symbol(`blocking`),zo=Symbol(`moduleImportMap`),Bo=Symbol(`dispatchError`),Vo=Symbol(`supports`),Ho=Symbol(`reason`),B=Symbol(`propertyEventListeners`),Uo=Symbol(`cssRules`),Wo=Symbol(`parentRule`),Go=Symbol(`parentStyleSheet`),Ko=Symbol(`conditionText`),qo=Symbol(`keyText`),Jo=Symbol(`media`),Yo=Symbol(`styleMap`),Xo=Symbol(`selectorText`),Zo=Symbol(`cssParser`),Qo=Symbol(`cssRule`),$o=Symbol(`rulePrefix`),es=Symbol(`virtualServerFile`),ts=Symbol(`frames`),ns=Symbol(`disableEvaluation`),rs=Symbol(`validateJavaScriptExecutionEnvironment`),is=Symbol(`openWebSockets`),as=Symbol(`webSocket`),os=Symbol(`moduleCache`),ss=Symbol(`context`),cs=Symbol(`querySelectorCache`);var ls;(function(e){e.strict=`Strict`,e.lax=`Lax`,e.none=`None`})(ls||={});var us=ls,ds={key:null,originURL:null,value:null,domain:``,path:``,expires:null,httpOnly:!1,secure:!1,sameSite:us.lax},fs=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}},ps=class{static cookieMatchesURL(e,t){let n=t.hostname===`localhost`||t.hostname?.endsWith(`.localhost`);return(!e.secure||t.protocol===`https:`||n)&&(!e.domain||t.hostname?.endsWith(e.domain))&&(!e.path||t.pathname?.startsWith(e.path))&&(e.sameSite===us.none&&e.secure||e.originURL?.hostname===t.hostname)}},ms=class{#e=[];addCookies(e){let t=new Map,n=e=>`${e.key}-${e.originURL.hostname}-${e.path}-${typeof e.value}`;for(let e=0,r=this.#e.length;e<r;e++)t.set(n(this.#e[e]),e);for(let r of e){let e=Object.assign({},ds,r);if(e&&e.key&&e.originURL){let r=t.get(n(e));r!==void 0&&this.#e.splice(r,1),fs.hasExpired(e)||(t.set(n(e),this.#e.length),this.#e.push(e))}}}getCookies(e=null,t=!1){let n=[];for(let r of this.#e)!fs.hasExpired(r)&&(!t||!r.httpOnly)&&(!e||ps.cookieMatchesURL(r,e))&&n.push(r);return n}clearCookies(){this.#e=[]}},hs;(function(e){e.fresh=`fresh`,e.stale=`stale`})(hs||={});var gs=hs,_s;(function(e){e.invalidStateError=`InvalidStateError`,e.indexSizeError=`IndexSizeError`,e.syntaxError=`SyntaxError`,e.hierarchyRequestError=`HierarchyRequestError`,e.notSupportedError=`NotSupportedError`,e.wrongDocumentError=`WrongDocumentError`,e.invalidNodeTypeError=`InvalidNodeTypeError`,e.invalidCharacterError=`InvalidCharacterError`,e.notFoundError=`NotFoundError`,e.securityError=`SecurityError`,e.networkError=`NetworkError`,e.domException=`DOMException`,e.invalidAccessError=`InvalidAccessError`,e.unknownError=`UnknownError`,e.abortError=`AbortError`,e.timeoutError=`TimeoutError`,e.encodingError=`EncodingError`,e.uriMismatchError=`URIMismatchError`,e.inUseAttributeError=`InUseAttributeError`,e.namespaceError=`NamespaceError`})(_s||={});var V=_s,vs=class extends Error{constructor(e,t=null){super(e),this.name=t||V.domException}},ys=class e{[Fe]={};constructor(t){if(t)if(t instanceof e)this[Fe]=JSON.parse(JSON.stringify(t[Fe]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new vs(`Failed to construct "Headers": The provided init is not a valid array.`,V.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(e,t){let n=e.toLowerCase();this[Fe][n]?this[Fe][n].value.push(t):this[Fe][n]={name:e,value:[t]}}delete(e){delete this[Fe][e.toLowerCase()]}get(e){return this[Fe][e.toLowerCase()]?.value.join(`, `)??null}set(e,t){this[Fe][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Fe][`set-cookie`];return e?e.value:[]}has(e){return!!this[Fe][e.toLowerCase()]}forEach(e,t){let n=t??this[y];for(let t of Object.values(this[Fe]))e.call(n,t.value.join(`, `),t.name,this)}*keys(){for(let e of Object.values(this[Fe]))yield e.name}*values(){for(let e of Object.values(this[Fe]))yield e.value.join(`, `)}*entries(){for(let e of Object.values(this[Fe]))yield[e.name,e.value.join(`, `)]}*[Symbol.iterator](){for(let e of Object.values(this[Fe]))yield[e.name,e.value.join(`, `)]}},bs=class{#e=new Set;#t=new Set;#n;constructor(e){this.#n=e}async load(e){if(!e)throw Error(`Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.`);let t=c.resolve(e),n=[];try{n=await a.promises.readdir(t)}catch{return}let r=[],i=this.#n;for(let e of n)e.endsWith(`.json`)&&r.push(a.promises.readFile(c.join(t,e),`utf8`).then(n=>{let r=JSON.parse(n);if(r.response&&r.request&&!r.virtual)return r.response.headers=new ys(r.response.headers),r.request.headers=new ys(r.request.headers),a.promises.readFile(c.join(t,e.split(`.`)[0]+`.data`)).then(e=>{r.response.body=e;let t=i.get(r.response.url);t||(t=[],i.set(r.response.url,t)),t.push(r)}).catch(()=>{let e=i.get(r.response.url);e||(e=[],i.set(r.response.url,e)),e.push(r)})}).catch(()=>{}));await Promise.all(r)}async save(e){if(!e)throw Error(`Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.`);if(!this.#n.size)return;let t=c.resolve(e);if(!this.#e.has(t)){this.#e.add(t);try{await a.promises.mkdir(t,{recursive:!0})}catch{}}let n=this.#n,r=[];for(let e of n.values())for(let n of e)if(!n.virtual){let e={},i={};for(let[t,r]of n.response.headers.entries())e[t]=r;for(let[e,t]of n.request.headers.entries())i[e]=t;let o={...n,response:{...n.response,headers:e,body:null},request:{...n.request,headers:i}},s=JSON.stringify(o,null,3),l=f.createHash(`md5`).update(s).digest(`hex`);this.#t.has(l)||(this.#t.add(l),r.push(a.promises.writeFile(c.join(t,`${l}.json`),s)),n.response.body&&r.push(a.promises.writeFile(c.join(t,`${l}.data`),n.response.body)))}await Promise.all(r)}};const xs=[`Cache-Control`,`Last-Modified`,`Vary`,`ETag`];var Ss=class{fileSystem;#e=new Map;constructor(){this.fileSystem=new bs(this.#e)}get(e){if(e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let t=e.url,n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++){let r=n[t],i=r.request.method===e.method;if(i)for(let t of Object.keys(r.vary)){let n=e.headers.get(t);if(n!==null&&r.vary[t]!==n){i=!1;break}}if(i){if(r.expires&&r.expires<Date.now()){if(r.lastModified)r.state=gs.stale;else if(!r.etag)return n.splice(t,1),null}return r}}return null}add(e,t){if(e.method!==`GET`&&e.method!==`HEAD`||e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let n=e.url,r=this.get(e);if(t.status===304){if(!r)throw Error(`ResponseCache: Cached response not found.`);for(let e of xs)t.headers.has(e)&&r.response.headers.set(e,t.headers.get(e));r.cacheUpdateTime=Date.now(),r.state=gs.fresh}else{if(r){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}}r={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new ys(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:gs.fresh,virtual:t.virtual??!1};let i=this.#e.get(n);i||(i=[],this.#e.set(n,i)),i.push(r)}if(t.headers.has(`Cache-Control`)){let e=t.headers.get(`Age`);for(let i of t.headers.get(`Cache-Control`).split(`,`)){let[t,a]=i.trim().split(`=`);switch(t){case`max-age`:r.expires=Date.now()+parseFloat(a)*1e3-(e?parseFloat(e)*1e3:0);break;case`no-cache`:case`no-store`:let t=this.#e.get(n);if(t){let e=t.indexOf(r);e!==-1&&t.splice(e,1)}return null;case`must-revalidate`:r.mustRevalidate=!0;break;case`stale-while-revalidate`:r.staleWhileRevalidate=!0;break}}}if(t.headers.has(`Last-Modified`)&&(r.lastModified=Date.parse(t.headers.get(`Last-Modified`))),t.headers.has(`Vary`))for(let n of t.headers.get(`Vary`).split(`,`)){let t=n.trim(),i=e.headers.get(t);i&&(r.vary[t]=i)}if(t.headers.has(`ETag`)&&(r.etag=t.headers.get(`ETag`)),!r.expires){let e=t.headers.get(`Expires`);e&&(r.expires=Date.parse(e))}if(!r.etag&&(!r.expires||r.expires<Date.now())){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}return null}return r}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:this.#e.keys()){let n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++)n[t].cacheUpdateTime<e.toTime&&(n.splice(t,1),t--,r--)}else e.url&&this.#e.delete(e.url);else this.#e.clear()}},Cs;(function(e){e[e.log=0]=`log`,e[e.info=1]=`info`,e[e.warn=2]=`warn`,e[e.error=3]=`error`})(Cs||={});var ws=Cs,Ts;(function(e){e[e.elementNode=1]=`elementNode`,e[e.attributeNode=2]=`attributeNode`,e[e.textNode=3]=`textNode`,e[e.cdataSectionNode=4]=`cdataSectionNode`,e[e.commentNode=8]=`commentNode`,e[e.documentNode=9]=`documentNode`,e[e.documentTypeNode=10]=`documentTypeNode`,e[e.documentFragmentNode=11]=`documentFragmentNode`,e[e.processingInstructionNode=7]=`processingInstructionNode`})(Ts||={});var H=Ts,Es;(function(e){e[e.none=0]=`none`,e[e.capturing=1]=`capturing`,e[e.atTarget=2]=`atTarget`,e[e.bubbling=3]=`bubbling`})(Es||={});var Ds=Es,U=class e{static NONE=Ds.none;static CAPTURING_PHASE=Ds.capturing;static AT_TARGET=Ds.atTarget;static BUBBLING_PHASE=Ds.bubbling;NONE=e.NONE;CAPTURING_PHASE=e.CAPTURING_PHASE;AT_TARGET=e.AT_TARGET;BUBBLING_PHASE=e.BUBBLING_PHASE;[Hr]=!1;[Ur]=!1;[Wr]=!1;[Gr]=!1;[Kr]=Ds.none;[qr]=performance.now();[Jr];[ko]=!1;[Be]=!1;[$e]=!1;[ft]=null;[Ae]=null;[We]=!1;constructor(e,t=null){this[Jr]=e,this[Ur]=t?.bubbles??!1,this[Wr]=t?.cancelable??!1,this[Hr]=t?.composed??!1}get composed(){return this[Hr]}get bubbles(){return this[Ur]}get cancelable(){return this[Wr]}get defaultPrevented(){return this[Gr]}get eventPhase(){return this[Kr]}get timeStamp(){return this[qr]}get type(){return this[Jr]}get target(){return this[ft]}get currentTarget(){return this[Ae]}get cancelBubble(){return this[$e]}composedPath(){if(!this[ft])return[];let e=[],t=this[ft];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Hr]&&t[S]===H.documentFragmentNode&&t.host)t=t.host;else if(t[S]===H.documentNode&&this[Jr]!==`load`)t=t[y];else break;return e}initEvent(e,t=!1,n=!1){this[Jr]=e,this[Ur]=t,this[Wr]=n,this[$e]=!1,this[Be]=!1,this[Gr]=!1}preventDefault(){!this[We]&&this.cancelable&&(this[Gr]=!0)}stopImmediatePropagation(){this[Be]=!0}stopPropagation(){this[$e]=!0}},Os;(function(e){e.log=`log`,e.table=`table`,e.trace=`trace`,e.dir=`dir`,e.dirxml=`dirxml`,e.group=`group`,e.groupCollapsed=`groupCollapsed`,e.debug=`debug`,e.timeLog=`timeLog`,e.info=`info`,e.count=`count`,e.timeEnd=`timeEnd`,e.warn=`warn`,e.countReset=`countReset`,e.error=`error`,e.assert=`assert`})(Os||={});var ks=Os,As=class{static toString(e){if(this.isLogEntryCollapsed(e))return``;let t=this.getLogEntryGroupTabbing(e),n=t;for(let r of e.message)if(n+=n!==``&&n!==t?` `:``,typeof r==`object`&&(r===null||r.constructor.name===`Object`||Array.isArray(r)))try{n+=JSON.stringify(r)}catch{n+=Error(`Failed to JSON stringify object in log entry.`).stack.replace(/\n at/gm,`
|
|
2
2
|
`+t+`at`)}else typeof r==`object`&&r.message&&r.stack?n+=r.stack.replace(/\n at/gm,`
|
|
3
3
|
`+t+`at`):n+=this.getLogEntryIcon(e)+String(r);return n+`
|
|
4
4
|
`}static getLogEntryIcon(e){switch(e.type){case ks.group:return`▼ `;case ks.groupCollapsed:return`▶ `}return``}static getLogEntryGroupTabbing(e){let t=``,n=e.type===ks.group||e.type===ks.groupCollapsed?e.group?.parent:e.group;for(;n;)t+=` `,n=n.parent;return t}static isLogEntryCollapsed(e){let t=e.type===ks.group||e.type===ks.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}},js=class{#e=[];#t={print:[],clear:[]};#n=!1;get closed(){return this.#n}print(e){this.#n||(this.#e.push(e),this.dispatchEvent(new U(`print`)))}clear(){this.#n||(this.#e=[],this.dispatchEvent(new U(`clear`)))}close(){this.#n||=(this.#e=[],this.#t={print:[],clear:[]},!0)}addEventListener(e,t){if(!this.#n){if(!this.#t[e])throw Error(`Event type "${e}" is not supported.`);this.#t[e].push(t)}}removeEventListener(e,t){if(this.#n)return;if(!this.#t[e])throw Error(`Event type "${e}" is not supported.`);let n=this.#t[e].indexOf(t);n!==-1&&this.#t[e].splice(n,1)}dispatchEvent(e){if(!this.#n)switch(e.type){case`print`:case`clear`:for(let t of this.#t[e.type])t(e);break;default:throw Error(`Event type "${e.type}" is not supported.`)}}read(){let e=this.#e;return this.#e=[],e}readAsString(e=ws.log){let t=this.read(),n=``;for(let r of t)r.level>=e&&(n+=As.toString(r));return n}},Ms=class extends Error{constructor(e){super(e),this.name=`AsyncTaskManagerDebugError`}};const Ns={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};var Ps=class{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#e=null;#t;constructor(e){this.#t=e}waitUntilComplete(){return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(e){if(this.destroyed){Ns.clearTimeout(e);return}this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null),this.runningTimers.push(e),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new Ms().stack)}endTimer(e){if(this.destroyed){Ns.clearTimeout(e);return}let t=this.runningTimers.indexOf(e);t!==-1&&(this.runningTimers.splice(t,1),this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startImmediate(e){if(this.destroyed){Ns.clearImmediate(e);return}this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null),this.runningImmediates.push(e),this.#t.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new Ms().stack)}endImmediate(e){if(this.destroyed){Ns.clearImmediate(e);return}let t=this.runningImmediates.indexOf(e);t!==-1&&(this.runningImmediates.splice(t,1),this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startTask(e){if(this.destroyed)throw e&&e(this.destroyed),new this.#t.window.Error(`Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.`);this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null);let t=this.newTaskID();return this.runningTasks[t]=e||(()=>{}),this.runningTaskCount++,this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new Ms().stack),t}endTask(e){this.destroyed||(this.runningTasks[e]&&(delete this.runningTasks[e],this.runningTaskCount--,this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null),this.waitUntilCompleteTimer=Ns.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#e&&Ns.clearTimeout(this.#e);let e=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let t of e)t.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let e=this.#t.page.context.browser.settings.debug;!e?.traceWaitUntilComplete||e.traceWaitUntilComplete<1||(this.#e||=Ns.setTimeout(()=>{this.#e=null;let e=`The maximum time was reached for "waitUntilComplete()".\n\n${this.debugTrace.size} task${this.debugTrace.size===1?``:`s`} did not end in time.\n\nThe following traces were recorded:\n\n`,t=1;for(let[n,r]of this.debugTrace.entries())e+=`${typeof n==`number`?`Task`:`Timer`} #${t}\n‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾${r.replace(/AsyncTaskManagerDebugError:{0,1}/,``).replace(/\s+at /gm,`
|
|
5
|
-
> `)}\n\n`,t++;let n=Error(e);for(let e of this.waitUntilCompleteResolvers)e.reject(n);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,n=this.runningImmediates,r=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null);for(let e of n)Ns.clearImmediate(e);for(let e of t)Ns.clearTimeout(e);for(let t of Object.keys(r))r[t](e);return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}};const Fs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;var Is=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new vs(`Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.`,V.invalidCharacterError);let n=``,r=-6,i=0,a=0,o=0,s;for(;a<t.length||r>-6;)r<0&&(a<t.length?(s=t.charCodeAt(a++),o+=8):s=0,i=(i&255)<<8|s&255,r+=8),n+=Fs.charAt(o>0?i>>r&63:64),r-=6,o-=6;return n}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new vs(`Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.`,V.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new vs(`Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.`,V.invalidCharacterError);let n=``,r=-8,i=0,a,o;for(let e=0;e<t.length;e++)(a=Fs.indexOf(t.charAt(e)))<0||(i=i<<6|a&63,(r+=6)>=0&&(o=i>>r&255,a!==64&&(n+=String.fromCharCode(o)),i&=63,r-=8));return n}},Ls;(function(e){e.tryAndCatch=`tryAndCatch`,e.processLevel=`processLevel`,e.disabled=`disabled`})(Ls||={});var Rs=Ls,zs=class e{type=``;[he];constructor(t,n){let r=[];if(t)for(let n of t){let t;t=n instanceof ArrayBuffer?i.from(new Uint8Array(n)):n instanceof e?n[he]:n instanceof i?n:ArrayBuffer.isView(n)?i.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):i.from(typeof n==`string`?n:String(n)),r.push(t)}this[he]=i.concat(r),n&&n.type&&n.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(n.type).toLowerCase())}get size(){return this[he].length}slice(t=0,n=null,r=``){let i=this.size,a,o,s;a=t===void 0?0:t<0?Math.max(i+t,0):Math.min(t,i),o=n===null?i:n<0?Math.max(i+n,0):Math.min(n,i),s=r===void 0?``:r;let c=Math.max(o-a,0),l=this[he].slice(a,a+c),u=new e([],{type:s});return u[he]=l,u}async arrayBuffer(){return new Uint8Array(this[he]).buffer}async text(){return this[he].toString()}stream(){let e=this[he];return new ce({start(t){t.enqueue(e),t.close()}})}toString(){return`[object Blob]`}},Bs=class{#e;#t=[];constructor(e){if(!e)throw TypeError(`Illegal constructor`);this.#e=e}async read(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'read' on 'Clipboard': The request is not allowed`);return this.#t}async readText(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'readText' on 'Clipboard': The request is not allowed`);let e=``;for(let t of this.#t)if(t.types.includes(`text/plain`)){let n=await t.getType(`text/plain`);typeof n==`string`?e+=n:e+=await n.text()}return e}async write(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'write' on 'Clipboard': The request is not allowed`);this.#t=e}async writeText(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'writeText' on 'Clipboard': The request is not allowed`);this.#t=[new this.#e.ClipboardItem({"text/plain":new zs([e],{type:`text/plain`})})]}},Vs=class{presentationStyle=`unspecified`;#e;constructor(e,t){this.#e=e,t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(this.#e)}async getType(e){if(!this.#e[e])throw new vs(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return this.#e[e]instanceof zs?this.#e[e]:new zs([await this.#e[e]],{type:e})}},Hs=class{static escape(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n==1&&o==45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}},Us=`Hz.Q.ch.cm.deg.dpcm.dpi.dppx.em.ex.fr.grad.in.kHz.mm.ms.number.pc.percent.pt.px.rad.rem.s.turn.vh.vmax.vmin.vw`.split(`.`),Ws=class{unit;value;constructor(e,t){if(typeof e!=`number`)throw TypeError(`The provided double value is non-finite`);if(!Us.includes(t))throw TypeError(`Invalid unit: `+t);this.value=e,this.unit=t}},Gs=class{Hz=e=>new Ws(e,`Hz`);Q=e=>new Ws(e,`Q`);ch=e=>new Ws(e,`ch`);cm=e=>new Ws(e,`cm`);deg=e=>new Ws(e,`deg`);dpcm=e=>new Ws(e,`dpcm`);dpi=e=>new Ws(e,`dpi`);dppx=e=>new Ws(e,`dppx`);em=e=>new Ws(e,`em`);ex=e=>new Ws(e,`ex`);fr=e=>new Ws(e,`fr`);grad=e=>new Ws(e,`grad`);in=e=>new Ws(e,`in`);kHz=e=>new Ws(e,`kHz`);mm=e=>new Ws(e,`mm`);ms=e=>new Ws(e,`ms`);number=e=>new Ws(e,`number`);pc=e=>new Ws(e,`pc`);percent=e=>new Ws(e,`percent`);pt=e=>new Ws(e,`pt`);px=e=>new Ws(e,`px`);rad=e=>new Ws(e,`rad`);rem=e=>new Ws(e,`rem`);s=e=>new Ws(e,`s`);turn=e=>new Ws(e,`turn`);vh=e=>new Ws(e,`vh`);vmax=e=>new Ws(e,`vmax`);vmin=e=>new Ws(e,`vmin`);vw=e=>new Ws(e,`vw`);supports(e,t){return!0}escape(e){return Hs.escape(e)}},Ks;(function(e){e[e.containerRule=0]=`containerRule`,e[e.styleRule=1]=`styleRule`,e[e.importRule=3]=`importRule`,e[e.mediaRule=4]=`mediaRule`,e[e.fontFaceRule=5]=`fontFaceRule`,e[e.pageRule=6]=`pageRule`,e[e.keyframesRule=7]=`keyframesRule`,e[e.keyframeRule=8]=`keyframeRule`,e[e.namespaceRule=10]=`namespaceRule`,e[e.counterStyleRule=11]=`counterStyleRule`,e[e.supportsRule=12]=`supportsRule`,e[e.documentRule=13]=`documentRule`,e[e.fontFeatureValuesRule=14]=`fontFeatureValuesRule`,e[e.regionStyleRule=16]=`regionStyleRule`})(Ks||={});var W=Ks,qs=class{static CONTAINER_RULE=W.containerRule;static STYLE_RULE=W.styleRule;static IMPORT_RULE=W.importRule;static MEDIA_RULE=W.mediaRule;static FONT_FACE_RULE=W.fontFaceRule;static PAGE_RULE=W.pageRule;static KEYFRAMES_RULE=W.keyframesRule;static KEYFRAME_RULE=W.keyframeRule;static NAMESPACE_RULE=W.namespaceRule;static COUNTER_STYLE_RULE=W.counterStyleRule;static SUPPORTS_RULE=W.supportsRule;static DOCUMENT_RULE=W.documentRule;static FONT_FEATURE_VALUES_RULE=W.fontFeatureValuesRule;static REGION_STYLE_RULE=W.regionStyleRule;[y];[Zo];[Wo]=null;[Go]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[Zo]=n}get parentRule(){return this[Wo]}get parentStyleSheet(){return this[Go]}};const Js=/[,()]/gm,Ys=/[()]|\s+/gm;var Xs=class{static splitByComma(e){let t=[],n=new RegExp(Js),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;case`,`:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}return a<e.length&&t.push(e.substring(a).trim()),t}static splitBySpace(e){let t=[],n=new RegExp(Ys),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;default:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}if(a<e.length){let n=e.substring(a).trim();n&&t.push(n)}return t}};const Zs=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,Qs=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,$s=/^[-+]?[0-9]*\.?[0-9]+%$/,ec=/^[0-9]+deg$/,tc=/^url\(\s*([^)]*)\s*\)$/,nc=/^[0-9]+$/,rc=/^[0-9.]+$/,ic=/^calc\([^^)]+\)$/,ac=/^var\(\s*(--[^)\s]+)\)$/,oc=/^fit-content\([^^)]+\)$/,sc=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,cc=[`inherit`,`initial`,`unset`,`revert`],lc=`none.currentcolor.transparent.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aliceblue.aqua.antiquewhite.aquamarine.azure.beige.bisque.black.blanchedalmond.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.gainsboro.ghostwhite.gold.goldenrod.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.limegreen.linen.magenta.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.oldlace.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.rebeccapurple.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.thistle.tomato.turquoise.violet.wheat.whitesmoke.yellowgreen`.split(`.`);var G=class{static getLength(e){if(e===`0`)return`0px`;let t=e.match(Qs);if(t){let e=parseFloat(t[1]);if(isNaN(e))return null;let n=t[2];return`${Math.round(e*1e6)/1e6}${n}`}return null}static getPercentage(e){return e===`0`?`0%`:$s.test(e)?e:null}static getDegree(e){return e===`0`?`0deg`:ec.test(e)?e:null}static getCalc(e){return ic.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t===`auto`||t===`max-content`||t===`min-content`||t===`fit-content`||oc.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()===`auto`?`auto`:this.getMeasurement(e)}static getInteger(e){return nc.test(e)?e:null}static getFloat(e){if(rc.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(sc);if(t){let e=t[3].trim(),n=Xs.splitByComma(e);return`${t[1]}(${n.join(`, `)})`}return null}static getColor(e){let t=e.toLowerCase();return lc.includes(t)?t:Zs.test(e)?e.replace(/,([^ ])/g,`, $1`):null}static getURL(e){if(!e)return null;if(e.toLowerCase()===`none`)return`none`;let t=tc.exec(e);if(!t)return null;let n=t[1].trim();if((n[0]===`"`||n[0]===`'`)&&n[0]!==n[n.length-1])return null;(n[0]===`"`||n[0]===`'`)&&(n=n.substring(1,n.length-1));for(let e=0;e<n.length;e++)switch(n[e]){case`(`:case`)`:case` `:case` `:case`
|
|
5
|
+
> `)}\n\n`,t++;let n=Error(e);for(let e of this.waitUntilCompleteResolvers)e.reject(n);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,n=this.runningImmediates,r=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&=(Ns.clearTimeout(this.waitUntilCompleteTimer),null);for(let e of n)Ns.clearImmediate(e);for(let e of t)Ns.clearTimeout(e);for(let t of Object.keys(r))r[t](e);return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}};const Fs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;var Is=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new vs(`Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.`,V.invalidCharacterError);let n=``,r=-6,i=0,a=0,o=0,s;for(;a<t.length||r>-6;)r<0&&(a<t.length?(s=t.charCodeAt(a++),o+=8):s=0,i=(i&255)<<8|s&255,r+=8),n+=Fs.charAt(o>0?i>>r&63:64),r-=6,o-=6;return n}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new vs(`Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.`,V.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new vs(`Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.`,V.invalidCharacterError);let n=``,r=-8,i=0,a,o;for(let e=0;e<t.length;e++)(a=Fs.indexOf(t.charAt(e)))<0||(i=i<<6|a&63,(r+=6)>=0&&(o=i>>r&255,a!==64&&(n+=String.fromCharCode(o)),i&=63,r-=8));return n}},Ls;(function(e){e.tryAndCatch=`tryAndCatch`,e.processLevel=`processLevel`,e.disabled=`disabled`})(Ls||={});var Rs=Ls,zs=class e{type=``;[he];constructor(t,n){let r=[];if(t)for(let n of t){let t;t=n instanceof ArrayBuffer?i.from(new Uint8Array(n)):n instanceof e?n[he]:n instanceof i?n:ArrayBuffer.isView(n)?i.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):i.from(typeof n==`string`?n:String(n)),r.push(t)}this[he]=i.concat(r),n&&n.type&&n.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(n.type).toLowerCase())}get size(){return this[he].length}slice(t=0,n=null,r=``){let i=this.size,a,o,s;a=t===void 0?0:t<0?Math.max(i+t,0):Math.min(t,i),o=n===null?i:n<0?Math.max(i+n,0):Math.min(n,i),s=r===void 0?``:r;let c=Math.max(o-a,0),l=this[he].slice(a,a+c),u=new e([],{type:s});return u[he]=l,u}async arrayBuffer(){return new Uint8Array(this[he]).buffer}async text(){return this[he].toString()}stream(){let e=this[he];return new oe({start(t){t.enqueue(e),t.close()}})}toString(){return`[object Blob]`}},Bs=class{#e;#t=[];constructor(e){if(!e)throw TypeError(`Illegal constructor`);this.#e=e}async read(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'read' on 'Clipboard': The request is not allowed`);return this.#t}async readText(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'readText' on 'Clipboard': The request is not allowed`);let e=``;for(let t of this.#t)if(t.types.includes(`text/plain`)){let n=await t.getType(`text/plain`);typeof n==`string`?e+=n:e+=await n.text()}return e}async write(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'write' on 'Clipboard': The request is not allowed`);this.#t=e}async writeText(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'writeText' on 'Clipboard': The request is not allowed`);this.#t=[new this.#e.ClipboardItem({"text/plain":new zs([e],{type:`text/plain`})})]}},Vs=class{presentationStyle=`unspecified`;#e;constructor(e,t){this.#e=e,t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(this.#e)}async getType(e){if(!this.#e[e])throw new vs(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return this.#e[e]instanceof zs?this.#e[e]:new zs([await this.#e[e]],{type:e})}},Hs=class{static escape(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n==1&&o==45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}},Us=`Hz.Q.ch.cm.deg.dpcm.dpi.dppx.em.ex.fr.grad.in.kHz.mm.ms.number.pc.percent.pt.px.rad.rem.s.turn.vh.vmax.vmin.vw`.split(`.`),Ws=class{unit;value;constructor(e,t){if(typeof e!=`number`)throw TypeError(`The provided double value is non-finite`);if(!Us.includes(t))throw TypeError(`Invalid unit: `+t);this.value=e,this.unit=t}},Gs=class{Hz=e=>new Ws(e,`Hz`);Q=e=>new Ws(e,`Q`);ch=e=>new Ws(e,`ch`);cm=e=>new Ws(e,`cm`);deg=e=>new Ws(e,`deg`);dpcm=e=>new Ws(e,`dpcm`);dpi=e=>new Ws(e,`dpi`);dppx=e=>new Ws(e,`dppx`);em=e=>new Ws(e,`em`);ex=e=>new Ws(e,`ex`);fr=e=>new Ws(e,`fr`);grad=e=>new Ws(e,`grad`);in=e=>new Ws(e,`in`);kHz=e=>new Ws(e,`kHz`);mm=e=>new Ws(e,`mm`);ms=e=>new Ws(e,`ms`);number=e=>new Ws(e,`number`);pc=e=>new Ws(e,`pc`);percent=e=>new Ws(e,`percent`);pt=e=>new Ws(e,`pt`);px=e=>new Ws(e,`px`);rad=e=>new Ws(e,`rad`);rem=e=>new Ws(e,`rem`);s=e=>new Ws(e,`s`);turn=e=>new Ws(e,`turn`);vh=e=>new Ws(e,`vh`);vmax=e=>new Ws(e,`vmax`);vmin=e=>new Ws(e,`vmin`);vw=e=>new Ws(e,`vw`);supports(e,t){return!0}escape(e){return Hs.escape(e)}},Ks;(function(e){e[e.containerRule=0]=`containerRule`,e[e.styleRule=1]=`styleRule`,e[e.importRule=3]=`importRule`,e[e.mediaRule=4]=`mediaRule`,e[e.fontFaceRule=5]=`fontFaceRule`,e[e.pageRule=6]=`pageRule`,e[e.keyframesRule=7]=`keyframesRule`,e[e.keyframeRule=8]=`keyframeRule`,e[e.namespaceRule=10]=`namespaceRule`,e[e.counterStyleRule=11]=`counterStyleRule`,e[e.supportsRule=12]=`supportsRule`,e[e.documentRule=13]=`documentRule`,e[e.fontFeatureValuesRule=14]=`fontFeatureValuesRule`,e[e.regionStyleRule=16]=`regionStyleRule`})(Ks||={});var W=Ks,qs=class{static CONTAINER_RULE=W.containerRule;static STYLE_RULE=W.styleRule;static IMPORT_RULE=W.importRule;static MEDIA_RULE=W.mediaRule;static FONT_FACE_RULE=W.fontFaceRule;static PAGE_RULE=W.pageRule;static KEYFRAMES_RULE=W.keyframesRule;static KEYFRAME_RULE=W.keyframeRule;static NAMESPACE_RULE=W.namespaceRule;static COUNTER_STYLE_RULE=W.counterStyleRule;static SUPPORTS_RULE=W.supportsRule;static DOCUMENT_RULE=W.documentRule;static FONT_FEATURE_VALUES_RULE=W.fontFeatureValuesRule;static REGION_STYLE_RULE=W.regionStyleRule;[y];[Zo];[Wo]=null;[Go]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[Zo]=n}get parentRule(){return this[Wo]}get parentStyleSheet(){return this[Go]}};const Js=/[,()]/gm,Ys=/[()]|\s+/gm;var Xs=class{static splitByComma(e){let t=[],n=new RegExp(Js),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;case`,`:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}return a<e.length&&t.push(e.substring(a).trim()),t}static splitBySpace(e){let t=[],n=new RegExp(Ys),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;default:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}if(a<e.length){let n=e.substring(a).trim();n&&t.push(n)}return t}};const Zs=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,Qs=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,$s=/^[-+]?[0-9]*\.?[0-9]+%$/,ec=/^[0-9]+deg$/,tc=/^url\(\s*([^)]*)\s*\)$/,nc=/^[0-9]+$/,rc=/^[0-9.]+$/,ic=/^calc\([^^)]+\)$/,ac=/^var\(\s*(--[^)\s]+)\)$/,oc=/^fit-content\([^^)]+\)$/,sc=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,cc=[`inherit`,`initial`,`unset`,`revert`],lc=`none.currentcolor.transparent.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aliceblue.aqua.antiquewhite.aquamarine.azure.beige.bisque.black.blanchedalmond.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.gainsboro.ghostwhite.gold.goldenrod.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.limegreen.linen.magenta.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.oldlace.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.rebeccapurple.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.thistle.tomato.turquoise.violet.wheat.whitesmoke.yellowgreen`.split(`.`);var G=class{static getLength(e){if(e===`0`)return`0px`;let t=e.match(Qs);if(t){let e=parseFloat(t[1]);if(isNaN(e))return null;let n=t[2];return`${Math.round(e*1e6)/1e6}${n}`}return null}static getPercentage(e){return e===`0`?`0%`:$s.test(e)?e:null}static getDegree(e){return e===`0`?`0deg`:ec.test(e)?e:null}static getCalc(e){return ic.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t===`auto`||t===`max-content`||t===`min-content`||t===`fit-content`||oc.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()===`auto`?`auto`:this.getMeasurement(e)}static getInteger(e){return nc.test(e)?e:null}static getFloat(e){if(rc.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(sc);if(t){let e=t[3].trim(),n=Xs.splitByComma(e);return`${t[1]}(${n.join(`, `)})`}return null}static getColor(e){let t=e.toLowerCase();return lc.includes(t)?t:Zs.test(e)?e.replace(/,([^ ])/g,`, $1`):null}static getURL(e){if(!e)return null;if(e.toLowerCase()===`none`)return`none`;let t=tc.exec(e);if(!t)return null;let n=t[1].trim();if((n[0]===`"`||n[0]===`'`)&&n[0]!==n[n.length-1])return null;(n[0]===`"`||n[0]===`'`)&&(n=n.substring(1,n.length-1));for(let e=0;e<n.length;e++)switch(n[e]){case`(`:case`)`:case` `:case` `:case`
|
|
6
6
|
`:case`'`:case`"`:return null;case`\\`:e++;break}return`url("${n}")`}static getInitial(e){return e.toLowerCase()===`initial`?`initial`:null}static getVariable(e){let t=e.match(ac);return t?`var(${t[1]})`:null}static getGlobal(e){let t=e.toLowerCase();return cc.includes(t)?t:null}static getGlobalExceptInitial(e){let t=e.toLowerCase();return t!==`initial`&&cc.includes(t)?t:null}};const uc=/^rect\((.*)\)$/i,dc=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,fc=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,pc=/\s+/gm,mc=[`none`,`hidden`,`dotted`,`dashed`,`solid`,`double`,`groove`,`ridge`,`inset`,`outset`],hc=[`thin`,`medium`,`thick`],gc=[`separate`,`collapse`],_c=[`repeat`,`repeat-x`,`repeat-y`,`no-repeat`],vc=[`border-box`,`padding-box`,`content-box`],yc=[`border-box`,`padding-box`,`content-box`],bc=[`scroll`,`fixed`],xc=[`auto`,`fill`,`content`],Sc=[`none`,`left`,`right`,`both`],Cc=[`none`,`left`,`right`,`inline-start`,`inline-end`],wc=[`caption`,`icon`,`menu`,`message-box`,`small-caption`,`status-bar`],Tc=[`normal`,`bold`,`bolder`,`lighter`],Ec=[`normal`,`italic`,`oblique`],Dc=[`xx-small`,`x-small`,`small`,`medium`,`large`,`x-large`,`xx-large`,`xxx-large`,`smaller`,`larger`],Oc=[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`],kc=[`block`,`inline`,`inline-block`,`flex`,`inline-flex`,`grid`,`inline-grid`,`flow-root`,`none`,`contents`,`block flow`,`inline flow`,`inline flow-root`,`block flex`,`inline flex`,`block grid`,`inline grid`,`block flow-root`,`table`,`table-row`,`list-item`],Ac=[`stretch`,`repeat`,`round`,`space`],jc=[`capitalize`,`uppercase`,`lowercase`,`none`,`full-width`,`full-size-kana`],Mc=[`visible`,`hidden`,`collapse`];var K=class{static getBorderCollapse(e,t){let n=G.getVariable(e);if(n)return{"border-collapse":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||gc.includes(r)?{"border-collapse":{value:r,important:t}}:null}static getDisplay(e,t){let n=G.getVariable(e);if(n)return{display:{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||kc.includes(r)?{display:{value:r,important:t}}:null}static getDirection(e,t){let n=G.getVariable(e);if(n)return{direction:{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||r===`ltr`||r===`rtl`?{direction:{value:r,important:t}}:null}static getLetterSpacing(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{"letter-spacing":{value:n,important:t}}:null}static getWordSpacing(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{"word-spacing":{value:n,important:t}}:null}static getTextIndent(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{"text-indent":{value:n,important:t}}:null}static getWidth(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{width:{value:n,important:t}}:null}static getHeight(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{height:{value:n,important:t}}:null}static getTop(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{top:{value:n,important:t}}:null}static getRight(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{right:{value:n,important:t}}:null}static getBottom(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{bottom:{value:n,important:t}}:null}static getLeft(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getContentMeasurement(e);return n?{left:{value:n,important:t}}:null}static getClear(e,t){let n=G.getVariable(e);if(n)return{clear:{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||Sc.includes(r)?{clear:{value:r,important:t}}:null}static getClip(e,t){let n=G.getVariable(e);if(n)return{clip:{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||r===`auto`)return{clip:{value:r,important:t}};let i=r.match(uc);if(!i)return null;let a=i[1].split(/\s*,\s*/);if(a.length!==4)return null;for(let e of a)if(!G.getMeasurement(e))return null;return{clip:{value:e,important:t}}}static getFloat(e,t){let n=G.getVariable(e);if(n)return{float:{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||Cc.includes(r)?{float:{value:r,important:t}}:null}static getCSSFloat(e,t){let n=G.getVariable(e);if(n)return{"css-float":{value:n,important:t}};let r=this.getFloat(e,t);return r?{"css-float":r.float}:null}static getOutline(e,t){let n=G.getVariable(e);if(n)return{outline:{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getOutlineColor(r,t),...this.getOutlineStyle(r,t),...this.getOutlineWidth(r,t)};let i={...this.getOutlineColor(`initial`,t),...this.getOutlineStyle(`initial`,t),...this.getOutlineWidth(`initial`,t)},a=e.split(fc);for(let e of a){let n=this.getOutlineWidth(e,t),r=this.getOutlineStyle(e,t),a=this.getOutlineColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getOutlineColor(e,t){let n=G.getVariable(e)||G.getGlobal(e)||G.getColor(e);return n?{"outline-color":{value:n,important:t}}:null}static getOutlineOffset(e,t){let n=G.getVariable(e)||G.getLength(e);return n?{"outline-offset":{value:n,important:t}}:null}static getOutlineStyle(e,t){let n=G.getVariable(e);if(n)return{"outline-style":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||mc.includes(r)?{"outline-style":{value:r,important:t}}:null}static getOutlineWidth(e,t){let n=G.getVariable(e);if(n)return{"outline-width":{value:n,important:t}};let r=e.toLowerCase(),i=hc.includes(r)||G.getGlobal(r)?r:G.getLength(e);return i?{"outline-width":{value:i,important:t}}:null}static getBorder(e,t){let n=G.getVariable(e);if(n)return{border:{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderWidth(r,t),...this.getBorderStyle(r,t),...this.getBorderColor(r,t),...this.getBorderImage(r,t)};let i={...this.getBorderWidth(`initial`,t),...this.getBorderStyle(`initial`,t),...this.getBorderColor(`initial`,t),...this.getBorderImage(`initial`,t)},a=e.replace(/\s*,\s*/g,`,`).split(fc);for(let e of a){let n=this.getBorderWidth(e,t),r=this.getBorderStyle(e,t),a=this.getBorderColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderWidth(e,t){let n=G.getVariable(e);if(n)return{"border-width":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderTopWidth(r,t),...this.getBorderRightWidth(r,t),...this.getBorderBottomWidth(r,t),...this.getBorderLeftWidth(r,t)};let i=e.split(fc),a=this.getBorderTopWidth(i[0],t),o=this.getBorderRightWidth(i[1]||i[0],t),s=this.getBorderBottomWidth(i[2]||i[0],t),c=this.getBorderLeftWidth(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderStyle(e,t){let n=G.getVariable(e);if(n)return{"border-style":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderTopStyle(r,t),...this.getBorderRightStyle(r,t),...this.getBorderBottomStyle(r,t),...this.getBorderLeftStyle(r,t)};let i=e.split(fc),a=this.getBorderTopStyle(i[0],t),o=this.getBorderRightStyle(i[1]||i[0],t),s=this.getBorderBottomStyle(i[2]||i[0],t),c=this.getBorderLeftStyle(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderColor(e,t){let n=G.getVariable(e);if(n)return{"border-color":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderTopColor(r,t),...this.getBorderRightColor(r,t),...this.getBorderBottomColor(r,t),...this.getBorderLeftColor(r,t)};let i=e.split(fc),a=this.getBorderTopColor(i[0],t),o=this.getBorderRightColor(i[1]||i[0],t),s=this.getBorderBottomColor(i[2]||i[0],t),c=this.getBorderLeftColor(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderImage(e,t){let n=G.getVariable(e);if(n)return{"border-image":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderImageSource(r,t),...this.getBorderImageSlice(r,t),...this.getBorderImageWidth(r,t),...this.getBorderImageOutset(r,t),...this.getBorderImageRepeat(r,t)};let i=e.replace(/\s\/\s/g,`/`),a=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);a&&(i=i.replace(a[0],``));let o=i.split(fc);a&&o.push(a[1]);let s={...this.getBorderImageSource(`none`,t),...this.getBorderImageSlice(`100%`,t),...this.getBorderImageWidth(`1`,t),...this.getBorderImageOutset(`0`,t),...this.getBorderImageRepeat(`stretch`,t)};for(let e=0,n=o.length;e<n;e++){let n=o[e],r=e>0?o[e-1]:``;if(!n.startsWith(`url`)&&n.includes(`/`)){let[e,i,a]=n.split(`/`),o=this.getBorderImageSlice(`${r} ${e}`,t)||this.getBorderImageSlice(e,t),c=this.getBorderImageWidth(i,t),l=a&&this.getBorderImageOutset(a,t);if(!o||!c||l===null)return null;Object.assign(s,o,c,l)}else{let e=this.getBorderImageSlice(`${r} ${n}`,t)||this.getBorderImageSlice(n,t),i=this.getBorderImageSource(n,t),a=this.getBorderImageRepeat(n,t);if(!e&&!i&&!a)return null;Object.assign(s,e,i,a)}}return s}static getBorderImageSource(e,t){let n=G.getVariable(e);if(n)return{"border-image-source":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||r===`none`)return{"border-image-source":{important:t,value:r}};let i=G.getURL(e)||G.getGradient(e);return i?{"border-image-source":{important:t,value:i}}:null}static getBorderImageSlice(e,t){let n=G.getVariable(e);if(n)return{"border-image-slice":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"border-image-slice":{important:t,value:r}};if(r!==r.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,a=[],o;for(;o=i.exec(r);){let e=r[o.index-1],t=r[o.index+o[0].length];if(e&&e!==` `||t&&t!==` `)return null;let n=o[1]&&`fill`,i=o[2]&&G.getCalc(o[2]),s=o[3]&&G.getPercentage(o[3]),c=o[4]&&G.getInteger(o[4]);if(!n&&!i&&!s&&!c)return null;a.push(n||i||s||c)}return!a.length||a.length>4?null:{"border-image-slice":{important:t,value:a.join(` `)}}}static getBorderImageWidth(e,t){let n=G.getVariable(e);if(n)return{"border-image-width":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"border-image-width":{important:t,value:r}};let i=r.split(fc);if(i.length>4)return null;for(let e of i)if(!G.getInteger(e)&&!G.getAutoMeasurement(e))return null;return{"border-image-width":{important:t,value:e}}}static getBorderImageOutset(e,t){if(e===`0`)return{"border-image-outset":{important:t,value:e}};let n=G.getVariable(e);if(n)return{"border-image-outset":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"border-image-outset":{important:t,value:r}};let i=e.split(fc);if(i.length>4)return null;let a=[];for(let e of i){let t=G.getLength(e)||G.getFloat(e);if(!t)return null;a.push(t===`0px`?`0`:t)}return{"border-image-outset":{important:t,value:a.join(` `)}}}static getBorderImageRepeat(e,t){let n=G.getVariable(e);if(n)return{"border-image-repeat":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"border-image-repeat":{important:t,value:r}};let i=r.split(fc);if(i.length>2)return null;for(let e of i)if(!Ac.includes(e))return null;return{"border-image-repeat":{important:t,value:e}}}static getBorderTopWidth(e,t){let n=G.getVariable(e);if(n)return{"border-top-width":{value:n,important:t}};let r=e.toLowerCase(),i=hc.includes(r)||G.getGlobal(r)?r:G.getLength(e);return i?{"border-top-width":{value:i,important:t}}:null}static getBorderRightWidth(e,t){let n=G.getVariable(e);if(n)return{"border-right-width":{value:n,important:t}};let r=e.toLowerCase(),i=hc.includes(r)||G.getGlobal(r)?r:G.getLength(e);return i?{"border-right-width":{value:i,important:t}}:null}static getBorderBottomWidth(e,t){let n=G.getVariable(e);if(n)return{"border-bottom-width":{value:n,important:t}};let r=e.toLowerCase(),i=hc.includes(r)||G.getGlobal(r)?r:G.getLength(e);return i?{"border-bottom-width":{value:i,important:t}}:null}static getBorderLeftWidth(e,t){let n=G.getVariable(e);if(n)return{"border-left-width":{value:n,important:t}};let r=e.toLowerCase(),i=hc.includes(r)||G.getGlobal(r)?r:G.getLength(e);return i?{"border-left-width":{value:i,important:t}}:null}static getBorderTopStyle(e,t){let n=G.getVariable(e);if(n)return{"border-top-style":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||mc.includes(r)?{"border-top-style":{value:r,important:t}}:null}static getBorderRightStyle(e,t){let n=G.getVariable(e);if(n)return{"border-right-style":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||mc.includes(r)?{"border-right-style":{value:r,important:t}}:null}static getBorderBottomStyle(e,t){let n=G.getVariable(e);if(n)return{"border-bottom-style":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||mc.includes(r)?{"border-bottom-style":{value:r,important:t}}:null}static getBorderLeftStyle(e,t){let n=G.getVariable(e);if(n)return{"border-left-style":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||mc.includes(r)?{"border-left-style":{value:r,important:t}}:null}static getBorderTopColor(e,t){let n=G.getVariable(e);if(n)return{"border-top-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"border-top-color":{value:r,important:t}}:null}static getBorderRightColor(e,t){let n=G.getVariable(e);if(n)return{"border-right-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"border-right-color":{value:r,important:t}}:null}static getBorderBottomColor(e,t){let n=G.getVariable(e);if(n)return{"border-bottom-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"border-bottom-color":{value:r,important:t}}:null}static getBorderLeftColor(e,t){let n=G.getVariable(e);if(n)return{"border-left-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"border-left-color":{value:r,important:t}}:null}static getBorderRadius(e,t){let n=G.getVariable(e);if(n)return{"border-radius":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderTopLeftRadius(r,t),...this.getBorderTopRightRadius(r,t),...this.getBorderBottomRightRadius(r,t),...this.getBorderBottomLeftRadius(r,t)};let i=e.split(fc),a=this.getBorderTopLeftRadius(i[0],t),o=this.getBorderTopRightRadius(i[1]||i[0],t),s=this.getBorderBottomRightRadius(i[2]||i[0],t),c=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderTopLeftRadius(e,t){let n=G.getVariable(e);if(n)return{"border-top-left-radius":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"border-top-left-radius":{important:t,value:r}}:null}static getBorderTopRightRadius(e,t){let n=G.getVariable(e);if(n)return{"border-top-right-radius":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"border-top-right-radius":{important:t,value:r}}:null}static getBorderBottomRightRadius(e,t){let n=G.getVariable(e);if(n)return{"border-bottom-right-radius":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"border-bottom-right-radius":{important:t,value:r}}:null}static getBorderBottomLeftRadius(e,t){let n=G.getVariable(e);if(n)return{"border-bottom-left-radius":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"border-bottom-left-radius":{important:t,value:r}}:null}static getBorderTop(e,t){let n=G.getVariable(e);if(n)return{"border-top":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderTopWidth(r,t),...this.getBorderTopStyle(r,t),...this.getBorderTopColor(r,t)};let i={...this.getBorderTopWidth(`initial`,t),...this.getBorderTopStyle(`initial`,t),...this.getBorderTopColor(`initial`,t)},a=e.split(fc);for(let e of a){let n=this.getBorderTopWidth(e,t),r=this.getBorderTopStyle(e,t),a=this.getBorderTopColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderRight(e,t){let n=G.getVariable(e);if(n)return{"border-right":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderRightWidth(r,t),...this.getBorderRightStyle(r,t),...this.getBorderRightColor(r,t)};let i={...this.getBorderRightWidth(`initial`,t),...this.getBorderRightStyle(`initial`,t),...this.getBorderRightColor(`initial`,t)},a=e.split(fc);for(let e of a){let n=this.getBorderRightWidth(e,t),r=this.getBorderRightStyle(e,t),a=this.getBorderRightColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderBottom(e,t){let n=G.getVariable(e);if(n)return{"border-bottom":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderBottomWidth(r,t),...this.getBorderBottomStyle(r,t),...this.getBorderBottomColor(r,t)};let i={...this.getBorderBottomWidth(`initial`,t),...this.getBorderBottomStyle(`initial`,t),...this.getBorderBottomColor(`initial`,t)},a=e.split(fc);for(let e of a){let n=this.getBorderBottomWidth(e,t),r=this.getBorderBottomStyle(e,t),a=this.getBorderBottomColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderLeft(e,t){let n=G.getVariable(e);if(n)return{"border-left":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBorderLeftWidth(r,t),...this.getBorderLeftStyle(r,t),...this.getBorderLeftColor(r,t)};let i={...this.getBorderLeftWidth(`initial`,t),...this.getBorderLeftStyle(`initial`,t),...this.getBorderLeftColor(`initial`,t)},a=e.split(fc);for(let e of a){let n=this.getBorderLeftWidth(e,t),r=this.getBorderLeftStyle(e,t),a=this.getBorderLeftColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getPadding(e,t){let n=G.getVariable(e);if(n)return{padding:{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getPaddingTop(r,t),...this.getPaddingRight(r,t),...this.getPaddingBottom(r,t),...this.getPaddingLeft(r,t)};let i=e.split(fc),a=this.getPaddingTop(i[0],t),o=this.getPaddingRight(i[1]||i[0],t),s=this.getPaddingBottom(i[2]||i[0],t),c=this.getPaddingLeft(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getPaddingTop(e,t){let n=G.getVariable(e);if(n)return{"padding-top":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"padding-top":{value:r,important:t}}:null}static getPaddingRight(e,t){let n=G.getVariable(e);if(n)return{"padding-right":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"padding-right":{value:r,important:t}}:null}static getPaddingBottom(e,t){let n=G.getVariable(e);if(n)return{"padding-bottom":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"padding-bottom":{value:r,important:t}}:null}static getPaddingLeft(e,t){let n=G.getVariable(e);if(n)return{"padding-left":{value:n,important:t}};let r=G.getGlobal(e)||G.getMeasurement(e);return r?{"padding-left":{value:r,important:t}}:null}static getMargin(e,t){let n=G.getVariable(e);if(n)return{margin:{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getMarginTop(r,t),...this.getMarginRight(r,t),...this.getMarginBottom(r,t),...this.getMarginLeft(r,t)};let i=e.split(fc),a=this.getMarginTop(i[0],t),o=this.getMarginRight(i[1]||i[0],t),s=this.getMarginBottom(i[2]||i[0],t),c=this.getMarginLeft(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getMarginTop(e,t){let n=G.getVariable(e);if(n)return{"margin-top":{value:n,important:t}};let r=G.getGlobal(e)||G.getAutoMeasurement(e);return r?{"margin-top":{value:r,important:t}}:null}static getMarginRight(e,t){let n=G.getVariable(e);if(n)return{"margin-right":{value:n,important:t}};let r=G.getGlobal(e)||G.getAutoMeasurement(e);return r?{"margin-right":{value:r,important:t}}:null}static getMarginBottom(e,t){let n=G.getVariable(e);if(n)return{"margin-bottom":{value:n,important:t}};let r=G.getGlobal(e)||G.getAutoMeasurement(e);return r?{"margin-bottom":{value:r,important:t}}:null}static getMarginLeft(e,t){let n=G.getVariable(e);if(n)return{"margin-left":{value:n,important:t}};let r=G.getGlobal(e)||G.getAutoMeasurement(e);return r?{"margin-left":{value:r,important:t}}:null}static getFlex(e,t){let n=G.getVariable(e);if(n)return{flex:{value:n,important:t}};let r=e.trim().toLowerCase(),i=G.getGlobal(e);if(i)return{...this.getFlexGrow(i,t),...this.getFlexShrink(i,t),...this.getFlexBasis(i,t)};switch(r){case`none`:return{...this.getFlexGrow(`0`,t),...this.getFlexShrink(`0`,t),...this.getFlexBasis(`auto`,t)};case`auto`:return{...this.getFlexGrow(`1`,t),...this.getFlexShrink(`1`,t),...this.getFlexBasis(`auto`,t)}}let a=G.getContentMeasurement(r);if(a)return{...this.getFlexGrow(`1`,t),...this.getFlexShrink(`1`,t),...this.getFlexBasis(a,t)};let o=e.split(fc),s=this.getFlexGrow(o[0],t),c=this.getFlexShrink(o[1]||`1`,t),l=this.getFlexBasis(o[2]||`0%`,t);return!s||!c||!l?null:{...s,...c,...l}}static getFlexBasis(e,t){let n=G.getVariable(e);if(n)return{"flex-basis":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||xc.includes(r))return{"flex-basis":{value:r,important:t}};let i=G.getContentMeasurement(r);return i?{"flex-basis":{value:i,important:t}}:null}static getFlexShrink(e,t){let n=G.getVariable(e);if(n)return{"flex-shrink":{value:n,important:t}};let r=G.getGlobal(e)||G.getFloat(e);return r?{"flex-shrink":{value:r,important:t}}:null}static getFlexGrow(e,t){let n=G.getVariable(e);if(n)return{"flex-grow":{value:n,important:t}};let r=G.getGlobal(e)||G.getFloat(e);return r?{"flex-grow":{value:r,important:t}}:null}static getBackground(e,t){let n=G.getVariable(e);if(n)return{background:{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBackgroundImage(r,t),...this.getBackgroundPosition(r,t),...this.getBackgroundSize(r,t),...this.getBackgroundRepeat(r,t),...this.getBackgroundAttachment(r,t),...this.getBackgroundOrigin(r,t),...this.getBackgroundClip(r,t),...this.getBackgroundColor(r,t)};let i={...this.getBackgroundImage(`initial`,t),...this.getBackgroundPosition(`initial`,t),...this.getBackgroundSize(`initial`,t),...this.getBackgroundRepeat(`initial`,t),...this.getBackgroundAttachment(`initial`,t),...this.getBackgroundOrigin(`initial`,t),...this.getBackgroundClip(`initial`,t),...this.getBackgroundColor(`initial`,t)},a=Xs.splitBySpace(e.replace(/\s+\/\s+/g,`/`)),o=[];for(let e of a)if(!e.startsWith(`url`)&&e.includes(`/`)){let[n,r]=e.split(`/`),a=this.getBackgroundPositionX(n,t),s=this.getBackgroundPositionY(n,t),c=this.getBackgroundSize(r,t);if(!a&&!s||!c)return null;s?o.push(s[`background-position-y`].value):a&&o.push(a[`background-position-x`].value),Object.assign(i,c)}else{let n=this.getBackgroundImage(e,t),r=this.getBackgroundRepeat(e,t),a=this.getBackgroundAttachment(e,t),s=this.getBackgroundPositionX(e,t),c=this.getBackgroundPositionY(e,t),l=this.getBackgroundColor(e,t),u=this.getBackgroundOrigin(e,t),d=this.getBackgroundClip(e,t);if(!n&&!r&&!a&&!s&&!c&&!l&&!u&&!d)return null;s?o.push(s[`background-position-x`].value):c&&o.push(c[`background-position-y`].value),Object.assign(i,n,r,a,l,u,d)}return o.length&&Object.assign(i,this.getBackgroundPosition(o.join(` `),t)),i}static getBackgroundSize(e,t){let n=G.getVariable(e);if(n)return{"background-size":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"background-size":{value:r,important:t}};let i=r.split(dc),a=[];for(let e of i){let t=e.trim().split(` `);if(t.length!==1&&t.length!==2)return null;if(t.length===1){if(t[0]!==`cover`&&t[0]!==`contain`&&!G.getAutoMeasurement(t[0]))return null;a.push(t[0])}else{if(!G.getAutoMeasurement(t[0])||!G.getAutoMeasurement(t[1]))return null;a.push(`${t[0]} ${t[1]}`)}}return a.length===1?{"background-size":{value:a.join(`, `),important:t}}:null}static getBackgroundOrigin(e,t){let n=G.getVariable(e);if(n)return{"background-origin":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||vc.includes(r)?{"background-origin":{value:r,important:t}}:null}static getBackgroundClip(e,t){let n=G.getVariable(e);if(n)return{"background-clip":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||yc.includes(r)?{"background-clip":{value:r,important:t}}:null}static getBackgroundRepeat(e,t){let n=G.getVariable(e);if(n)return{"background-repeat":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||_c.includes(r)?{"background-repeat":{value:r,important:t}}:null}static getBackgroundAttachment(e,t){let n=G.getVariable(e);if(n)return{"background-attachment":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||bc.includes(r)?{"background-attachment":{value:r,important:t}}:null}static getBackgroundPosition(e,t){let n=G.getVariable(e);if(n)return{"background-position":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{...this.getBackgroundPositionX(r,t),...this.getBackgroundPositionY(r,t)};let i=e.split(dc),a=``,o=``;for(let e of i){let t=e.trim().split(fc);switch(a&&(a+=`,`,o+=`,`),t.length){case 1:t[0]===`top`||t[0]===`bottom`?(a+=`center`,o+=t[0]):t[0]===`left`||t[0]===`right`?(a+=t[0],o+=`center`):t[0]===`center`&&(a+=`center`,o+=`center`);break;case 2:a+=t[0]===`top`||t[0]===`bottom`?t[1]:t[0],o+=t[0]===`top`||t[0]===`bottom`?t[0]:t[1];break;case 3:t[0]===`top`||t[0]===`bottom`||t[1]===`left`||t[1]===`right`||t[2]===`left`||t[2]===`right`?G.getMeasurement(t[1])?(a+=t[2],o+=`${t[0]} ${t[1]}`):(a+=`${t[1]} ${t[2]}`,o+=t[0]):G.getMeasurement(t[1])?(a+=`${t[0]} ${t[1]}`,o+=t[2]):(a+=t[0],o+=`${t[1]} ${t[2]}`);break;case 4:a+=t[0]===`top`||t[0]===`bottom`||t[1]===`top`||t[1]===`bottom`?`${t[2]} ${t[3]}`:`${t[0]} ${t[1]}`,o+=t[0]===`top`||t[0]===`bottom`||t[1]===`top`||t[1]===`bottom`?`${t[0]} ${t[1]}`:`${t[2]} ${t[3]}`;break;default:return null}}let s=this.getBackgroundPositionX(a,t),c=this.getBackgroundPositionY(o,t);return s&&c?{...s,...c}:null}static getBackgroundPositionX(e,t){let n=G.getVariable(e);if(n)return{"background-position-x":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"background-position-x":{value:r,important:t}};let i=r.split(dc),a=``;for(let e of i){let t=e.trim().split(fc);a&&(a+=`,`);for(let e of t){let t=G.getMeasurement(e);if(!t&&e!==`left`&&e!==`right`&&e!==`center`)return null;a&&(a+=` `),a+=t||e}}return{"background-position-x":{value:a,important:t}}}static getBackgroundPositionY(e,t){let n=G.getVariable(e);if(n)return{"background-position-y":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"background-position-y":{value:r,important:t}};let i=r.split(dc),a=``;for(let e of i){let t=e.trim().split(fc);a&&(a+=`,`);for(let e of t){let t=G.getMeasurement(e);if(!t&&e!==`top`&&e!==`bottom`&&e!==`center`)return null;a&&(a+=` `),a+=t||e}}return{"background-position-y":{value:a,important:t}}}static getBackgroundColor(e,t){let n=G.getVariable(e);if(n)return{"background-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"background-color":{important:t,value:r}}:null}static getBackgroundImage(e,t){let n=G.getVariable(e);if(n)return{"background-image":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||r===`none`)return{"background-image":{value:r,important:t}};let i=Xs.splitByComma(e),a=[];for(let e of i){let t=G.getURL(e.trim())||G.getGradient(e.trim());if(!t)return null;a.push(t)}return a.length?{"background-image":{value:a.join(`, `),important:t}}:null}static getColor(e,t){let n=G.getVariable(e);if(n)return{color:{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{color:{important:t,value:r}}:null}static getFloodColor(e,t){let n=G.getVariable(e);if(n)return{"flood-color":{value:n,important:t}};let r=G.getGlobal(e)||G.getColor(e);return r?{"flood-color":{important:t,value:r}}:null}static getFont(e,t){let n=G.getVariable(e);if(n)return{font:{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{...this.getFontStyle(r,t),...this.getFontVariant(r,t),...this.getFontWeight(r,t),...this.getFontStretch(r,t),...this.getFontSize(r,t),...this.getLineHeight(r,t),...this.getFontFamily(r,t)};if(wc.includes(r))return{font:{value:r,important:t}};let i={...this.getFontStyle(`normal`,t),...this.getFontVariant(`normal`,t),...this.getFontWeight(`normal`,t),...this.getFontStretch(`normal`,t),...this.getLineHeight(`normal`,t)},a=e.replace(/\s*\/\s*/g,`/`).split(fc);for(let e=0,n=a.length;e<n;e++){let n=a[e];if(n.includes(`/`)){let[e,r]=n.split(`/`),a=this.getFontSize(e,t),o=this.getLineHeight(r,t);if(!a||!o)return null;Object.assign(i,a,o)}else{let r=this.getFontStyle(n,t),o=this.getFontVariant(n,t),s=this.getFontWeight(n,t),c=this.getFontSize(n,t),l=this.getFontStretch(n,t);if(r)Object.assign(i,r);else if(o)Object.assign(i,o);else if(s)Object.assign(i,s);else if(c)Object.assign(i,c);else if(l)Object.assign(i,l);else{let n=a.slice(e).join(` `),r=this.getFontFamily(n,t);if(!r)return null;Object.assign(i,r);break}}}return i}static getFontStyle(e,t){let n=G.getVariable(e);if(n)return{"font-style":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||Ec.includes(r))return{"font-style":{value:r,important:t}};let i=e.split(fc);return i.length===2&&i[0]===`oblique`&&G.getDegree(i[1])?{"font-style":{value:r,important:t}}:null}static getFontVariant(e,t){let n=G.getVariable(e);if(n)return{"font-variant":{value:n,important:t}};let r=e.toLowerCase();return G.getGlobal(r)||r===`normal`||r===`small-caps`?{"font-variant":{value:r,important:t}}:null}static getFontStretch(e,t){let n=G.getVariable(e);if(n)return{"font-stretch":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||Oc.includes(r))return{"font-stretch":{value:r,important:t}};let i=G.getPercentage(e);return i?{"font-stretch":{value:i,important:t}}:null}static getFontWeight(e,t){let n=G.getVariable(e);if(n)return{"font-weight":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||Tc.includes(r))return{"font-weight":{value:r,important:t}};let i=G.getInteger(e);return i?{"font-weight":{value:i,important:t}}:null}static getFontSize(e,t){let n=G.getVariable(e);if(n)return{"font-size":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||Dc.includes(r))return{"font-size":{value:r,important:t}};let i=G.getMeasurement(e);return i?{"font-size":{value:i,important:t}}:null}static getLineHeight(e,t){let n=G.getVariable(e);if(n)return{"line-height":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r)||r===`normal`)return{"line-height":{value:r,important:t}};let i=G.getFloat(e)||G.getMeasurement(e);return i?{"line-height":{value:i,important:t}}:null}static getFontFamily(e,t){let n=G.getVariable(e);if(n)return{"font-family":{value:n,important:t}};let r=G.getGlobal(e);if(r)return{"font-family":{value:r,important:t}};let i=e.split(`,`),a=``,o=!1;for(let e=0,t=i.length;e<t;e++){let t=i[e].trim().replace(/'/g,`"`);if(!t)return null;if(t.includes(` `)){let n=(t.match(/"/g)||[]).length;if((t[0]!==`"`||e!==0)&&n!==2&&n!==0)return null;t[0]===`"`&&t[t.length-1]!==`"`?o=!0:t[0]!==`"`&&t[t.length-1]!==`"`&&(t=`"${t}"`)}else t=t.replace(/"/g,``);e>0&&(a+=`, `),a+=t}return o&&(a+=`"`),a?{"font-family":{important:t,value:a}}:null}static getTextTransform(e,t){let n=G.getVariable(e);if(n)return{"text-transform":{value:n,important:t}};let r=e.toLowerCase(),i=G.getGlobal(r)||jc.includes(r)&&r;return i?{"text-transform":{value:i,important:t}}:null}static getVisibility(e,t){let n=G.getVariable(e);if(n)return{visibility:{value:n,important:t}};let r=e.toLowerCase(),i=G.getGlobal(r)||Mc.includes(r)&&r;return i?{visibility:{value:i,important:t}}:null}static getAspectRatio(e,t){let n=G.getVariable(e);if(n)return{"aspect-ratio":{value:n,important:t}};let r=e.toLowerCase();if(G.getGlobal(r))return{"aspect-ratio":{value:r,important:t}};let i=e,a=i.includes(`auto`);if(a&&(i=i.replace(`auto`,``)),i=i.replace(pc,``),!i)return{"aspect-ratio":{value:`auto`,important:t}};let o=i.split(`/`);if(o.length>3)return null;let s=Number(o[0]),c=o[1]?Number(o[1]):1;return isNaN(s)||isNaN(c)?null:a?{"aspect-ratio":{value:`auto ${s} / ${c}`,important:t}}:{"aspect-ratio":{value:`${s} / ${c}`,important:t}}}},Nc=class{static getMargin(e){return this.getPaddingLikeProperty([`margin-top`,`margin-right`,`margin-bottom`,`margin-left`],e)}static getPadding(e){return this.getPaddingLikeProperty([`padding-top`,`padding-right`,`padding-bottom`,`padding-left`],e)}static getOutline(e){if(!e[`outline-color`]?.value||!e[`outline-style`]?.value||!e[`outline-width`]?.value)return null;let t=e[`outline-color`].important&&e[`outline-style`].important&&e[`outline-width`].important;if(G.getGlobalExceptInitial(e[`outline-width`].value)&&e[`outline-width`].value===e[`outline-style`].value&&e[`outline-width`].value===e[`outline-color`].value)return{important:t,value:e[`outline-width`].value};let n=[];return G.getInitial(e[`outline-color`]?.value)||n.push(e[`outline-color`].value),G.getInitial(e[`outline-style`]?.value)||n.push(e[`outline-style`].value),G.getInitial(e[`outline-width`].value)||n.push(e[`outline-width`].value),{important:t,value:n.join(` `)}}static getBorder(e){if(!e[`border-top-width`]?.value||e[`border-top-width`]?.value!==e[`border-right-width`]?.value||e[`border-top-width`]?.value!==e[`border-bottom-width`]?.value||e[`border-top-width`]?.value!==e[`border-left-width`]?.value||!e[`border-top-style`]?.value||e[`border-top-style`]?.value!==e[`border-right-style`]?.value||e[`border-top-style`]?.value!==e[`border-bottom-style`]?.value||e[`border-top-style`]?.value!==e[`border-left-style`]?.value||!e[`border-top-color`]?.value||e[`border-top-color`]?.value!==e[`border-right-color`]?.value||e[`border-top-color`]?.value!==e[`border-bottom-color`]?.value||e[`border-top-color`]?.value!==e[`border-left-color`]?.value||!e[`border-image-source`]?.value||!e[`border-image-slice`]?.value||!e[`border-image-width`]?.value||!e[`border-image-outset`]?.value||!e[`border-image-repeat`]?.value)return null;let t=e[`border-top-width`].important&&e[`border-right-width`].important&&e[`border-bottom-width`].important&&e[`border-left-width`].important&&e[`border-top-style`].important&&e[`border-right-style`].important&&e[`border-bottom-style`].important&&e[`border-left-style`].important&&e[`border-top-color`].important&&e[`border-right-color`].important&&e[`border-bottom-color`].important&&e[`border-left-color`].important&&e[`border-image-source`].important&&e[`border-image-slice`].important&&e[`border-image-width`].important&&e[`border-image-outset`].important&&e[`border-image-repeat`].important;if(G.getGlobalExceptInitial(e[`border-top-width`].value)||G.getGlobalExceptInitial(e[`border-top-style`].value)||G.getGlobalExceptInitial(e[`border-top-color`].value)||G.getGlobalExceptInitial(e[`border-image-source`].value)||G.getGlobalExceptInitial(e[`border-image-slice`].value)||G.getGlobalExceptInitial(e[`border-image-width`].value)||G.getGlobalExceptInitial(e[`border-image-outset`].value)||G.getGlobalExceptInitial(e[`border-image-repeat`].value))return e[`border-top-width`].value!==e[`border-top-style`].value||e[`border-top-width`].value!==e[`border-top-color`].value||e[`border-top-width`].value!==e[`border-image-source`].value||e[`border-top-width`].value!==e[`border-image-slice`].value||e[`border-top-width`].value!==e[`border-image-width`].value||e[`border-top-width`].value!==e[`border-image-outset`].value||e[`border-top-width`].value!==e[`border-image-repeat`].value?null:{important:t,value:e[`border-top-width`].value};let n=[];return G.getInitial(e[`border-top-width`].value)||n.push(e[`border-top-width`].value),G.getInitial(e[`border-top-style`].value)||n.push(e[`border-top-style`].value),G.getInitial(e[`border-top-color`].value)||n.push(e[`border-top-color`].value),{important:t,value:n.join(` `)}}static getBorderTop(e){return this.getBorderTopRightBottomLeft(`top`,e)}static getBorderRight(e){return this.getBorderTopRightBottomLeft(`right`,e)}static getBorderBottom(e){return this.getBorderTopRightBottomLeft(`bottom`,e)}static getBorderLeft(e){return this.getBorderTopRightBottomLeft(`left`,e)}static getBorderColor(e){return this.getPaddingLikeProperty([`border-top-color`,`border-right-color`,`border-bottom-color`,`border-left-color`],e)}static getBorderWidth(e){return this.getPaddingLikeProperty([`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`],e)}static getBorderStyle(e){return this.getPaddingLikeProperty([`border-top-style`,`border-right-style`,`border-bottom-style`,`border-left-style`],e)}static getBorderRadius(e){return this.getPaddingLikeProperty([`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`],e)}static getBorderImage(e){if(!e[`border-image-source`]?.value||!e[`border-image-slice`]?.value||!e[`border-image-width`]?.value||!e[`border-image-outset`]?.value||!e[`border-image-repeat`]?.value)return null;let t=e[`border-image-source`].important&&e[`border-image-slice`].important&&e[`border-image-width`].important&&e[`border-image-outset`].important&&e[`border-image-repeat`].important;return G.getGlobal(e[`border-image-source`].value)||G.getGlobal(e[`border-image-slice`].value)||G.getGlobal(e[`border-image-width`].value)||G.getGlobal(e[`border-image-outset`].value)||G.getGlobal(e[`border-image-repeat`].value)?e[`border-image-source`].value!==e[`border-image-slice`].value||e[`border-image-source`].value!==e[`border-image-width`].value||e[`border-image-source`].value!==e[`border-image-outset`].value||e[`border-image-source`].value!==e[`border-image-repeat`].value?null:{important:t,value:e[`border-image-source`].value}:{important:t,value:`${e[`border-image-source`].value} ${e[`border-image-slice`].value} / ${e[`border-image-width`].value} / ${e[`border-image-outset`].value} ${e[`border-image-repeat`].value}`}}static getBackground(e){if(!e[`background-image`]?.value||!e[`background-repeat`]?.value||!e[`background-attachment`]?.value||!e[`background-position-x`]?.value||!e[`background-position-y`]?.value||!e[`background-color`]?.value||!e[`background-size`]?.value||!e[`background-origin`]?.value||!e[`background-clip`]?.value)return null;let t=e[`background-image`].important&&e[`background-repeat`].important&&e[`background-attachment`].important&&e[`background-position-x`].important&&e[`background-position-y`].important&&e[`background-color`].important&&e[`background-size`].important&&e[`background-origin`].important&&e[`background-clip`].important;if(G.getGlobalExceptInitial(e[`background-image`].value)||G.getGlobalExceptInitial(e[`background-repeat`].value)||G.getGlobalExceptInitial(e[`background-attachment`].value)||G.getGlobalExceptInitial(e[`background-position-x`].value)||G.getGlobalExceptInitial(e[`background-position-y`].value)||G.getGlobalExceptInitial(e[`background-color`].value)||G.getGlobalExceptInitial(e[`background-size`].value)||G.getGlobalExceptInitial(e[`background-origin`].value)||G.getGlobalExceptInitial(e[`background-clip`].value))return e[`background-image`].value!==e[`background-repeat`].value||e[`background-image`].value!==e[`background-attachment`].value||e[`background-image`].value!==e[`background-position-x`].value||e[`background-image`].value!==e[`background-position-y`].value||e[`background-image`].value!==e[`background-color`].value||e[`background-image`].value!==e[`background-size`].value||e[`background-image`].value!==e[`background-origin`].value||e[`background-image`].value!==e[`background-clip`].value?null:{important:t,value:e[`background-image`].value};let n=[];return G.getInitial(e[`background-image`].value)||n.push(e[`background-image`].value),!G.getInitial(e[`background-position-x`].value)&&!G.getInitial(e[`background-position-y`].value)&&!G.getInitial(e[`background-size`].value)?n.push(`${e[`background-position-x`].value} ${e[`background-position-y`].value} / ${e[`background-size`].value}`):!G.getInitial(e[`background-position-x`].value)&&!G.getInitial(e[`background-position-y`].value)&&n.push(`${e[`background-position-x`].value} ${e[`background-position-y`].value}`),G.getInitial(e[`background-repeat`].value)||n.push(e[`background-repeat`].value),G.getInitial(e[`background-attachment`].value)||n.push(e[`background-attachment`].value),G.getInitial(e[`background-origin`].value)||n.push(e[`background-origin`].value),G.getInitial(e[`background-clip`].value)||n.push(e[`background-clip`].value),G.getInitial(e[`background-color`].value)||n.push(e[`background-color`].value),{important:t,value:n.join(` `)}}static getBackgroundPosition(e){if(!e[`background-position-x`]?.value||!e[`background-position-y`]?.value)return null;let t=e[`background-position-x`].important&&e[`background-position-y`].important;if(G.getGlobal(e[`background-position-x`].value)||G.getGlobal(e[`background-position-y`].value))return e[`background-position-x`].value===e[`background-position-y`].value?{important:t,value:e[`background-position-x`].value}:null;let n=e[`background-position-x`].value.replace(/ *, */g,`,`).split(`,`),r=e[`background-position-y`].value.replace(/ *, */g,`,`).split(`,`),i=[];for(let e=0;e<n.length;e++)i.push(`${n[e]} ${r[e]}`);return{important:t,value:i.join(`, `)}}static getFlex(e){if(!e[`flex-grow`]?.value||!e[`flex-shrink`]?.value||!e[`flex-basis`]?.value)return null;let t=e[`flex-grow`].important&&e[`flex-shrink`].important&&e[`flex-basis`].important;return G.getGlobal(e[`flex-grow`].value)||G.getGlobal(e[`flex-shrink`].value)||G.getGlobal(e[`flex-basis`].value)?e[`flex-grow`].value!==e[`flex-shrink`].value||e[`flex-grow`].value!==e[`flex-basis`].value?null:{important:t,value:e[`flex-grow`].value}:{important:t,value:`${e[`flex-grow`].value} ${e[`flex-shrink`].value} ${e[`flex-basis`].value}`}}static getFont(e){if(!e[`font-size`]?.value||!e[`font-family`]?.value||!e[`font-weight`]?.value||!e[`font-style`]?.value||!e[`font-variant`]?.value||!e[`font-stretch`]?.value||!e[`line-height`]?.value)return null;let t=e[`font-size`].important&&e[`font-family`].important&&e[`font-weight`].important&&e[`font-style`].important&&e[`font-variant`].important&&e[`font-stretch`].important&&e[`line-height`].important;if(G.getGlobal(e[`font-size`].value)||G.getGlobal(e[`font-family`].value)||G.getGlobal(e[`font-weight`].value)||G.getGlobal(e[`font-style`].value)||G.getGlobal(e[`font-variant`].value)||G.getGlobal(e[`font-stretch`].value)||G.getGlobal(e[`line-height`].value))return e[`font-size`].value!==e[`font-family`].value||e[`font-size`].value!==e[`font-weight`].value||e[`font-size`].value!==e[`font-style`].value||e[`font-size`].value!==e[`font-variant`].value||e[`font-size`].value!==e[`font-stretch`].value||e[`font-size`].value!==e[`line-height`].value?null:{important:t,value:e[`font-size`].value};let n=[];return e[`font-style`].value!==`normal`&&n.push(e[`font-style`].value),e[`font-variant`].value!==`normal`&&n.push(e[`font-variant`].value),e[`font-weight`].value!==`normal`&&n.push(e[`font-weight`].value),e[`font-stretch`].value!==`normal`&&n.push(e[`font-stretch`].value),e[`line-height`].value===`normal`?n.push(e[`font-size`].value):n.push(`${e[`font-size`].value} / ${e[`line-height`].value}`),n.push(e[`font-family`].value),{important:t,value:n.join(` `)}}static getBorderTopRightBottomLeft(e,t){if(!t[`border-${e}-width`]?.value||!t[`border-${e}-style`]?.value||!t[`border-${e}-color`]?.value)return null;let n=t[`border-${e}-width`].important&&t[`border-${e}-style`].important&&t[`border-${e}-color`].important;if(G.getGlobalExceptInitial(t[`border-${e}-width`].value)&&t[`border-${e}-width`].value===t[`border-${e}-style`].value&&t[`border-${e}-width`].value===t[`border-${e}-color`].value)return{important:n,value:t[`border-${e}-width`].value};let r=[];return G.getInitial(t[`border-${e}-width`].value)||r.push(t[`border-${e}-width`].value),G.getInitial(t[`border-${e}-style`]?.value)||r.push(t[`border-${e}-style`].value),G.getInitial(t[`border-${e}-color`]?.value)||r.push(t[`border-${e}-color`].value),{important:n,value:r.join(` `)}}static getPaddingLikeProperty(e,t){if(!t[e[0]]?.value||!t[e[1]]?.value||!t[e[2]]?.value||!t[e[3]]?.value)return null;let n=t[e[0]].important&&t[e[1]].important&&t[e[2]].important&&t[e[3]].important;if(G.getGlobal(t[e[0]].value)||G.getGlobal(t[e[1]].value)||G.getGlobal(t[e[2]].value)||G.getGlobal(t[e[3]].value))return t[e[0]].value!==t[e[1]].value||t[e[0]].value!==t[e[2]].value||t[e[0]].value!==t[e[3]].value?null:{important:n,value:t[e[0]].value};let r=[t[e[0]].value];return(t[e[1]].value!==t[e[0]].value||t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&r.push(t[e[1]].value),(t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&r.push(t[e[2]].value),t[e[3]].value!==t[e[1]].value&&r.push(t[e[3]].value),{important:n,value:r.join(` `)}}};const Pc=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g;var Fc=class{static parse(e){let t={},n=[],r=new RegExp(Pc),i;for(;i=r.exec(e);){let e=(i[1]??``).trim(),r=(i[2]??``).trim(),a=!!i[3];e&&r&&(e.startsWith(`--`)&&(t[e]=r),n.push({name:e,value:r,important:a}))}return{rules:n,properties:t}}};const Ic=[[`margin`],[`padding`],[`border`,[`border-width`,`border-style`,`border-color`,`border-image`]],[`border-radius`],[`background`,`background-position`],[`font`]];var Lc=class{properties={};definedPropertyNames={};constructor(e){if(e?.cssText){let{rules:t}=Fc.parse(e.cssText);for(let e of t)(e.important||!this.get(e.name)?.important)&&this.set(e.name,e.value,e.important)}}get(e){if(this.properties[e])return this.properties[e];switch(e){case`margin`:return Nc.getMargin(this.properties);case`padding`:return Nc.getPadding(this.properties);case`border`:return Nc.getBorder(this.properties);case`border-top`:return Nc.getBorderTop(this.properties);case`border-right`:return Nc.getBorderRight(this.properties);case`border-bottom`:return Nc.getBorderBottom(this.properties);case`border-left`:return Nc.getBorderLeft(this.properties);case`border-color`:return Nc.getBorderColor(this.properties);case`border-style`:return Nc.getBorderStyle(this.properties);case`border-width`:return Nc.getBorderWidth(this.properties);case`border-radius`:return Nc.getBorderRadius(this.properties);case`border-image`:return Nc.getBorderImage(this.properties);case`outline`:return Nc.getOutline(this.properties);case`background`:return Nc.getBackground(this.properties);case`background-position`:return Nc.getBackgroundPosition(this.properties);case`flex`:return Nc.getFlex(this.properties);case`font`:return Nc.getFont(this.properties)}return this.properties[e]||null}remove(e){switch(delete this.properties[e],delete this.definedPropertyNames[e],e){case`border`:delete this.properties[`border-top-width`],delete this.properties[`border-right-width`],delete this.properties[`border-bottom-width`],delete this.properties[`border-left-width`],delete this.properties[`border-top-style`],delete this.properties[`border-right-style`],delete this.properties[`border-bottom-style`],delete this.properties[`border-left-style`],delete this.properties[`border-top-color`],delete this.properties[`border-right-color`],delete this.properties[`border-bottom-color`],delete this.properties[`border-left-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-top`:delete this.properties[`border-top-width`],delete this.properties[`border-top-style`],delete this.properties[`border-top-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-right`:delete this.properties[`border-right-width`],delete this.properties[`border-right-style`],delete this.properties[`border-right-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-bottom`:delete this.properties[`border-bottom-width`],delete this.properties[`border-bottom-style`],delete this.properties[`border-bottom-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-left`:delete this.properties[`border-left-width`],delete this.properties[`border-left-style`],delete this.properties[`border-left-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-width`:delete this.properties[`border-top-width`],delete this.properties[`border-right-width`],delete this.properties[`border-bottom-width`],delete this.properties[`border-left-width`];break;case`border-style`:delete this.properties[`border-top-style`],delete this.properties[`border-right-style`],delete this.properties[`border-bottom-style`],delete this.properties[`border-left-style`];break;case`border-color`:delete this.properties[`border-top-color`],delete this.properties[`border-right-color`],delete this.properties[`border-bottom-color`],delete this.properties[`border-left-color`];break;case`border-image`:delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-radius`:delete this.properties[`border-top-left-radius`],delete this.properties[`border-top-right-radius`],delete this.properties[`border-bottom-right-radius`],delete this.properties[`border-bottom-left-radius`];break;case`outline`:delete this.properties[`outline-color`],delete this.properties[`outline-style`],delete this.properties[`outline-width`];break;case`background`:delete this.properties[`background-color`],delete this.properties[`background-image`],delete this.properties[`background-repeat`],delete this.properties[`background-attachment`],delete this.properties[`background-position-x`],delete this.properties[`background-position-y`],delete this.properties[`background-size`],delete this.properties[`background-origin`],delete this.properties[`background-clip`];break;case`background-position`:delete this.properties[`background-position-x`],delete this.properties[`background-position-y`];break;case`flex`:delete this.properties[`flex-grow`],delete this.properties[`flex-shrink`],delete this.properties[`flex-basis`];break;case`font`:delete this.properties[`font-style`],delete this.properties[`font-variant`],delete this.properties[`font-weight`],delete this.properties[`font-stretch`],delete this.properties[`font-size`],delete this.properties[`line-height`],delete this.properties[`font-family`];break;case`padding`:delete this.properties[`padding-top`],delete this.properties[`padding-right`],delete this.properties[`padding-bottom`],delete this.properties[`padding-left`];break;case`margin`:delete this.properties[`margin-top`],delete this.properties[`margin-right`],delete this.properties[`margin-bottom`],delete this.properties[`margin-left`];break}}set(e,t,n){if(t===null){this.remove(e);return}let r=null;switch(e){case`border`:r=K.getBorder(t,n);break;case`border-top`:r=K.getBorderTop(t,n);break;case`border-right`:r=K.getBorderRight(t,n);break;case`border-bottom`:r=K.getBorderBottom(t,n);break;case`border-left`:r=K.getBorderLeft(t,n);break;case`border-width`:r=K.getBorderWidth(t,n);break;case`border-style`:r=K.getBorderStyle(t,n);break;case`border-color`:r=K.getBorderColor(t,n);break;case`border-image`:r=K.getBorderImage(t,n);break;case`border-image-source`:r=K.getBorderImageSource(t,n);break;case`border-image-slice`:r=K.getBorderImageSlice(t,n);break;case`border-image-width`:r=K.getBorderImageWidth(t,n);break;case`border-image-outset`:r=K.getBorderImageOutset(t,n);break;case`border-image-repeat`:r=K.getBorderImageRepeat(t,n);break;case`border-top-width`:r=K.getBorderTopWidth(t,n);break;case`border-right-width`:r=K.getBorderRightWidth(t,n);break;case`border-bottom-width`:r=K.getBorderBottomWidth(t,n);break;case`border-left-width`:r=K.getBorderLeftWidth(t,n);break;case`border-top-color`:r=K.getBorderTopColor(t,n);break;case`border-right-color`:r=K.getBorderRightColor(t,n);break;case`border-bottom-color`:r=K.getBorderBottomColor(t,n);break;case`border-left-color`:r=K.getBorderLeftColor(t,n);break;case`border-top-style`:r=K.getBorderTopStyle(t,n);break;case`border-right-style`:r=K.getBorderRightStyle(t,n);break;case`border-bottom-style`:r=K.getBorderBottomStyle(t,n);break;case`border-left-style`:r=K.getBorderLeftStyle(t,n);break;case`border-radius`:r=K.getBorderRadius(t,n);break;case`border-top-left-radius`:r=K.getBorderTopLeftRadius(t,n);break;case`border-top-right-radius`:r=K.getBorderTopRightRadius(t,n);break;case`border-bottom-right-radius`:r=K.getBorderBottomRightRadius(t,n);break;case`border-bottom-left-radius`:r=K.getBorderBottomLeftRadius(t,n);break;case`border-collapse`:r=K.getBorderCollapse(t,n);break;case`outline`:r=K.getOutline(t,n);break;case`outline-width`:r=K.getOutlineWidth(t,n);break;case`outline-style`:r=K.getOutlineStyle(t,n);break;case`outline-color`:r=K.getOutlineColor(t,n);break;case`letter-spacing`:r=K.getLetterSpacing(t,n);break;case`word-spacing`:r=K.getWordSpacing(t,n);break;case`clear`:r=K.getClear(t,n);break;case`clip`:r=K.getClip(t,n);break;case`css-float`:r=K.getCSSFloat(t,n);break;case`float`:r=K.getFloat(t,n);break;case`display`:r=K.getDisplay(t,n);break;case`direction`:r=K.getDirection(t,n);break;case`flex`:r=K.getFlex(t,n);break;case`flex-shrink`:r=K.getFlexShrink(t,n);break;case`flex-grow`:r=K.getFlexGrow(t,n);break;case`flex-basis`:r=K.getFlexBasis(t,n);break;case`padding`:r=K.getPadding(t,n);break;case`padding-top`:r=K.getPaddingTop(t,n);break;case`padding-right`:r=K.getPaddingRight(t,n);break;case`padding-bottom`:r=K.getPaddingBottom(t,n);break;case`padding-left`:r=K.getPaddingLeft(t,n);break;case`margin`:r=K.getMargin(t,n);break;case`margin-top`:r=K.getMarginTop(t,n);break;case`margin-right`:r=K.getMarginRight(t,n);break;case`margin-bottom`:r=K.getMarginBottom(t,n);break;case`margin-left`:r=K.getMarginLeft(t,n);break;case`background`:r=K.getBackground(t,n);break;case`background-image`:r=K.getBackgroundImage(t,n);break;case`background-color`:r=K.getBackgroundColor(t,n);break;case`background-repeat`:r=K.getBackgroundRepeat(t,n);break;case`background-attachment`:r=K.getBackgroundAttachment(t,n);break;case`background-position`:r=K.getBackgroundPosition(t,n);break;case`width`:r=K.getWidth(t,n);break;case`height`:r=K.getHeight(t,n);break;case`top`:r=K.getTop(t,n);break;case`right`:r=K.getRight(t,n);break;case`bottom`:r=K.getBottom(t,n);break;case`left`:r=K.getLeft(t,n);break;case`font`:r=K.getFont(t,n);break;case`font-style`:r=K.getFontStyle(t,n);break;case`font-variant`:r=K.getFontVariant(t,n);break;case`font-weight`:r=K.getFontWeight(t,n);break;case`font-stretch`:r=K.getFontStretch(t,n);break;case`font-size`:r=K.getFontSize(t,n);break;case`line-height`:r=K.getLineHeight(t,n);break;case`text-indent`:r=K.getTextIndent(t,n);break;case`font-family`:r=K.getFontFamily(t,n);break;case`color`:r=K.getColor(t,n);break;case`flood-color`:r=K.getFloodColor(t,n);break;case`text-transform`:r=K.getTextTransform(t,n);break;case`visibility`:r=K.getVisibility(t,n);break;case`aspect-ratio`:r=K.getAspectRatio(t,n);break;default:let i=t.trim();if(i){let t=G.getGlobal(i);r={[e]:{value:t||i,important:n}}}break}r!==null&&Object.keys(r).length>0&&(this.definedPropertyNames[e]=!0,Object.assign(this.properties,r))}clone(){let e=this.constructor,t=new e;return t.properties=JSON.parse(JSON.stringify(this.properties)),t.definedPropertyNames=Object.assign({},this.definedPropertyNames),t}size(){return Object.keys(this.properties).length}item(e){return Object.keys(this.properties)[e]||``}toString(){let e=[],t=this.clone(),n={};for(let e of Ic)for(let r of e)if(Array.isArray(r)){let e=!1;for(let i of r){let r=t.get(i);r&&(n[i]=r,t.remove(i),e=!0)}if(e)break}else{let e=t.get(r);if(e){n[r]=e,t.remove(r);break}}for(let e of Object.keys(t.properties))n[e]=t.get(e);for(let t of Object.keys(this.definedPropertyNames)){let r=n[t];r&&(e.push(`${t}: ${r.value}${r.important?` !important`:``};`),delete n[t])}for(let t of Object.keys(n)){let r=n[t];r&&e.push(`${t}: ${r.value}${r.important?` !important`:``};`)}return e.join(` `)}},Rc={default:`display: inline;`,A:``,ABBR:``,ADDRESS:`display: block;`,AREA:``,ARTICLE:`display: block;`,ASIDE:`display: block;`,AUDIO:`display: none;`,B:``,BASE:`display: none;`,BDI:``,BDO:``,BLOCKQUAOTE:``,BODY:`display: block;`,TEMPLATE:`display: none;`,FORM:`display: block;`,INPUT:`display: inline-block;`,TEXTAREA:`display: inline-block;`,SCRIPT:`display: none;`,IMG:``,LINK:`display: none;`,STYLE:`display: none;`,LABEL:``,SLOT:`display: contents;`,SVG:``,CIRCLE:``,ELLIPSE:``,LINE:``,PATH:``,POLYGON:``,POLYLINE:``,RECT:``,STOP:``,USE:``,META:`display: none;`,BLOCKQUOTE:`display: block;`,BR:``,BUTTON:`display: inline-block;`,CANVAS:``,CAPTION:`display: table-caption;`,CITE:``,CODE:``,COL:`display: table-column;`,COLGROUP:`display: table-column-group;`,DATA:``,DATALIST:`display: none;`,DD:`display: block;`,DEL:``,DETAILS:`display: block;`,DFN:``,DIALOG:{default:`display: none;`,open:`display: block;`},DIV:`display: block;`,DL:`display: block;`,DT:`display: block;`,EM:``,EMBED:``,FIELDSET:`display: block;`,FIGCAPTION:`display: block;`,FIGURE:`display: block;`,FOOTER:`display: block;`,H1:`display: block;`,H2:`display: block;`,H3:`display: block;`,H4:`display: block;`,H5:`display: block;`,H6:`display: block;`,HEAD:`display: none;`,HEADER:`display: block;`,HGROUP:`display: block;`,HR:`display: block;`,HTML:`display: block;direction: ltr;font: 16px "Times New Roman";`,I:``,IFRAME:``,INS:``,KBD:``,LEGEND:`display: block;`,LI:`display: list-item;`,MAIN:`display: block;`,MAP:``,MARK:``,MATH:``,MENU:`display: block;`,MENUITEM:``,METER:`display: inline-block;`,NAV:`display: block;`,NOSCRIPT:``,OBJECT:``,OL:`display: block;`,OPTGROUP:`display: block;`,OPTION:`display: block;`,OUTPUT:`unicode-bidi: isolate;`,P:`display: block;`,PARAM:`display: none;`,PICTURE:``,PRE:`display: block;`,PROGRESS:`display: inline-block;`,Q:``,RB:``,RP:`display: none;`,RT:``,RTC:``,RUBY:``,S:``,SAMP:``,SECTION:`display: block;`,SELECT:`display: inline-block;`,SMALL:``,SOURCE:``,SPAN:``,STRONG:``,SUB:``,SUMMARY:`display: block;`,SUP:``,TABLE:`display: table;`,TBODY:`display: table-row-group;`,TD:`display: table-cell;`,TFOOT:`display: table-footer-group;`,TH:`display: table-cell;`,THEAD:`display: table-header-group;`,TIME:``,TITLE:`display: none;`,TR:`display: table-row;`,TRACK:``,U:``,UL:`display: block;`,VAR:``,VIDEO:``,WBR:``},zc={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0},Bc=`background-position-x.background-position-y.background-size.border-image-outset.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-image-width.clip.font-size.padding-top.padding-right.padding-bottom.padding-left.margin-top.margin-right.margin-bottom.margin-left.width.height.min-width.min-height.max-width.max-height.top.right.bottom.left.outline-width.outline-offset.letter-spacing.word-spacing.text-indent.line-height`.split(`.`),Vc=class{target;classes;cache=new Map;constructor(e,t){this.target=e,this.classes=t}bind(e){if(this.cache.has(e)||e===Symbol.iterator||e===`constructor`)return;this.cache.set(e,!0);let t=this.target;if(e in t)for(let n of this.classes){let r=Object.getOwnPropertyDescriptor(n.prototype,e);if(r){if(typeof r.value==`function`){if(r.value.toString().startsWith(`class `))return;Object.defineProperty(t,e,{...r,value:r.value.bind(t)})}else r.get!==void 0&&Object.defineProperty(t,e,{...r,get:r.get?.bind(t),set:r.set?.bind(t)});return}}}preventBinding(e){this.cache.set(e,!0)}},Hc=class e{[k];[or];constructor(t,n){if(t!==M)throw TypeError(`Illegal constructor`);this[k]=n;let r=new Vc(this,this.constructor===e?[e]:[this.constructor,e]),i=new Proxy(this,{get:(e,t)=>{if(t===`length`)return n.length;if(t in e||typeof t==`symbol`)return r.bind(t),e[t];if(t===``)return;let i=Number(t);if(!isNaN(i))return n[i]},set(e,t,n){if(r.bind(t),typeof t==`symbol`)return e[t]=n,!0;let i=Number(t);return isNaN(i)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){return Object.keys(n)},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let r=Number(t);return!isNaN(r)&&r>=0&&r<n.length},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let r=Number(t);if(!isNaN(r)&&n[r])return{value:n[r],writable:!1,enumerable:!0,configurable:!0}}});return this[or]=i,i}get length(){return this[k].length}get[Symbol.toStringTag](){return`NodeList`}toLocaleString(){return`[object NodeList]`}toString(){return`[object NodeList]`}item(e){let t=this[k];return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[k][Symbol.iterator]()}values(){return this[k].values()}entries(){return this[k].entries()}forEach(e,t){let n=this[k],r=this[or]??this;for(let i=0,a=n.length;i<a;i++){let a=n[i];e.call(t??a[y],a,i,r)}}keys(){return this[k].keys()}},Uc;(function(e){e.none=`none`,e.descendant=`descendant`,e.child=`child`,e.adjacentSibling=`adjacentSibling`,e.subsequentSibling=`subsequentSibling`})(Uc||={});var Wc=Uc,Gc=class{tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;constructor(e){this.tagName=e?.tagName||null,this.id=e?.id||null,this.classNames=e?.classNames||null,this.attributes=e?.attributes||null,this.pseudos=e?.pseudos||null,this.isPseudoElement=e?.isPseudoElement||!1,this.combinator=e?.combinator||Wc.none}match(e,t,n){let r=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!==`*`&&this.tagName!==t[C].toUpperCase())return null;r+=1}if(this.id){if(this.id!==t.id)return null;r+=100}if(this.classNames){let e=this.matchClass(t);if(!e)return null;r+=e.priorityWeight}if(this.attributes){let e=this.matchAttributes(t);if(!e)return null;r+=e.priorityWeight}if(this.pseudos){let i=this.matchPseudo(e,t,n);if(!i)return null;r+=i.priorityWeight}return{priorityWeight:r}}matchPseudo(e,t,n){let r=t[x],i=t[x]?t[x][Xn]:[];if(!this.pseudos)return{priorityWeight:0};let a=0;for(let o of this.pseudos){switch(o.name){case`not`:case`nth-child`:case`nth-of-type`:case`nth-last-child`:case`nth-last-of-type`:case`is`:case`where`:if(!o.arguments){if(n)return null;throw new t[y].DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!r)switch(o.name){case`first-child`:case`last-child`:case`only-child`:case`first-of-type`:case`last-of-type`:case`only-of-type`:case`nth-child`:case`nth-of-type`:case`nth-last-child`:case`nth-last-of-type`:return null}let s=this.matchPseudoItem(e,t,i,o,n);if(!s)return null;a+=s.priorityWeight}return{priorityWeight:a}}matchPseudoItem(e,t,n,r,i){let a=this.getRootElement(e);switch(r.name){case`first-child`:return n[0]===t?{priorityWeight:10}:null;case`last-child`:return n.length&&n[n.length-1]===t?{priorityWeight:10}:null;case`only-child`:return n.length===1&&n[0]===t?{priorityWeight:10}:null;case`first-of-type`:for(let e of n)if(e[C]===t[C])return e===t?{priorityWeight:10}:null;return null;case`last-of-type`:for(let e=n.length-1;e>=0;e--){let r=n[e];if(r[C]===t[C])return r===t?{priorityWeight:10}:null}return null;case`only-of-type`:let o=!1;for(let e of n)if(e[C]===t[C]){if(o||e!==t)return null;o=!0}return o?{priorityWeight:10}:null;case`checked`:return t[C]===`INPUT`&&t.checked?{priorityWeight:10}:null;case`disabled`:return`disabled`in t&&t.hasAttribute(`disabled`)?{priorityWeight:10}:null;case`empty`:return t[Xn].length?null:{priorityWeight:10};case`root`:return a&&t===a?{priorityWeight:10}:null;case`not`:for(let n of r.selectorItems)if(n.match(e,t))return null;return{priorityWeight:10};case`nth-child`:let s=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e,t))return null;for(let i=0,a=n.length;i<a;i++)if((!r.selectorItems?.[0]||r.selectorItems[0].match(e,n[i]))&&s++,n[i]===t)return s!==-1&&r.nthFunction(s+1)?{priorityWeight:10}:null;return null;case`nth-of-type`:let c=-1;for(let e=0,i=n.length;e<i;e++)if(n[e][C]===t[C]&&c++,n[e]===t)return c!==-1&&r.nthFunction(c+1)?{priorityWeight:10}:null;return null;case`nth-last-child`:let l=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e,t))return null;for(let i=n.length-1;i>=0;i--)if((!r.selectorItems?.[0]||r.selectorItems[0].match(e,n[i]))&&l++,n[i]===t)return l!==-1&&r.nthFunction(l+1)?{priorityWeight:10}:null;return null;case`nth-last-of-type`:let u=-1;for(let e=n.length-1;e>=0;e--)if(n[e][C]===t[C]&&u++,n[e]===t)return u!==-1&&r.nthFunction(u+1)?{priorityWeight:10}:null;return null;case`target`:let d=t[h].location.hash;return d&&t.isConnected&&t.id===d.slice(1)?{priorityWeight:10}:null;case`is`:let f=0;if(!r.selectorItems)return null;for(let n of r.selectorItems){let r=n.match(e,t);r&&f<r.priorityWeight&&(f=r.priorityWeight)}return f?{priorityWeight:f}:null;case`where`:if(!r.selectorItems)return null;for(let n of r.selectorItems)if(n.match(e,t))return{priorityWeight:0};return null;case`has`:let ee=0;if(r.arguments&&r.selectorItems)if(r.arguments[0]===`+`){let n=t.nextElementSibling;if(!n)return null;for(let t of r.selectorItems){let r=t.match(e,n);r&&ee<r.priorityWeight&&(ee=r.priorityWeight)}}else if(r.arguments[0]===`>`)for(let n of r.selectorItems)for(let r of t[Xn]){let t=n.match(e,r);if(t&&ee<t.priorityWeight){ee=t.priorityWeight;break}}else for(let n of r.selectorItems){let r=this.matchChildOfElement(e,n,t,i);r&&ee<r.priorityWeight&&(ee=r.priorityWeight)}return ee?{priorityWeight:ee}:null;case`focus`:case`focus-visible`:return t[h].activeElement===t?{priorityWeight:10}:null;case`scope`:return e&&e===t?{priorityWeight:10}:null;default:return null}}matchAttributes(e){if(!this.attributes)return null;let t=0;for(let n of this.attributes){let r=e[kt].getNamedItem(n.name);if(!r||(t+=10,n.value!==null&&(r[_]===null||n.regExp&&!n.regExp.test(r[_])||!n.regExp&&n.value!==r[_])))return null}return{priorityWeight:t}}matchClass(e){if(!this.classNames)return null;let t=0;for(let n of this.classNames){if(!e.classList.contains(n))return null;t+=10}return{priorityWeight:t}}matchChildOfElement(e,t,n,r){for(let i of n[Xn]){let n=t.match(e,i,r);if(n)return n;let a=this.matchChildOfElement(e,t,i,r);if(a)return a}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():``}${this.id?`#${this.id}`:``}${this.classNames?`.${this.classNames.join(`.`)}`:``}${this.attributes?this.attributes.map(e=>`[${e.name}${e.value?`${e.operator||``}="${e.value}"`:``}]`).join(``):``}${this.pseudos?this.pseudos.map(e=>`:${e.name}${e.arguments?`(${e.arguments})`:``}`).join(``):``}`}getRootElement(e){return e?.[h]?.documentElement||e?.[y].document?.documentElement||null}};const Kc=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/g,qc=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_¤£-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/g,Jc=/:([a-zA-Z-]+)|([()])/g,Yc=/\\/g,Xc=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,Zc=/[.*+?^${}()|[\]\\]/g,Qc={odd:e=>(e+1)%2==0,even:e=>(e+1)%2!=0,alwaysFalse:()=>!1},$c=/ /g;var el=class e{window;scope;ignoreErrors;constructor(e){this.window=e.window,this.scope=e.scope,this.ignoreErrors=e.ignoreErrors??!1}getSelectorItem(e){return this.getSelectorGroups(e)[0][0]}getSelectorGroups(e){e=e.trim();let t=this.window[cs].get(e);if(t)return t;let n=this.getSelectorGroupsUncached(e);return this.window[cs].set(e,n),n}getSelectorGroupsUncached(e){let t=[],n=[t],r=new RegExp(Kc),i={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},a=this.scope.nodeType===H.documentNode?`Document`:`Element`,o=new this.window.DOMException(`Failed to execute 'querySelectorAll' on '${a}': '${e}' is not a valid selector.`),s=null,c=0,l=null,u=Wc.none;for(;s=r.exec(e);)if(s[1]){if(i.parentheses===0&&i.brackets===0&&i.singleApostrophe===0&&i.doubleApostrophe===0){let i=e.substring(c,s.index).trim();switch(s[1].trim()){case`,`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),t=[],n.push(t),u=Wc.none;break;case`>`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Wc.child;break;case`+`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Wc.adjacentSibling;break;case`~`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Wc.subsequentSibling;break;case``:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Wc.descendant;break}c=r.lastIndex}}else switch(s[2]){case`(`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses++;break;case`)`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses--;break;case`[`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets++;break;case`]`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets--;break;case`"`:i.singleApostrophe===0&&(i.doubleApostrophe=i.doubleApostrophe===1?0:1);break;case`'`:i.doubleApostrophe===0&&(i.singleApostrophe=i.singleApostrophe===1?0:1);break}if(l=this.getSelectorGroupItem(e.substring(c),u),!l||i.parentheses!==0||i.brackets!==0||i.singleApostrophe!==0||i.doubleApostrophe!==0){if(this.ignoreErrors)return[];throw o}return u===Wc.none&&t.length>0?n.push([l]):t.push(l),n}getSelectorGroupItem(t,n){if(t=t.trim(),!t)return null;if(t===`*`)return new Gc({tagName:`*`,combinator:n});let r=new RegExp(qc),i=new Gc({combinator:n}),a,o=0;for(;a=r.exec(t);){if(t.substring(o,a.index).trim()!==``)return null;if(a[1])i.tagName=`*`;else if(a[2])i.tagName=a[2].toUpperCase();else if(a[3])i.id=a[3].replace(Yc,``);else if(a[5])i.classNames=i.classNames||[],i.classNames.push(a[5].replace(Yc,``));else if(a[7])i.attributes=i.attributes||[],i.attributes.push({name:a[7].replace(Yc,``),operator:null,value:null,modifier:null,regExp:null});else if(a[9]&&(a[13]!==void 0||a[14]!==void 0)){let t=a[13]??a[14],n=e.cssUnescape(t);i.attributes=i.attributes||[],i.attributes.push({name:a[9].replace(Yc,``),operator:a[11]||null,value:n,modifier:a[15]||null,regExp:this.getAttributeRegExp({operator:a[11],value:n,modifier:a[15]})})}else if(a[16]&&a[19]!==void 0){let t=e.cssUnescape(a[19]);i.attributes=i.attributes||[],i.attributes.push({name:a[16].replace(Yc,``),operator:a[18]||null,value:t,modifier:null,regExp:this.getAttributeRegExp({operator:a[18],value:t})})}else if(a[21]){let e=new RegExp(Jc),t=null,n=null,r=0,o=-1;for(;t=e.exec(a[0]);)if(t[1])r===0&&(n=t[1]);else if(t[2]){if(t[2]===`(`)r===0&&(o=e.lastIndex),r++;else if(t[2]===`)`){if(r--,r<0)return null;if(r===0){if(o===-1||!n)return null;i.pseudos=i.pseudos||[],i.pseudos.push(this.getPseudo(n,a[0].substring(o,t.index))),n=null,o=-1}}}}else a[22]?(i.pseudos=i.pseudos||[],i.pseudos.push(this.getPseudo(a[22],null))):a[23]&&(i.isPseudoElement=!0);o=r.lastIndex}return o<t.length?null:i}getAttributeRegExp(e){let t=e.modifier===`i`?`i`:``;if(!e.operator||!e.value)return null;let n=e.value.replace(Zc,`\\$&`);switch(e.operator){case`~`:return RegExp(`(^|\\s)${n}(\\s|$)`,t);case`|`:return RegExp(`^${n}[- ]|^${n}$`,t);case`^`:return RegExp(`^${n}`,t);case`$`:return RegExp(`${n}$`,t);case`*`:return RegExp(`${n}`,t);default:return null}}getPseudo(e,t){let n=e.toLowerCase();if(t&&=t.trim(),!t)return{name:n,arguments:null,selectorItems:null,nthFunction:null};switch(n){case`nth-last-child`:case`nth-child`:let e=t.indexOf(` of `),r=e===-1?t:t.substring(0,e),i=e===-1?null:this.getSelectorItem(t.substring(e+4).trim());return{name:n,arguments:t,selectorItems:i?[i]:null,nthFunction:this.getPseudoNthFunction(r)};case`nth-of-type`:case`nth-last-of-type`:return{name:n,arguments:t,selectorItems:null,nthFunction:this.getPseudoNthFunction(t)};case`not`:let a=[];for(let e of this.getSelectorGroups(t))e[0]&&a.push(e[0]);return{name:n,arguments:t,selectorItems:a,nthFunction:null};case`is`:case`where`:let o=[];for(let e of this.getSelectorGroups(t))e[0]&&o.push(e[0]);return{name:n,arguments:t,selectorItems:o,nthFunction:null};case`has`:let s=[];if(!t.includes(`:has(`)){let e=t;t[0]===`+`?e=t.replace(`+`,``):t[0]===`>`&&(e=t.replace(`>`,``));for(let t of this.getSelectorGroups(e))t[0]&&s.push(t[0])}return{name:n,arguments:t||``,selectorItems:s,nthFunction:null};default:return{name:n,arguments:t,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(e){if(!e)return null;if(e===`odd`)return Qc.odd;if(e===`even`)return Qc.even;let t=e.replace($c,``).split(`n`),n=parseInt(t[0],10)||0;if(t[0]==`-`&&(n=-1),t.length===1)return e=>e==n;let r=parseInt(t[1],10)||0;return t[0]==`+`&&(r=1),n>=1||n<=-1?n>=1?Math.abs(n)===1?e=>e>r-1:e=>e>r-1&&(e+-1*r)%n===0:Math.abs(n)===1?e=>e<r+1:e=>e<r+1&&(e+-1*r)%n===0:t[0]?e=>e===r:e=>e>r-1}static cssUnescape(e){return e.replace(Xc,(e,t,n)=>t?String.fromCodePoint(parseInt(t,16)):n)}};const tl=/^[.#\[]?\d|[.#]$/;var q=class{static querySelectorAll(e,t){let n=e[y];if(t===``)throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t==`function`)throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t==`symbol`)throw new n.TypeError(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),tl.test(t))throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);let r=e[j].querySelectorAll,i=r.get(t);if(i){if(i.result!==null){let e=i.result.deref();if(e)return e}r.delete(t)}let a=e[S]===H.documentNode?e.documentElement:e,o=new el({window:n,scope:a}).getSelectorGroups(t),s=[],c=new Hc(M,s),l=new Map,u=[],d={result:new WeakRef(c)};e[j].querySelectorAll.set(t,d),e[b]&&(e[h]||e)[Zn].push(d);for(let t of o){let n=e[S]===H.elementNode?e:null,r=e[S]===H.elementNode?[e]:e[Xn],i=this.findAll({scope:a,rootElement:n,children:r,selectorItems:t,cachedItem:d});for(let e of i)l.has(e.documentPosition)||(l.set(e.documentPosition,e.element),u.push(e.documentPosition))}let f=u.sort();for(let e=0,t=f.length;e<t;e++)s.push(l.get(f[e]));return c}static querySelector(e,t){let n=e[y];if(t===``)throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t==`function`)throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t==`symbol`)throw new n.TypeError(`Failed to execute 'querySelector' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),tl.test(t))throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);let r=e[j].querySelector.get(t);if(r){if(r.result!==null){if(!r.result.element)return null;let e=r.result.element.deref();if(e)return e}e[j].querySelector.delete(t)}let i={result:{element:null}};e[j].querySelector.set(t,i),e[b]&&(e[h]||e)[Zn].push(i);let a=null,o=new Map,s=e[S]===H.documentNode?e.documentElement:e;for(let r of new el({window:n,scope:s}).getSelectorGroups(t)){let t=e[S]===H.elementNode?e:null,n=e[S]===H.elementNode?[e]:e[Xn],c=this.findFirst({scope:s,rootElement:t,children:n,selectorItems:r,cachedItem:i});c&&!o.has(c.documentPosition)&&(o.set(c.documentPosition,!0),(!a||c.documentPosition<a.documentPosition)&&(a=c))}let c=a?.element||null;return i.result={element:c?new WeakRef(c):null},c}static matches(e,t,n){let r=n?.ignoreErrors,i=e[y];if(t===`*`)return{priorityWeight:1};if(t===``){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': The provided selector is empty.`)}if(typeof t==`function`){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}if(typeof t==`symbol`){if(r)return null;throw new i.TypeError(`Cannot convert a Symbol value to a string`)}if(t=String(t),tl.test(t)){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}let a=e[j].matches.get(t);if(a){if(a.result!==null)return a.result.match;e[j].matches.delete(t)}let o={result:{match:null}};e[j].matches.set(t,o),e[b]&&(e[h]||e)[Zn].push(o);let s=n?.scope||e,c=s[S]===H.documentNode?s.documentElement:s;for(let a of new el({ignoreErrors:n?.ignoreErrors,window:i,scope:c}).getSelectorGroups(t)){let t=this.matchSelector({scope:c,element:e,selectorItems:a.slice().reverse(),cachedItem:o,ignoreErrors:r});if(t)return o.result.match=t,t}return null}static matchSelector(e,t=null,n=0){let{scope:r,element:i,selectorItems:a,cachedItem:o,ignoreErrors:s}=e,c=a[0];if(!c)return null;let l=c.match(r,i,s);if(l){if(a.length===1)return{priorityWeight:n+l.priorityWeight};switch(c.combinator){case Wc.adjacentSibling:let e=i.previousElementSibling;if(e){e[Zn].push(o);let t=this.matchSelector({scope:r,element:e,selectorItems:a.slice(1),cachedItem:o,ignoreErrors:s},c,n+l.priorityWeight);if(t)return t}break;case Wc.none:case Wc.child:case Wc.descendant:let t=i.parentElement;if(t){t[Zn].push(o);let e=this.matchSelector({scope:r,element:t,selectorItems:a.slice(1),cachedItem:o,ignoreErrors:s},c,n+l.priorityWeight);if(e)return e}break;case Wc.subsequentSibling:let u=i.parentElement;if(u){let e=u[Xn],t=e.indexOf(i);u[Zn].push(o);for(let i=t-1;i>=0;i--){let t=e[i];t[Zn].push(o);let u=this.matchSelector({scope:r,element:t,selectorItems:a.slice(1),cachedItem:o,ignoreErrors:s},c,n+l.priorityWeight);if(u)return u}}break}}if(t?.combinator===Wc.none||t?.combinator===Wc.descendant){let e=i.parentElement;if(e)return this.matchSelector({scope:r,element:e,selectorItems:a,cachedItem:o,ignoreErrors:s},t,n)}return null}static findAll(e,t){let{scope:n,rootElement:r,children:i,selectorItems:a,cachedItem:o}=e,s=a[0],c=a[1],l=[];if(!s)return[];for(let e=0,u=i.length;e<u;e++){let u=i[e],d=u[Xn],f=(t?t+`>`:``)+String.fromCharCode(e);if(u[Zn].push(o),s.match(n,u))if(!c)r!==u&&l.push({documentPosition:f,element:u});else switch(c.combinator){case Wc.adjacentSibling:let e=u.nextElementSibling;e&&(l=l.concat(this.findAll({scope:n,rootElement:r,children:[e],selectorItems:a.slice(1),cachedItem:o},f)));break;case Wc.none:case Wc.descendant:case Wc.child:l=l.concat(this.findAll({scope:n,rootElement:r,children:d,selectorItems:a.slice(1),cachedItem:o},f));break;case Wc.subsequentSibling:let t=i.indexOf(u);for(let e=t+1;e<i.length;e++){let t=i[e];l=l.concat(this.findAll({scope:n,rootElement:r,children:[t],selectorItems:a.slice(1),cachedItem:o},f))}break}(s.combinator===Wc.none||s.combinator===Wc.descendant)&&d.length&&(l=l.concat(this.findAll({scope:n,rootElement:r,children:d,selectorItems:a,cachedItem:o},f)))}return l}static findFirst(e,t){let{scope:n,rootElement:r,children:i,selectorItems:a,cachedItem:o}=e,s=a[0],c=a[1];if(!s)return null;for(let e=0,l=i.length;e<l;e++){let l=i[e],u=l[Xn],d=(t?t+`>`:``)+String.fromCharCode(e);if(l[Zn].push(o),s.match(n,l)){if(c)switch(c.combinator){case Wc.adjacentSibling:let e=l.nextElementSibling;if(e){let t=this.findFirst({scope:n,rootElement:r,children:[e],selectorItems:a.slice(1),cachedItem:o},d);if(t)return t}break;case Wc.none:case Wc.descendant:case Wc.child:let t=this.findFirst({scope:n,rootElement:r,children:u,selectorItems:a.slice(1),cachedItem:o},d);if(t)return t;break;case Wc.subsequentSibling:let s=i.indexOf(l);for(let e=s+1;e<i.length;e++){let t=i[e],s=this.findFirst({scope:n,rootElement:r,children:[t],selectorItems:a.slice(1),cachedItem:o},d);if(s)return s}break}else if(r!==l)return{documentPosition:d,element:l}}if((s.combinator===Wc.none||s.combinator===Wc.descendant)&&u.length){let e=this.findFirst({scope:n,rootElement:r,children:u,selectorItems:a,cachedItem:o},d);if(e)return e}}return null}},nl=class{static toPixels(e){let t=parseFloat(e.value),n=e.value.replace(t.toString(),``);if(isNaN(t))return null;switch(n){case`px`:return t;case`rem`:return this.round(t*parseFloat(e.rootFontSize));case`em`:return this.round(t*parseFloat(e.parentFontSize));case`vw`:return this.round(t*e.window.innerWidth/100);case`vh`:return this.round(t*e.window.innerHeight/100);case`%`:return e.parentSize!==void 0&&e.parentSize!==null?this.round(t*parseFloat(e.parentSize)/100):null;case`vmin`:return this.round(t*Math.min(e.window.innerWidth,e.window.innerHeight)/100);case`vmax`:return t*Math.max(e.window.innerWidth,e.window.innerHeight)/100;case`cm`:return this.round(t*37.7812);case`mm`:return this.round(t*3.7781);case`in`:return this.round(t*96);case`pt`:return this.round(t*1.3281);case`pc`:return this.round(t*16);case`Q`:return this.round(t*.945);default:return null}}static round(e){return Math.round(e*1e4)/1e4}},J=class{static[Qr]=new Map;static[$r]=0;#e;constructor(e){this.#e=e}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#e&&this.constructor[Qr].get(this.#e[ze])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[pe]||null}static setWindowBrowserFrameRelation(e,t){let n=this[Qr];e[ze]===-1&&(e[ze]=this[$r],this[$r]++),n.set(e[ze],t)}static removeWindowBrowserFrameRelation(e){this[Qr].delete(e[ze])}},rl=class{[qe]={capturing:new Map,bubbling:new Map};[Ke]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return`EventTarget`}addEventListener(e,t,n){n=typeof n==`boolean`?{capture:n}:n||{};let r=n.capture?`capturing`:`bubbling`,i=this[qe][r].get(e),a;i?a=this[Ke][r].get(e):(i=[],a=[],this[qe][r].set(e,i),this[Ke][r].set(e,a)),!i.includes(t)&&(i.push(t),a.push(n),n.signal&&!n.signal.aborted&&n.signal.addEventListener(`abort`,()=>{this.removeEventListener(e,t)}))}removeEventListener(e,t){let n=this[qe].bubbling.get(e);if(n){let r=n.indexOf(t);if(r!==-1){n.splice(r,1),this[Ke].bubbling.get(e).splice(r,1);return}}let r=this[qe].capturing.get(e);if(r){let n=r.indexOf(t);n!==-1&&(r.splice(n,1),this[Ke].capturing.get(e).splice(n,1))}}dispatchEvent(e){if(!(e instanceof U))throw new this[y].TypeError(`Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.`);return!e[ko]&&(e[Jr]!==`load`||!e[ft])?(e[ko]=!0,e[ft]=this[or]||this,this.#e(e),e[ko]=!1,!(e[Wr]&&e[Gr])):(this.#t(e),!(e[Wr]&&e[Gr]))}attachEvent(e,t){this.addEventListener(e.replace(`on`,``),t)}detachEvent(e,t){this.removeEventListener(e.replace(`on`,``),t)}[Ne](){this[qe].capturing.clear(),this[qe].bubbling.clear(),this[Ke].capturing.clear(),this[Ke].bubbling.clear()}#e(e){let t=e.composedPath();e[Kr]=Ds.capturing;for(let n=t.length-1;n>=0;n--)if(e[Ae]=t[n],t[n].dispatchEvent(e),e[$e]||e[Be]){e[Kr]=Ds.none,e[Ae]=null;return}if(e[Kr]=Ds.atTarget,e[Ae]=this[or]||this,e[ft].dispatchEvent(e),e[Kr]=Ds.bubbling,e[Ur]&&!e[$e]&&!e[Be]){for(let n=1,r=t.length;n<r;n++)if(e[Ae]=t[n],t[n].dispatchEvent(e),e[$e]||e[Be]){e[Kr]=Ds.none,e[Ae]=null;return}}e[Kr]=Ds.none,e[Ae]=null}#t(e){let t=this[y],n=t?new J(t).getSettings():null,r=e.eventPhase===Ds.capturing?`capturing`:`bubbling`,i=this[qe][r].get(e.type)?.slice();if(i&&i.length){let a=this[Ke][r].get(e.type).slice();for(let r=0,o=i.length;r<o;r++){let s=i[r],c=a[r];if(c?.passive&&(e[We]=!0),t&&(this!==t||e.type!==`error`)&&!n?.disableErrorCapturing&&n?.errorCapture===Rs.tryAndCatch)if(s.handleEvent){let n;try{n=s.handleEvent.call(s,e)}catch(e){t[Bo](e)}n instanceof Promise&&n.catch(e=>t[Bo](e))}else{let n;try{n=s.call(this,e)}catch(e){t[Bo](e)}n instanceof Promise&&n.catch(e=>t[Bo](e))}else s.handleEvent?s.handleEvent.call(s,e):s.call(this,e);if(e[We]=!1,c?.once&&(i.splice(r,1),a.splice(r,1),this.removeEventListener(e.type,s),r--,o--),e[Be])return}}if(e.eventPhase!==Ds.capturing){let r=`on`+e.type.toLowerCase(),i=this[B],a=!i&&Object.hasOwn(this,r)&&this.constructor.name!==`EventTarget`;if(i||a){let a=i?.get(r)??this[r];if(typeof a==`function`)if(t&&(this!==t||e.type!==`error`)&&!n?.disableErrorCapturing&&n?.errorCapture===Rs.tryAndCatch){let n;try{n=a(e)}catch(e){t[Bo](e)}n instanceof Promise&&n.catch(e=>t[Bo](e))}else a(e)}}}},il=class extends U{matches;media;constructor(e,t=null){super(e,t),this.matches=t?.matches??!1,this.media=t?.media??``}},al;(function(e){e.all=`all`,e.print=`print`,e.screen=`screen`})(al||={});var ol=al,sl=class{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(e){this.window=e.window,this.rootFontSize=e.rootFontSize||null,this.mediaTypes=e.mediaTypes||[],this.not=e.not||!1,this.rules=e.rules||[],this.ranges=e.ranges||[]}toString(){return`${this.not?`not `:``}${this.mediaTypes.join(`, `)}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?` and `:``}${this.ranges.map(e=>`(${e.before?`${e.before.value} ${e.before.operator} `:``}${e.type}${e.after?` ${e.after.operator} ${e.after.value}`:``})`).join(` and `)}${(this.not||this.mediaTypes.length>0)&&this.rules.length?` and `:``}${this.rules.map(e=>e.value?`(${e.name}: ${e.value})`:`(${e.name})`).join(` and `)}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let e=!1;for(let t of this.mediaTypes)if(this.matchesMediaType(t)){e=!0;break}if(!e)return!1}for(let e of this.rules)if(!this.matchesRule(e))return!1;for(let e of this.ranges)if(!this.matchesRange(e))return!1;return!0}matchesMediaType(e){return e===ol.all?!0:e===new J(this.window).getSettings()?.device.mediaType}matchesRange(e){let t=e.type===`width`?this.window.innerWidth:this.window.innerHeight;if(e.before){let n=this.toPixels(e.before.value);if(n===null)return!1;switch(e.before.operator){case`<`:if(n>=t)return!1;break;case`<=`:if(n>t)return!1;break;case`>`:if(n<=t)return!1;break;case`>=`:if(n<t)return!1;break}}if(e.after){let n=this.toPixels(e.after.value);if(n===null)return!1;switch(e.after.operator){case`<`:if(t>=n)return!1;break;case`<=`:if(t>n)return!1;break;case`>`:if(t<=n)return!1;break;case`>=`:if(t<n)return!1;break}}return!0}matchesRule(e){let t=new J(this.window).getSettings();if(!t)return!1;if(!e.value){switch(e.name){case`min-width`:case`max-width`:case`min-height`:case`max-height`:case`width`:case`height`:case`orientation`:case`prefers-color-scheme`:case`hover`:case`any-hover`:case`any-pointer`:case`pointer`:case`display-mode`:case`min-aspect-ratio`:case`max-aspect-ratio`:case`aspect-ratio`:return!0;case`prefers-reduced-motion`:return t.device.prefersReducedMotion===`reduce`;case`forced-colors`:return t.device.forcedColors===`active`}return!1}switch(e.name){case`min-width`:let n=this.toPixels(e.value);return n!==null&&this.window.innerWidth>=n;case`max-width`:let r=this.toPixels(e.value);return r!==null&&this.window.innerWidth<=r;case`min-height`:let i=this.toPixels(e.value);return i!==null&&this.window.innerHeight>=i;case`max-height`:let a=this.toPixels(e.value);return a!==null&&this.window.innerHeight<=a;case`width`:let o=this.toPixels(e.value);return o!==null&&this.window.innerWidth===o;case`height`:let s=this.toPixels(e.value);return s!==null&&this.window.innerHeight===s;case`orientation`:return e.value===`landscape`?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case`prefers-color-scheme`:return e.value===t.device.prefersColorScheme;case`prefers-reduced-motion`:return e.value===t.device.prefersReducedMotion;case`forced-colors`:return(e.value===`none`||e.value===`active`)&&e.value===t.device.forcedColors;case`any-hover`:case`hover`:return e.value===`none`?this.window.navigator.maxTouchPoints>0:e.value===`hover`?this.window.navigator.maxTouchPoints===0:!1;case`any-pointer`:case`pointer`:return e.value===`none`?!1:e.value===`coarse`?this.window.navigator.maxTouchPoints>0:e.value===`fine`?this.window.navigator.maxTouchPoints===0:!1;case`display-mode`:return e.value===`browser`;case`min-aspect-ratio`:case`max-aspect-ratio`:case`aspect-ratio`:let c=e.value.split(`/`),l=parseInt(c[0],10),u=parseInt(c[1],10);if(isNaN(l)||isNaN(u))return!1;switch(e.name){case`min-aspect-ratio`:return l/u<=this.window.innerWidth/this.window.innerHeight;case`max-aspect-ratio`:return l/u>=this.window.innerWidth/this.window.innerHeight;case`aspect-ratio`:return l/u===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(e){return!new J(this.window).getSettings()?.disableComputedStyleRendering&&e.endsWith(`em`)?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),nl.toPixels({window:this.window,value:e,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):nl.toPixels({window:this.window,value:e,rootFontSize:16,parentFontSize:16})}};const cl=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,ll=/[<>]/,ul=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/;var dl=class{static parse(e){let t=new sl({window:e.window,rootFontSize:e.rootFontSize}),n=[t],r=new RegExp(cl),i=null;for(;i=r.exec(e.mediaQuery.toLowerCase());)if(i[4]===`,`||i[5]===`or`)t=new sl({window:e.window,rootFontSize:e.rootFontSize}),n.push(t);else if(i[1]===`all`||i[1]===`screen`||i[1]===`print`)t.mediaTypes.push(i[1]);else if(i[1]===`not`)t.not=!0;else if(i[2]){let n=ll.test(i[2])?i[2].match(ul):null;if(n&&(n[1]||n[5]))t.ranges.push({before:n[1]?{value:n[1],operator:n[2]}:null,type:n[3],after:n[5]?{value:n[5],operator:n[4]}:null});else{let[n,r]=i[2].split(`:`),a=r?r.trim():null;if(!a&&!i[3])return[new sl({window:e.window,rootFontSize:e.rootFontSize,not:!0,mediaTypes:[ol.all]})];t.rules.push({name:n.trim(),value:a})}}return n}},fl=class extends rl{onchange=null;#e;#t=null;#n;#r=null;constructor(e){super(),this.#e=e.window,this.#n=e.media,this.#r=e.rootFontSize||null}get media(){return this.#t=this.#t||dl.parse({window:this.#e,mediaQuery:this.#n,rootFontSize:this.#r}),this.#t.map(e=>e.toString()).join(`, `)}get matches(){this.#t=this.#t||dl.parse({window:this.#e,mediaQuery:this.#n,rootFontSize:this.#r});for(let e of this.#t)if(!e.matches())return!1;return!0}addListener(e){this.addEventListener(`change`,e)}removeListener(e){this.removeEventListener(`change`,e)}addEventListener(e,t){if(super.addEventListener(e,t),e===`change`){let e=!1,n=()=>{let t=this.matches;t!==e&&(e=t,this.dispatchEvent(new il(`change`,{matches:t,media:this.media})))};t[vt]=n,this.#e.addEventListener(`resize`,n)}}removeEventListener(e,t){super.removeEventListener(e,t),e===`change`&&t[vt]&&this.#e.removeEventListener(`resize`,t[vt])}},pl=class extends qs{[Uo]=[];get cssRules(){return this[Uo]}insertRule(e,t){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let n=this[Zo].parseFromString(e);if(n.length===0||n.length>1)throw new this[y].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${e}'.`,V.syntaxError);if(t!==void 0){if(t=Number(t),isNaN(t)||t>this.cssRules.length)throw new this[y].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${t}) is larger than the maximum index (${this.cssRules.length}).`,V.indexSizeError);return this.cssRules.splice(t,0,n[0]),t}let r=this.cssRules.length;return this.cssRules.unshift(n[0]),r}deleteRule(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(e=Number(e),isNaN(e)||e<0||e>=this.cssRules.length)throw new this[y].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${e}) is greater than the length of the rule list.`,V.indexSizeError);this.cssRules.splice(e,1)}},ml=class extends pl{[g]=``;[p]=``;[$o]=``;get type(){return W.containerRule}get cssText(){let e=``;for(let t of this[Uo])e+=`
|
|
7
7
|
`+t.cssText;return e+=`
|
|
8
8
|
`,`@${this[$o]}scope${this[g]?` (${this[g]})`:``}${this[p]?` to (${this[p]})`:``} {${e}}`}get start(){return this[g]}get end(){return this[p]}};const hl=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,gl=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,_l=/var\( *(--[^), ]+)\)/,vl=/var\( *(--[^), ]+), *([^), ]+)\)/;var yl=class{element;constructor(e){this.element=e}getComputedStyle(){let e=[],t=[],n={element:this.element,cssTexts:[]},r=[],i=[];if(!this.element[b])return new Lc;let a=this.element[j].computedStyle;if(a?.result){let e=a.result.deref();if(e)return e}for(;n.element;)if(n.element[S]===H.elementNode&&(n.element.getRootNode()[S]===H.documentNode?e.unshift(n):r.unshift(n),n.element.shadowRoot&&i.push(n),t.unshift(n)),n.element===this.element[h]){let t=this.getStyleSheets(this.element[h]);for(let n of t)this.parseCSSRules({elements:e,cssRules:n.cssRules});for(let e of i){let t=this.getStyleSheets(e.element.shadowRoot);for(let n of t)this.parseCSSRules({elements:[],cssRules:n.cssRules,hostElement:e})}n={element:null,cssTexts:[]}}else if(n.element[S]===H.documentFragmentNode&&n.element.host){let e=n.element,t=this.getStyleSheets(e);n={element:e.host,cssTexts:[]};for(let e of t)this.parseCSSRules({elements:r,cssRules:e.cssRules,hostElement:n});for(let e of i){let t=this.getStyleSheets(e.element.shadowRoot);for(let n of t)this.parseCSSRules({elements:[],cssRules:n.cssRules,hostElement:e})}i=[],r=[]}else n={element:n.element[x],cssTexts:[]};let o=t[t.length-1],s=new Lc,c={},l=16,u=16;for(let e of t){e.cssTexts.sort((e,t)=>e.priorityWeight-t.priorityWeight);let t=Rc[e.element[C]],n=``;if(t)if(typeof t==`string`)n+=t;else for(let r of Object.keys(t))(r===`default`||e.element[r])&&(n+=t[r]);for(let t of e.cssTexts)n+=t.cssText;let r=e.element.getAttribute(`style`);r&&(n+=r);let i=Fc.parse(n),a=i.rules;Object.assign(c,i.properties);for(let{name:t,value:n,important:r}of a)if(zc[t]||e===o){let i=this.parseCSSVariablesInValue(n.trim(),c);if(i&&(!s.get(t)?.important||r)&&(s.set(t,i,r),t===`font`||t===`font-size`)){let t=s.properties[`font-size`];if(t!==null){let n=this.parseMeasurementsInValue({value:t.value,rootFontSize:l,parentFontSize:u,parentSize:u});e.element[C]===`HTML`?l=n:e!==o&&(u=n)}}}}for(let e of Bc){let t=s.properties[e];t&&(t.value=this.parseMeasurementsInValue({value:t.value,rootFontSize:l,parentFontSize:u,parentSize:e===`font-size`?u:null}))}let d={result:new WeakRef(s)};return this.element[j].computedStyle=d,this.element[h][$n].push(d),s}getStyleSheets(e){if(!e)return[];let t=e.querySelectorAll(`style,link[rel="stylesheet"]`),n=[];for(let e of t){let t=e.sheet;t&&n.push(t)}return e.adoptedStyleSheets&&(n=n.concat(e.adoptedStyleSheets)),n}parseCSSRules(e){if(!e.hostElement&&!e.elements.length)return;let t=this.element[y];for(let n of e.cssRules)if(n.type===W.styleRule){let t=n.selectorText;if(t)if(t[0]===`:`&&t.startsWith(`:host`)){if(e.hostElement){let r=!0;if(t!==`:host`){let i=t.match(gl);if(i)if(q.matches(e.hostElement.element,i[1]||i[2],{ignoreErrors:!0,scope:e.scopeElement?.element})){let i=t?.replace(gl,``).trim();if(i&&i[0]!==`:`){r=!1;for(let t of e.elements){let r=q.matches(t.element,i,{ignoreErrors:!0,scope:e.scopeElement?.element});r&&t.cssTexts.push({cssText:n[Oe],priorityWeight:10+r.priorityWeight})}}}else r=!1}r&&e.hostElement.cssTexts.push({cssText:n[Oe],priorityWeight:10})}}else for(let r of e.elements){let i=q.matches(r.element,t,{ignoreErrors:!0,scope:e.scopeElement?.element});i&&r.cssTexts.push({cssText:n[Oe],priorityWeight:i.priorityWeight})}}else if(n.type===W.mediaRule&&new fl({window:t,media:n.conditionText,rootFontSize:this.element[C]===`HTML`?16:null}).matches)this.parseCSSRules({elements:e.elements,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(n.type===W.supportsRule)t.CSS.supports(n.conditionText)&&this.parseCSSRules({elements:e.elements,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(n.type===W.containerRule&&n instanceof ml){let t=[],r=null;for(let i of e.elements)if(r){if(n[p]&&q.matches(i.element,n[p],{ignoreErrors:!0,scope:r.element}))break;t.push(i)}else q.matches(i.element,n[g]||`:root`,{ignoreErrors:!0})&&(r=i,t.push(i));t.length&&this.parseCSSRules({elements:t,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:r})}}parseCSSVariablesInValue(e,t){let n=e,r;for(;(r=n.match(_l))!=null;)n=n.replace(r[0],t[r[1]]||``);for(;(r=n.match(vl))!==null;)n=n.replace(r[0],t[r[1]]||r[2]);return n}parseMeasurementsInValue(e){if(new J(this.element[y]).getSettings()?.disableComputedStyleRendering)return e.value;let t=new RegExp(hl),n=e.value,r;for(;(r=t.exec(e.value))!==null;)if(r[1]!==`px`){let t=nl.toPixels({window:this.element[y],value:r[0],rootFontSize:e.rootFontSize,parentFontSize:e.parentFontSize,parentSize:e.parentSize});t!==null&&(n=n.replace(r[0],t+`px`))}return n}},bl=class{parentRule=null;[y];#e;#t;#n={attributeValue:null,propertyManager:null};constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this.#e=n?.element||null,this.#t=n?.element?!!n?.computed:!1}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue(`accent-color`)}set accentColor(e){this.setProperty(`accent-color`,e)}get appRegion(){return this.getPropertyValue(`app-region`)}set appRegion(e){this.setProperty(`app-region`,e)}get alignContent(){return this.getPropertyValue(`align-content`)}set alignContent(e){this.setProperty(`align-content`,e)}get alignItems(){return this.getPropertyValue(`align-items`)}set alignItems(e){this.setProperty(`align-items`,e)}get alignSelf(){return this.getPropertyValue(`align-self`)}set alignSelf(e){this.setProperty(`align-self`,e)}get alignmentBaseline(){return this.getPropertyValue(`alignment-baseline`)}set alignmentBaseline(e){this.setProperty(`alignment-baseline`,e)}get all(){return this.getPropertyValue(`all`)}set all(e){this.setProperty(`all`,e)}get animation(){return this.getPropertyValue(`animation`)}set animation(e){this.setProperty(`animation`,e)}get animationDelay(){return this.getPropertyValue(`animation-delay`)}set animationDelay(e){this.setProperty(`animation-delay`,e)}get animationDirection(){return this.getPropertyValue(`animation-direction`)}set animationDirection(e){this.setProperty(`animation-direction`,e)}get animationDuration(){return this.getPropertyValue(`animation-duration`)}set animationDuration(e){this.setProperty(`animation-duration`,e)}get animationFillMode(){return this.getPropertyValue(`animation-fill-mode`)}set animationFillMode(e){this.setProperty(`animation-fill-mode`,e)}get animationIterationCount(){return this.getPropertyValue(`animation-iteration-count`)}set animationIterationCount(e){this.setProperty(`animation-iteration-count`,e)}get animationName(){return this.getPropertyValue(`animation-name`)}set animationName(e){this.setProperty(`animation-name`,e)}get animationPlayState(){return this.getPropertyValue(`animation-play-state`)}set animationPlayState(e){this.setProperty(`animation-play-state`,e)}get animationTimingFunction(){return this.getPropertyValue(`animation-timing-function`)}set animationTimingFunction(e){this.setProperty(`animation-timing-function`,e)}get appearance(){return this.getPropertyValue(`appearance`)}set appearance(e){this.setProperty(`appearance`,e)}get backdropFilter(){return this.getPropertyValue(`backdrop-filter`)}set backdropFilter(e){this.setProperty(`backdrop-filter`,e)}get backfaceVisibility(){return this.getPropertyValue(`backface-visibility`)}set backfaceVisibility(e){this.setProperty(`backface-visibility`,e)}get background(){return this.getPropertyValue(`background`)}set background(e){this.setProperty(`background`,e)}get backgroundAttachment(){return this.getPropertyValue(`background-attachment`)}set backgroundAttachment(e){this.setProperty(`background-attachment`,e)}get backgroundBlendMode(){return this.getPropertyValue(`background-blend-mode`)}set backgroundBlendMode(e){this.setProperty(`background-blend-mode`,e)}get backgroundClip(){return this.getPropertyValue(`background-clip`)}set backgroundClip(e){this.setProperty(`background-clip`,e)}get backgroundColor(){return this.getPropertyValue(`background-color`)}set backgroundColor(e){this.setProperty(`background-color`,e)}get backgroundImage(){return this.getPropertyValue(`background-image`)}set backgroundImage(e){this.setProperty(`background-image`,e)}get backgroundOrigin(){return this.getPropertyValue(`background-origin`)}set backgroundOrigin(e){this.setProperty(`background-origin`,e)}get backgroundPosition(){return this.getPropertyValue(`background-position`)}set backgroundPosition(e){this.setProperty(`background-position`,e)}get backgroundPositionX(){return this.getPropertyValue(`background-position-x`)}set backgroundPositionX(e){this.setProperty(`background-position-x`,e)}get backgroundPositionY(){return this.getPropertyValue(`background-position-y`)}set backgroundPositionY(e){this.setProperty(`background-position-y`,e)}get backgroundRepeat(){return this.getPropertyValue(`background-repeat`)}set backgroundRepeat(e){this.setProperty(`background-repeat`,e)}get backgroundRepeatX(){return this.getPropertyValue(`background-repeat-x`)}set backgroundRepeatX(e){this.setProperty(`background-repeat-x`,e)}get backgroundRepeatY(){return this.getPropertyValue(`background-repeat-y`)}set backgroundRepeatY(e){this.setProperty(`background-repeat-y`,e)}get backgroundSize(){return this.getPropertyValue(`background-size`)}set backgroundSize(e){this.setProperty(`background-size`,e)}get baselineShift(){return this.getPropertyValue(`baseline-shift`)}set baselineShift(e){this.setProperty(`baseline-shift`,e)}get blockSize(){return this.getPropertyValue(`block-size`)}set blockSize(e){this.setProperty(`block-size`,e)}get border(){return this.getPropertyValue(`border`)}set border(e){this.setProperty(`border`,e)}get borderBlockEnd(){return this.getPropertyValue(`border-block-end`)}set borderBlockEnd(e){this.setProperty(`border-block-end`,e)}get borderBlockEndColor(){return this.getPropertyValue(`border-block-end-color`)}set borderBlockEndColor(e){this.setProperty(`border-block-end-color`,e)}get borderBlockEndStyle(){return this.getPropertyValue(`border-block-end-style`)}set borderBlockEndStyle(e){this.setProperty(`border-block-end-style`,e)}get borderBlockEndWidth(){return this.getPropertyValue(`border-block-end-width`)}set borderBlockEndWidth(e){this.setProperty(`border-block-end-width`,e)}get borderBlockStart(){return this.getPropertyValue(`border-block-start`)}set borderBlockStart(e){this.setProperty(`border-block-start`,e)}get borderBlockStartColor(){return this.getPropertyValue(`border-block-start-color`)}set borderBlockStartColor(e){this.setProperty(`border-block-start-color`,e)}get borderBlockStartStyle(){return this.getPropertyValue(`border-block-start-style`)}set borderBlockStartStyle(e){this.setProperty(`border-block-start-style`,e)}get borderBlockStartWidth(){return this.getPropertyValue(`border-block-start-width`)}set borderBlockStartWidth(e){this.setProperty(`border-block-start-width`,e)}get borderBottom(){return this.getPropertyValue(`border-bottom`)}set borderBottom(e){this.setProperty(`border-bottom`,e)}get borderBottomColor(){return this.getPropertyValue(`border-bottom-color`)}set borderBottomColor(e){this.setProperty(`border-bottom-color`,e)}get borderBottomLeftRadius(){return this.getPropertyValue(`border-bottom-left-radius`)}set borderBottomLeftRadius(e){this.setProperty(`border-bottom-left-radius`,e)}get borderBottomRightRadius(){return this.getPropertyValue(`border-bottom-right-radius`)}set borderBottomRightRadius(e){this.setProperty(`border-bottom-right-radius`,e)}get borderBottomStyle(){return this.getPropertyValue(`border-bottom-style`)}set borderBottomStyle(e){this.setProperty(`border-bottom-style`,e)}get borderBottomWidth(){return this.getPropertyValue(`border-bottom-width`)}set borderBottomWidth(e){this.setProperty(`border-bottom-width`,e)}get borderCollapse(){return this.getPropertyValue(`border-collapse`)}set borderCollapse(e){this.setProperty(`border-collapse`,e)}get borderColor(){return this.getPropertyValue(`border-color`)}set borderColor(e){this.setProperty(`border-color`,e)}get borderImage(){return this.getPropertyValue(`border-image`)}set borderImage(e){this.setProperty(`border-image`,e)}get borderImageOutset(){return this.getPropertyValue(`border-image-outset`)}set borderImageOutset(e){this.setProperty(`border-image-outset`,e)}get borderImageRepeat(){return this.getPropertyValue(`border-image-repeat`)}set borderImageRepeat(e){this.setProperty(`border-image-repeat`,e)}get borderImageSlice(){return this.getPropertyValue(`border-image-slice`)}set borderImageSlice(e){this.setProperty(`border-image-slice`,e)}get borderImageSource(){return this.getPropertyValue(`border-image-source`)}set borderImageSource(e){this.setProperty(`border-image-source`,e)}get borderImageWidth(){return this.getPropertyValue(`border-image-width`)}set borderImageWidth(e){this.setProperty(`border-image-width`,e)}get borderInlineEnd(){return this.getPropertyValue(`border-inline-end`)}set borderInlineEnd(e){this.setProperty(`border-inline-end`,e)}get borderInlineEndColor(){return this.getPropertyValue(`border-inline-end-color`)}set borderInlineEndColor(e){this.setProperty(`border-inline-end-color`,e)}get borderInlineEndStyle(){return this.getPropertyValue(`border-inline-end-style`)}set borderInlineEndStyle(e){this.setProperty(`border-inline-end-style`,e)}get borderInlineEndWidth(){return this.getPropertyValue(`border-inline-end-width`)}set borderInlineEndWidth(e){this.setProperty(`border-inline-end-width`,e)}get borderInlineStart(){return this.getPropertyValue(`border-inline-start`)}set borderInlineStart(e){this.setProperty(`border-inline-start`,e)}get borderInlineStartColor(){return this.getPropertyValue(`border-inline-start-color`)}set borderInlineStartColor(e){this.setProperty(`border-inline-start-color`,e)}get borderInlineStartStyle(){return this.getPropertyValue(`border-inline-start-style`)}set borderInlineStartStyle(e){this.setProperty(`border-inline-start-style`,e)}get borderInlineStartWidth(){return this.getPropertyValue(`border-inline-start-width`)}set borderInlineStartWidth(e){this.setProperty(`border-inline-start-width`,e)}get borderLeft(){return this.getPropertyValue(`border-left`)}set borderLeft(e){this.setProperty(`border-left`,e)}get borderLeftColor(){return this.getPropertyValue(`border-left-color`)}set borderLeftColor(e){this.setProperty(`border-left-color`,e)}get borderLeftStyle(){return this.getPropertyValue(`border-left-style`)}set borderLeftStyle(e){this.setProperty(`border-left-style`,e)}get borderLeftWidth(){return this.getPropertyValue(`border-left-width`)}set borderLeftWidth(e){this.setProperty(`border-left-width`,e)}get borderRadius(){return this.getPropertyValue(`border-radius`)}set borderRadius(e){this.setProperty(`border-radius`,e)}get borderRight(){return this.getPropertyValue(`border-right`)}set borderRight(e){this.setProperty(`border-right`,e)}get borderRightColor(){return this.getPropertyValue(`border-right-color`)}set borderRightColor(e){this.setProperty(`border-right-color`,e)}get borderRightStyle(){return this.getPropertyValue(`border-right-style`)}set borderRightStyle(e){this.setProperty(`border-right-style`,e)}get borderRightWidth(){return this.getPropertyValue(`border-right-width`)}set borderRightWidth(e){this.setProperty(`border-right-width`,e)}get borderSpacing(){return this.getPropertyValue(`border-spacing`)}set borderSpacing(e){this.setProperty(`border-spacing`,e)}get borderStyle(){return this.getPropertyValue(`border-style`)}set borderStyle(e){this.setProperty(`border-style`,e)}get borderTop(){return this.getPropertyValue(`border-top`)}set borderTop(e){this.setProperty(`border-top`,e)}get borderTopColor(){return this.getPropertyValue(`border-top-color`)}set borderTopColor(e){this.setProperty(`border-top-color`,e)}get borderTopLeftRadius(){return this.getPropertyValue(`border-top-left-radius`)}set borderTopLeftRadius(e){this.setProperty(`border-top-left-radius`,e)}get borderTopRightRadius(){return this.getPropertyValue(`border-top-right-radius`)}set borderTopRightRadius(e){this.setProperty(`border-top-right-radius`,e)}get borderTopStyle(){return this.getPropertyValue(`border-top-style`)}set borderTopStyle(e){this.setProperty(`border-top-style`,e)}get borderTopWidth(){return this.getPropertyValue(`border-top-width`)}set borderTopWidth(e){this.setProperty(`border-top-width`,e)}get borderWidth(){return this.getPropertyValue(`border-width`)}set borderWidth(e){this.setProperty(`border-width`,e)}get borderEndEndRadius(){return this.getPropertyValue(`border-end-end-radius`)}set borderEndEndRadius(e){this.setProperty(`border-end-end-radius`,e)}get borderEndStartRadius(){return this.getPropertyValue(`border-end-start-radius`)}set borderEndStartRadius(e){this.setProperty(`border-end-start-radius`,e)}get borderStartEndRadius(){return this.getPropertyValue(`border-start-end-radius`)}set borderStartEndRadius(e){this.setProperty(`border-start-end-radius`,e)}get borderStartStartRadius(){return this.getPropertyValue(`border-start-start-radius`)}set borderStartStartRadius(e){this.setProperty(`border-start-start-radius`,e)}get bottom(){return this.getPropertyValue(`bottom`)}set bottom(e){this.setProperty(`bottom`,e)}get boxShadow(){return this.getPropertyValue(`box-shadow`)}set boxShadow(e){this.setProperty(`box-shadow`,e)}get boxSizing(){return this.getPropertyValue(`box-sizing`)}set boxSizing(e){this.setProperty(`box-sizing`,e)}get breakAfter(){return this.getPropertyValue(`break-after`)}set breakAfter(e){this.setProperty(`break-after`,e)}get breakBefore(){return this.getPropertyValue(`break-before`)}set breakBefore(e){this.setProperty(`break-before`,e)}get breakInside(){return this.getPropertyValue(`break-inside`)}set breakInside(e){this.setProperty(`break-inside`,e)}get bufferedRendering(){return this.getPropertyValue(`buffered-rendering`)}set bufferedRendering(e){this.setProperty(`buffered-rendering`,e)}get captionSide(){return this.getPropertyValue(`caption-side`)}set captionSide(e){this.setProperty(`caption-side`,e)}get caretColor(){return this.getPropertyValue(`caret-color`)}set caretColor(e){this.setProperty(`caret-color`,e)}get clear(){return this.getPropertyValue(`clear`)}set clear(e){this.setProperty(`clear`,e)}get clip(){return this.getPropertyValue(`clip`)}set clip(e){this.setProperty(`clip`,e)}get clipPath(){return this.getPropertyValue(`clip-path`)}set clipPath(e){this.setProperty(`clip-path`,e)}get clipRule(){return this.getPropertyValue(`clip-rule`)}set clipRule(e){this.setProperty(`clip-rule`,e)}get color(){return this.getPropertyValue(`color`)}set color(e){this.setProperty(`color`,e)}get colorInterpolation(){return this.getPropertyValue(`color-interpolation`)}set colorInterpolation(e){this.setProperty(`color-interpolation`,e)}get colorInterpolationFilters(){return this.getPropertyValue(`color-interpolation-filters`)}set colorInterpolationFilters(e){this.setProperty(`color-interpolation-filters`,e)}get colorRendering(){return this.getPropertyValue(`color-rendering`)}set colorRendering(e){this.setProperty(`color-rendering`,e)}get colorScheme(){return this.getPropertyValue(`color-scheme`)}set colorScheme(e){this.setProperty(`color-scheme`,e)}get columnCount(){return this.getPropertyValue(`column-count`)}set columnCount(e){this.setProperty(`column-count`,e)}get columnFill(){return this.getPropertyValue(`column-fill`)}set columnFill(e){this.setProperty(`column-fill`,e)}get columnGap(){return this.getPropertyValue(`column-gap`)}set columnGap(e){this.setProperty(`column-gap`,e)}get columnRule(){return this.getPropertyValue(`column-rule`)}set columnRule(e){this.setProperty(`column-rule`,e)}get columnRuleColor(){return this.getPropertyValue(`column-rule-color`)}set columnRuleColor(e){this.setProperty(`column-rule-color`,e)}get columnRuleStyle(){return this.getPropertyValue(`column-rule-style`)}set columnRuleStyle(e){this.setProperty(`column-rule-style`,e)}get columnRuleWidth(){return this.getPropertyValue(`column-rule-width`)}set columnRuleWidth(e){this.setProperty(`column-rule-width`,e)}get columnSpan(){return this.getPropertyValue(`column-span`)}set columnSpan(e){this.setProperty(`column-span`,e)}get columnWidth(){return this.getPropertyValue(`column-width`)}set columnWidth(e){this.setProperty(`column-width`,e)}get columns(){return this.getPropertyValue(`columns`)}set columns(e){this.setProperty(`columns`,e)}get contain(){return this.getPropertyValue(`contain`)}set contain(e){this.setProperty(`contain`,e)}get containIntrinsicSize(){return this.getPropertyValue(`contain-intrinsic-size`)}set containIntrinsicSize(e){this.setProperty(`contain-intrinsic-size`,e)}get content(){return this.getPropertyValue(`content`)}set content(e){this.setProperty(`content`,e)}get contentVisibility(){return this.getPropertyValue(`content-visibility`)}set contentVisibility(e){this.setProperty(`content-visibility`,e)}get counterIncrement(){return this.getPropertyValue(`counter-increment`)}set counterIncrement(e){this.setProperty(`counter-increment`,e)}get counterReset(){return this.getPropertyValue(`counter-reset`)}set counterReset(e){this.setProperty(`counter-reset`,e)}get counterSet(){return this.getPropertyValue(`counter-set`)}set counterSet(e){this.setProperty(`counter-set`,e)}get containIntrinsicBlockSize(){return this.getPropertyValue(`contain-intrinsic-block-size`)}set containIntrinsicBlockSize(e){this.setProperty(`contain-intrinsic-block-size`,e)}get containIntrinsicHeight(){return this.getPropertyValue(`contain-intrinsic-height`)}set containIntrinsicHeight(e){this.setProperty(`contain-intrinsic-height`,e)}get containIntrinsicInlineSize(){return this.getPropertyValue(`contain-intrinsic-inline-size`)}set containIntrinsicInlineSize(e){this.setProperty(`contain-intrinsic-inline-size`,e)}get containIntrinsicWidth(){return this.getPropertyValue(`contain-intrinsic-width`)}set containIntrinsicWidth(e){this.setProperty(`contain-intrinsic-width`,e)}get cssFloat(){return this.getPropertyValue(`css-float`)}set cssFloat(e){this.setProperty(`css-float`,e)}get cursor(){return this.getPropertyValue(`cursor`)}set cursor(e){this.setProperty(`cursor`,e)}get cx(){return this.getPropertyValue(`cx`)}set cx(e){this.setProperty(`cx`,e)}get cy(){return this.getPropertyValue(`cy`)}set cy(e){this.setProperty(`cy`,e)}get d(){return this.getPropertyValue(`d`)}set d(e){this.setProperty(`d`,e)}get direction(){return this.getPropertyValue(`direction`)}set direction(e){this.setProperty(`direction`,e)}get display(){return this.getPropertyValue(`display`)}set display(e){this.setProperty(`display`,e)}get dominantBaseline(){return this.getPropertyValue(`dominant-baseline`)}set dominantBaseline(e){this.setProperty(`dominant-baseline`,e)}get emptyCells(){return this.getPropertyValue(`empty-cells`)}set emptyCells(e){this.setProperty(`empty-cells`,e)}get fill(){return this.getPropertyValue(`fill`)}set fill(e){this.setProperty(`fill`,e)}get fillOpacity(){return this.getPropertyValue(`fill-opacity`)}set fillOpacity(e){this.setProperty(`fill-opacity`,e)}get fillRule(){return this.getPropertyValue(`fill-rule`)}set fillRule(e){this.setProperty(`fill-rule`,e)}get filter(){return this.getPropertyValue(`filter`)}set filter(e){this.setProperty(`filter`,e)}get flex(){return this.getPropertyValue(`flex`)}set flex(e){this.setProperty(`flex`,e)}get flexBasis(){return this.getPropertyValue(`flex-basis`)}set flexBasis(e){this.setProperty(`flex-basis`,e)}get flexDirection(){return this.getPropertyValue(`flex-direction`)}set flexDirection(e){this.setProperty(`flex-direction`,e)}get flexFlow(){return this.getPropertyValue(`flex-flow`)}set flexFlow(e){this.setProperty(`flex-flow`,e)}get flexGrow(){return this.getPropertyValue(`flex-grow`)}set flexGrow(e){this.setProperty(`flex-grow`,e)}get flexShrink(){return this.getPropertyValue(`flex-shrink`)}set flexShrink(e){this.setProperty(`flex-shrink`,e)}get flexWrap(){return this.getPropertyValue(`flex-wrap`)}set flexWrap(e){this.setProperty(`flex-wrap`,e)}get float(){return this.getPropertyValue(`float`)}set float(e){this.setProperty(`float`,e)}get floodColor(){return this.getPropertyValue(`flood-color`)}set floodColor(e){this.setProperty(`flood-color`,e)}get floodOpacity(){return this.getPropertyValue(`flood-opacity`)}set floodOpacity(e){this.setProperty(`flood-opacity`,e)}get font(){return this.getPropertyValue(`font`)}set font(e){this.setProperty(`font`,e)}get fontDisplay(){return this.getPropertyValue(`font-display`)}set fontDisplay(e){this.setProperty(`font-display`,e)}get fontFamily(){return this.getPropertyValue(`font-family`)}set fontFamily(e){this.setProperty(`font-family`,e)}get fontFeatureSettings(){return this.getPropertyValue(`font-feature-settings`)}set fontFeatureSettings(e){this.setProperty(`font-feature-settings`,e)}get fontKerning(){return this.getPropertyValue(`font-kerning`)}set fontKerning(e){this.setProperty(`font-kerning`,e)}get fontOpticalSizing(){return this.getPropertyValue(`font-optical-sizing`)}set fontOpticalSizing(e){this.setProperty(`font-optical-sizing`,e)}get fontSize(){return this.getPropertyValue(`font-size`)}set fontSize(e){this.setProperty(`font-size`,e)}get fontStretch(){return this.getPropertyValue(`font-stretch`)}set fontStretch(e){this.setProperty(`font-stretch`,e)}get fontStyle(){return this.getPropertyValue(`font-style`)}set fontStyle(e){this.setProperty(`font-style`,e)}get fontVariant(){return this.getPropertyValue(`font-variant`)}set fontVariant(e){this.setProperty(`font-variant`,e)}get fontVariantCaps(){return this.getPropertyValue(`font-variant-caps`)}set fontVariantCaps(e){this.setProperty(`font-variant-caps`,e)}get fontVariantEastAsian(){return this.getPropertyValue(`font-variant-east-asian`)}set fontVariantEastAsian(e){this.setProperty(`font-variant-east-asian`,e)}get fontVariantLigatures(){return this.getPropertyValue(`font-variant-ligatures`)}set fontVariantLigatures(e){this.setProperty(`font-variant-ligatures`,e)}get fontVariantNumeric(){return this.getPropertyValue(`font-variant-numeric`)}set fontVariantNumeric(e){this.setProperty(`font-variant-numeric`,e)}get fontVariationSettings(){return this.getPropertyValue(`font-variation-settings`)}set fontVariationSettings(e){this.setProperty(`font-variation-settings`,e)}get fontPalette(){return this.getPropertyValue(`font-palette`)}set fontPalette(e){this.setProperty(`font-palette`,e)}get fontSynthesisSmallCaps(){return this.getPropertyValue(`font-synthesis-small-caps`)}set fontSynthesisSmallCaps(e){this.setProperty(`font-synthesis-small-caps`,e)}get fontSynthesisStyle(){return this.getPropertyValue(`font-synthesis-style`)}set fontSynthesisStyle(e){this.setProperty(`font-synthesis-style`,e)}get fontSynthesisWeight(){return this.getPropertyValue(`font-synthesis-weight`)}set fontSynthesisWeight(e){this.setProperty(`font-synthesis-weight`,e)}get fontWeight(){return this.getPropertyValue(`font-weight`)}set fontWeight(e){this.setProperty(`font-weight`,e)}get gap(){return this.getPropertyValue(`gap`)}set gap(e){this.setProperty(`gap`,e)}get grid(){return this.getPropertyValue(`grid`)}set grid(e){this.setProperty(`grid`,e)}get gridArea(){return this.getPropertyValue(`grid-area`)}set gridArea(e){this.setProperty(`grid-area`,e)}get gridAutoColumns(){return this.getPropertyValue(`grid-auto-columns`)}set gridAutoColumns(e){this.setProperty(`grid-auto-columns`,e)}get gridAutoFlow(){return this.getPropertyValue(`grid-auto-flow`)}set gridAutoFlow(e){this.setProperty(`grid-auto-flow`,e)}get gridAutoRows(){return this.getPropertyValue(`grid-auto-rows`)}set gridAutoRows(e){this.setProperty(`grid-auto-rows`,e)}get gridColumn(){return this.getPropertyValue(`grid-column`)}set gridColumn(e){this.setProperty(`grid-column`,e)}get gridColumnEnd(){return this.getPropertyValue(`grid-column-end`)}set gridColumnEnd(e){this.setProperty(`grid-column-end`,e)}get gridColumnGap(){return this.getPropertyValue(`grid-column-gap`)}set gridColumnGap(e){this.setProperty(`grid-column-gap`,e)}get gridColumnStart(){return this.getPropertyValue(`grid-column-start`)}set gridColumnStart(e){this.setProperty(`grid-column-start`,e)}get gridGap(){return this.getPropertyValue(`grid-gap`)}set gridGap(e){this.setProperty(`grid-gap`,e)}get gridRow(){return this.getPropertyValue(`grid-row`)}set gridRow(e){this.setProperty(`grid-row`,e)}get gridRowEnd(){return this.getPropertyValue(`grid-row-end`)}set gridRowEnd(e){this.setProperty(`grid-row-end`,e)}get gridRowGap(){return this.getPropertyValue(`grid-row-gap`)}set gridRowGap(e){this.setProperty(`grid-row-gap`,e)}get gridRowStart(){return this.getPropertyValue(`grid-row-start`)}set gridRowStart(e){this.setProperty(`grid-row-start`,e)}get gridTemplate(){return this.getPropertyValue(`grid-template`)}set gridTemplate(e){this.setProperty(`grid-template`,e)}get gridTemplateAreas(){return this.getPropertyValue(`grid-template-areas`)}set gridTemplateAreas(e){this.setProperty(`grid-template-areas`,e)}get gridTemplateColumns(){return this.getPropertyValue(`grid-template-columns`)}set gridTemplateColumns(e){this.setProperty(`grid-template-columns`,e)}get gridTemplateRows(){return this.getPropertyValue(`grid-template-rows`)}set gridTemplateRows(e){this.setProperty(`grid-template-rows`,e)}get height(){return this.getPropertyValue(`height`)}set height(e){this.setProperty(`height`,e)}get hyphens(){return this.getPropertyValue(`hyphens`)}set hyphens(e){this.setProperty(`hyphens`,e)}get imageOrientation(){return this.getPropertyValue(`image-orientation`)}set imageOrientation(e){this.setProperty(`image-orientation`,e)}get imageRendering(){return this.getPropertyValue(`image-rendering`)}set imageRendering(e){this.setProperty(`image-rendering`,e)}get inherits(){return this.getPropertyValue(`inherits`)}set inherits(e){this.setProperty(`inherits`,e)}get initialValue(){return this.getPropertyValue(`initial-value`)}set initialValue(e){this.setProperty(`initial-value`,e)}get inlineSize(){return this.getPropertyValue(`inline-size`)}set inlineSize(e){this.setProperty(`inline-size`,e)}get isolation(){return this.getPropertyValue(`isolation`)}set isolation(e){this.setProperty(`isolation`,e)}get insetBlockEnd(){return this.getPropertyValue(`inset-block-end`)}set insetBlockEnd(e){this.setProperty(`inset-block-end`,e)}get insetBlockStart(){return this.getPropertyValue(`inset-block-start`)}set insetBlockStart(e){this.setProperty(`inset-block-start`,e)}get insetInlineEnd(){return this.getPropertyValue(`inset-inline-end`)}set insetInlineEnd(e){this.setProperty(`inset-inline-end`,e)}get insetInlineStart(){return this.getPropertyValue(`inset-inline-start`)}set insetInlineStart(e){this.setProperty(`inset-inline-start`,e)}get justifyContent(){return this.getPropertyValue(`justify-content`)}set justifyContent(e){this.setProperty(`justify-content`,e)}get justifyItems(){return this.getPropertyValue(`justify-items`)}set justifyItems(e){this.setProperty(`justify-items`,e)}get justifySelf(){return this.getPropertyValue(`justify-self`)}set justifySelf(e){this.setProperty(`justify-self`,e)}get left(){return this.getPropertyValue(`left`)}set left(e){this.setProperty(`left`,e)}get letterSpacing(){return this.getPropertyValue(`letter-spacing`)}set letterSpacing(e){this.setProperty(`letter-spacing`,e)}get lightingColor(){return this.getPropertyValue(`lighting-color`)}set lightingColor(e){this.setProperty(`lighting-color`,e)}get lineBreak(){return this.getPropertyValue(`line-break`)}set lineBreak(e){this.setProperty(`line-break`,e)}get lineHeight(){return this.getPropertyValue(`line-height`)}set lineHeight(e){this.setProperty(`line-height`,e)}get listStyle(){return this.getPropertyValue(`list-style`)}set listStyle(e){this.setProperty(`list-style`,e)}get listStyleImage(){return this.getPropertyValue(`list-style-image`)}set listStyleImage(e){this.setProperty(`list-style-image`,e)}get listStylePosition(){return this.getPropertyValue(`list-style-position`)}set listStylePosition(e){this.setProperty(`list-style-position`,e)}get listStyleType(){return this.getPropertyValue(`list-style-type`)}set listStyleType(e){this.setProperty(`list-style-type`,e)}get margin(){return this.getPropertyValue(`margin`)}set margin(e){this.setProperty(`margin`,e)}get marginBlockEnd(){return this.getPropertyValue(`margin-block-end`)}set marginBlockEnd(e){this.setProperty(`margin-block-end`,e)}get marginBlockStart(){return this.getPropertyValue(`margin-block-start`)}set marginBlockStart(e){this.setProperty(`margin-block-start`,e)}get marginBottom(){return this.getPropertyValue(`margin-bottom`)}set marginBottom(e){this.setProperty(`margin-bottom`,e)}get marginInlineEnd(){return this.getPropertyValue(`margin-inline-end`)}set marginInlineEnd(e){this.setProperty(`margin-inline-end`,e)}get marginInlineStart(){return this.getPropertyValue(`margin-inline-start`)}set marginInlineStart(e){this.setProperty(`margin-inline-start`,e)}get marginLeft(){return this.getPropertyValue(`margin-left`)}set marginLeft(e){this.setProperty(`margin-left`,e)}get marginRight(){return this.getPropertyValue(`margin-right`)}set marginRight(e){this.setProperty(`margin-right`,e)}get marginTop(){return this.getPropertyValue(`margin-top`)}set marginTop(e){this.setProperty(`margin-top`,e)}get marker(){return this.getPropertyValue(`marker`)}set marker(e){this.setProperty(`marker`,e)}get markerEnd(){return this.getPropertyValue(`marker-end`)}set markerEnd(e){this.setProperty(`marker-end`,e)}get markerMid(){return this.getPropertyValue(`marker-mid`)}set markerMid(e){this.setProperty(`marker-mid`,e)}get markerStart(){return this.getPropertyValue(`marker-start`)}set markerStart(e){this.setProperty(`marker-start`,e)}get mask(){return this.getPropertyValue(`mask`)}set mask(e){this.setProperty(`mask`,e)}get maskType(){return this.getPropertyValue(`mask-type`)}set maskType(e){this.setProperty(`mask-type`,e)}get maxBlockSize(){return this.getPropertyValue(`max-block-size`)}set maxBlockSize(e){this.setProperty(`max-block-size`,e)}get maxHeight(){return this.getPropertyValue(`max-height`)}set maxHeight(e){this.setProperty(`max-height`,e)}get maxInlineSize(){return this.getPropertyValue(`max-inline-size`)}set maxInlineSize(e){this.setProperty(`max-inline-size`,e)}get maxWidth(){return this.getPropertyValue(`max-width`)}set maxWidth(e){this.setProperty(`max-width`,e)}get maxZoom(){return this.getPropertyValue(`max-zoom`)}set maxZoom(e){this.setProperty(`max-zoom`,e)}get minBlockSize(){return this.getPropertyValue(`min-block-size`)}set minBlockSize(e){this.setProperty(`min-block-size`,e)}get minHeight(){return this.getPropertyValue(`min-height`)}set minHeight(e){this.setProperty(`min-height`,e)}get minInlineSize(){return this.getPropertyValue(`min-inline-size`)}set minInlineSize(e){this.setProperty(`min-inline-size`,e)}get minWidth(){return this.getPropertyValue(`min-width`)}set minWidth(e){this.setProperty(`min-width`,e)}get minZoom(){return this.getPropertyValue(`min-zoom`)}set minZoom(e){this.setProperty(`min-zoom`,e)}get mixBlendMode(){return this.getPropertyValue(`mix-blend-mode`)}set mixBlendMode(e){this.setProperty(`mix-blend-mode`,e)}get objectFit(){return this.getPropertyValue(`object-fit`)}set objectFit(e){this.setProperty(`object-fit`,e)}get objectPosition(){return this.getPropertyValue(`object-position`)}set objectPosition(e){this.setProperty(`object-position`,e)}get offset(){return this.getPropertyValue(`offset`)}set offset(e){this.setProperty(`offset`,e)}get offsetDistance(){return this.getPropertyValue(`offset-distance`)}set offsetDistance(e){this.setProperty(`offset-distance`,e)}get offsetPath(){return this.getPropertyValue(`offset-path`)}set offsetPath(e){this.setProperty(`offset-path`,e)}get offsetRotate(){return this.getPropertyValue(`offset-rotate`)}set offsetRotate(e){this.setProperty(`offset-rotate`,e)}get opacity(){return this.getPropertyValue(`opacity`)}set opacity(e){this.setProperty(`opacity`,e)}get order(){return this.getPropertyValue(`order`)}set order(e){this.setProperty(`order`,e)}get orientation(){return this.getPropertyValue(`orientation`)}set orientation(e){this.setProperty(`orientation`,e)}get orphans(){return this.getPropertyValue(`orphans`)}set orphans(e){this.setProperty(`orphans`,e)}get outline(){return this.getPropertyValue(`outline`)}set outline(e){this.setProperty(`outline`,e)}get outlineColor(){return this.getPropertyValue(`outline-color`)}set outlineColor(e){this.setProperty(`outline-color`,e)}get outlineOffset(){return this.getPropertyValue(`outline-offset`)}set outlineOffset(e){this.setProperty(`outline-offset`,e)}get outlineStyle(){return this.getPropertyValue(`outline-style`)}set outlineStyle(e){this.setProperty(`outline-style`,e)}get outlineWidth(){return this.getPropertyValue(`outline-width`)}set outlineWidth(e){this.setProperty(`outline-width`,e)}get overflow(){return this.getPropertyValue(`overflow`)}set overflow(e){this.setProperty(`overflow`,e)}get overflowAnchor(){return this.getPropertyValue(`overflow-anchor`)}set overflowAnchor(e){this.setProperty(`overflow-anchor`,e)}get overflowWrap(){return this.getPropertyValue(`overflow-wrap`)}set overflowWrap(e){this.setProperty(`overflow-wrap`,e)}get overflowX(){return this.getPropertyValue(`overflow-x`)}set overflowX(e){this.setProperty(`overflow-x`,e)}get overflowY(){return this.getPropertyValue(`overflow-y`)}set overflowY(e){this.setProperty(`overflow-y`,e)}get overscrollBehavior(){return this.getPropertyValue(`overscroll-behavior`)}set overscrollBehavior(e){this.setProperty(`overscroll-behavior`,e)}get overscrollBehaviorBlock(){return this.getPropertyValue(`overscroll-behavior-block`)}set overscrollBehaviorBlock(e){this.setProperty(`overscroll-behavior-block`,e)}get overscrollBehaviorInline(){return this.getPropertyValue(`overscroll-behavior-inline`)}set overscrollBehaviorInline(e){this.setProperty(`overscroll-behavior-inline`,e)}get overscrollBehaviorX(){return this.getPropertyValue(`overscroll-behavior-x`)}set overscrollBehaviorX(e){this.setProperty(`overscroll-behavior-x`,e)}get overscrollBehaviorY(){return this.getPropertyValue(`overscroll-behavior-y`)}set overscrollBehaviorY(e){this.setProperty(`overscroll-behavior-y`,e)}get overflowClipMargin(){return this.getPropertyValue(`overflow-clip-margin`)}set overflowClipMargin(e){this.setProperty(`overflow-clip-margin`,e)}get padding(){return this.getPropertyValue(`padding`)}set padding(e){this.setProperty(`padding`,e)}get paddingBlockEnd(){return this.getPropertyValue(`padding-block-end`)}set paddingBlockEnd(e){this.setProperty(`padding-block-end`,e)}get paddingBlockStart(){return this.getPropertyValue(`padding-block-start`)}set paddingBlockStart(e){this.setProperty(`padding-block-start`,e)}get paddingBottom(){return this.getPropertyValue(`padding-bottom`)}set paddingBottom(e){this.setProperty(`padding-bottom`,e)}get paddingInlineEnd(){return this.getPropertyValue(`padding-inline-end`)}set paddingInlineEnd(e){this.setProperty(`padding-inline-end`,e)}get paddingInlineStart(){return this.getPropertyValue(`padding-inline-start`)}set paddingInlineStart(e){this.setProperty(`padding-inline-start`,e)}get paddingLeft(){return this.getPropertyValue(`padding-left`)}set paddingLeft(e){this.setProperty(`padding-left`,e)}get paddingRight(){return this.getPropertyValue(`padding-right`)}set paddingRight(e){this.setProperty(`padding-right`,e)}get paddingTop(){return this.getPropertyValue(`padding-top`)}set paddingTop(e){this.setProperty(`padding-top`,e)}get page(){return this.getPropertyValue(`page`)}set page(e){this.setProperty(`page`,e)}get pageBreakAfter(){return this.getPropertyValue(`page-break-after`)}set pageBreakAfter(e){this.setProperty(`page-break-after`,e)}get pageBreakBefore(){return this.getPropertyValue(`page-break-before`)}set pageBreakBefore(e){this.setProperty(`page-break-before`,e)}get pageBreakInside(){return this.getPropertyValue(`page-break-inside`)}set pageBreakInside(e){this.setProperty(`page-break-inside`,e)}get pageOrientation(){return this.getPropertyValue(`page-orientation`)}set pageOrientation(e){this.setProperty(`page-orientation`,e)}get paintOrder(){return this.getPropertyValue(`paint-order`)}set paintOrder(e){this.setProperty(`paint-order`,e)}get perspective(){return this.getPropertyValue(`perspective`)}set perspective(e){this.setProperty(`perspective`,e)}get perspectiveOrigin(){return this.getPropertyValue(`perspective-origin`)}set perspectiveOrigin(e){this.setProperty(`perspective-origin`,e)}get placeContent(){return this.getPropertyValue(`place-content`)}set placeContent(e){this.setProperty(`place-content`,e)}get placeItems(){return this.getPropertyValue(`place-items`)}set placeItems(e){this.setProperty(`place-items`,e)}get placeSelf(){return this.getPropertyValue(`place-self`)}set placeSelf(e){this.setProperty(`place-self`,e)}get pointerEvents(){return this.getPropertyValue(`pointer-events`)}set pointerEvents(e){this.setProperty(`pointer-events`,e)}get position(){return this.getPropertyValue(`position`)}set position(e){this.setProperty(`position`,e)}get quotes(){return this.getPropertyValue(`quotes`)}set quotes(e){this.setProperty(`quotes`,e)}get r(){return this.getPropertyValue(`r`)}set r(e){this.setProperty(`r`,e)}get resize(){return this.getPropertyValue(`resize`)}set resize(e){this.setProperty(`resize`,e)}get right(){return this.getPropertyValue(`right`)}set right(e){this.setProperty(`right`,e)}get rowGap(){return this.getPropertyValue(`row-gap`)}set rowGap(e){this.setProperty(`row-gap`,e)}get rubyPosition(){return this.getPropertyValue(`ruby-position`)}set rubyPosition(e){this.setProperty(`ruby-position`,e)}get rx(){return this.getPropertyValue(`rx`)}set rx(e){this.setProperty(`rx`,e)}get ry(){return this.getPropertyValue(`ry`)}set ry(e){this.setProperty(`ry`,e)}get scrollBehavior(){return this.getPropertyValue(`scroll-behavior`)}set scrollBehavior(e){this.setProperty(`scroll-behavior`,e)}get scrollMargin(){return this.getPropertyValue(`scroll-margin`)}set scrollMargin(e){this.setProperty(`scroll-margin`,e)}get scrollMarginBlock(){return this.getPropertyValue(`scroll-margin-block`)}set scrollMarginBlock(e){this.setProperty(`scroll-margin-block`,e)}get scrollMarginBlockEnd(){return this.getPropertyValue(`scroll-margin-block-end`)}set scrollMarginBlockEnd(e){this.setProperty(`scroll-margin-block-end`,e)}get scrollMarginBlockStart(){return this.getPropertyValue(`scroll-margin-block-start`)}set scrollMarginBlockStart(e){this.setProperty(`scroll-margin-block-start`,e)}get scrollMarginBottom(){return this.getPropertyValue(`scroll-margin-bottom`)}set scrollMarginBottom(e){this.setProperty(`scroll-margin-bottom`,e)}get scrollMarginInline(){return this.getPropertyValue(`scroll-margin-inline`)}set scrollMarginInline(e){this.setProperty(`scroll-margin-inline`,e)}get scrollMarginInlineEnd(){return this.getPropertyValue(`scroll-margin-inline-end`)}set scrollMarginInlineEnd(e){this.setProperty(`scroll-margin-inline-end`,e)}get scrollMarginInlineStart(){return this.getPropertyValue(`scroll-margin-inline-start`)}set scrollMarginInlineStart(e){this.setProperty(`scroll-margin-inline-start`,e)}get scrollMarginLeft(){return this.getPropertyValue(`scroll-margin-left`)}set scrollMarginLeft(e){this.setProperty(`scroll-margin-left`,e)}get scrollMarginRight(){return this.getPropertyValue(`scroll-margin-right`)}set scrollMarginRight(e){this.setProperty(`scroll-margin-right`,e)}get scrollMarginTop(){return this.getPropertyValue(`scroll-margin-top`)}set scrollMarginTop(e){this.setProperty(`scroll-margin-top`,e)}get scrollPadding(){return this.getPropertyValue(`scroll-padding`)}set scrollPadding(e){this.setProperty(`scroll-padding`,e)}get scrollPaddingBlock(){return this.getPropertyValue(`scroll-padding-block`)}set scrollPaddingBlock(e){this.setProperty(`scroll-padding-block`,e)}get scrollPaddingBlockEnd(){return this.getPropertyValue(`scroll-padding-block-end`)}set scrollPaddingBlockEnd(e){this.setProperty(`scroll-padding-block-end`,e)}get scrollPaddingBlockStart(){return this.getPropertyValue(`scroll-padding-block-start`)}set scrollPaddingBlockStart(e){this.setProperty(`scroll-padding-block-start`,e)}get scrollPaddingBottom(){return this.getPropertyValue(`scroll-padding-bottom`)}set scrollPaddingBottom(e){this.setProperty(`scroll-padding-bottom`,e)}get scrollPaddingInline(){return this.getPropertyValue(`scroll-padding-inline`)}set scrollPaddingInline(e){this.setProperty(`scroll-padding-inline`,e)}get scrollPaddingInlineEnd(){return this.getPropertyValue(`scroll-padding-inline-end`)}set scrollPaddingInlineEnd(e){this.setProperty(`scroll-padding-inline-end`,e)}get scrollPaddingInlineStart(){return this.getPropertyValue(`scroll-padding-inline-start`)}set scrollPaddingInlineStart(e){this.setProperty(`scroll-padding-inline-start`,e)}get scrollPaddingLeft(){return this.getPropertyValue(`scroll-padding-left`)}set scrollPaddingLeft(e){this.setProperty(`scroll-padding-left`,e)}get scrollPaddingRight(){return this.getPropertyValue(`scroll-padding-right`)}set scrollPaddingRight(e){this.setProperty(`scroll-padding-right`,e)}get scrollPaddingTop(){return this.getPropertyValue(`scroll-padding-top`)}set scrollPaddingTop(e){this.setProperty(`scroll-padding-top`,e)}get scrollSnapAlign(){return this.getPropertyValue(`scroll-snap-align`)}set scrollSnapAlign(e){this.setProperty(`scroll-snap-align`,e)}get scrollSnapStop(){return this.getPropertyValue(`scroll-snap-stop`)}set scrollSnapStop(e){this.setProperty(`scroll-snap-stop`,e)}get scrollSnapType(){return this.getPropertyValue(`scroll-snap-type`)}set scrollSnapType(e){this.setProperty(`scroll-snap-type`,e)}get shapeImageThreshold(){return this.getPropertyValue(`shape-image-threshold`)}set shapeImageThreshold(e){this.setProperty(`shape-image-threshold`,e)}get shapeMargin(){return this.getPropertyValue(`shape-margin`)}set shapeMargin(e){this.setProperty(`shape-margin`,e)}get shapeOutside(){return this.getPropertyValue(`shape-outside`)}set shapeOutside(e){this.setProperty(`shape-outside`,e)}get shapeRendering(){return this.getPropertyValue(`shape-rendering`)}set shapeRendering(e){this.setProperty(`shape-rendering`,e)}get size(){return this.getPropertyValue(`size`)}set size(e){this.setProperty(`size`,e)}get speak(){return this.getPropertyValue(`speak`)}set speak(e){this.setProperty(`speak`,e)}get src(){return this.getPropertyValue(`src`)}set src(e){this.setProperty(`src`,e)}get stopColor(){return this.getPropertyValue(`stop-color`)}set stopColor(e){this.setProperty(`stop-color`,e)}get stopOpacity(){return this.getPropertyValue(`stop-opacity`)}set stopOpacity(e){this.setProperty(`stop-opacity`,e)}get stroke(){return this.getPropertyValue(`stroke`)}set stroke(e){this.setProperty(`stroke`,e)}get strokeDasharray(){return this.getPropertyValue(`stroke-dasharray`)}set strokeDasharray(e){this.setProperty(`stroke-dasharray`,e)}get strokeDashoffset(){return this.getPropertyValue(`stroke-dashoffset`)}set strokeDashoffset(e){this.setProperty(`stroke-dashoffset`,e)}get strokeLinecap(){return this.getPropertyValue(`stroke-linecap`)}set strokeLinecap(e){this.setProperty(`stroke-linecap`,e)}get strokeLinejoin(){return this.getPropertyValue(`stroke-linejoin`)}set strokeLinejoin(e){this.setProperty(`stroke-linejoin`,e)}get strokeMiterlimit(){return this.getPropertyValue(`stroke-miterlimit`)}set strokeMiterlimit(e){this.setProperty(`stroke-miterlimit`,e)}get strokeOpacity(){return this.getPropertyValue(`stroke-opacity`)}set strokeOpacity(e){this.setProperty(`stroke-opacity`,e)}get strokeWidth(){return this.getPropertyValue(`stroke-width`)}set strokeWidth(e){this.setProperty(`stroke-width`,e)}get syntax(){return this.getPropertyValue(`syntax`)}set syntax(e){this.setProperty(`syntax`,e)}get scrollbarGutter(){return this.getPropertyValue(`scrollbar-gutter`)}set scrollbarGutter(e){this.setProperty(`scrollbar-gutter`,e)}get tabSize(){return this.getPropertyValue(`tab-size`)}set tabSize(e){this.setProperty(`tab-size`,e)}get tableLayout(){return this.getPropertyValue(`table-layout`)}set tableLayout(e){this.setProperty(`table-layout`,e)}get textAlign(){return this.getPropertyValue(`text-align`)}set textAlign(e){this.setProperty(`text-align`,e)}get textAlignLast(){return this.getPropertyValue(`text-align-last`)}set textAlignLast(e){this.setProperty(`text-align-last`,e)}get textAnchor(){return this.getPropertyValue(`text-anchor`)}set textAnchor(e){this.setProperty(`text-anchor`,e)}get textCombineUpright(){return this.getPropertyValue(`text-combine-upright`)}set textCombineUpright(e){this.setProperty(`text-combine-upright`,e)}get textDecoration(){return this.getPropertyValue(`text-decoration`)}set textDecoration(e){this.setProperty(`text-decoration`,e)}get textDecorationColor(){return this.getPropertyValue(`text-decoration-color`)}set textDecorationColor(e){this.setProperty(`text-decoration-color`,e)}get textDecorationLine(){return this.getPropertyValue(`text-decoration-line`)}set textDecorationLine(e){this.setProperty(`text-decoration-line`,e)}get textDecorationSkipInk(){return this.getPropertyValue(`text-decoration-skip-ink`)}set textDecorationSkipInk(e){this.setProperty(`text-decoration-skip-ink`,e)}get textDecorationStyle(){return this.getPropertyValue(`text-decoration-style`)}set textDecorationStyle(e){this.setProperty(`text-decoration-style`,e)}get textIndent(){return this.getPropertyValue(`text-indent`)}set textIndent(e){this.setProperty(`text-indent`,e)}get textOrientation(){return this.getPropertyValue(`text-orientation`)}set textOrientation(e){this.setProperty(`text-orientation`,e)}get textOverflow(){return this.getPropertyValue(`text-overflow`)}set textOverflow(e){this.setProperty(`text-overflow`,e)}get textRendering(){return this.getPropertyValue(`text-rendering`)}set textRendering(e){this.setProperty(`text-rendering`,e)}get textShadow(){return this.getPropertyValue(`text-shadow`)}set textShadow(e){this.setProperty(`text-shadow`,e)}get textSizeAdjust(){return this.getPropertyValue(`text-size-adjust`)}set textSizeAdjust(e){this.setProperty(`text-size-adjust`,e)}get textTransform(){return this.getPropertyValue(`text-transform`)}set textTransform(e){this.setProperty(`text-transform`,e)}get textUnderlinePosition(){return this.getPropertyValue(`text-underline-position`)}set textUnderlinePosition(e){this.setProperty(`text-underline-position`,e)}get top(){return this.getPropertyValue(`top`)}set top(e){this.setProperty(`top`,e)}get touchAction(){return this.getPropertyValue(`touch-action`)}set touchAction(e){this.setProperty(`touch-action`,e)}get transform(){return this.getPropertyValue(`transform`)}set transform(e){this.setProperty(`transform`,e)}get transformBox(){return this.getPropertyValue(`transform-box`)}set transformBox(e){this.setProperty(`transform-box`,e)}get transformOrigin(){return this.getPropertyValue(`transform-origin`)}set transformOrigin(e){this.setProperty(`transform-origin`,e)}get transformStyle(){return this.getPropertyValue(`transform-style`)}set transformStyle(e){this.setProperty(`transform-style`,e)}get transition(){return this.getPropertyValue(`transition`)}set transition(e){this.setProperty(`transition`,e)}get transitionDelay(){return this.getPropertyValue(`transition-delay`)}set transitionDelay(e){this.setProperty(`transition-delay`,e)}get transitionDuration(){return this.getPropertyValue(`transition-duration`)}set transitionDuration(e){this.setProperty(`transition-duration`,e)}get transitionProperty(){return this.getPropertyValue(`transition-property`)}set transitionProperty(e){this.setProperty(`transition-property`,e)}get transitionTimingFunction(){return this.getPropertyValue(`transition-timing-function`)}set transitionTimingFunction(e){this.setProperty(`transition-timing-function`,e)}get textEmphasisColor(){return this.getPropertyValue(`text-emphasis-color`)}set textEmphasisColor(e){this.setProperty(`text-emphasis-color`,e)}get textEmphasisPosition(){return this.getPropertyValue(`text-emphasis-position`)}set textEmphasisPosition(e){this.setProperty(`text-emphasis-position`,e)}get textEmphasisStyle(){return this.getPropertyValue(`text-emphasis-style`)}set textEmphasisStyle(e){this.setProperty(`text-emphasis-style`,e)}get unicodeBidi(){return this.getPropertyValue(`unicode-bidi`)}set unicodeBidi(e){this.setProperty(`unicode-bidi`,e)}get unicodeRange(){return this.getPropertyValue(`unicode-range`)}set unicodeRange(e){this.setProperty(`unicode-range`,e)}get userSelect(){return this.getPropertyValue(`user-select`)}set userSelect(e){this.setProperty(`user-select`,e)}get userZoom(){return this.getPropertyValue(`user-zoom`)}set userZoom(e){this.setProperty(`user-zoom`,e)}get vectorEffect(){return this.getPropertyValue(`vector-effect`)}set vectorEffect(e){this.setProperty(`vector-effect`,e)}get verticalAlign(){return this.getPropertyValue(`vertical-align`)}set verticalAlign(e){this.setProperty(`vertical-align`,e)}get visibility(){return this.getPropertyValue(`visibility`)}set visibility(e){this.setProperty(`visibility`,e)}get whiteSpace(){return this.getPropertyValue(`white-space`)}set whiteSpace(e){this.setProperty(`white-space`,e)}get widows(){return this.getPropertyValue(`widows`)}set widows(e){this.setProperty(`widows`,e)}get width(){return this.getPropertyValue(`width`)}set width(e){this.setProperty(`width`,e)}get willChange(){return this.getPropertyValue(`will-change`)}set willChange(e){this.setProperty(`will-change`,e)}get wordBreak(){return this.getPropertyValue(`word-break`)}set wordBreak(e){this.setProperty(`word-break`,e)}get wordSpacing(){return this.getPropertyValue(`word-spacing`)}set wordSpacing(e){this.setProperty(`word-spacing`,e)}get wordWrap(){return this.getPropertyValue(`word-wrap`)}set wordWrap(e){this.setProperty(`word-wrap`,e)}get writingMode(){return this.getPropertyValue(`writing-mode`)}set writingMode(e){this.setProperty(`writing-mode`,e)}get x(){return this.getPropertyValue(`x`)}set x(e){this.setProperty(`x`,e)}get y(){return this.getPropertyValue(`y`)}set y(e){this.setProperty(`y`,e)}get zIndex(){return this.getPropertyValue(`z-index`)}set zIndex(e){this.setProperty(`z-index`,e)}get zoom(){return this.getPropertyValue(`zoom`)}set zoom(e){this.setProperty(`zoom`,e)}get containerType(){return this.getPropertyValue(`container-type`)}set containerType(e){this.setProperty(`container-type`,e)}get containerName(){return this.getPropertyValue(`container-name`)}set containerName(e){this.setProperty(`container-name`,e)}get aspectRatio(){return this.getPropertyValue(`aspect-ratio`)}set aspectRatio(e){this.setProperty(`aspect-ratio`,e)}get length(){return this.#r().size()}get cssText(){return this.#e&&this.#t?``:this.#r().toString()}set cssText(e){if(this.#t)throw new this[y].DOMException(`Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.`,V.domException);this.#e?(this.#n.propertyManager=new Lc({cssText:e}),this.#n.attributeValue=e,this.#e.setAttribute(`style`,this.#n.propertyManager.toString())):this.#n.propertyManager=new Lc({cssText:e})}item(e){return this.#r().item(e)}setProperty(e,t,n){if(this.#t)throw new this[y].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,V.domException);if(n!==``&&n!==void 0&&n!==`important`)return;let r=String(t).trim(),i=this.#r();r?i.set(e,r,!!n):i.remove(e),this.#e&&(this.#n.attributeValue=i.toString(),this.#n.attributeValue?this.#e.setAttribute(`style`,this.#n.attributeValue):this.#e.removeAttribute(`style`))}removeProperty(e){if(this.#t)throw new this[y].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,V.domException);let t=this.#r();t.remove(e),this.#e&&(this.#n.attributeValue=t.toString(),this.#n.attributeValue?this.#e.setAttribute(`style`,this.#n.attributeValue):this.#e.removeAttribute(`style`))}getPropertyValue(e){return this.#r().get(e)?.value||``}getPropertyPriority(e){return this.#r().get(e)?.important?`important`:``}#r(){let e=this.#e,t=this.#n;if(!e)return t.propertyManager||=new Lc,t.propertyManager;if(this.#t)return new yl(e).getComputedStyle();let n=e.getAttribute(`style`)||``;return t.attributeValue!==n&&(t.propertyManager=new Lc({cssText:n})),t.propertyManager}},xl=class extends pl{[Ko]=``;get conditionText(){return this[Ko]}},Sl=class extends xl{[Jr]=W.containerRule;[$o]=``;get type(){return W.containerRule}get cssText(){let e=``;for(let t of this[Uo])e+=`
|
|
@@ -15,8 +15,8 @@ import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./wrapper-DkhhSWAE.mjs"
|
|
|
15
15
|
`+t.cssText;return e+=`
|
|
16
16
|
`,`@${this[$o]}supports ${this.conditionText} {${e}}`}},Il={html:`http://www.w3.org/1999/xhtml`,svg:`http://www.w3.org/2000/svg`,mathML:`http://www.w3.org/1998/Math/MathML`,xml:`http://www.w3.org/XML/1998/namespace`,xlink:`http://www.w3.org/1999/xlink`,xmlns:`http://www.w3.org/2000/xmlns/`};const Ll=new Map,Rl=new Map,zl=/[A-Z]/g,Bl=/[a-z]/g;var Vl=class{static asciiLowerCase(e){let t=Ll.get(e);if(t)return t;let n=e.replace(zl,e=>String.fromCharCode(e.charCodeAt(0)+32));return Ll.set(e,n),n}static asciiUpperCase(e){let t=Rl.get(e);if(t)return t;let n=e.replace(Bl,e=>String.fromCharCode(e.charCodeAt(0)-32));return Rl.set(e,n),n}};const Hl=`[-_.]|[0-9]|[a-z]|·|[À-Ö]|[Ø-ö]|[ø-ͽ]|[Ϳ-]|[-]|[‿-⁀]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]|[𐀀-]`,Ul=RegExp(`^[a-z](${Hl})*-(${Hl})*$`,`u`),Wl=[`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`];var Gl=class{static isValidCustomElementName(e){return Ul.test(e)&&!Wl.includes(e)}},Kl=class{[nt]=new Map;[Tn]=new Map;[_e]=new Map;[Xr]=!1;#e;constructor(e){if(!e)throw TypeError(`Illegal constructor`);this.#e=e}define(e,t,n){if(this[Xr])return;if(!Gl.isValidCustomElementName(e))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(this[nt].has(e))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`);if(this[Tn].has(t))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry`);let r=Vl.asciiUpperCase(e);t.prototype[y]=this.#e,t.prototype[h]=this.#e.document,t.prototype[C]=r,t.prototype[O]=e,t.prototype[w]=Il.html;let i=new Set,a=t.observedAttributes;if(Array.isArray(a))for(let e of a)i.add(String(e).toLowerCase());this[nt].set(e,{elementClass:t,extends:n&&n.extends?n.extends.toLowerCase():null,observedAttributes:i,lifecycleCallbacks:{connectedCallback:t.prototype.connectedCallback,disconnectedCallback:t.prototype.disconnectedCallback,attributeChangedCallback:t.prototype.attributeChangedCallback}}),this[Tn].set(t,e);let o=this[_e].get(e);if(o){this[_e].delete(e);for(let e of o)e()}}get(e){return this[nt].get(e)?.elementClass}upgrade(e){}whenDefined(e){return this[Xr]?Promise.reject(new this.#e.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed.`)):Gl.isValidCustomElementName(e)?this.get(e)?Promise.resolve():new Promise(t=>{let n=this[_e].get(e);n?n.push(t):this[_e].set(e,[t])}):Promise.reject(new this.#e.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${e}"`))}getName(e){return this[Tn].get(e)||null}[Ne](){this[Xr]=!0;for(let e of this[nt].values())e.elementClass.prototype[y]=null,e.elementClass.prototype[h]=null,e.elementClass.prototype[C]=null,e.elementClass.prototype[O]=null,e.elementClass.prototype[w]=null;this[nt]=new Map,this[Tn]=new Map,this[_e]=new Map}},ql=class{kind;type;#e=null;constructor(e,t=``){this.kind=typeof e==`string`?`string`:`file`,this.type=this.kind===`string`?t:e.type,this.#e=e}getAsFile(){return this.kind===`string`?null:this.#e}getAsString(e){this.kind===`file`&&e(``),e(this.#e)}},Jl=class extends zs{lastModified;name;constructor(e,t,n){if(arguments.length<2)throw TypeError(`Failed to construct 'File': 2 arguments required, but only `+arguments.length+` present.`);super(e,n),this.name=t,this.lastModified=n&&n.lastModified?n.lastModified:Date.now()}},Yl=class extends Array{add(e,t){if(e instanceof Jl){this.push(new ql(e));return}if(!t)throw TypeError(`Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.`);this.push(new ql(e,t))}remove(e){this.splice(e,1)}clear(){for(;this.length;)this.pop()}},Xl=class{dropEffect=`none`;effectAllowed=`none`;items=new Yl;get files(){let e=[];for(let t of this.items)if(t.kind===`file`){let n=t.getAsFile();n&&e.push(n)}return e}get types(){return this.items.map(e=>e.type)}clearData(){this.items.clear()}setData(e,t){for(let n=0,r=this.items.length;n<r;n++)if(this.items[n].type===e){this.items[n]=new ql(t,e);return}this.items.add(t,e)}getData(e){let t=this.#e(e);for(let e=0,n=this.items.length;e<n;e++)if(this.#e(this.items[e].type)===t){let t=``;return this.items[e].getAsString(e=>t=e),t}return``}#e(e){let t=e.toLowerCase();return t===`text`?`text/plain`:t===`url`?`text/uri-list`:t}setDragImage(){throw Error(`Not implemented.`)}},Zl=class{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(e){this.identifier=e.identifier,this.target=e.target,this.clientX=e.clientX??0,this.clientY=e.clientY??0,this.screenX=e.screenX??0,this.screenY=e.screenY??0,this.pageX=e.pageX??0,this.pageY=e.pageY??0,this.radiusX=e.radiusX??0,this.radiusY=e.radiusY??0,this.rotationAngle=e.rotationAngle??0,this.force=e.force??0}},Ql=class extends U{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(e,t=null){super(e,t),this.detail=t?.detail??0,this.view=t?.view??null}},$l=class extends U{animationName;elapsedTime;pseudoElement;constructor(e,t=null){super(e,t),this.animationName=t?.animationName??``,this.elapsedTime=t?.elapsedTime??0,this.pseudoElement=t?.pseudoElement??``}},eu=class extends U{clipboardData;constructor(e,t=null){super(e,t),this.clipboardData=t?.clipboardData??null}},tu=class extends U{[Yr];constructor(e,t=null){super(e,t),this[Yr]=t?.detail??null}get detail(){return this[Yr]}initCustomEvent(e,t=!1,n=!1,r=null){this[Jr]=e,this[Ur]=t,this[Wr]=n,this[Yr]=r}},nu=class extends Ql{message;filename;lineno;colno;error;constructor(e,t=null){super(e,t),this.message=t?.message??``,this.filename=t?.filename??``,this.lineno=t?.lineno??0,this.colno=t?.colno??0,this.error=t?.error??null}},ru=class extends Ql{relatedTarget;constructor(e,t=null){super(e,t),this.relatedTarget=t?.relatedTarget??null}},iu=class extends U{newURL;oldURL;constructor(e,t=null){super(e,t),this.newURL=t?.newURL??``,this.oldURL=t?.oldURL??``}},au=class extends Ql{data;dataTransfer;inputType;isComposing;constructor(e,t=null){super(e,t),this.data=t?.data??``,this.dataTransfer=t?.dataTransfer??null,this.inputType=t?.inputType??``,this.isComposing=t?.isComposing??!1}},ou=class extends Ql{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.code=t?.code??``,this.ctrlKey=t?.ctrlKey??!1,this.isComposing=t?.isComposing??!1,this.key=t?.key??``,this.location=t?.location??0,this.metaKey=t?.metaKey??!1,this.repeat=t?.repeat??!1,this.shiftKey=t?.shiftKey??!1,this.keyCode=t?.keyCode??0,this.which=t?.which??t?.keyCode??0}getModifierState(e){if(arguments.length<1)throw TypeError(`Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.`);switch(String(e).toLowerCase()){case`alt`:case`altgraph`:return this.altKey;case`control`:return this.ctrlKey;case`meta`:return this.metaKey;case`shift`:return this.shiftKey;default:return!1}}},su=class extends U{data;origin;lastEventId;source;ports;constructor(e,t=null){super(e,t),this.data=t?.data??null,this.origin=t?.origin??``,this.lastEventId=t?.lastEventId??``,this.source=t?.source??null,this.ports=t?.ports??[]}},cu=class extends Ql{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.button=t?.button??0,this.buttons=t?.buttons??0,this.clientX=t?.clientX??0,this.clientY=t?.clientY??0,this.ctrlKey=t?.ctrlKey??!1,this.metaKey=t?.metaKey??!1,this.movementX=t?.movementX??0,this.movementY=t?.movementY??0,this.offsetX=t?.offsetX??0,this.offsetY=t?.offsetY??0,this.region=t?.region??``,this.relatedTarget=t?.relatedTarget??null,this.screenX=t?.screenX??0,this.screenY=t?.screenY??0,this.shiftKey=t?.shiftKey??!1}},lu=class extends cu{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(e,t=null){super(e,t),this.pointerId=t?.pointerId??0,this.width=t?.width??1,this.height=t?.height??1,this.pressure=t?.pressure??0,this.tangentialPressure=t?.tangentialPressure??0,this.tiltX=t?.tiltX??0,this.tiltY=t?.tiltY??0,this.twist=t?.twist??0,this.altitudeAngle=t?.altitudeAngle??0,this.azimuthAngle=t?.azimuthAngle??0,this.pointerType=t?.pointerType??``,this.isPrimary=t?.isPrimary??!1,this.coalescedEvents=t?.coalescedEvents??[],this.predictedEvents=t?.predictedEvents??[]}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents},uu=class extends U{lengthComputable;loaded;total;constructor(e,t=null){super(e),this.lengthComputable=t?.lengthComputable??!1,this.loaded=t?.loaded??0,this.total=t?.total??0}},du=class extends U{key;oldValue;newValue;url;storageArea;constructor(e,t=null){super(e),this.key=t?.key??null,this.oldValue=t?.oldValue??null,this.newValue=t?.newValue??null,this.url=t?.url??``,this.storageArea=t?.storageArea??null}},fu=class extends U{submitter;constructor(e,t=null){super(e,t),this.submitter=t?.submitter??null}},pu=class extends Ql{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.changedTouches=t?.changedTouches??[],this.ctrlKey=t?.ctrlKey??!1,this.metaKey=t?.metaKey??!1,this.shiftKey=t?.shiftKey??!1,this.targetTouches=t?.targetTouches??[],this.touches=t?.touches??[]}},mu=class extends Ql{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(e,t=null){super(e,t),this.deltaX=t?.deltaX??0,this.deltaY=t?.deltaY??0,this.deltaZ=t?.deltaZ??0,this.deltaMode=t?.deltaMode??0}},hu=class extends l{constructor(e,t){try{super(e,t)}catch(e){throw super(`about:blank`),this[y]?new this[y].TypeError(`Invalid URL`):e}}static createObjectURL(e){if(e instanceof zs){let t=new r([e[he]],{type:e.type});return super.createObjectURL(t)}return super.createObjectURL(e)}};const gu=/^(about|blob|data):$/,_u=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`];var vu=class{static prepareRequest(e,t){t.referrerPolicy||(t[Po]=`strict-origin-when-cross-origin`),t.referrer&&t.referrer!==`no-referrer`?t[tt]=this.getSentReferrer(e,t):t[tt]=`no-referrer`}static getInitialReferrer(e,t){if(t===``||t===`no-referrer`||t===`client`)return t;if(t){let n=t instanceof hu?t:new hu(t,e.location.href);return n.origin===e.location.origin?n:`client`}return`client`}static getReferrerPolicyFromHeader(e){let t=e.get(`Referrer-Policy`);if(!t)return``;let n=t.split(/[,\s]+/),r=``;for(let e of n)e&&_u.includes(e)&&(r=e);return r}static getSentReferrer(e,t){if(t.referrer===`about:client`&&e.origin===`null`)return`no-referrer`;let n=new hu(t.url),r=t.referrer===`about:client`?new hu(e.href):new hu(t.referrer);if(gu.test(r.protocol))return`no-referrer`;switch(r.username=``,r.password=``,r.hash=``,t.referrerPolicy){case`no-referrer`:return`no-referrer`;case`origin`:return new hu(r.origin);case`unsafe-url`:return r;case`strict-origin`:return this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:new hu(r.origin);case`strict-origin-when-cross-origin`:return r.origin===n.origin?r:this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:new hu(r.origin);case`same-origin`:return r.origin===n.origin?r:`no-referrer`;case`origin-when-cross-origin`:return r.origin===n.origin?r:new hu(r.origin);case`no-referrer-when-downgrade`:return this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:r}return`no-referrer`}static isURLPotentiallyTrustWorthy(e){return/^about:(blank|srcdoc)$/.test(e.href)||e.protocol===`data:`||/^(blob|filesystem):$/.test(e.protocol)?!0:this.isOriginPotentiallyTrustWorthy(e)}static isOriginPotentiallyTrustWorthy(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,``),n=ae(t);return n===4&&/^127\./.test(t)||n===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host===`localhost`||e.host.endsWith(`.localhost`)?!1:e.protocol===`file:`}},yu=class{static parse(e){if(!/^data:/i.test(e))throw TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,``);let t=e.indexOf(`,`);if(t===-1||t<=4)throw TypeError(`malformed data: URI`);let n=e.substring(5,t).split(`;`),r=``,i=!1,a=n[0]||`text/plain`;for(let e=1;e<n.length;e++)n[e]===`base64`?i=!0:n[e]&&(a+=`;${n[e]}`,n[e].indexOf(`charset=`)===0&&(r=n[e].substring(8)));!n[0]&&!r.length&&(a+=`;charset=US-ASCII`,r=`US-ASCII`);let o=i?`base64`:`ascii`,s=unescape(e.substring(t+1)),c=Buffer.from(s,o);return{type:a,charset:r,buffer:c}}},bu=class{static isCORS(e,t){return e=typeof e==`string`?new l(e):e,t=typeof t==`string`?new l(t):t,t.protocol===`about:`||t.protocol===`javascript:`?!1:e.hostname!==t.hostname&&!e.hostname.endsWith(t.hostname)||e.protocol!==t.protocol}},xu;(function(e){e[e.boundary=0]=`boundary`,e[e.headerStart=2]=`headerStart`,e[e.header=3]=`header`,e[e.data=5]=`data`})(xu||={});const Su={lf:10,cr:13};var Cu=class{formData;boundary;boundaryIndex=0;state=xu.boundary;data={contentDisposition:null,value:[],contentType:null,header:``};constructor(e,t){let n=`--${t}`;this.boundary=new Uint8Array(n.length),this.formData=new e.FormData;for(let e=0,t=n.length;e<t;e++)this.boundary[e]=n.charCodeAt(e)}write(e){let t,n;for(let r=0,i=e.length;r<i;r++)switch(t=e[r],n=e[r+1],this.state){case xu.boundary:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length&&(this.state=xu.headerStart,this.boundaryIndex=0);break;case xu.headerStart:n!==Su.cr&&n!==Su.lf&&(this.data.header=``,this.state=e[r-2]===Su.lf?xu.data:xu.header);break;case xu.header:if(t===Su.cr){if(this.data.header){let e=this.data.header.split(`:`);if(e.length>1){let t=e[0].toLowerCase(),n=e[1].trim();switch(t){case`content-disposition`:this.data.contentDisposition=this.getContentDisposition(n);break;case`content-type`:this.data.contentType=n;break}}}this.state=xu.headerStart}else this.data.header+=String.fromCharCode(t);break;case xu.data:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length?(this.state=xu.headerStart,this.data.value.length&&(this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null),this.boundaryIndex=0):this.data.value.push(t);break}}end(){return this.data.contentDisposition&&this.data.value.length&&this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType),this.formData}appendFormData(e,t,n,r){t.length&&(n?this.formData.append(e,new Jl([t],n,{type:r})):this.formData.append(e,t.toString()))}getContentDisposition(e){let t=/([a-z]+) *= *"([^"]+)"/g,n={},r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}},wu=class{#e;#t=null;constructor(e){this.#e=e}get readableStream(){return this.#t||=this.#e(),this.#t}},Tu=class{static async streamToFormData(e,t,n){if(!/multipart/i.test(n))throw new e.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,V.invalidStateError);let r=t.body;if(!r)throw new e.DOMException(`Failed to build FormData object: The response body is null.`,V.invalidStateError);let a=n.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!a)throw new e.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,V.invalidStateError);let o=r.getReader(),s=new Cu(e,a[1]||a[2]),c=[],l,u=await o.read();for(;!u.done;){if(t[pn])throw t[pn];if(t[Zr])throw new e.DOMException(`Failed to read response body: The stream was aborted.`,V.abortError);s.write(u.value),u=await o.read()}try{l=typeof c[0]==`string`?i.from(c.join(``)):i.concat(c,0)}catch(t){throw new e.DOMException(`Could not create Buffer from response body. Error: ${t.message}.`,V.invalidStateError)}return{formData:s.end(),buffer:l}}static formDataToStream(e){let t=`----HappyDOMFormDataBoundary`+Math.random().toString(36),n=[],r=`--${t}\r\nContent-Disposition: form-data; name="`;for(let[t,a]of e)typeof a==`string`?n.push(i.from(`${r}${this.escapeName(t)}"\r\n\r\n${a.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
17
17
|
`)}\r\n`)):(n.push(i.from(`${r}${this.escapeName(t)}"; filename="${this.escapeName(a.name,!0)}"\r\nContent-Type: ${a.type||`application/octet-stream`}\r\n\r\n`)),n.push(a[he]),n.push(i.from(`\r
|
|
18
|
-
`)));n.push(i.from(`--${t}--\r\n`));let a=i.concat(n);return{contentType:`multipart/form-data; boundary=${t}`,contentLength:a.length,buffer:a,stream:new wu(()=>new
|
|
19
|
-
`)).replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`)}},Eu=class{#e=[];constructor(e,t){if(!e)return;if(t){let n=e[or]?e[or]:e;if(t.form!==n)throw new this[y].DOMException(`The specified element is not owned by this form element`,V.notFoundError);if(!(t[C]===`INPUT`&&(t.type===`submit`||t.type===`image`)||t[C]===`BUTTON`&&t.type===`submit`))throw new this[y].TypeError(`The specified element is not a submit button`)}let n=e[nr]();for(let e of n){let n=e.name;if(n)switch(e[C]){case`INPUT`:if(e.disabled)break;switch(e.type){case`file`:if(e[en].length===0)this.append(n,new Jl([],``,{type:`application/octet-stream`}));else for(let t of e[en])this.append(n,t);break;case`checkbox`:case`radio`:e.checked&&this.append(n,e.value);break;case`submit`:case`reset`:case`button`:e===t&&e.value&&this.append(n,e.value);break;default:this.append(n,e.value);break}break;case`BUTTON`:e===t&&e.value&&this.append(n,e.value);break;case`TEXTAREA`:case`SELECT`:this.append(n,e.value);break}}}forEach(e,t){for(let n of this.#e)e.call(t,n.value,n.name,this)}append(e,t,n){if(n&&!(t instanceof zs))throw new this[y].TypeError(`Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".`);this.#e.push({name:e,value:this.#t(t,n)})}delete(e){let t=[];for(let n of this.#e)n.name!==e&&t.push(n);this.#e=t}get(e){for(let t of this.#e)if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let n of this.#e)n.name===e&&t.push(n.value);return t}has(e){for(let t of this.#e)if(t.name===e)return!0;return!1}set(e,t,n){for(let r of this.#e)if(r.name===e){r.value=this.#t(t,n);return}this.append(e,t)}*keys(){for(let e of this.#e)yield e.name}*values(){for(let e of this.#e)yield e.value}*entries(){for(let e of this.#e)yield[e.name,e.value]}*[Symbol.iterator](){for(let e of this.#e)yield[e.name,e.value]}#t(e,t){if(e instanceof Jl){if(t){let n=new Jl([],t,{type:e.type,lastModified:e.lastModified});return n[he]=e[he],n}return e}if(e instanceof zs){let t=new Jl([],`blob`,{type:e.type});return t[he]=e[he],t}return String(e)}},Du=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof u){let t=i.from(e.toString());return{buffer:t,stream:this.getReadableStream(t),contentType:`application/x-www-form-urlencoded;charset=UTF-8`,contentLength:t.length}}else if(e instanceof zs){let t=e[he];return{buffer:t,stream:this.getReadableStream(t),contentType:e.type,contentLength:e.size}}else if(i.isBuffer(e))return{buffer:e,stream:this.getReadableStream(e),contentType:null,contentLength:e.length};else if(e instanceof ArrayBuffer){let t=i.from(e);return{buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let t=i.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(e instanceof ce)return{buffer:null,stream:new wu(()=>e),contentType:null,contentLength:null};else if(e instanceof Eu)return Tu.formDataToStream(e);let t=i.from(String(e));return{buffer:t,stream:this.getReadableStream(t),contentType:`text/plain;charset=UTF-8`,contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException(`Failed to clone body stream of request: Request body is already used.`,V.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[he])return this.getReadableStream(t[he]).readableStream;if(t.body[En]){let e=new d.PassThrough,n=new d.PassThrough;return t.body[En].pipe(e),t.body[En].pipe(n),t[Mo]=new wu(()=>this.nodeToWebStream(e)),this.nodeToWebStream(n)}let[n,r]=t.body.tee();return t[Mo]=new wu(()=>n),r}static async consumeBodyStream(e,t){let n=t.body;if(n===null||!(n instanceof ce))return i.alloc(0);if(t[pn])throw t[pn];let r=n.getReader(),a=[],o=0;try{let n=await r.read();for(;!n.done;){if(t[pn])throw t[pn];if(t[Zr])throw new e.DOMException(`Failed to read response body: The stream was aborted.`,V.abortError);let i=n.value;o+=i.length,a.push(i),n=await r.read()}}catch(t){throw t instanceof vs?t:new e.DOMException(`Failed to read response body. Error: ${t.message}.`,V.encodingError)}try{return typeof a[0]==`string`?i.from(a.join(``)):i.concat(a,o)}catch(t){throw new e.DOMException(`Could not create Buffer from response body. Error: ${t.message}.`,V.invalidStateError)}}static nodeToWebStream(e){let t=new ce({start(t){e.on(`data`,e=>{t.enqueue(e)}),e.on(`end`,()=>{t.close()}),e.on(`error`,e=>{t.error(e)})}});return t[En]=e,t}static getReadableStream(e){return new wu(()=>new ce({start(t){t.enqueue(e),t.close()}}))}};const Ou=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],ku=[`error`,`manual`,`follow`],Au=[`data:`,`http:`,`https:`],ju=[`TRACE`,`TRACK`,`CONNECT`],Mu=/^[A-Z]+$/;var Nu=class{static validateMethod(e){if(!e.method||ju.includes(e.method))throw new vs(`'${e.method||``}' is not a valid HTTP method.`,V.invalidStateError);if(!Mu.test(e.method))throw new vs(`'${e.method}' HTTP method is unsupported.`,V.invalidStateError)}static validateBody(e){if(e.body&&(e.method===`GET`||e.method===`HEAD`))throw new vs(`Request with GET/HEAD method cannot have body.`,V.invalidStateError)}static validateURL(e){if(e.username!==``||e.password!==``)throw new vs(`${e} is an url with embedded credentials.`,V.notSupportedError)}static validateReferrerPolicy(e){if(!Ou.includes(e))throw new vs(`Invalid referrer policy "${e}".`,V.syntaxError)}static validateRedirect(e){if(!ku.includes(e))throw new vs(`Invalid redirect "${e}".`,V.syntaxError)}static validateSchema(e){if(!Au.includes(e[_t].protocol))throw new vs(`Failed to fetch from "${e.url}": URL scheme "${e[_t].protocol.replace(/:$/,``)}" is not supported.`,V.notSupportedError)}},Pu=class{static stringToCookie(e,t){let n=t.split(`;`),r=n.shift();if(!r)return null;let i=r.indexOf(`=`),a=i===-1?r.trim():r.slice(0,i).trim(),o=i===-1?null:r.slice(i+1).trim(),s=Object.assign({},ds,{key:a,value:o,originURL:e});if(!s.key)return null;for(let e of n){let t=e.indexOf(`=`),n=t===-1?e.trim().toLowerCase():e.slice(0,t).trim().toLowerCase(),r=t===-1?``:e.slice(t+1).trim();switch(n){case`expires`:s.expires=new Date(r);break;case`max-age`:s.expires=new Date(parseInt(r,10)*1e3+Date.now());break;case`domain`:s.domain=r;break;case`path`:s.path=r[0]===`/`?r:`/${r}`;break;case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`samesite`:switch(r.toLowerCase()){case`strict`:s.sameSite=us.strict;break;case`lax`:s.sameSite=us.lax;break;case`none`:s.sameSite=us.none}break}}let c=s.key.toLowerCase();return c.startsWith(`__secure-`)&&!s.secure||c.startsWith(`__host-`)&&(!s.secure||s.path!==`/`||s.domain)?null:s}static cookiesToString(e){let t=[];for(let n of e)n.value===null?t.push(n.key):t.push(`${n.key}=${n.value}`);return t.join(`; `)}};const Fu=[`accept-charset`,`accept-encoding`,`access-control-request-headers`,`access-control-request-method`,`connection`,`content-length`,`content-transfer-encoding`,`cookie`,`cookie2`,`date`,`dnt`,`expect`,`host`,`keep-alive`,`origin`,`referer`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`via`];var Iu=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Fe]))(Fu.includes(t)||t.startsWith(`proxy-`)||t.startsWith(`sec-`))&&delete e[Fe][t]}static isHeaderForbidden(e){return Fu.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((e,n)=>{t.set(n,e)});let n=new l(e.window.location.href),r=bu.isCORS(n,e.request[_t]);if(t.set(`Accept-Encoding`,`gzip, deflate, br`),t.set(`Connection`,`close`),t.has(`User-Agent`)||t.set(`User-Agent`,e.window.navigator.userAgent),e.request[tt]instanceof l&&t.set(`Referer`,e.request[tt].href),e.request.credentials===`include`||e.request.credentials===`same-origin`&&!r){let n=e.browserFrame.page.context.cookieContainer.getCookies(e.request[_t],!1);n.length>0&&t.set(`Cookie`,Pu.cookiesToString(n))}else t.delete(`Cookie`),t.delete(`Cookie2`);t.has(`Accept`)||t.set(`Accept`,`*/*`),!t.has(`Content-Length`)&&e.request[Ee]!==null&&t.set(`Content-Length`,String(e.request[Ee])),!t.has(`Content-Type`)&&e.request[De]&&t.set(`Content-Type`,e.request[De]),r&&t.set(`Origin`,n.origin);let i={};for(let e of Object.values(t[Fe]))i[e.name]=e.value.join(`, `);return i}},Lu=class e{[Ea];[Mo];[Sn]=`cors`;[Tr];[No];[Po];[Fo];[Io]=!1;[Lo];[Zr]=!1;[pn]=null;[Ee]=null;[De]=null;[tt]=`client`;[_t];[me];constructor(t,n){let r=this[y];if(!r)throw TypeError(`Failed to construct 'Request': 'Request' was constructed outside a Window context.`);if(typeof t!=`string`&&!t)throw new r.TypeError(`Failed to construct 'Request': 1 argument required, only 0 present.`);if(this[Ea]=(n?.method||t.method||`GET`).toUpperCase(),n?.mode)switch(n.mode){case`navigate`:case`websocket`:throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${n.mode}'.`,V.securityError);case`same-origin`:case`no-cors`:case`cors`:this[Sn]=n.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${n.mode}' is not a valid enum value of type RequestMode.`,V.syntaxError)}else t instanceof e&&(this[Sn]=t.mode);let{stream:i,buffer:a,contentType:o,contentLength:s}=Du.getBodyStream(t instanceof e&&(t[me]||t.body)?t[me]||Du.cloneBodyStream(r,t):n?.body??null);if(this[me]=a,this[Mo]=i,this[Lo]=n?.credentials||t.credentials||`same-origin`,this[Tr]=new this[y].Headers(n?.headers||t.headers||{}),Iu.removeForbiddenHeaders(this.headers),s?this[Ee]=s:!this.body&&(this.method===`POST`||this.method===`PUT`)&&(this[Ee]=0),o?(this.headers.has(`Content-Type`)||this.headers.set(`Content-Type`,o),this[De]=o):t instanceof e&&t[De]&&(this[De]=t[De]),this[No]=n?.redirect||t.redirect||`follow`,this[Po]=(n?.referrerPolicy||t.referrerPolicy||``).toLowerCase(),this[Fo]=n?.signal||t.signal||new r.AbortSignal,this[tt]=vu.getInitialReferrer(r,n?.referrer!==null&&n?.referrer!==void 0?n?.referrer:t.referrer),t instanceof l)this[_t]=t;else try{t instanceof e&&t.url?this[_t]=new l(t.url,r.location.href):this[_t]=new l(t,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${r.location}'.${r.location.origin===`null`?` Relative URLs are not permitted on current document location.`:``}`,V.notSupportedError)}Nu.validateMethod(this),Nu.validateBody(this),Nu.validateURL(this[_t]),Nu.validateReferrerPolicy(this.referrerPolicy),Nu.validateRedirect(this.redirect)}get method(){return this[Ea]}get body(){return this[Mo]?.readableStream||null}get mode(){return this[Sn]}get headers(){return this[Tr]}get redirect(){return this[No]}get referrerPolicy(){return this[Po]}get signal(){return this[Fo]}get bodyUsed(){return this[Io]}get credentials(){return this[Lo]}get referrer(){return!this[tt]||this[tt]===`no-referrer`?``:this[tt]===`client`?`about:client`:this[tt].toString()}get url(){return this[_t].href}get[Symbol.toStringTag](){return`Request`}async arrayBuffer(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new zs([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r}async text(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new J(e).getAsyncTaskManager(),n=this.headers.get(`Content-Type`)??this[De];if(this.body&&n&&/multipart/i.test(n)){if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);this[Io]=!0;let r=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),i;try{i=(await Tu.streamToFormData(e,this,n)).formData}catch(e){throw t.endTask(r),e}return t.endTask(r),i}if(n?.startsWith(`application/x-www-form-urlencoded`)){let t=new URLSearchParams(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,V.invalidStateError)}clone(){return new this[y].Request(this)}};const Ru=[301,302,303,307,308];var zu=class{bodyUsed=!1;redirected=!1;type=`basic`;url=``;status;statusText;ok;headers;[ge]=null;[he]=null;[es]=null;[Zr]=!1;[pn]=null;[Mo]=null;constructor(e,t){if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status===void 0?200:t.status,this.statusText=t?.statusText||``,this.ok=this.status>=200&&this.status<300,this.headers=new this[y].Headers(t?.headers),this.headers.delete(`Set-Cookie`),this.headers.delete(`Set-Cookie2`),e){let{stream:t,buffer:n,contentType:r}=Du.getBodyStream(e);this[Mo]=t,n&&(this[he]=n),r&&!this.headers.has(`Content-Type`)&&this.headers.set(`Content-Type`,r)}}get[Symbol.toStringTag](){return`Response`}get body(){return this[Mo]?.readableStream||null}async arrayBuffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new zs([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return i.alloc(0);let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r}async text(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return``;let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new J(e).getBrowserFrame();if(!t)return new e.FormData;let n=t[pe],r=this.headers.get(`Content-Type`);if(r&&this.body&&/multipart/i.test(r)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);this.bodyUsed=!0;let i=t[pe].startTask(()=>{this[Zr]=!0}),a,o;try{let t=await Tu.streamToFormData(e,this,r);a=t.formData,o=t.buffer}catch(e){throw n.endTask(i),e}return this.#e(o),n.endTask(i),a}if(r?.startsWith(`application/x-www-form-urlencoded`)){let t=new u(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,V.invalidStateError)}clone(){let e=this[y],t=Du.cloneBodyStream(e,this),n=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return n[ge]=this[ge],n[he]=this[he],n.ok=this.ok,n.redirected=this.redirected,n.type=this.type,n.url=this.url,n}#e(e){this[he]=e,this[ge]?.response?.waitingForBody&&(this[ge].response.body=e,this[ge].response.waitingForBody=!1)}static redirect(e,t=302){let n=this[y];if(!Ru.includes(t))throw new n.DOMException(`Failed to create redirect response: Invalid redirect status code.`,V.invalidStateError);return new n.Response(null,{headers:{location:new hu(e).toString()},status:t})}static error(){let e=new this[y].Response(null,{status:0,statusText:``});return e.type=`error`,e}static json(e,t){let n=this[y],r=JSON.stringify(e);if(r===void 0)throw new n.TypeError(`data is not JSON serializable`);let i=new n.Headers(t&&t.headers);return i.has(`Content-Type`)||i.set(`Content-Type`,`application/json`),new n.Response(r,{status:200,...t,headers:i})}};const Bu=[301,302,303,307,308];var Vu=class{static isRedirect(e){return Bu.includes(e)}static isMaxRedirectsReached(e){return e>=20}},Hu=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,n=null;for(let r of e.rawHeaders)if(!n)n=r;else{let i=n.toLowerCase();if(i===`set-cookie`||i===`set-cookie2`){let t=Pu.stringToCookie(e.requestURL,r);t&&e.browserFrame.page.context.cookieContainer.addCookies([t])}else t.append(n,r);n=null}return t}},Uu={cert:`-----BEGIN CERTIFICATE-----
|
|
18
|
+
`)));n.push(i.from(`--${t}--\r\n`));let a=i.concat(n);return{contentType:`multipart/form-data; boundary=${t}`,contentLength:a.length,buffer:a,stream:new wu(()=>new oe({start(e){e.enqueue(a),e.close()}}))}}static escapeName(e,t=!1){return(t?e:e.replace(/\r?\n|\r/g,`\r
|
|
19
|
+
`)).replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`)}},Eu=class{#e=[];constructor(e,t){if(!e)return;if(t){let n=e[or]?e[or]:e;if(t.form!==n)throw new this[y].DOMException(`The specified element is not owned by this form element`,V.notFoundError);if(!(t[C]===`INPUT`&&(t.type===`submit`||t.type===`image`)||t[C]===`BUTTON`&&t.type===`submit`))throw new this[y].TypeError(`The specified element is not a submit button`)}let n=e[nr]();for(let e of n){let n=e.name;if(n)switch(e[C]){case`INPUT`:if(e.disabled)break;switch(e.type){case`file`:if(e[en].length===0)this.append(n,new Jl([],``,{type:`application/octet-stream`}));else for(let t of e[en])this.append(n,t);break;case`checkbox`:case`radio`:e.checked&&this.append(n,e.value);break;case`submit`:case`reset`:case`button`:e===t&&e.value&&this.append(n,e.value);break;default:this.append(n,e.value);break}break;case`BUTTON`:e===t&&e.value&&this.append(n,e.value);break;case`TEXTAREA`:case`SELECT`:this.append(n,e.value);break}}}forEach(e,t){for(let n of this.#e)e.call(t,n.value,n.name,this)}append(e,t,n){if(n&&!(t instanceof zs))throw new this[y].TypeError(`Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".`);this.#e.push({name:e,value:this.#t(t,n)})}delete(e){let t=[];for(let n of this.#e)n.name!==e&&t.push(n);this.#e=t}get(e){for(let t of this.#e)if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let n of this.#e)n.name===e&&t.push(n.value);return t}has(e){for(let t of this.#e)if(t.name===e)return!0;return!1}set(e,t,n){for(let r of this.#e)if(r.name===e){r.value=this.#t(t,n);return}this.append(e,t)}*keys(){for(let e of this.#e)yield e.name}*values(){for(let e of this.#e)yield e.value}*entries(){for(let e of this.#e)yield[e.name,e.value]}*[Symbol.iterator](){for(let e of this.#e)yield[e.name,e.value]}#t(e,t){if(e instanceof Jl){if(t){let n=new Jl([],t,{type:e.type,lastModified:e.lastModified});return n[he]=e[he],n}return e}if(e instanceof zs){let t=new Jl([],`blob`,{type:e.type});return t[he]=e[he],t}return String(e)}},Du=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof u){let t=i.from(e.toString());return{buffer:t,stream:this.getReadableStream(t),contentType:`application/x-www-form-urlencoded;charset=UTF-8`,contentLength:t.length}}else if(e instanceof zs){let t=e[he];return{buffer:t,stream:this.getReadableStream(t),contentType:e.type,contentLength:e.size}}else if(i.isBuffer(e))return{buffer:e,stream:this.getReadableStream(e),contentType:null,contentLength:e.length};else if(e instanceof ArrayBuffer){let t=i.from(e);return{buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let t=i.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:t,stream:this.getReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(e instanceof oe)return{buffer:null,stream:new wu(()=>e),contentType:null,contentLength:null};else if(e instanceof Eu)return Tu.formDataToStream(e);let t=i.from(String(e));return{buffer:t,stream:this.getReadableStream(t),contentType:`text/plain;charset=UTF-8`,contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException(`Failed to clone body stream of request: Request body is already used.`,V.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[he])return this.getReadableStream(t[he]).readableStream;if(t.body[En]){let e=new d.PassThrough,n=new d.PassThrough;return t.body[En].pipe(e),t.body[En].pipe(n),t[Mo]=new wu(()=>this.nodeToWebStream(e)),this.nodeToWebStream(n)}let[n,r]=t.body.tee();return t[Mo]=new wu(()=>n),r}static async consumeBodyStream(e,t){let n=t.body;if(n===null||!(n instanceof oe))return i.alloc(0);if(t[pn])throw t[pn];let r=n.getReader(),a=[],o=0;try{let n=await r.read();for(;!n.done;){if(t[pn])throw t[pn];if(t[Zr])throw new e.DOMException(`Failed to read response body: The stream was aborted.`,V.abortError);let i=n.value;o+=i.length,a.push(i),n=await r.read()}}catch(t){throw t instanceof vs?t:new e.DOMException(`Failed to read response body. Error: ${t.message}.`,V.encodingError)}try{return typeof a[0]==`string`?i.from(a.join(``)):i.concat(a,o)}catch(t){throw new e.DOMException(`Could not create Buffer from response body. Error: ${t.message}.`,V.invalidStateError)}}static nodeToWebStream(e){let t=new oe({start(t){e.on(`data`,e=>{t.enqueue(e)}),e.on(`end`,()=>{t.close()}),e.on(`error`,e=>{t.error(e)})}});return t[En]=e,t}static getReadableStream(e){return new wu(()=>new oe({start(t){t.enqueue(e),t.close()}}))}};const Ou=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],ku=[`error`,`manual`,`follow`],Au=[`data:`,`http:`,`https:`],ju=[`TRACE`,`TRACK`,`CONNECT`],Mu=/^[A-Z]+$/;var Nu=class{static validateMethod(e){if(!e.method||ju.includes(e.method))throw new vs(`'${e.method||``}' is not a valid HTTP method.`,V.invalidStateError);if(!Mu.test(e.method))throw new vs(`'${e.method}' HTTP method is unsupported.`,V.invalidStateError)}static validateBody(e){if(e.body&&(e.method===`GET`||e.method===`HEAD`))throw new vs(`Request with GET/HEAD method cannot have body.`,V.invalidStateError)}static validateURL(e){if(e.username!==``||e.password!==``)throw new vs(`${e} is an url with embedded credentials.`,V.notSupportedError)}static validateReferrerPolicy(e){if(!Ou.includes(e))throw new vs(`Invalid referrer policy "${e}".`,V.syntaxError)}static validateRedirect(e){if(!ku.includes(e))throw new vs(`Invalid redirect "${e}".`,V.syntaxError)}static validateSchema(e){if(!Au.includes(e[_t].protocol))throw new vs(`Failed to fetch from "${e.url}": URL scheme "${e[_t].protocol.replace(/:$/,``)}" is not supported.`,V.notSupportedError)}},Pu=class{static stringToCookie(e,t){let n=t.split(`;`),r=n.shift();if(!r)return null;let i=r.indexOf(`=`),a=i===-1?r.trim():r.slice(0,i).trim(),o=i===-1?null:r.slice(i+1).trim(),s=Object.assign({},ds,{key:a,value:o,originURL:e});if(!s.key)return null;for(let e of n){let t=e.indexOf(`=`),n=t===-1?e.trim().toLowerCase():e.slice(0,t).trim().toLowerCase(),r=t===-1?``:e.slice(t+1).trim();switch(n){case`expires`:s.expires=new Date(r);break;case`max-age`:s.expires=new Date(parseInt(r,10)*1e3+Date.now());break;case`domain`:s.domain=r;break;case`path`:s.path=r[0]===`/`?r:`/${r}`;break;case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`samesite`:switch(r.toLowerCase()){case`strict`:s.sameSite=us.strict;break;case`lax`:s.sameSite=us.lax;break;case`none`:s.sameSite=us.none}break}}let c=s.key.toLowerCase();return c.startsWith(`__secure-`)&&!s.secure||c.startsWith(`__host-`)&&(!s.secure||s.path!==`/`||s.domain)?null:s}static cookiesToString(e){let t=[];for(let n of e)n.value===null?t.push(n.key):t.push(`${n.key}=${n.value}`);return t.join(`; `)}};const Fu=[`accept-charset`,`accept-encoding`,`access-control-request-headers`,`access-control-request-method`,`connection`,`content-length`,`content-transfer-encoding`,`cookie`,`cookie2`,`date`,`dnt`,`expect`,`host`,`keep-alive`,`origin`,`referer`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`via`];var Iu=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Fe]))(Fu.includes(t)||t.startsWith(`proxy-`)||t.startsWith(`sec-`))&&delete e[Fe][t]}static isHeaderForbidden(e){return Fu.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((e,n)=>{t.set(n,e)});let n=new l(e.window.location.href),r=bu.isCORS(n,e.request[_t]);if(t.set(`Accept-Encoding`,`gzip, deflate, br`),t.set(`Connection`,`close`),t.has(`User-Agent`)||t.set(`User-Agent`,e.window.navigator.userAgent),e.request[tt]instanceof l&&t.set(`Referer`,e.request[tt].href),e.request.credentials===`include`||e.request.credentials===`same-origin`&&!r){let n=e.browserFrame.page.context.cookieContainer.getCookies(e.request[_t],!1);n.length>0&&t.set(`Cookie`,Pu.cookiesToString(n))}else t.delete(`Cookie`),t.delete(`Cookie2`);t.has(`Accept`)||t.set(`Accept`,`*/*`),!t.has(`Content-Length`)&&e.request[Ee]!==null&&t.set(`Content-Length`,String(e.request[Ee])),!t.has(`Content-Type`)&&e.request[De]&&t.set(`Content-Type`,e.request[De]),r&&t.set(`Origin`,n.origin);let i={};for(let e of Object.values(t[Fe]))i[e.name]=e.value.join(`, `);return i}},Lu=class e{[Ea];[Mo];[Sn]=`cors`;[Tr];[No];[Po];[Fo];[Io]=!1;[Lo];[Zr]=!1;[pn]=null;[Ee]=null;[De]=null;[tt]=`client`;[_t];[me];constructor(t,n){let r=this[y];if(!r)throw TypeError(`Failed to construct 'Request': 'Request' was constructed outside a Window context.`);if(typeof t!=`string`&&!t)throw new r.TypeError(`Failed to construct 'Request': 1 argument required, only 0 present.`);if(this[Ea]=(n?.method||t.method||`GET`).toUpperCase(),n?.mode)switch(n.mode){case`navigate`:case`websocket`:throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${n.mode}'.`,V.securityError);case`same-origin`:case`no-cors`:case`cors`:this[Sn]=n.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${n.mode}' is not a valid enum value of type RequestMode.`,V.syntaxError)}else t instanceof e&&(this[Sn]=t.mode);let{stream:i,buffer:a,contentType:o,contentLength:s}=Du.getBodyStream(t instanceof e&&(t[me]||t.body)?t[me]||Du.cloneBodyStream(r,t):n?.body??null);if(this[me]=a,this[Mo]=i,this[Lo]=n?.credentials||t.credentials||`same-origin`,this[Tr]=new this[y].Headers(n?.headers||t.headers||{}),Iu.removeForbiddenHeaders(this.headers),s?this[Ee]=s:!this.body&&(this.method===`POST`||this.method===`PUT`)&&(this[Ee]=0),o?(this.headers.has(`Content-Type`)||this.headers.set(`Content-Type`,o),this[De]=o):t instanceof e&&t[De]&&(this[De]=t[De]),this[No]=n?.redirect||t.redirect||`follow`,this[Po]=(n?.referrerPolicy||t.referrerPolicy||``).toLowerCase(),this[Fo]=n?.signal||t.signal||new r.AbortSignal,this[tt]=vu.getInitialReferrer(r,n?.referrer!==null&&n?.referrer!==void 0?n?.referrer:t.referrer),t instanceof l)this[_t]=t;else try{t instanceof e&&t.url?this[_t]=new l(t.url,r.location.href):this[_t]=new l(t,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${r.location}'.${r.location.origin===`null`?` Relative URLs are not permitted on current document location.`:``}`,V.notSupportedError)}Nu.validateMethod(this),Nu.validateBody(this),Nu.validateURL(this[_t]),Nu.validateReferrerPolicy(this.referrerPolicy),Nu.validateRedirect(this.redirect)}get method(){return this[Ea]}get body(){return this[Mo]?.readableStream||null}get mode(){return this[Sn]}get headers(){return this[Tr]}get redirect(){return this[No]}get referrerPolicy(){return this[Po]}get signal(){return this[Fo]}get bodyUsed(){return this[Io]}get credentials(){return this[Lo]}get referrer(){return!this[tt]||this[tt]===`no-referrer`?``:this[tt]===`client`?`about:client`:this[tt].toString()}get url(){return this[_t].href}get[Symbol.toStringTag](){return`Request`}async arrayBuffer(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new zs([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r}async text(){let e=this[y];if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getAsyncTaskManager();this[Io]=!0;let n=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),r;try{r=await Du.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new J(e).getAsyncTaskManager(),n=this.headers.get(`Content-Type`)??this[De];if(this.body&&n&&/multipart/i.test(n)){if(this[Io])throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);this[Io]=!0;let r=t.startTask(()=>{this[Zr]=!0,this.signal[de]()}),i;try{i=(await Tu.streamToFormData(e,this,n)).formData}catch(e){throw t.endTask(r),e}return t.endTask(r),i}if(n?.startsWith(`application/x-www-form-urlencoded`)){let t=new URLSearchParams(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,V.invalidStateError)}clone(){return new this[y].Request(this)}};const Ru=[301,302,303,307,308];var zu=class{bodyUsed=!1;redirected=!1;type=`basic`;url=``;status;statusText;ok;headers;[ge]=null;[he]=null;[es]=null;[Zr]=!1;[pn]=null;[Mo]=null;constructor(e,t){if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status===void 0?200:t.status,this.statusText=t?.statusText||``,this.ok=this.status>=200&&this.status<300,this.headers=new this[y].Headers(t?.headers),this.headers.delete(`Set-Cookie`),this.headers.delete(`Set-Cookie2`),e){let{stream:t,buffer:n,contentType:r}=Du.getBodyStream(e);this[Mo]=t,n&&(this[he]=n),r&&!this.headers.has(`Content-Type`)&&this.headers.set(`Content-Type`,r)}}get[Symbol.toStringTag](){return`Response`}get body(){return this[Mo]?.readableStream||null}async arrayBuffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new zs([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return i.alloc(0);let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r}async text(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);let t=new J(e).getBrowserFrame();if(!t)return``;let n=t[pe];this.bodyUsed=!0;let r=this[he];if(!r){let t=n.startTask(()=>{this[Zr]=!0});try{r=await Du.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new J(e).getBrowserFrame();if(!t)return new e.FormData;let n=t[pe],r=this.headers.get(`Content-Type`);if(r&&this.body&&/multipart/i.test(r)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,V.invalidStateError);this.bodyUsed=!0;let i=t[pe].startTask(()=>{this[Zr]=!0}),a,o;try{let t=await Tu.streamToFormData(e,this,r);a=t.formData,o=t.buffer}catch(e){throw n.endTask(i),e}return this.#e(o),n.endTask(i),a}if(r?.startsWith(`application/x-www-form-urlencoded`)){let t=new u(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,V.invalidStateError)}clone(){let e=this[y],t=Du.cloneBodyStream(e,this),n=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return n[ge]=this[ge],n[he]=this[he],n.ok=this.ok,n.redirected=this.redirected,n.type=this.type,n.url=this.url,n}#e(e){this[he]=e,this[ge]?.response?.waitingForBody&&(this[ge].response.body=e,this[ge].response.waitingForBody=!1)}static redirect(e,t=302){let n=this[y];if(!Ru.includes(t))throw new n.DOMException(`Failed to create redirect response: Invalid redirect status code.`,V.invalidStateError);return new n.Response(null,{headers:{location:new hu(e).toString()},status:t})}static error(){let e=new this[y].Response(null,{status:0,statusText:``});return e.type=`error`,e}static json(e,t){let n=this[y],r=JSON.stringify(e);if(r===void 0)throw new n.TypeError(`data is not JSON serializable`);let i=new n.Headers(t&&t.headers);return i.has(`Content-Type`)||i.set(`Content-Type`,`application/json`),new n.Response(r,{status:200,...t,headers:i})}};const Bu=[301,302,303,307,308];var Vu=class{static isRedirect(e){return Bu.includes(e)}static isMaxRedirectsReached(e){return e>=20}},Hu=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,n=null;for(let r of e.rawHeaders)if(!n)n=r;else{let i=n.toLowerCase();if(i===`set-cookie`||i===`set-cookie2`){let t=Pu.stringToCookie(e.requestURL,r);t&&e.browserFrame.page.context.cookieContainer.addCookies([t])}else t.append(n,r);n=null}return t}},Uu={cert:`-----BEGIN CERTIFICATE-----
|
|
20
20
|
MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
|
|
21
21
|
BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
|
|
22
22
|
bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
|
|
@@ -103,7 +103,7 @@ We should not end up here and it is therefore a bug in Happy DOM. Please report
|
|
|
103
103
|
`;for(let e of s)for(let t of e.properties)t.alias?l+=`${t.alias} = $happy_dom.imports.get('${e.url}')['${t.name}'];\n`:l+=`${t.name} = $happy_dom.imports.get('${e.url}')['${t.name}'];\n`;l+=`});`}!i.disableErrorCapturing&&i.errorCapture===Rs.tryAndCatch&&(l+=`} catch(e) { $happy_dom.dispatchError(e); }`),l+=`})`;let ae;try{ae=this.window[Ie](l,{filename:n||e})}catch(r){let a=this.getError(e,t,n),s=a?new this.window.SyntaxError(`Failed to parse module in '${e}'. Execution error: ${r.message}. Compile error: ${a}`):r;if(r.message=`Failed to parse module in '${n}': ${s.message}`,i.disableErrorCapturing||i.errorCapture!==Rs.tryAndCatch)throw s;return this.window[Bo](s),{imports:o,execute:async()=>{}}}return!i.module.disableCache&&n&&r[os].set(e,{imports:o,code:l}),{imports:o,execute:ae}}parseSyntax(e,t){let n=new RegExp(lm),r=this.count,i=this.debug,a=this.debugCount,o=null,s,c;for(t++;o=n.exec(e);)s=e[o.index-1]||` `,c=s===`\\`&&e[o.index-2]!==`\\`,o[1]?r.simpleString===0&&r.doubleString===0&&r.singleLineComment===0&&r.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.comment===1?s===`*`&&(r.comment=0,i&&(a.comment.length=0)):r.regExp===0?e[o.index+1]===`*`?(r.comment=1,i&&(a.comment=[t+o.index])):e[o.index+1]===`/`?(r.singleLineComment=1,i&&(a.singleLineComment=[t+o.index])):pm.test(this.getNonSpacePrecedingToken(e,o.index))&&(r.regExp=1,i&&(a.regExp=[t+o.index])):c||(r.regExp=0,i&&(a.regExp.length=0))):o[2]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o[2]===`(`?(r.parentheses++,i&&a.parentheses.push(t+o.index)):o[2]===`)`&&r.parentheses>0&&(r.parentheses--,i&&a.parentheses.pop())):o[3]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o[3]===`{`?(this.templateString.length&&this.templateString[0]++,r.curlyBraces++,i&&a.curlyBraces.push(t+o.index)):o[3]===`}`&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,r.curlyBraces>0&&(r.curlyBraces--,i&&a.curlyBraces.pop()))):o[4]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.regExp===1?c||(o[4]===`[`&&r.regExpSquareBrackets===0?(r.regExpSquareBrackets=1,i&&(a.regExpSquareBrackets=[t+o.index])):o[4]===`]`&&r.regExpSquareBrackets===1&&(r.regExpSquareBrackets=0,i&&(a.regExpSquareBrackets.length=0))):o[4]===`[`?(r.squareBrackets++,i&&a.squareBrackets.push(t+o.index)):o[4]===`]`&&r.squareBrackets>0&&(r.squareBrackets--,i&&a.squareBrackets.pop())):o[5]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&this.templateString[0]===0&&(this.templateString[0]=1,r.curlyBraces++,i&&a.curlyBraces.push(t+o.index)):o[6]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):o[7]?r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString.length===0||this.templateString[0]>0)&&(r.simpleString===0?(r.simpleString=1,i&&(a.simpleString=[t+o.index])):(r.simpleString=0,i&&(a.simpleString.length=0))):o[8]?r.simpleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString.length===0||this.templateString[0]>0)&&(r.doubleString===0?(r.doubleString=1,i&&(a.doubleString=[t+o.index])):(r.doubleString=0,i&&(a.doubleString.length=0))):o[9]&&(r.singleLineComment=0,i&&(a.singleLineComment.length=0))}getError(e,t,n){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=!0,this.compile(e,t,n));let r=this.debugCount;if(r.comment.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.comment[0]);return`Missing end of comment on line ${e} and column ${n}`}else if(r.regExp.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.regExp[0]);return`Missing end of regular expression on line ${e} and column ${n}`}else if(r.regExpSquareBrackets.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${e} and column ${n}`}else if(r.simpleString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.simpleString[0]);return`Missing end of single quote string on line ${e} and column ${n}`}else if(r.doubleString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.doubleString[0]);return`Missing end of double quote string on line ${e} and column ${n}`}else if(r.parentheses.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.parentheses[0]);return`Missing end of parentheses on line ${e} and column ${n}`}else if(r.curlyBraces.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.curlyBraces[0]);return`Missing end of curly braces on line ${e} and column ${n}`}else if(r.squareBrackets.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.squareBrackets[0]);return`Missing end of square brackets on line ${e} and column ${n}`}else if(r.escapeTemplateString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.escapeTemplateString[0]);return`Missing end of escaped template string on line ${e} and column ${n}`}return null}getLineAndColumn(e,t){let n=e.substring(0,t).split(`
|
|
104
104
|
`);return{line:n.length,column:n[n.length-1].length}}getNonSpacePrecedingToken(e,t){t--;let n=e[t];for(;n===` `||n===`
|
|
105
105
|
`||n===` `;)t--,n=e[t];return n||`;`}removeMultilineComments(e){let t=new RegExp(mm),n,r=0,i=0,a=``;for(;n=t.exec(e);)r===0&&(a+=e.substring(i,n.index)),n[0]===`/*`?r++:n[0]===`*/`&&r>0&&r--,i=t.lastIndex;return a+=e.substring(i),a}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}};const ym={imports:[],execute:async()=>{}};var bm=class e{url;[y];#e;#t;#n=!1;#r=null;#i=null;#a=null;#o;constructor(e){this[y]=e.window,this.url=e.url,this.#e=e.source,this.#t=e.sourceURL||null,this.#o=e.factory}async evaluate(t=[],n=null){if(this.#a)return t.includes(this.url.href)?(n&&this.#a.push(n),this.#i):new Promise(e=>{this.#a.push(e)});if(this.#i)return this.#i;let r=this.#s(),i=[],a=this[y];if(!new J(a).getBrowserFrame())return{};let o={};this.#i=o,this.#a=[];for(let e of r.imports)i.push(this.#o.getModule(e.url,{with:{type:e.type}}));let s=new Map,c=null,u=()=>{c&&c()};if(i.length){let n=await Promise.all(i),r=[...t,this.url.href];for(let t of n)if(t instanceof e){let e=await t.evaluate(r,u);s.set(t.url.href,e)}else{let e=await t.evaluate();s.set(t.url.href,e)}}let d=this.url.href;r.execute({dispatchError:a[Bo].bind(a),dynamicImport:this.#o.importModule.bind(this.#o),importMeta:{url:d,resolve:e=>new l(e,d).href},imports:s,exports:o,addCircularImportResolver:e=>c=e});let f=this.#a;this.#a=null;for(let e of f)e(o);return o}async preload(){if(this.#n)return;this.#n=!0;let e=this.#s(),t=[],n=this[y];if(!new J(n).getBrowserFrame())return;for(let n of e.imports)t.push(this.#o.getModule(n.url,{with:{type:n.type}}));let r=await Promise.all(t),i=[];for(let e of r)i.push(e.preload());await Promise.all(i)}#s(){if(this.#r)return this.#r;this.#r=ym;let e=new vm(this[y]);return this.#r=e.compile(this.url.href,this.#e,this.#t),this.#r}},xm=class e{window;parentURL;constructor(e,t){this.window=e,this.parentURL=t}async getModule(t,n){let r=this.window,i=this.parentURL,a=sm.getURL(r,i,t),o=a.href,s=n?.with?.type||`esm`;if(s!==`esm`&&s!==`css`&&s!==`json`)throw new r.TypeError(`Failed to import module "${a}" from "${i}": Unknown type "${s}"`);let c=r[Ao][s].get(o);if(c)return c instanceof im?(await new Promise((e,t)=>{c.addResolveListener(e,t)}),r[Ao][s].get(o)):c;if(!new J(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${a}" from "${i}": Window is closed and is no longer attached to a frame`);let l=new im({window:r,url:a}),u=r[et],d=u.startTask();r[Ao][s].set(o,l);let f=new tm(r),ee;try{ee=await f.fetch(a,`module`)}catch(e){throw u.endTask(d),l.resolve(e),e}u.endTask(d);let te;switch(s){case`json`:te=new rm({window:r,url:a,source:ee.content});break;case`css`:te=new nm({window:r,url:a,source:ee.content});break;case`esm`:te=new bm({window:r,url:a,source:ee.content,sourceURL:ee.virtualServerFile||o,factory:new e(r,a)});break}return r[Ao][s].set(o,te),l.resolve(),te}async importModule(e,t){let n=new J(this.window).getBrowserFrame();if(!n)return{};let r=n[pe],i=r?.startTask(),a=await(await this.getModule(e,t)).evaluate();return r.endTask(i),a}},Sm=class{integrityMetadata=null;response=null;error=null;#e=null;onResponseAvailable(){return new Promise((e,t)=>{this.#e={resolve:e,reject:t}})}responseAvailable(e,t){this.response=t,this.error=e,this.#e&&(e?this.#e.reject(e):t?this.#e.resolve(t):this.#e.reject(Error(`Response is null`)))}},Cm=class extends Q{[tn]=null;[ns]=!1;[rt]=null;#e=null;get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[B].set(`onerror`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[B].set(`onload`,e)}get sheet(){return this[tn]}get relList(){return this[rt]||(this[rt]=new kd(M,this,`rel`,[`stylesheet`,`modulepreload`,`preload`])),this[rt]}set relList(e){this.setAttribute(`rel`,e)}get as(){return this.getAttribute(`as`)||``}set as(e){this.setAttribute(`as`,e)}get crossOrigin(){return this.getAttribute(`crossorigin`)||``}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get href(){if(!this.hasAttribute(`href`))return``;try{return new URL(this.getAttribute(`href`),this[h].location.href).href}catch{return this.getAttribute(`href`)}}set href(e){this.setAttribute(`href`,e)}get hreflang(){return this.getAttribute(`hreflang`)||``}set hreflang(e){this.setAttribute(`hreflang`,e)}get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get referrerPolicy(){return this.getAttribute(`referrerPolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerPolicy`,e)}get rel(){return this.getAttribute(`rel`)||``}set rel(e){this.setAttribute(`rel`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}[we](){super[we]();let e=this.getAttribute(`rel`),t=this.getAttribute(`href`);if(e&&t)switch(e){case`stylesheet`:this.#r(t);break;case`modulepreload`:this.#t(t);break;case`preload`:this.#n(t);break}}[Jn](e,t){if(super[Jn](e,t),e[T]===`rel`||e[T]===`href`){let e=this.getAttribute(`rel`),t=this.getAttribute(`href`);if(e&&t)switch(e){case`stylesheet`:this.#r(t);break;case`modulepreload`:this.#t(t);break;case`preload`:this.#n(t);break}}}async#t(e){let t=this[y],n=new J(t).getBrowserFrame(),r=new J(t).getSettings();if(!n||!r||!this[b]||r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)return;let i=new xm(t,t.location);if(r.disableErrorCapturing||r.errorCapture!==Rs.tryAndCatch)await(await i.getModule(e)).preload();else try{await(await i.getModule(e)).preload()}catch(e){n.page.console.error(e),t[Bo](e);return}}async#n(e){let t=this[y],n=new J(t).getBrowserFrame(),r=this.as;if(!n||!this[b]||r!==`script`&&r!==`style`&&r!==`fetch`)return;let i=n.page.context.browser.settings;if(r===`script`&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)||r===`style`&&i.disableCSSFileLoading)return;let a=new URL(e,t.location.href).href,o=Ku.getKey({url:a,destination:r,mode:`cors`,credentialsMode:this.crossOrigin===`use-credentials`?`include`:`same-origin`});if(t.document[jo].has(o))return;let s=new Sm;t.document[jo].set(o,s);let c=new Ju({browserFrame:n,window:t,url:a,disableSameOriginPolicy:r===`script`||r===`style`,disablePreload:!0,init:{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`}});try{let e=await c.send();e[he]||await e.buffer(),s.responseAvailable(null,e)}catch(e){s.responseAvailable(e,null),t.document[jo].delete(o),n.page.console.error(`Failed to preload resource "${a}": ${e.message}`)}}async#r(e){let t=this[y],n=new J(t).getBrowserFrame();if(!n||e===null)return;let r=n.page.context.browser.settings;if(this[ns]||!this[b])return;let i;try{i=new URL(e,t.location.href).href}catch{return}if(this.#e===i)return;if(r&&r.disableCSSFileLoading){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new U(`load`));else{let e=new t.DOMException(`Failed to load external stylesheet "${i}". CSS file loading is disabled.`,V.notSupportedError);n.page.console.error(e),this.dispatchEvent(new U(`error`))}return}let a=new tm(t),o=t[et];this.#e=i;let s=o.startTask(),c=null,l=null;try{c=await a.fetch(i,`style`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`})}catch(e){l=e}if(o.endTask(s),l)n.page.console.error(l),this.dispatchEvent(new U(`error`));else{let e=new this[h][y].CSSStyleSheet;e.replaceSync(c.content),this[tn]=e;let t=this[h];if(t){for(let e of t[$n])e.result=null;t[$n]=[]}this.dispatchEvent(new U(`load`))}}},wm=class extends Q{[mr]=null;get areas(){return this[mr]||(this[mr]=jd.getElementsByTagName(this,`area`)),this[mr]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}},Tm=class extends Array{constructor(e){if(super(),e!==1&&e!==M)throw TypeError(`Illegal constructor`)}getCueById(e){for(let t of this)if(t.id===e)return t;return null}},Em=class extends Q{},Dm=class extends Q{get content(){return this.getAttribute(`content`)||``}set content(e){this.setAttribute(`content`,e)}get httpEquiv(){return this.getAttribute(`http-equiv`)||``}set httpEquiv(e){this.setAttribute(`http-equiv`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get scheme(){return this.getAttribute(`scheme`)||``}set scheme(e){this.setAttribute(`scheme`,e)}},Om=class extends Q{get high(){if(!this.hasAttribute(`high`))return 1;let e=parseFloat(this.getAttribute(`high`)||``);return isNaN(e)||e>1?1:e<0?0:e}set high(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`high`,String(e))}get low(){if(!this.hasAttribute(`low`))return 0;let e=parseFloat(this.getAttribute(`low`)||``);return isNaN(e)||e<0?0:e>1?1:e}set low(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`low`,String(e))}get max(){if(!this.hasAttribute(`max`))return 1;let e=parseFloat(this.getAttribute(`max`)||``);return isNaN(e)||e>1?1:e<0?0:e}set max(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`max`,String(e))}get min(){if(!this.hasAttribute(`min`))return 0;let e=parseFloat(this.getAttribute(`min`)||``);return isNaN(e)||e<0?0:e>1?1:e}set min(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`min`,String(e))}get optimum(){if(!this.hasAttribute(`optimum`))return .5;let e=parseFloat(this.getAttribute(`optimum`)||``);return isNaN(e)?.5:e<0?0:e>1?1:e}set optimum(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`optimum`,String(e))}get value(){if(!this.hasAttribute(`value`))return 0;let e=parseFloat(this.getAttribute(`value`)||``);return isNaN(e)||e<0?0:e>1?1:e}set value(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`value`,String(e))}get labels(){return qf.getAssociatedLabelElements(this)}},km=class extends Q{get cite(){if(!this.hasAttribute(`cite`))return``;try{return new URL(this.getAttribute(`cite`),this[h].location.href).href}catch{return this.getAttribute(`cite`)}}set cite(e){this.setAttribute(`cite`,e)}get dateTime(){return this.getAttribute(`datetime`)||``}set dateTime(e){this.setAttribute(`datetime`,e)}},Am=class extends Q{get reversed(){return this.getAttribute(`reversed`)!==null}set reversed(e){e?this.setAttribute(`reversed`,``):this.removeAttribute(`reversed`)}get start(){if(!this.hasAttribute(`start`))return 1;let e=Number(this.getAttribute(`start`)||``);return isNaN(e)?1:e}set start(e){typeof e!=`number`&&(e=Number(e)),isNaN(e)&&(e=0),this.setAttribute(`start`,String(e))}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},jm=class extends Q{[Re]=null;[Kt]=``;[qt]=new Kf(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute(`data`))return``;try{return new URL(this.getAttribute(`data`),this[h].location.href).href}catch{return this.getAttribute(`data`)}}set data(e){this.setAttribute(`data`,e)}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get height(){return this.getAttribute(`height`)||``}set height(e){this.setAttribute(`height`,e)}get width(){return this.getAttribute(`width`)||``}set width(e){this.setAttribute(`width`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get willValidate(){return!1}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(e){this[Kt]=String(e)}},Mm=class extends Q{get label(){return this.getAttribute(`label`)||``}set label(e){e?this.setAttribute(`label`,e):this.removeAttribute(`label`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}},Nm=class extends Q{[st]=!1;[Pe]=!1;[ot]=null;get text(){return this.innerText}set text(e){this.innerText=e}get index(){return this[ot]?q.querySelectorAll(this[ot],`option`)[k].indexOf(this):0}get form(){return this[ot]?.form||null}get selected(){return this[st]}set selected(e){let t=this[ot];this[Pe]=!0,this[st]=!!e,t&&t[gt](this[st]?this:null)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get value(){return this.getAttribute(`value`)??this.textContent}set value(e){this.setAttribute(`value`,e)}[Jn](e,t){if(super[Jn](e,t),!this[Pe]&&e[T]===`selected`&&t?.[_]!==e[_]){let e=this[ot];this[st]=!0,e&&e[gt](this)}}[Yn](e){if(super[Yn](e),e&&!this[Pe]&&e[T]===`selected`){let e=this[ot];this[st]=!1,e&&e[gt]()}}[Se](){super[Se](),this[ot]&&this[ot][gt]()}[Ce](){this[ot]&&this[ot][gt](),super[Ce]()}},Pm=class extends Q{[Re]=null;[Kt]=``;[qt]=new Kf(this);[hr]=``;get defaultValue(){return this[hr]}set defaultValue(e){this[hr]=e}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get htmlFor(){return this.getAttribute(`for`)||``}set htmlFor(e){this.setAttribute(`for`,e)}get labels(){return qf.getAssociatedLabelElements(this)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get value(){return this.textContent||``}set value(e){this.textContent=e}get type(){return`output`}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(e){this[Kt]=String(e)}},Fm=class extends Q{},Im=class extends Q{},Lm=class extends Q{},Rm=class extends Q{},zm=class extends Q{get max(){if(!this.hasAttribute(`max`))return 1;let e=parseFloat(this.getAttribute(`max`)||``);return isNaN(e)||e<0?1:e}set max(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.`);this.setAttribute(`max`,e<0?`1`:String(e))}get value(){if(!this.hasAttribute(`value`))return 0;let e=parseFloat(this.getAttribute(`value`)||``);return isNaN(e)||e<0?0:e}set value(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.`);this.setAttribute(`value`,e<0?`0`:String(e))}get position(){return this.hasAttribute(`value`)?this.value/this.max:-1}get labels(){return qf.getAssociatedLabelElements(this)}},Bm=class extends Q{get cite(){if(!this.hasAttribute(`cite`))return``;try{return new URL(this.getAttribute(`cite`),this[h].location.href).href}catch{return this.getAttribute(`cite`)}}set cite(e){this.setAttribute(`cite`,e)}};const Vm=/import\s*\(([^)]+)\)/gm,Hm=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,Um=/['"`(){}\s;=><\[\]+-,:&]/,Wm=/['"`({};=><\[+-,:&]/;var Gm=class{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(e){this.window=e}compile(e,t){let n=new J(this.window).getSettings();if(!n)return{execute:()=>{}};let r=new RegExp(Vm),i=this.count,a=`(function anonymous($happy_dom) {`,o=null,s,c,l=0;for(!n.disableErrorCapturing&&n.errorCapture===Rs.tryAndCatch&&(a+=`try {`);o=r.exec(t);)s=t[o.index-1]||` `,c=t.substring(l,o.index),this.parseSyntax(c,l),a+=c,o[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&Um.test(s)?a+=`$happy_dom.dynamicImport(${o[1]})`:(a+=o[0],this.parseSyntax(o[0],o.index)),l=r.lastIndex;l===0?a+=t:a+=t.substring(l),!n.disableErrorCapturing&&n.errorCapture===Rs.tryAndCatch&&(a+=`} catch (error) { $happy_dom.dispatchError(error); }`),a+=`})`;try{return{execute:this.window[Ie](a,{filename:e})}}catch(t){if(t.message=`Failed to parse JavaScript in '${e}': ${t.message}`,n.disableErrorCapturing||n.errorCapture!==Rs.tryAndCatch)throw t;return this.window[Bo](t),{execute:()=>{}}}}parseSyntax(e,t){let n=new RegExp(Hm),r=this.count,i=null,a,o;for(t++;i=n.exec(e);)a=e[i.index-1]||` `,o=a===`\\`&&e[i.index-2]!==`\\`,i[1]?r.simpleString===0&&r.doubleString===0&&r.singleLineComment===0&&r.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.comment===1?a===`*`&&(r.comment=0):r.regExp===0?e[i.index+1]===`*`?r.comment=1:e[i.index+1]===`/`?r.singleLineComment=1:Wm.test(this.getNonSpacePrecedingToken(e,i.index))&&(r.regExp=1):o||(r.regExp=0)):i[2]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]===`(`?r.parentheses++:i[2]===`)`&&r.parentheses>0&&r.parentheses--):i[3]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]===`{`?(this.templateString.length&&this.templateString[0]++,r.curlyBraces++):i[3]===`}`&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,r.curlyBraces>0&&r.curlyBraces--)):i[4]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.regExp===1?o||(i[4]===`[`&&r.regExpSquareBrackets===0?r.regExpSquareBrackets=1:i[4]===`]`&&r.regExpSquareBrackets===1&&(r.regExpSquareBrackets=0)):i[4]===`[`?r.squareBrackets++:i[4]===`]`&&r.squareBrackets>0&&r.squareBrackets--):i[5]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&this.templateString[0]===0&&(this.templateString[0]=1,r.curlyBraces++):i[6]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString.length===0||this.templateString[0]>0)&&(r.simpleString===0?r.simpleString=1:r.simpleString=0):i[8]?r.simpleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString.length===0||this.templateString[0]>0)&&(r.doubleString===0?r.doubleString=1:r.doubleString=0):i[9]&&(r.singleLineComment=0)}getNonSpacePrecedingToken(e,t){t--;let n=e[t];for(;n===` `||n===`
|
|
106
|
-
`||n===` `;)t--,n=e[t];return n||`;`}},Km=class extends Q{[ns]=!1;[Ro]=null;#e=null;get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[B].set(`onerror`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[B].set(`onload`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get blocking(){return this[Ro]||(this[Ro]=new kd(M,this,`blocking`)),this[Ro]}set blocking(e){this.setAttribute(`blocking`,e)}get crossOrigin(){return this.getAttribute(`crossorigin`)||``}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get fetchPriority(){let e=this.getAttribute(`fetchpriority`);switch(e){case`high`:case`low`:case`normal`:return e;default:return`auto`}}set fetchPriority(e){this.setAttribute(`fetchpriority`,e)}get noModule(){return this.getAttribute(`nomodule`)!==null}set noModule(e){e?this.setAttribute(`nomodule`,``):this.removeAttribute(`nomodule`)}get integrity(){return this.getAttribute(`integrity`)||``}set integrity(e){this.setAttribute(`integrity`,e)}get referrerPolicy(){let e=this.getAttribute(`referrerpolicy`);switch(e){case`no-referrer`:case`no-referrer-when-downgrade`:case`same-origin`:case`origin`:case`strict-origin`:case`origin-when-cross-origin`:case`strict-origin-when-cross-origin`:case`unsafe-url`:return e;default:return``}}set referrerPolicy(e){this.setAttribute(`referrerpolicy`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e)}get charset(){return this.getAttribute(`charset`)||``}set charset(e){this.setAttribute(`charset`,e)}get lang(){return this.getAttribute(`lang`)||``}set lang(e){this.setAttribute(`lang`,e)}get async(){return this.getAttribute(`async`)!==null}set async(e){e?this.setAttribute(`async`,``):this.removeAttribute(`async`)}get defer(){return this.getAttribute(`defer`)!==null}set defer(e){e?this.setAttribute(`defer`,``):this.removeAttribute(`defer`)}get text(){return this.textContent}set text(e){this.textContent=e}[Pn](e=!1){return super[Pn](e)}[we](){let e=new J(this[y]).getSettings();if(super[we](),this[ns])return;let t=this.getAttribute(`src`);if(t!==null)this.getAttribute(`type`)===`module`?this.#i(t):this.#a(t);else if(e&&e.enableJavaScriptEvaluation){let e=this.textContent,t=this.getAttribute(`type`);e&&(t===`module`?this.#t(e):t===`importmap`?this.#n(e):(t===null||t===`application/x-ecmascript`||t===`application/x-javascript`||t.startsWith(`text/javascript`))&&this.#r(e))}}[Jn](e,t){super[Jn](e,t),e[T]===`src`&&e[_]!==null&&this[b]&&(this.getAttribute(`type`)===`module`?this.#i(e[_]):this.#a(e[_]))}#t(e){let t=this[h].location,n=this[y],r=new J(n).getSettings();if(!new J(n).getBrowserFrame()||!r||!r.enableJavaScriptEvaluation)return;this[h][ke]=this;let i=new bm({window:n,url:t,source:e,factory:new xm(n,t)});r.disableErrorCapturing||r.errorCapture!==Rs.tryAndCatch?i.evaluate():i.evaluate().catch(e=>{n[Bo](e)}),this[h][ke]=null,this.dispatchEvent(new U(`load`))}async#n(e){let t=this[y],n=new J(t).getSettings();if(!new J(t).getBrowserFrame()||!n||t[zo]||!n.enableJavaScriptEvaluation)return;let r;if(n.disableErrorCapturing||n.errorCapture!==Rs.tryAndCatch)r=JSON.parse(e);else try{r=JSON.parse(e)}catch(e){t[Bo](e);return}if(r.imports||r.scopes){let e={imports:[],scopes:[]};if(r.imports)for(let t of Object.keys(r.imports))e.imports.push({from:t,to:r.imports[t]});if(r.scopes)for(let t of Object.keys(r.scopes)){let n={scope:t,rules:[]};for(let e of Object.keys(r.scopes[t])){let i=r.scopes[t][e];n.rules.push({from:e,to:i})}e.scopes.push(n)}t[zo]=e}}#r(e){let t=this[y];if(!new J(t).getSettings())return;this[h][ke]=this;let n=new Gm(t).compile(t.location.href,e),r=new xm(t,t.location);n.execute({dynamicImport:r.importModule.bind(r),dispatchError:t[Bo].bind(t)}),this[h][ke]=null}async#i(e){let t=this[y],n=new J(t).getBrowserFrame(),r=new J(t).getSettings();if(!n||!r||!e||!this[b]||this.getAttribute(`type`)!==`module`)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new U(`load`));else{let r=new t.DOMException(`Failed to load module "${e}". JavaScript file loading is disabled.`,V.notSupportedError);n.page.console.error(r),this.dispatchEvent(new U(`error`))}return}let i=new xm(t,t.location);if(r.disableErrorCapturing||r.errorCapture!==Rs.tryAndCatch)await(await i.getModule(e)).evaluate();else try{await(await i.getModule(e)).evaluate()}catch(e){n.page.console.error(e),this.dispatchEvent(new U(`error`));return}this.dispatchEvent(new U(`load`))}async#a(e){let t=this[y],n=new J(t).getBrowserFrame();if(!n)return;let r=n.page.context.browser.settings,i=this.getAttribute(`type`);if(!e||!this[b]||i!==null&&i!==`application/x-ecmascript`&&i!==`application/x-javascript`&&!i.startsWith(`text/javascript`))return;let a;try{a=new URL(e,t.location.href)}catch{return}let o=a.toString();if(this.#e===o)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new U(`load`));else{let e=new t.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,V.notSupportedError);n.page.console.error(e),this.dispatchEvent(new U(`error`))}return}this.#e=o;let s=new tm(t),c=this.getAttribute(`async`)!==null||this.getAttribute(`defer`)!==null,l=null;if(c){let e=t[et],r=e.startTask();try{l=await s.fetch(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(t){n.page.console.error(t),this.dispatchEvent(new U(`error`)),e.endTask(r);return}e.endTask(r)}else try{l=s.fetchSync(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(e){n.page.console.error(e),this.dispatchEvent(new U(`error`));return}this[h][ke]=this;let u=new Gm(t).compile(l.virtualServerFile||o,l.content),d=new xm(t,t.location);u.execute({dynamicImport:d.importModule.bind(d),dispatchError:t[Bo].bind(t)}),this[h][ke]=null,this.dispatchEvent(new U(`load`))}static supports(e){switch(e){case`classic`:case`module`:case`importmap`:return!0;default:return!1}}},qm=class extends Ad{constructor(e,t){super(e,()=>q.querySelectorAll(t,`option`)[k]),this[Qe]=t}get selectedIndex(){return this[Qe].selectedIndex}set selectedIndex(e){this[Qe].selectedIndex=e}add(e,t){this[Qe].add(e,t)}remove(e){this[Qe].remove(e)}},Jm=class e extends Q{[Kt]=``;[qt]=new Kf(this);[bn]=null;[Wn]=null;[ur]=-1;[or];constructor(){super();let t=new Vc(this,[e,Q,Df,gd,rl]),n=new Proxy(this,{get:(e,n)=>{if(n in e||typeof n==`symbol`)return t.bind(n),e[n];let r=Number(n);if(!isNaN(r))return q.querySelectorAll(e,`option`)[k][r]},set(e,n,r){if(t.bind(n),typeof n==`symbol`)return e[n]=r,!0;let i=Number(n);if(isNaN(i))return e[n]=r,!0;if(!r||!(r instanceof Nm))throw new e[y].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=q.querySelectorAll(e,`option`)[k],o=e[A];for(;o.length;)e[In](o[0]);for(let t=0;t<=i;t++)t===i?e[Fn](r):a[t]?e[Fn](a[t]):e[Fn](e[h].createElement(`option`));return!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(q.querySelectorAll(e,`option`)[k])},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return isNaN(n)?!1:!!q.querySelectorAll(e,`option`)[k][n]},defineProperty(e,n,r){t.preventBinding(n);let i=Number(n);if(isNaN(i))return Object.defineProperty(e,n,r),!0;if(!r.value||!(r.value instanceof Nm))throw new e[y].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=q.querySelectorAll(e,`option`)[k],o=e[A];for(;o.length;)e[In](o[0]);for(let t=0;t<=i;t++)t===i?e[Fn](r.value):a[t]?e[Fn](a[t]):e[Fn](e[h].createElement(`option`));return!0},getOwnPropertyDescriptor(e,t){if(t in e)return Object.getOwnPropertyDescriptor(e,t);let n=Number(t);if(isNaN(n))return;let r=q.querySelectorAll(e,`option`)[k];if(r[n])return{value:r[n],writable:!0,enumerable:!0,configurable:!0}}});return this[or]=n,this[ot]=n,n}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[B].set(`onchange`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get length(){return q.querySelectorAll(this,`option`)[k].length}get options(){return this[bn]||(this[bn]=new qm(M,this)),this[bn]}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get multiple(){return this.getAttribute(`multiple`)!==null}set multiple(e){e?this.setAttribute(`multiple`,``):this.removeAttribute(`multiple`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get type(){return this.hasAttributeNS(null,`multiple`)?`select-multiple`:`select-one`}get value(){let e=q.querySelectorAll(this,`option`)[k];for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n[st])return n.value}return``}set value(e){let t=q.querySelectorAll(this,`option`)[k];this[ur]=-1;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.value===e?(r[st]=!0,r[Pe]=!0,this[ur]=n):r[st]=!1}}get selectedIndex(){return this[ur]}set selectedIndex(e){if(e=Number(e),isNaN(e))return;let t=q.querySelectorAll(this,`option`)[k];if(this[ur]=-1,typeof e==`number`&&!isNaN(e)){for(let e=0,n=t.length;e<n;e++)t[e][st]=!1;let n=t[e];n&&(n[st]=!0,n[Pe]=!0,this[ur]=e)}}get selectedOptions(){return this[Wn]||(this[Wn]=new Ad(M,()=>{let e=q.querySelectorAll(this,`option`)[k];if(e[Wn])return e[Wn];let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r[st]&&t.push(r)}return e[Wn]=t,t})),this[Wn]}get labels(){return qf.getAssociatedLabelElements(this)}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get willValidate(){return this.type!==`hidden`&&this.type!==`reset`&&this.type!==`button`&&!this.disabled}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}item(e){return this.options.item(e)}add(e,t){let n=q.querySelectorAll(this,`option`)[k];if(!t&&t!==0){let t=this[A];for(;t.length;)this[In](t[0]);for(let e of n)this[Fn](e);this[Fn](e);return}let r=this[y];if(typeof t!=`number`){if(!(t instanceof Nm))throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.`);t=n.indexOf(t)}if(!n[t])throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.`);let i=this[A];for(;i.length;)this[In](i[0]);for(let r=0,i=n.length;r<i;r++)r===t&&this[Fn](e),this[Fn](n[r])}remove(e){if(typeof e==`number`){let t=q.querySelectorAll(this,`option`)[k];if(!t[e])return;let n=this[A];for(;n.length;)this[In](n[0]);for(let n=0,r=t.length;n<r;n++)n!==e&&this[Fn](t[n])}else super.remove()}setCustomValidity(e){this[Kt]=String(e)}checkValidity(){let e=this.disabled||this[qt].valid;return e||this.dispatchEvent(new U(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[gt](e){let t=this.hasAttribute(`multiple`),n=q.querySelectorAll(this,`option`)[k],r=[];if(e&&(this[ur]=-1),!t)for(let t=0,i=n.length;t<i;t++){let i=n[t];e&&(i[st]=i===e,i===e&&(this[ur]=t)),i[st]&&r.push(i)}if(this.#e()===1&&!r.length){this[ur]=-1;for(let e=0,t=n.length;e<t;e++){let t=n[e],r=t[x],i=t.hasAttributeNS(null,`disabled`);if(r&&r[S]===H.elementNode&&r[C]===`OPTGROUP`&&r.hasAttributeNS(null,`disabled`)&&(i=!0),!i){t[st]=!0,this[ur]=e;break}}}else if(r.length>=2){this[ur]=-1;for(let e=0,t=n.length;e<t;e++)n[e][st]=e===r.length-1,e===r.length-1&&(this[ur]=e)}}#e(){if(this.hasAttributeNS(null,`size`)){let e=parseInt(this.getAttribute(`size`));if(!isNaN(e)&&e>=0)return e}return this.hasAttributeNS(null,`multiple`)?4:1}},Ym,Xm=class extends Q{[xr]=[];get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[B].set(`onslotchange`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}assign(...e){let t=this.getRootNode();if(t?.[br]!==`manual`)return;let n=t.host;if(n){for(let t of e)if(t instanceof gd&&n[A].includes(t)&&t[S]!==H.commentNode){if(t[Sr]){let e=t[Sr][xr].indexOf(t);e!==-1&&t[Sr][xr].splice(e,1)}t[Sr]=this,this[xr].push(t)}}}assignedNodes(e){return this.#e(this.name,e)}assignedElements(e){return this.#t(this.name,e)}[Pn](e=!1){return super[Pn](e)}[Jn](e,t){if(super[Jn](e,t),e[T]===`name`&&e[_]!==t?.[_]){let n=this.#e(t?.[_]),r=this.#e(e.value);if(n.length!==r.length)this.dispatchEvent(new U(`slotchange`,{bubbles:!0}));else for(let e=0,t=r.length;e<t;e++)if(n[e]!==r[e]){this.dispatchEvent(new U(`slotchange`,{bubbles:!0}));break}}}[Yn](e){super[Yn](e),e[T]===`name`&&e[_]&&this.#e(e.value).length>0&&this.dispatchEvent(new U(`slotchange`,{bubbles:!0}))}#e(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[br]===`manual`)return this[xr];let r=n.host,i=!!t?.flatten,a=[];for(let n of r[A]){let r=n.slot;if(e&&r&&r===e||!e&&!r)if(i&&n instanceof Ym)for(let e of n.assignedNodes(t))a.push(e);else a.push(n)}return a}#t(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[br]===`manual`){let e=[];for(let t of this[xr])t instanceof Df&&e.push(t);return e}let r=n.host,i=!!t?.flatten,a=[];for(let n of r[Xn]){let r=n.slot;if(e&&r===e||!e&&!r)if(i&&n instanceof Ym)for(let e of n.assignedElements(t))a.push(e);else a.push(n)}return a}};Ym=Xm;var Zm=class extends Q{get height(){let e=Number(this.getAttribute(`height`));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute(`height`,isNaN(t)||t<0?`0`:String(t))}get width(){let e=Number(this.getAttribute(`width`));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute(`width`,isNaN(t)||t<0?`0`:String(t))}get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get sizes(){return this.getAttribute(`sizes`)||``}set sizes(e){this.setAttribute(`sizes`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srcset(){return this.getAttribute(`srcset`)||``}set srcset(e){this.setAttribute(`srcset`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Qm=class extends Q{},$m=class extends Q{[tn]=null;[Gn]=this;[Hi]=!1;get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get disabled(){return this[Hi]}set disabled(e){this[Hi]=!!e}get sheet(){return this[b]?(this[tn]||(this[tn]=new this[h][y].CSSStyleSheet,this[tn].replaceSync(this.textContent)),this[tn]):null}[Te](){super[Te](),this[tn]=null}[Ne](){super[Ne](),this[tn]=null}[Kn](){this[tn]&&this[tn].replaceSync(this.textContent)}},eh=class extends Q{},th=class extends Q{get abbr(){return this.getAttribute(`abbr`)||``}set abbr(e){this.setAttribute(`abbr`,e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[C]===`TR`)return q.querySelectorAll(e,`td,th`)[k].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute(`colspan`));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute(`colspan`,isNaN(t)||t<1?`1`:String(t))}get headers(){return this.getAttribute(`headers`)||``}set headers(e){this.setAttribute(`headers`,String(e))}get rowSpan(){let e=Number(this.getAttribute(`rowspan`));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute(`rowspan`,isNaN(t)||t<1?`1`:String(t))}get scope(){return this.getAttribute(`scope`)||``}set scope(e){this.setAttribute(`scope`,e)}},nh=class extends Q{},rh=class extends Q{insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`tr`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`tr`);return e===-1||e===t.length?this.appendChild(n):this.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`tr`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},ih=class extends Q{[wr]=null;[Er]=null;get caption(){return q.querySelector(this,`caption`)}set caption(e){if(e){if(!(e instanceof eh))throw new this[y].TypeError(`Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.`);this.caption?.remove(),this.insertBefore(e,this.firstChild)}else this.caption?.remove()}get tHead(){return q.querySelector(this,`thead`)}set tHead(e){if(e){if(!(e instanceof rh))throw new this[y].TypeError(`Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tHead?.remove();let t=!1;for(let n of this[Xn])if(n[C]!==`CAPTION`&&n[C]!==`COLGROUP`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tHead?.remove()}get tFoot(){return q.querySelector(this,`tfoot`)}set tFoot(e){if(e){if(!(e instanceof rh))throw new this[y].TypeError(`Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tFoot?.remove();let t=!1;for(let n of this[Xn])if(n[C]!==`CAPTION`&&n[C]!==`COLGROUP`&&n[C]!==`THEAD`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tFoot?.remove()}get rows(){return this[wr]||(this[wr]=new Ad(M,()=>q.querySelectorAll(this,`tr`)[k])),this[wr]}get tBodies(){return this[Er]||(this[Er]=new Ad(M,()=>q.querySelectorAll(this,`tbody`)[k])),this[Er]}createTHead(){let e=this.tHead;if(e)return e;let t=this[h].createElement(`thead`);return this.tHead=t,t}deleteTHead(){this.tHead=null}createTFoot(){let e=this.tFoot;if(e)return e;let t=this[h].createElement(`tfoot`);return this.tFoot=t,t}deleteTFoot(){this.tFoot=null}createTBody(){let e=q.querySelectorAll(this,`tbody`)[k],t=this[h].createElement(`tbody`);if(e.length>0){let n=e[e.length-1];return n.parentNode?.insertBefore(t,n.nextSibling),t}return this.appendChild(t),t}createCaption(){let e=this.caption;if(e)return e;let t=this[h].createElement(`caption`);return this.caption=t,t}deleteCaption(){this.caption=null}insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`tr`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`tr`);if(e===-1||e===t.length){let e=q.querySelector(this,`tbody`);if(e)e.appendChild(n);else{let e=this[h].createElement(`tbody`);e.appendChild(n),this.appendChild(e)}return n}return t[e].parentNode?.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`tr`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},ah=class extends Q{[Cr]=null;get cells(){return this[Cr]||(this[Cr]=new Ad(M,()=>q.querySelectorAll(this,`td,th`)[k])),this[Cr]}get rowIndex(){let e=this.parentNode;for(;e;){if(e[C]===`TABLE`)return q.querySelectorAll(e,`tr`)[k].indexOf(this);e=e.parentNode}return-1}get sectionRowIndex(){let e=this.parentNode;for(;e;){if(e instanceof rh)return q.querySelectorAll(e,`tr`)[k].indexOf(this);e=e.parentNode}return-1}insertCell(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`td,th`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`td`);return e===-1||e===t.length?(this.appendChild(n),n):(t[e].parentNode?.insertBefore(n,t[e]),n)}deleteCell(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`td,th`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells in the row (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},oh=class extends Q{[xn]=this[h].createDocumentFragment();get content(){return this[xn]}get innerHTML(){return this.getHTML()}set innerHTML(e){let t=this[xn],n=t[A];for(;n.length;)t.removeChild(n[0]);new wf(this[y],{isTemplateDocumentFragment:!0}).parse(e,this[xn])}get firstChild(){return this[xn].firstChild}get lastChild(){return this[xn].lastChild}getInnerHTML(e){let t=new hf,n=this[xn],r=``;for(let e of n[A])r+=t.serializeToString(e);return r}getHTML(e){let t=new hf,n=this[xn],r=``;for(let e of n[A])r+=t.serializeToString(e);return r}[Fn](e,t=!1){return this[xn][Fn](e,t)}[In](e){return this[xn][In](e)}[Ln](e,t,n=!1){return this[xn][Ln](e,t,n)}[Rn](e,t){return this[xn][Rn](e,t)}[Pn](e=!1){let t=super[Pn](e);return t[xn]=this[xn].cloneNode(e),t}},sh=class extends Q{type=`textarea`;[Kt]=``;[qt]=new Kf(this);[_]=null;[pt]=this;[Re]=null;#e=null;#t=null;#n=Gp.none;get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get defaultValue(){return this.textContent}set defaultValue(e){this.textContent=e}get minLength(){let e=this.getAttribute(`minlength`);return e===null?-1:parseInt(e)}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){let e=this.getAttribute(`maxlength`);return e===null?-1:parseInt(e)}set maxLength(e){this.setAttribute(`maxlength`,String(e))}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){this.setAttribute(`placeholder`,e)}get inputMode(){return this.getAttribute(`inputmode`)||``}set inputMode(e){this.setAttribute(`inputmode`,e)}get cols(){return this.getAttribute(`cols`)||``}set cols(e){this.setAttribute(`cols`,e)}get rows(){return this.getAttribute(`rows`)||``}set rows(e){this.setAttribute(`rows`,e)}get autocomplete(){return this.getAttribute(`autocomplete`)||``}set autocomplete(e){this.setAttribute(`autocomplete`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){e?this.setAttribute(`readonly`,``):this.removeAttribute(`readonly`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get value(){return this[_]===null?this.textContent:this[_]}set value(e){let t=this[_];this[_]=e,t!==this[_]&&(this.#e=this[_].length,this.#t=this[_].length,this.#n=Gp.none)}get selectionStart(){return this.#e===null?this.value.length:this.#e}set selectionStart(e){this.setSelectionRange(e,Math.max(e,this.selectionEnd),this.#n)}get selectionEnd(){return this.#t===null?this.value.length:this.#t}set selectionEnd(e){this.setSelectionRange(this.selectionStart,e,this.#n)}get selectionDirection(){return this.#n}set selectionDirection(e){this.setSelectionRange(this.selectionStart,this.selectionEnd,e)}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get textLength(){return this.value.length}get labels(){return qf.getAssociatedLabelElements(this)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}select(){this.#e=0,this.#t=this.value.length,this.#n=Gp.none,this.dispatchEvent(new U(`select`,{bubbles:!0,cancelable:!1}))}setSelectionRange(e,t,n=`none`){this.#t=Math.min(t,this.value.length),this.#e=Math.min(e,this.selectionEnd),this.#n=n===Gp.forward||n===Gp.backward?n:Gp.none,this.dispatchEvent(new U(`select`,{bubbles:!0,cancelable:!1}))}setRangeText(e,t=null,n=null,r=Up.preserve){if(t===null&&(t=this.#e===null?0:this.#e),n===null&&(n=this.#t===null?this.value.length:this.#t),t>n)throw new this[y].DOMException(`The index is not in the allowed range.`,V.invalidStateError);t=Math.min(t,this.value.length),n=Math.min(n,this.value.length);let i=this.value,a=this.#e===null?0:this.#e,o=this.#t===null?this.value.length:this.#t;this.value=i.slice(0,t)+e+i.slice(n);let s=t+this.value.length;switch(r){case Up.select:this.setSelectionRange(t,s);break;case Up.start:this.setSelectionRange(t,t);break;case Up.end:this.setSelectionRange(s,s);break;default:let r=e.length-(n-t);a>n?a+=r:a>t&&(a=t),o>n?o+=r:o>t&&(o=s),this.setSelectionRange(a,o);break}}setCustomValidity(e){this[Kt]=String(e)}checkValidity(){let e=this.disabled||this.readOnly||this[qt].valid;return e||this.dispatchEvent(new U(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[Pn](e=!1){let t=super[Pn](e);return t[_]=this[_],t.#e=this.#e,t.#t=this.#t,t.#n=this.#n,t}[it](){this[_]===null&&(this.#e=null,this.#t=null,this.#n=Gp.none)}},ch=class extends Q{get dateTime(){return this.getAttribute(`dateTime`)||``}set dateTime(e){this.setAttribute(`dateTime`,e)}},lh=class extends Q{get text(){let e=``;for(let t of this[A])t[S]===H.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}},uh=class extends Q{get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[B].set(`oncuechange`,e)}get kind(){let e=this.getAttribute(`kind`);return e===null?Rf.subtitles:Rf[e]?e:Rf.metadata}set kind(e){Rf[e]||(e=Rf.metadata),this.setAttribute(`kind`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srclang(){return this.getAttribute(`srclang`)||``}set srclang(e){this.setAttribute(`srclang`,e)}get label(){return this.getAttribute(`label`)||``}set label(e){this.setAttribute(`label`,e)}get default(){return this.hasAttribute(`default`)}set default(e){e?this.setAttribute(`default`,``):this.removeAttribute(`default`)}get readyState(){return 0}get track(){let e=new this[y].TextTrack(M);return e[Fr]=this.kind,e[Ir]=this.label,e[Lr]=this.srclang,e[Sn]=this.default?`showing`:`disabled`,e[Rr]=this.id,e}},dh=class extends Q{},fh=class extends Q{},ph=class extends zf{},mh=class extends xd{[S]=H.processingInstructionNode;[ft]=``;get target(){return this[ft]}},hh=class extends gd{[be]=null;[at]=this;[S]=H.documentFragmentNode;get children(){if(!this[be]){let e=this[Xn];this[be]=new Ad(M,()=>e)}return this[be]}get childElementCount(){return this[Xn].length}get firstElementChild(){return this[Xn][0]??null}get lastElementChild(){let e=this[Xn];return e[e.length-1]??null}get textContent(){let e=``;for(let t of this[A])(t[S]===H.elementNode||t[S]===H.textNode)&&(e+=t.textContent);return e}set textContent(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);e&&this.appendChild(this[h].createTextNode(e))}append(...e){jd.append(this,...e)}prepend(...e){jd.prepend(this,...e)}replaceChildren(...e){jd.replaceChildren(this,...e)}querySelectorAll(e){return q.querySelectorAll(this,e)}querySelector(e){return q.querySelector(this,e)}getElementById(e){return jd.getElementById(this,e)}},gh=class extends hh{[Vt]=[];[Sn]=`open`;[Cn]=null;[_r]=!1;[vr]=!1;[yr]=!1;[br]=`named`;[B]=new Map;get onslotchange(){return this[B].get(`onslotchange`)??null}set onslotchange(e){this[B].set(`onslotchange`,e)}get mode(){return this[Sn]}get host(){return this[Cn]}get clonable(){return this[_r]}get delegatesFocus(){return this[vr]}get serializable(){return this[yr]}get slotAssignment(){return this[br]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let e=new hf,t=``;for(let n of this[A])t+=e.serializeToString(n);return t}set innerHTML(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);new wf(this[y]).parse(e,this)}get adoptedStyleSheets(){return this[Vt]}set adoptedStyleSheets(e){this[Vt]=e}get activeElement(){let e=this[h][fe],t=e?.getRootNode();if(!t||t===this[h])return null;if(t===this)return e;for(;t&&t!==this;)e=t.host,t=e.getRootNode();return e}getAnimations(){return[]}setHTMLUnsafe(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);new wf(this[y]).parse(e,this)}toString(){return this.innerHTML}[Pn](e=!1){let t=super[Pn](e);return t[Sn]=this[Sn],t[_r]=this[_r],t[vr]=this[vr],t[yr]=this[yr],t[br]=this[br],t}},_h=class extends Df{[dt]=null;#e=null;get onabort(){return Z.getEventListener(this,`onabort`)}set onabort(e){this[B].set(`onabort`,e)}get onanimationend(){return Z.getEventListener(this,`onanimationend`)}set onanimationend(e){this[B].set(`onanimationend`,e)}get onanimationiteration(){return Z.getEventListener(this,`onanimationiteration`)}set onanimationiteration(e){this[B].set(`onanimationiteration`,e)}get onanimationstart(){return Z.getEventListener(this,`onanimationstart`)}set onanimationstart(e){this[B].set(`onanimationstart`,e)}get onauxclick(){return Z.getEventListener(this,`onauxclick`)}set onauxclick(e){this[B].set(`onauxclick`,e)}get onblur(){return Z.getEventListener(this,`onblur`)}set onblur(e){this[B].set(`onblur`,e)}get oncancel(){return Z.getEventListener(this,`oncancel`)}set oncancel(e){this[B].set(`oncancel`,e)}get oncanplay(){return Z.getEventListener(this,`oncanplay`)}set oncanplay(e){this[B].set(`oncanplay`,e)}get oncanplaythrough(){return Z.getEventListener(this,`oncanplaythrough`)}set oncanplaythrough(e){this[B].set(`oncanplaythrough`,e)}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[B].set(`onchange`,e)}get onclick(){return Z.getEventListener(this,`onclick`)}set onclick(e){this[B].set(`onclick`,e)}get onclose(){return Z.getEventListener(this,`onclose`)}set onclose(e){this[B].set(`onclose`,e)}get oncontextmenu(){return Z.getEventListener(this,`oncontextmenu`)}set oncontextmenu(e){this[B].set(`oncontextmenu`,e)}get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[B].set(`oncopy`,e)}get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[B].set(`oncuechange`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[B].set(`oncut`,e)}get ondblclick(){return Z.getEventListener(this,`ondblclick`)}set ondblclick(e){this[B].set(`ondblclick`,e)}get ondrag(){return Z.getEventListener(this,`ondrag`)}set ondrag(e){this[B].set(`ondrag`,e)}get ondragend(){return Z.getEventListener(this,`ondragend`)}set ondragend(e){this[B].set(`ondragend`,e)}get ondragenter(){return Z.getEventListener(this,`ondragenter`)}set ondragenter(e){this[B].set(`ondragenter`,e)}get ondragleave(){return Z.getEventListener(this,`ondragleave`)}set ondragleave(e){this[B].set(`ondragleave`,e)}get ondragover(){return Z.getEventListener(this,`ondragover`)}set ondragover(e){this[B].set(`ondragover`,e)}get ondragstart(){return Z.getEventListener(this,`ondragstart`)}set ondragstart(e){this[B].set(`ondragstart`,e)}get ondrop(){return Z.getEventListener(this,`ondrop`)}set ondrop(e){this[B].set(`ondrop`,e)}get ondurationchange(){return Z.getEventListener(this,`ondurationchange`)}set ondurationchange(e){this[B].set(`ondurationchange`,e)}get onemptied(){return Z.getEventListener(this,`onemptied`)}set onemptied(e){this[B].set(`onemptied`,e)}get onended(){return Z.getEventListener(this,`onended`)}set onended(e){this[B].set(`onended`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[B].set(`onerror`,e)}get onfocus(){return Z.getEventListener(this,`onfocus`)}set onfocus(e){this[B].set(`onfocus`,e)}get onformdata(){return Z.getEventListener(this,`onformdata`)}set onformdata(e){this[B].set(`onformdata`,e)}get ongotpointercapture(){return Z.getEventListener(this,`ongotpointercapture`)}set ongotpointercapture(e){this[B].set(`ongotpointercapture`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get oninvalid(){return Z.getEventListener(this,`oninvalid`)}set oninvalid(e){this[B].set(`oninvalid`,e)}get onkeydown(){return Z.getEventListener(this,`onkeydown`)}set onkeydown(e){this[B].set(`onkeydown`,e)}get onkeypress(){return Z.getEventListener(this,`onkeypress`)}set onkeypress(e){this[B].set(`onkeypress`,e)}get onkeyup(){return Z.getEventListener(this,`onkeyup`)}set onkeyup(e){this[B].set(`onkeyup`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[B].set(`onload`,e)}get onloadeddata(){return Z.getEventListener(this,`onloadeddata`)}set onloadeddata(e){this[B].set(`onloadeddata`,e)}get onloadedmetadata(){return Z.getEventListener(this,`onloadedmetadata`)}set onloadedmetadata(e){this[B].set(`onloadedmetadata`,e)}get onloadstart(){return Z.getEventListener(this,`onloadstart`)}set onloadstart(e){this[B].set(`onloadstart`,e)}get onlostpointercapture(){return Z.getEventListener(this,`onlostpointercapture`)}set onlostpointercapture(e){this[B].set(`onlostpointercapture`,e)}get onmousedown(){return Z.getEventListener(this,`onmousedown`)}set onmousedown(e){this[B].set(`onmousedown`,e)}get onmouseenter(){return Z.getEventListener(this,`onmouseenter`)}set onmouseenter(e){this[B].set(`onmouseenter`,e)}get onmouseleave(){return Z.getEventListener(this,`onmouseleave`)}set onmouseleave(e){this[B].set(`onmouseleave`,e)}get onmousemove(){return Z.getEventListener(this,`onmousemove`)}set onmousemove(e){this[B].set(`onmousemove`,e)}get onmouseout(){return Z.getEventListener(this,`onmouseout`)}set onmouseout(e){this[B].set(`onmouseout`,e)}get onmouseover(){return Z.getEventListener(this,`onmouseover`)}set onmouseover(e){this[B].set(`onmouseover`,e)}get onmouseup(){return Z.getEventListener(this,`onmouseup`)}set onmouseup(e){this[B].set(`onmouseup`,e)}get onmousewheel(){return Z.getEventListener(this,`onmousewheel`)}set onmousewheel(e){this[B].set(`onmousewheel`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[B].set(`onpaste`,e)}get onpause(){return Z.getEventListener(this,`onpause`)}set onpause(e){this[B].set(`onpause`,e)}get onplay(){return Z.getEventListener(this,`onplay`)}set onplay(e){this[B].set(`onplay`,e)}get onplaying(){return Z.getEventListener(this,`onplaying`)}set onplaying(e){this[B].set(`onplaying`,e)}get onpointercancel(){return Z.getEventListener(this,`onpointercancel`)}set onpointercancel(e){this[B].set(`onpointercancel`,e)}get onpointerdown(){return Z.getEventListener(this,`onpointerdown`)}set onpointerdown(e){this[B].set(`onpointerdown`,e)}get onpointerenter(){return Z.getEventListener(this,`onpointerenter`)}set onpointerenter(e){this[B].set(`onpointerenter`,e)}get onpointerleave(){return Z.getEventListener(this,`onpointerleave`)}set onpointerleave(e){this[B].set(`onpointerleave`,e)}get onpointermove(){return Z.getEventListener(this,`onpointermove`)}set onpointermove(e){this[B].set(`onpointermove`,e)}get onpointerout(){return Z.getEventListener(this,`onpointerout`)}set onpointerout(e){this[B].set(`onpointerout`,e)}get onpointerover(){return Z.getEventListener(this,`onpointerover`)}set onpointerover(e){this[B].set(`onpointerover`,e)}get onpointerrawupdate(){return Z.getEventListener(this,`onpointerrawupdate`)}set onpointerrawupdate(e){this[B].set(`onpointerrawupdate`,e)}get onpointerup(){return Z.getEventListener(this,`onpointerup`)}set onpointerup(e){this[B].set(`onpointerup`,e)}get onprogress(){return Z.getEventListener(this,`onprogress`)}set onprogress(e){this[B].set(`onprogress`,e)}get onratechange(){return Z.getEventListener(this,`onratechange`)}set onratechange(e){this[B].set(`onratechange`,e)}get onreset(){return Z.getEventListener(this,`onreset`)}set onreset(e){this[B].set(`onreset`,e)}get onresize(){return Z.getEventListener(this,`onresize`)}set onresize(e){this[B].set(`onresize`,e)}get onscroll(){return Z.getEventListener(this,`onscroll`)}set onscroll(e){this[B].set(`onscroll`,e)}get onscrollend(){return Z.getEventListener(this,`onscrollend`)}set onscrollend(e){this[B].set(`onscrollend`,e)}get onscrollsnapchange(){return Z.getEventListener(this,`onscrollsnapchange`)}set onscrollsnapchange(e){this[B].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return Z.getEventListener(this,`onscrollsnapchanging`)}set onscrollsnapchanging(e){this[B].set(`onscrollsnapchanging`,e)}get onsecuritypolicyviolation(){return Z.getEventListener(this,`onsecuritypolicyviolation`)}set onsecuritypolicyviolation(e){this[B].set(`onsecuritypolicyviolation`,e)}get onseeked(){return Z.getEventListener(this,`onseeked`)}set onseeked(e){this[B].set(`onseeked`,e)}get onseeking(){return Z.getEventListener(this,`onseeking`)}set onseeking(e){this[B].set(`onseeking`,e)}get onselect(){return Z.getEventListener(this,`onselect`)}set onselect(e){this[B].set(`onselect`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get onselectstart(){return Z.getEventListener(this,`onselectstart`)}set onselectstart(e){this[B].set(`onselectstart`,e)}get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[B].set(`onslotchange`,e)}get onstalled(){return Z.getEventListener(this,`onstalled`)}set onstalled(e){this[B].set(`onstalled`,e)}get onsubmit(){return Z.getEventListener(this,`onsubmit`)}set onsubmit(e){this[B].set(`onsubmit`,e)}get onsuspend(){return Z.getEventListener(this,`onsuspend`)}set onsuspend(e){this[B].set(`onsuspend`,e)}get ontimeupdate(){return Z.getEventListener(this,`ontimeupdate`)}set ontimeupdate(e){this[B].set(`ontimeupdate`,e)}get ontoggle(){return Z.getEventListener(this,`ontoggle`)}set ontoggle(e){this[B].set(`ontoggle`,e)}get ontransitioncancel(){return Z.getEventListener(this,`ontransitioncancel`)}set ontransitioncancel(e){this[B].set(`ontransitioncancel`,e)}get ontransitionend(){return Z.getEventListener(this,`ontransitionend`)}set ontransitionend(e){this[B].set(`ontransitionend`,e)}get ontransitionrun(){return Z.getEventListener(this,`ontransitionrun`)}set ontransitionrun(e){this[B].set(`ontransitionrun`,e)}get ontransitionstart(){return Z.getEventListener(this,`ontransitionstart`)}set ontransitionstart(e){this[B].set(`ontransitionstart`,e)}get onvolumechange(){return Z.getEventListener(this,`onvolumechange`)}set onvolumechange(e){this[B].set(`onvolumechange`,e)}get onwaiting(){return Z.getEventListener(this,`onwaiting`)}set onwaiting(e){this[B].set(`onwaiting`,e)}get onwheel(){return Z.getEventListener(this,`onwheel`)}set onwheel(e){this[B].set(`onwheel`,e)}get ownerSVGElement(){let e=this[x];for(;e;){if(e[O]===`svg`)return e;e=e[x]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#e??=new Af(M,this)}get style(){return this[dt]||(this[dt]=new bl(M,this[y],{element:this})),this[dt]}get tabIndex(){let e=this.getAttribute(`tabindex`);return e===null?-1:Number(e)}set tabIndex(e){e===-1?this.removeAttribute(`tabindex`):this.setAttribute(`tabindex`,String(e))}blur(){Of.blur(this)}focus(){Of.focus(this)}},vh=class{observe(){}unobserve(){}disconnect(){}},yh=class extends rl{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null},bh=class extends yh{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=``},xh=class extends rl{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let e=new bh;this.currentScreen=e,this.screens=[e]}},Sh=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(Y.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(Y.isInclusiveAncestor(e.node,t.node)){let n=t.node;for(;n[x]!==e.node;)n=n[x];if(n[x][A].indexOf(n)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[S]===H.documentTypeNode)throw new vs(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(e.offset>Y.getNodeLength(e.node))throw new vs(`Offset out of bound.`,V.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:Y.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return Y.isInclusiveAncestor(e,t.startContainer)&&!Y.isInclusiveAncestor(e,t.endContainer)||!Y.isInclusiveAncestor(e,t.startContainer)&&Y.isInclusiveAncestor(e,t.endContainer)}},Ch;(function(e){e[e.forwards=1]=`forwards`,e[e.backwards=-1]=`backwards`,e[e.directionless=0]=`directionless`})(Ch||={});var wh=Ch,Th=class{#e;#t=null;#n=wh.directionless;constructor(e){this.#e=e}get rangeCount(){return+!!this.#t}get isCollapsed(){return this.#t===null||this.#t.collapsed}get type(){return this.#t?this.#t.collapsed?`Caret`:`Range`:`None`}get anchorNode(){return this.#t?this.#n===wh.forwards?this.#t.startContainer:this.#t.endContainer:null}get anchorOffset(){return this.#t?this.#n===wh.forwards?this.#t.startOffset:this.#t.endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.#t?this.#n===wh.forwards?this.#t.endContainer:this.#t.startContainer:null}get focusOffset(){return this.#t?this.#n===wh.forwards?this.#t.endOffset:this.#t.startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new this.#e[y].TypeError(`Failed to execute addRange on Selection. Parameter 1 is not of type Range.`);!this.#t&&e[h]===this.#e&&this.#r(e)}getRangeAt(e){if(!this.#t||e!==0)throw new this.#e[y].DOMException(`Invalid range index.`,V.indexSizeError);return this.#t}removeRange(e){if(this.#t!==e)throw new this.#e[y].DOMException(`Invalid range.`,V.notFoundError);this.#r(null)}removeAllRanges(){this.#r(null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[S]===H.documentTypeNode)throw new this.#e[y].DOMException(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(t>Y.getNodeLength(e))throw new this.#e[y].DOMException(`Invalid range index.`,V.indexSizeError);if(e!==this.#e&&e[h]!==this.#e)return;let n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(this.#t===null)throw new this.#e[y].DOMException(`There is no selection to collapse.`,V.invalidStateError);let{node:e,offset:t}=this.#t[p],n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}collapseToStart(){if(!this.#t)throw new this.#e[y].DOMException(`There is no selection to collapse.`,V.invalidStateError);let{node:e,offset:t}=this.#t[g],n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}containsNode(e,t=!1){if(!this.#t||e[h]!==this.#e)return!1;let n=Sh.compareBoundaryPointsPosition(this.#t[g],{node:e,offset:0})===-1,r=Sh.compareBoundaryPointsPosition(this.#t[p],{node:e,offset:Y.getNodeLength(e)})===1;return t?n||r:n&&r}deleteFromDocument(){this.#t&&this.#t.deleteContents()}extend(e,t){if(e!==this.#e&&e[h]!==this.#e)return;if(!this.#t)throw new this.#e[y].DOMException(`There is no selection to extend.`,V.invalidStateError);let n=this.anchorNode,r=this.anchorOffset,i=new this.#e[y].Range;i[g].node=e,i[g].offset=0,i[p].node=e,i[p].offset=0,e[h]===this.#t[h]?Sh.compareBoundaryPointsPosition({node:n,offset:r},{node:e,offset:t})<=0?(i[g].node=n,i[g].offset=r,i[p].node=e,i[p].offset=t):(i[g].node=e,i[g].offset=t,i[p].node=n,i[p].offset=r):(i[g].offset=t,i[p].offset=t),this.#r(i),this.#n=Sh.compareBoundaryPointsPosition({node:e,offset:t},{node:n,offset:r})===-1?wh.backwards:wh.forwards}selectAllChildren(e){if(e[S]===H.documentTypeNode)throw new this.#e[y].DOMException(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(e!==this.#e&&e[h]!==this.#e)return;let t=e[A].length,n=new this.#e[y].Range;n[g].node=e,n[g].offset=0,n[p].node=e,n[p].offset=t,this.#r(n)}setBaseAndExtent(e,t,n,r){if(t>Y.getNodeLength(e)||r>Y.getNodeLength(n))throw new this.#e[y].DOMException(`Invalid anchor or focus offset.`,V.indexSizeError);if(e!==this.#e&&e[h]!==this.#e||n!==this.#e&&n[h]!==this.#e)return;let i={node:e,offset:t},a={node:n,offset:r},o=new this.#e[y].Range;Sh.compareBoundaryPointsPosition(i,a)===-1?(o[g]=i,o[p]=a):(o[g]=a,o[p]=i),this.#r(o),this.#n=Sh.compareBoundaryPointsPosition(a,i)===-1?wh.backwards:wh.forwards}toString(){return this.#t?this.#t.toString():``}#r(e){let t=this.#t;this.#t=e,this.#n=e===null?wh.directionless:wh.forwards,t!==this.#t&&this.#e.dispatchEvent(new U(`selectionchange`))}},Eh=class e{[je]={};constructor(){let t=this[je],n=new Vc(this,[e]);return new Proxy(this,{get:(e,r)=>{if(r in e||typeof r==`symbol`)return n.bind(r),e[r];if(r in t)return t[r]},set(e,r,i){return n.bind(r),r in e||typeof r==`symbol`||(t[String(r)]=String(i)),!0},deleteProperty(e,n){return n in t?(delete t[String(n)],!0):!1},ownKeys(){return Object.keys(t)},has(e,n){return n in e||n in t},defineProperty(e,r,i){return n.preventBinding(r),r in e?(Object.defineProperty(e,r,i),!0):i.value===void 0?!1:(t[String(r)]=String(i.value),!0)},getOwnPropertyDescriptor(e,n){if(n in e)return;let r=t[String(n)];if(r!==void 0)return{value:r,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[je]).length}key(e){let t=Object.keys(this[je])[e];return t===void 0?null:t}setItem(e,t){this[je][e]=String(t)}getItem(e){return this[je][e]===void 0?null:this[je][e]}removeItem(e){delete this[je][e]}clear(){let e=this[je];for(let t of Object.keys(e))delete e[t]}},Dh={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048},Oh={1:Dh.SHOW_ELEMENT,2:Dh.SHOW_ATTRIBUTE,3:Dh.SHOW_TEXT,4:Dh.SHOW_CDATA_SECTION,5:Dh.SHOW_ENTITY_REFERENCE,6:Dh.SHOW_PROCESSING_INSTRUCTION,7:Dh.SHOW_PROCESSING_INSTRUCTION,8:Dh.SHOW_COMMENT,9:Dh.SHOW_DOCUMENT,10:Dh.SHOW_DOCUMENT_TYPE,11:Dh.SHOW_DOCUMENT_FRAGMENT,12:Dh.SHOW_NOTATION},kh;(function(e){e.first=`first`,e.last=`last`})(kh||={});var Ah;(function(e){e.next=`next`,e.previous=`previous`})(Ah||={});var jh=class{root;whatToShow=-1;filter=null;#e=null;constructor(e,t=-1,n=null){if(!(e instanceof gd))throw new vs(`Parameter 1 was not of type Node.`);this.root=e,this.whatToShow=t,this.filter=n,this.#e=e}get currentNode(){return this.#e}set currentNode(e){if(!(e instanceof gd))throw new this.root[y].TypeError(`Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.`);this.#e=e}parentNode(){let e=this.#e;for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Do](e)===Dh.FILTER_ACCEPT)return this.#e=e,this.#e;return null}firstChild(){return this.#t(kh.first)}lastChild(){return this.#t(kh.last)}nextSibling(){return this.#n(Ah.next)}previousSibling(){return this.#n(Ah.previous)}previousNode(){let e=this.#e;for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let e=t,n=this[Do](e);for(;n!==Dh.FILTER_REJECT&&e[A].length;)e=e.lastChild,n=this[Do](e);if(n===Dh.FILTER_ACCEPT)return this.#e=e,e;t=e.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Do](e)===Dh.FILTER_ACCEPT)return this.#e=e,e}return null}nextNode(){let e=this.#e,t=Dh.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==Dh.FILTER_REJECT&&e[A].length;)if(e=e.firstChild,t=this[Do](e),t===Dh.FILTER_ACCEPT)return this.#e=e,e;for(;e!==null;){if(e===this.root)return null;let t=e.nextSibling;if(t!==null){e=t;break}e=e.parentNode}if(e===null)return null;if(t=this[Do](e),t===Dh.FILTER_ACCEPT)return this.#e=e,e}}[Do](e){let t=Oh[e.nodeType];return t&&(this.whatToShow&t)==0?Dh.FILTER_SKIP:typeof this.filter==`function`?this.filter(e):this.filter?this.filter.acceptNode(e):Dh.FILTER_ACCEPT}#t(e){let t=this.#e;if(!t)return null;for(t=e===kh.first?t.firstChild:t.lastChild;t!==null;){let n=this[Do](t);if(n===Dh.FILTER_ACCEPT)return this.#e=t,t;if(n===Dh.FILTER_SKIP){let n=e===kh.first?t.firstChild:t.lastChild;if(n!==null){t=n;continue}}for(;t!==null;){let n=e===kh.first?t.nextSibling:t.previousSibling;if(n!==null){t=n;break}let r=t.parentNode;if(r===null||r===this.root||r===this.#e)return null;t=r}}return null}#n(e){let t=this.#e;if(!t||t===this.root)return null;for(;;){let n=e===Ah.next?t.nextSibling:t.previousSibling;for(;n!==null;){let t=n,r=this[Do](t);if(r===Dh.FILTER_ACCEPT)return this.#e=t,t;n=e===Ah.next?t.firstChild:t.lastChild,(r===Dh.FILTER_REJECT||n===null)&&(n=e===Ah.next?t.nextSibling:t.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Do](t)===Dh.FILTER_ACCEPT)return null}}},Mh=class{#e;#t=-1;#n=null;#r;#i=!0;constructor(e,t=-1,n=null){this.#e=e,this.#t=t,this.#n=n,this.#r=new jh(e,t,n)}get root(){return this.#e}get whatToShow(){return this.#t}get filter(){return this.#n}nextNode(){return this.#i?(this.#i=!1,this.#r[Do](this.#e)===Dh.FILTER_ACCEPT?this.#e:this.#r.nextNode()):this.#r.nextNode()}previousNode(){return this.#r.previousNode()}},Nh=class{serializeToString(e){return this.#e(e)}#e(e,t=null,n=null){switch(e[S]){case H.elementNode:let r=e,i=r[O],a=``,o=this.#t(r,n),s=r[w]===Il.html?r[wt]:this.#n(r,o),c=`${s?s+`:`:``}${i}`,l=s?t:r[w]||t,u=this.#r(r,s,t,n),d=l===Il.html&&i===`template`?e.content[A]:e[A];for(let e of d)a+=this.#e(e,l,o);return!a&&l===Il.html&&Id[i.toLowerCase()]?.contentModel===X.noDescendants?`<${c}${u} />`:!a&&l!==Il.html?`<${c}${u}/>`:`<${c}${u}>${a}</${c}>`;case gd.DOCUMENT_FRAGMENT_NODE:case gd.DOCUMENT_NODE:let f=``;e[Eo]&&(f+=this.#e(e[Eo],t,new Map(n)));for(let r of e[A])f+=this.#e(r,t,new Map(n));return f;case H.commentNode:return`<!--${e.textContent}-->`;case H.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case H.textNode:let ee=e.parentElement;return ee&&Id[ee[O]]?.contentModel===X.rawText?e.textContent:mf.encodeTextContent(e.textContent);case H.documentTypeNode:let te=e,ne=te.publicId?` PUBLIC`:te.systemId?` SYSTEM`:``,re=te.publicId?` "${te.publicId}"`:``,ie=te.systemId?` "${te.systemId}"`:``;return`<!DOCTYPE ${te.name}${ne}${re}${ie}>`}return``}#t(e,t){let n=new Map(t);for(let t of e[kt][k].values())t[w]===Il.xmlns&&t[wt]&&n.set(t[_],t[O]);return n}#n(e,t){if(e[wt]&&!e[w])throw Error(`Element has a prefix but no namespace.`);if(!e[wt]||!t)return null;let n=t.get(e[w]);if(n)return n;let r=new Set(t.values());if(r.has(e[wt])){let n=1;for(;r.has(`n`+n);)n++;return t.set(e[w],`n`+n),`n`+n}return t.set(e[w],e[wt]),e[wt]}#r(e,t,n,r){let i=``,a=``,o=new Set;for(let n of e[kt][k].values())n[w]===Il.xmlns?t&&n[O]===t&&e[w]?(a+=` xmlns:${t}="${mf.encodeXMLAttributeValue(e[w])}"`,o.add(e[w])):!t&&n[T]===`xmlns`&&e[w]?(a+=` xmlns="${mf.encodeXMLAttributeValue(e[w])}"`,o.add(e[w])):(a+=` ${n[T]}="${mf.encodeXMLAttributeValue(n[_])}"`,o.add(n[_])):i+=` ${n[T]}="${mf.encodeXMLAttributeValue(n[_])}"`;return e[w]&&n!==e[w]&&!o.has(e[w])&&(t&&!r?.has(e[w])?a+=` xmlns:${t}="${mf.encodeXMLAttributeValue(e[w])}"`:!t&&n!==e[w]&&(a+=` xmlns="${mf.encodeXMLAttributeValue(e[w])}"`)),a+i}},Ph=new ue(`
|
|
106
|
+
`||n===` `;)t--,n=e[t];return n||`;`}},Km=class extends Q{[ns]=!1;[Ro]=null;#e=null;get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[B].set(`onerror`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[B].set(`onload`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get blocking(){return this[Ro]||(this[Ro]=new kd(M,this,`blocking`)),this[Ro]}set blocking(e){this.setAttribute(`blocking`,e)}get crossOrigin(){return this.getAttribute(`crossorigin`)||``}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get fetchPriority(){let e=this.getAttribute(`fetchpriority`);switch(e){case`high`:case`low`:case`normal`:return e;default:return`auto`}}set fetchPriority(e){this.setAttribute(`fetchpriority`,e)}get noModule(){return this.getAttribute(`nomodule`)!==null}set noModule(e){e?this.setAttribute(`nomodule`,``):this.removeAttribute(`nomodule`)}get integrity(){return this.getAttribute(`integrity`)||``}set integrity(e){this.setAttribute(`integrity`,e)}get referrerPolicy(){let e=this.getAttribute(`referrerpolicy`);switch(e){case`no-referrer`:case`no-referrer-when-downgrade`:case`same-origin`:case`origin`:case`strict-origin`:case`origin-when-cross-origin`:case`strict-origin-when-cross-origin`:case`unsafe-url`:return e;default:return``}}set referrerPolicy(e){this.setAttribute(`referrerpolicy`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e)}get charset(){return this.getAttribute(`charset`)||``}set charset(e){this.setAttribute(`charset`,e)}get lang(){return this.getAttribute(`lang`)||``}set lang(e){this.setAttribute(`lang`,e)}get async(){return this.getAttribute(`async`)!==null}set async(e){e?this.setAttribute(`async`,``):this.removeAttribute(`async`)}get defer(){return this.getAttribute(`defer`)!==null}set defer(e){e?this.setAttribute(`defer`,``):this.removeAttribute(`defer`)}get text(){return this.textContent}set text(e){this.textContent=e}[Pn](e=!1){return super[Pn](e)}[we](){let e=new J(this[y]).getSettings();if(super[we](),this[ns])return;let t=this.getAttribute(`src`);if(t!==null)this.getAttribute(`type`)===`module`?this.#i(t):this.#a(t);else if(e&&e.enableJavaScriptEvaluation){let e=this.textContent,t=this.getAttribute(`type`);e&&(t===`module`?this.#t(e):t===`importmap`?this.#n(e):(t===null||t===`application/x-ecmascript`||t===`application/x-javascript`||t.startsWith(`text/javascript`))&&this.#r(e))}}[Jn](e,t){super[Jn](e,t),e[T]===`src`&&e[_]!==null&&this[b]&&(this.getAttribute(`type`)===`module`?this.#i(e[_]):this.#a(e[_]))}#t(e){let t=this[h].location,n=this[y],r=new J(n).getSettings();if(!new J(n).getBrowserFrame()||!r||!r.enableJavaScriptEvaluation)return;this[h][ke]=this;let i=new bm({window:n,url:t,source:e,factory:new xm(n,t)});r.disableErrorCapturing||r.errorCapture!==Rs.tryAndCatch?i.evaluate():i.evaluate().catch(e=>{n[Bo](e)}),this[h][ke]=null,this.dispatchEvent(new U(`load`))}async#n(e){let t=this[y],n=new J(t).getSettings();if(!new J(t).getBrowserFrame()||!n||t[zo]||!n.enableJavaScriptEvaluation)return;let r;if(n.disableErrorCapturing||n.errorCapture!==Rs.tryAndCatch)r=JSON.parse(e);else try{r=JSON.parse(e)}catch(e){t[Bo](e);return}if(r.imports||r.scopes){let e={imports:[],scopes:[]};if(r.imports)for(let t of Object.keys(r.imports))e.imports.push({from:t,to:r.imports[t]});if(r.scopes)for(let t of Object.keys(r.scopes)){let n={scope:t,rules:[]};for(let e of Object.keys(r.scopes[t])){let i=r.scopes[t][e];n.rules.push({from:e,to:i})}e.scopes.push(n)}t[zo]=e}}#r(e){let t=this[y];if(!new J(t).getSettings())return;this[h][ke]=this;let n=new Gm(t).compile(t.location.href,e),r=new xm(t,t.location);n.execute({dynamicImport:r.importModule.bind(r),dispatchError:t[Bo].bind(t)}),this[h][ke]=null}async#i(e){let t=this[y],n=new J(t).getBrowserFrame(),r=new J(t).getSettings();if(!n||!r||!e||!this[b]||this.getAttribute(`type`)!==`module`)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new U(`load`));else{let r=new t.DOMException(`Failed to load module "${e}". JavaScript file loading is disabled.`,V.notSupportedError);n.page.console.error(r),this.dispatchEvent(new U(`error`))}return}let i=new xm(t,t.location);if(r.disableErrorCapturing||r.errorCapture!==Rs.tryAndCatch)await(await i.getModule(e)).evaluate();else try{await(await i.getModule(e)).evaluate()}catch(e){n.page.console.error(e),this.dispatchEvent(new U(`error`));return}this.dispatchEvent(new U(`load`))}async#a(e){let t=this[y],n=new J(t).getBrowserFrame();if(!n)return;let r=n.page.context.browser.settings,i=this.getAttribute(`type`);if(!e||!this[b]||i!==null&&i!==`application/x-ecmascript`&&i!==`application/x-javascript`&&!i.startsWith(`text/javascript`))return;let a;try{a=new URL(e,t.location.href)}catch{return}let o=a.toString();if(this.#e===o)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new U(`load`));else{let e=new t.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,V.notSupportedError);n.page.console.error(e),this.dispatchEvent(new U(`error`))}return}this.#e=o;let s=new tm(t),c=this.getAttribute(`async`)!==null||this.getAttribute(`defer`)!==null,l=null;if(c){let e=t[et],r=e.startTask();try{l=await s.fetch(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(t){n.page.console.error(t),this.dispatchEvent(new U(`error`)),e.endTask(r);return}e.endTask(r)}else try{l=s.fetchSync(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(e){n.page.console.error(e),this.dispatchEvent(new U(`error`));return}this[h][ke]=this;let u=new Gm(t).compile(l.virtualServerFile||o,l.content),d=new xm(t,t.location);u.execute({dynamicImport:d.importModule.bind(d),dispatchError:t[Bo].bind(t)}),this[h][ke]=null,this.dispatchEvent(new U(`load`))}static supports(e){switch(e){case`classic`:case`module`:case`importmap`:return!0;default:return!1}}},qm=class extends Ad{constructor(e,t){super(e,()=>q.querySelectorAll(t,`option`)[k]),this[Qe]=t}get selectedIndex(){return this[Qe].selectedIndex}set selectedIndex(e){this[Qe].selectedIndex=e}add(e,t){this[Qe].add(e,t)}remove(e){this[Qe].remove(e)}},Jm=class e extends Q{[Kt]=``;[qt]=new Kf(this);[bn]=null;[Wn]=null;[ur]=-1;[or];constructor(){super();let t=new Vc(this,[e,Q,Df,gd,rl]),n=new Proxy(this,{get:(e,n)=>{if(n in e||typeof n==`symbol`)return t.bind(n),e[n];let r=Number(n);if(!isNaN(r))return q.querySelectorAll(e,`option`)[k][r]},set(e,n,r){if(t.bind(n),typeof n==`symbol`)return e[n]=r,!0;let i=Number(n);if(isNaN(i))return e[n]=r,!0;if(!r||!(r instanceof Nm))throw new e[y].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=q.querySelectorAll(e,`option`)[k],o=e[A];for(;o.length;)e[In](o[0]);for(let t=0;t<=i;t++)t===i?e[Fn](r):a[t]?e[Fn](a[t]):e[Fn](e[h].createElement(`option`));return!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(q.querySelectorAll(e,`option`)[k])},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return isNaN(n)?!1:!!q.querySelectorAll(e,`option`)[k][n]},defineProperty(e,n,r){t.preventBinding(n);let i=Number(n);if(isNaN(i))return Object.defineProperty(e,n,r),!0;if(!r.value||!(r.value instanceof Nm))throw new e[y].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=q.querySelectorAll(e,`option`)[k],o=e[A];for(;o.length;)e[In](o[0]);for(let t=0;t<=i;t++)t===i?e[Fn](r.value):a[t]?e[Fn](a[t]):e[Fn](e[h].createElement(`option`));return!0},getOwnPropertyDescriptor(e,t){if(t in e)return Object.getOwnPropertyDescriptor(e,t);let n=Number(t);if(isNaN(n))return;let r=q.querySelectorAll(e,`option`)[k];if(r[n])return{value:r[n],writable:!0,enumerable:!0,configurable:!0}}});return this[or]=n,this[ot]=n,n}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[B].set(`onchange`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get length(){return q.querySelectorAll(this,`option`)[k].length}get options(){return this[bn]||(this[bn]=new qm(M,this)),this[bn]}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get multiple(){return this.getAttribute(`multiple`)!==null}set multiple(e){e?this.setAttribute(`multiple`,``):this.removeAttribute(`multiple`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get type(){return this.hasAttributeNS(null,`multiple`)?`select-multiple`:`select-one`}get value(){let e=q.querySelectorAll(this,`option`)[k];for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n[st])return n.value}return``}set value(e){let t=q.querySelectorAll(this,`option`)[k];this[ur]=-1;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.value===e?(r[st]=!0,r[Pe]=!0,this[ur]=n):r[st]=!1}}get selectedIndex(){return this[ur]}set selectedIndex(e){if(e=Number(e),isNaN(e))return;let t=q.querySelectorAll(this,`option`)[k];if(this[ur]=-1,typeof e==`number`&&!isNaN(e)){for(let e=0,n=t.length;e<n;e++)t[e][st]=!1;let n=t[e];n&&(n[st]=!0,n[Pe]=!0,this[ur]=e)}}get selectedOptions(){return this[Wn]||(this[Wn]=new Ad(M,()=>{let e=q.querySelectorAll(this,`option`)[k];if(e[Wn])return e[Wn];let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r[st]&&t.push(r)}return e[Wn]=t,t})),this[Wn]}get labels(){return qf.getAssociatedLabelElements(this)}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get willValidate(){return this.type!==`hidden`&&this.type!==`reset`&&this.type!==`button`&&!this.disabled}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}item(e){return this.options.item(e)}add(e,t){let n=q.querySelectorAll(this,`option`)[k];if(!t&&t!==0){let t=this[A];for(;t.length;)this[In](t[0]);for(let e of n)this[Fn](e);this[Fn](e);return}let r=this[y];if(typeof t!=`number`){if(!(t instanceof Nm))throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.`);t=n.indexOf(t)}if(!n[t])throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.`);let i=this[A];for(;i.length;)this[In](i[0]);for(let r=0,i=n.length;r<i;r++)r===t&&this[Fn](e),this[Fn](n[r])}remove(e){if(typeof e==`number`){let t=q.querySelectorAll(this,`option`)[k];if(!t[e])return;let n=this[A];for(;n.length;)this[In](n[0]);for(let n=0,r=t.length;n<r;n++)n!==e&&this[Fn](t[n])}else super.remove()}setCustomValidity(e){this[Kt]=String(e)}checkValidity(){let e=this.disabled||this[qt].valid;return e||this.dispatchEvent(new U(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[gt](e){let t=this.hasAttribute(`multiple`),n=q.querySelectorAll(this,`option`)[k],r=[];if(e&&(this[ur]=-1),!t)for(let t=0,i=n.length;t<i;t++){let i=n[t];e&&(i[st]=i===e,i===e&&(this[ur]=t)),i[st]&&r.push(i)}if(this.#e()===1&&!r.length){this[ur]=-1;for(let e=0,t=n.length;e<t;e++){let t=n[e],r=t[x],i=t.hasAttributeNS(null,`disabled`);if(r&&r[S]===H.elementNode&&r[C]===`OPTGROUP`&&r.hasAttributeNS(null,`disabled`)&&(i=!0),!i){t[st]=!0,this[ur]=e;break}}}else if(r.length>=2){this[ur]=-1;for(let e=0,t=n.length;e<t;e++)n[e][st]=e===r.length-1,e===r.length-1&&(this[ur]=e)}}#e(){if(this.hasAttributeNS(null,`size`)){let e=parseInt(this.getAttribute(`size`));if(!isNaN(e)&&e>=0)return e}return this.hasAttributeNS(null,`multiple`)?4:1}},Ym,Xm=class extends Q{[xr]=[];get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[B].set(`onslotchange`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}assign(...e){let t=this.getRootNode();if(t?.[br]!==`manual`)return;let n=t.host;if(n){for(let t of e)if(t instanceof gd&&n[A].includes(t)&&t[S]!==H.commentNode){if(t[Sr]){let e=t[Sr][xr].indexOf(t);e!==-1&&t[Sr][xr].splice(e,1)}t[Sr]=this,this[xr].push(t)}}}assignedNodes(e){return this.#e(this.name,e)}assignedElements(e){return this.#t(this.name,e)}[Pn](e=!1){return super[Pn](e)}[Jn](e,t){if(super[Jn](e,t),e[T]===`name`&&e[_]!==t?.[_]){let n=this.#e(t?.[_]),r=this.#e(e.value);if(n.length!==r.length)this.dispatchEvent(new U(`slotchange`,{bubbles:!0}));else for(let e=0,t=r.length;e<t;e++)if(n[e]!==r[e]){this.dispatchEvent(new U(`slotchange`,{bubbles:!0}));break}}}[Yn](e){super[Yn](e),e[T]===`name`&&e[_]&&this.#e(e.value).length>0&&this.dispatchEvent(new U(`slotchange`,{bubbles:!0}))}#e(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[br]===`manual`)return this[xr];let r=n.host,i=!!t?.flatten,a=[];for(let n of r[A]){let r=n.slot;if(e&&r&&r===e||!e&&!r)if(i&&n instanceof Ym)for(let e of n.assignedNodes(t))a.push(e);else a.push(n)}return a}#t(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[br]===`manual`){let e=[];for(let t of this[xr])t instanceof Df&&e.push(t);return e}let r=n.host,i=!!t?.flatten,a=[];for(let n of r[Xn]){let r=n.slot;if(e&&r===e||!e&&!r)if(i&&n instanceof Ym)for(let e of n.assignedElements(t))a.push(e);else a.push(n)}return a}};Ym=Xm;var Zm=class extends Q{get height(){let e=Number(this.getAttribute(`height`));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute(`height`,isNaN(t)||t<0?`0`:String(t))}get width(){let e=Number(this.getAttribute(`width`));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute(`width`,isNaN(t)||t<0?`0`:String(t))}get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get sizes(){return this.getAttribute(`sizes`)||``}set sizes(e){this.setAttribute(`sizes`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srcset(){return this.getAttribute(`srcset`)||``}set srcset(e){this.setAttribute(`srcset`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Qm=class extends Q{},$m=class extends Q{[tn]=null;[Gn]=this;[Hi]=!1;get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get disabled(){return this[Hi]}set disabled(e){this[Hi]=!!e}get sheet(){return this[b]?(this[tn]||(this[tn]=new this[h][y].CSSStyleSheet,this[tn].replaceSync(this.textContent)),this[tn]):null}[Te](){super[Te](),this[tn]=null}[Ne](){super[Ne](),this[tn]=null}[Kn](){this[tn]&&this[tn].replaceSync(this.textContent)}},eh=class extends Q{},th=class extends Q{get abbr(){return this.getAttribute(`abbr`)||``}set abbr(e){this.setAttribute(`abbr`,e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[C]===`TR`)return q.querySelectorAll(e,`td,th`)[k].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute(`colspan`));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute(`colspan`,isNaN(t)||t<1?`1`:String(t))}get headers(){return this.getAttribute(`headers`)||``}set headers(e){this.setAttribute(`headers`,String(e))}get rowSpan(){let e=Number(this.getAttribute(`rowspan`));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute(`rowspan`,isNaN(t)||t<1?`1`:String(t))}get scope(){return this.getAttribute(`scope`)||``}set scope(e){this.setAttribute(`scope`,e)}},nh=class extends Q{},rh=class extends Q{insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`tr`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`tr`);return e===-1||e===t.length?this.appendChild(n):this.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`tr`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},ih=class extends Q{[wr]=null;[Er]=null;get caption(){return q.querySelector(this,`caption`)}set caption(e){if(e){if(!(e instanceof eh))throw new this[y].TypeError(`Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.`);this.caption?.remove(),this.insertBefore(e,this.firstChild)}else this.caption?.remove()}get tHead(){return q.querySelector(this,`thead`)}set tHead(e){if(e){if(!(e instanceof rh))throw new this[y].TypeError(`Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tHead?.remove();let t=!1;for(let n of this[Xn])if(n[C]!==`CAPTION`&&n[C]!==`COLGROUP`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tHead?.remove()}get tFoot(){return q.querySelector(this,`tfoot`)}set tFoot(e){if(e){if(!(e instanceof rh))throw new this[y].TypeError(`Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tFoot?.remove();let t=!1;for(let n of this[Xn])if(n[C]!==`CAPTION`&&n[C]!==`COLGROUP`&&n[C]!==`THEAD`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tFoot?.remove()}get rows(){return this[wr]||(this[wr]=new Ad(M,()=>q.querySelectorAll(this,`tr`)[k])),this[wr]}get tBodies(){return this[Er]||(this[Er]=new Ad(M,()=>q.querySelectorAll(this,`tbody`)[k])),this[Er]}createTHead(){let e=this.tHead;if(e)return e;let t=this[h].createElement(`thead`);return this.tHead=t,t}deleteTHead(){this.tHead=null}createTFoot(){let e=this.tFoot;if(e)return e;let t=this[h].createElement(`tfoot`);return this.tFoot=t,t}deleteTFoot(){this.tFoot=null}createTBody(){let e=q.querySelectorAll(this,`tbody`)[k],t=this[h].createElement(`tbody`);if(e.length>0){let n=e[e.length-1];return n.parentNode?.insertBefore(t,n.nextSibling),t}return this.appendChild(t),t}createCaption(){let e=this.caption;if(e)return e;let t=this[h].createElement(`caption`);return this.caption=t,t}deleteCaption(){this.caption=null}insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`tr`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`tr`);if(e===-1||e===t.length){let e=q.querySelector(this,`tbody`);if(e)e.appendChild(n);else{let e=this[h].createElement(`tbody`);e.appendChild(n),this.appendChild(e)}return n}return t[e].parentNode?.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`tr`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},ah=class extends Q{[Cr]=null;get cells(){return this[Cr]||(this[Cr]=new Ad(M,()=>q.querySelectorAll(this,`td,th`)[k])),this[Cr]}get rowIndex(){let e=this.parentNode;for(;e;){if(e[C]===`TABLE`)return q.querySelectorAll(e,`tr`)[k].indexOf(this);e=e.parentNode}return-1}get sectionRowIndex(){let e=this.parentNode;for(;e;){if(e instanceof rh)return q.querySelectorAll(e,`tr`)[k].indexOf(this);e=e.parentNode}return-1}insertCell(e=-1){typeof e!=`number`&&(e=-1);let t=q.querySelectorAll(this,`td,th`)[k];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,V.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells (${t.length}).`,V.indexSizeError);let n=this[h].createElement(`td`);return e===-1||e===t.length?(this.appendChild(n),n):(t[e].parentNode?.insertBefore(n,t[e]),n)}deleteCell(e){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,V.indexSizeError);let t=q.querySelectorAll(this,`td,th`)[k];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells in the row (${t.length}).`,V.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},oh=class extends Q{[xn]=this[h].createDocumentFragment();get content(){return this[xn]}get innerHTML(){return this.getHTML()}set innerHTML(e){let t=this[xn],n=t[A];for(;n.length;)t.removeChild(n[0]);new wf(this[y],{isTemplateDocumentFragment:!0}).parse(e,this[xn])}get firstChild(){return this[xn].firstChild}get lastChild(){return this[xn].lastChild}getInnerHTML(e){let t=new hf,n=this[xn],r=``;for(let e of n[A])r+=t.serializeToString(e);return r}getHTML(e){let t=new hf,n=this[xn],r=``;for(let e of n[A])r+=t.serializeToString(e);return r}[Fn](e,t=!1){return this[xn][Fn](e,t)}[In](e){return this[xn][In](e)}[Ln](e,t,n=!1){return this[xn][Ln](e,t,n)}[Rn](e,t){return this[xn][Rn](e,t)}[Pn](e=!1){let t=super[Pn](e);return t[xn]=this[xn].cloneNode(e),t}},sh=class extends Q{type=`textarea`;[Kt]=``;[qt]=new Kf(this);[_]=null;[pt]=this;[Re]=null;#e=null;#t=null;#n=Gp.none;get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get validationMessage(){return this[Kt]}get validity(){return this[qt]}get defaultValue(){return this.textContent}set defaultValue(e){this.textContent=e}get minLength(){let e=this.getAttribute(`minlength`);return e===null?-1:parseInt(e)}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){let e=this.getAttribute(`maxlength`);return e===null?-1:parseInt(e)}set maxLength(e){this.setAttribute(`maxlength`,String(e))}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){this.setAttribute(`placeholder`,e)}get inputMode(){return this.getAttribute(`inputmode`)||``}set inputMode(e){this.setAttribute(`inputmode`,e)}get cols(){return this.getAttribute(`cols`)||``}set cols(e){this.setAttribute(`cols`,e)}get rows(){return this.getAttribute(`rows`)||``}set rows(e){this.setAttribute(`rows`,e)}get autocomplete(){return this.getAttribute(`autocomplete`)||``}set autocomplete(e){this.setAttribute(`autocomplete`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){e?this.setAttribute(`readonly`,``):this.removeAttribute(`readonly`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get value(){return this[_]===null?this.textContent:this[_]}set value(e){let t=this[_];this[_]=e,t!==this[_]&&(this.#e=this[_].length,this.#t=this[_].length,this.#n=Gp.none)}get selectionStart(){return this.#e===null?this.value.length:this.#e}set selectionStart(e){this.setSelectionRange(e,Math.max(e,this.selectionEnd),this.#n)}get selectionEnd(){return this.#t===null?this.value.length:this.#t}set selectionEnd(e){this.setSelectionRange(this.selectionStart,e,this.#n)}get selectionDirection(){return this.#n}set selectionDirection(e){this.setSelectionRange(this.selectionStart,this.selectionEnd,e)}get form(){if(this[Re])return this[Re];let e=this.getAttribute(`form`);return!e||!this[b]?null:this[h].getElementById(e)}get textLength(){return this.value.length}get labels(){return qf.getAssociatedLabelElements(this)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}select(){this.#e=0,this.#t=this.value.length,this.#n=Gp.none,this.dispatchEvent(new U(`select`,{bubbles:!0,cancelable:!1}))}setSelectionRange(e,t,n=`none`){this.#t=Math.min(t,this.value.length),this.#e=Math.min(e,this.selectionEnd),this.#n=n===Gp.forward||n===Gp.backward?n:Gp.none,this.dispatchEvent(new U(`select`,{bubbles:!0,cancelable:!1}))}setRangeText(e,t=null,n=null,r=Up.preserve){if(t===null&&(t=this.#e===null?0:this.#e),n===null&&(n=this.#t===null?this.value.length:this.#t),t>n)throw new this[y].DOMException(`The index is not in the allowed range.`,V.invalidStateError);t=Math.min(t,this.value.length),n=Math.min(n,this.value.length);let i=this.value,a=this.#e===null?0:this.#e,o=this.#t===null?this.value.length:this.#t;this.value=i.slice(0,t)+e+i.slice(n);let s=t+this.value.length;switch(r){case Up.select:this.setSelectionRange(t,s);break;case Up.start:this.setSelectionRange(t,t);break;case Up.end:this.setSelectionRange(s,s);break;default:let r=e.length-(n-t);a>n?a+=r:a>t&&(a=t),o>n?o+=r:o>t&&(o=s),this.setSelectionRange(a,o);break}}setCustomValidity(e){this[Kt]=String(e)}checkValidity(){let e=this.disabled||this.readOnly||this[qt].valid;return e||this.dispatchEvent(new U(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[Pn](e=!1){let t=super[Pn](e);return t[_]=this[_],t.#e=this.#e,t.#t=this.#t,t.#n=this.#n,t}[it](){this[_]===null&&(this.#e=null,this.#t=null,this.#n=Gp.none)}},ch=class extends Q{get dateTime(){return this.getAttribute(`dateTime`)||``}set dateTime(e){this.setAttribute(`dateTime`,e)}},lh=class extends Q{get text(){let e=``;for(let t of this[A])t[S]===H.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}},uh=class extends Q{get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[B].set(`oncuechange`,e)}get kind(){let e=this.getAttribute(`kind`);return e===null?Rf.subtitles:Rf[e]?e:Rf.metadata}set kind(e){Rf[e]||(e=Rf.metadata),this.setAttribute(`kind`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[h].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srclang(){return this.getAttribute(`srclang`)||``}set srclang(e){this.setAttribute(`srclang`,e)}get label(){return this.getAttribute(`label`)||``}set label(e){this.setAttribute(`label`,e)}get default(){return this.hasAttribute(`default`)}set default(e){e?this.setAttribute(`default`,``):this.removeAttribute(`default`)}get readyState(){return 0}get track(){let e=new this[y].TextTrack(M);return e[Fr]=this.kind,e[Ir]=this.label,e[Lr]=this.srclang,e[Sn]=this.default?`showing`:`disabled`,e[Rr]=this.id,e}},dh=class extends Q{},fh=class extends Q{},ph=class extends zf{},mh=class extends xd{[S]=H.processingInstructionNode;[ft]=``;get target(){return this[ft]}},hh=class extends gd{[be]=null;[at]=this;[S]=H.documentFragmentNode;get children(){if(!this[be]){let e=this[Xn];this[be]=new Ad(M,()=>e)}return this[be]}get childElementCount(){return this[Xn].length}get firstElementChild(){return this[Xn][0]??null}get lastElementChild(){let e=this[Xn];return e[e.length-1]??null}get textContent(){let e=``;for(let t of this[A])(t[S]===H.elementNode||t[S]===H.textNode)&&(e+=t.textContent);return e}set textContent(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);e&&this.appendChild(this[h].createTextNode(e))}append(...e){jd.append(this,...e)}prepend(...e){jd.prepend(this,...e)}replaceChildren(...e){jd.replaceChildren(this,...e)}querySelectorAll(e){return q.querySelectorAll(this,e)}querySelector(e){return q.querySelector(this,e)}getElementById(e){return jd.getElementById(this,e)}},gh=class extends hh{[Vt]=[];[Sn]=`open`;[Cn]=null;[_r]=!1;[vr]=!1;[yr]=!1;[br]=`named`;[B]=new Map;get onslotchange(){return this[B].get(`onslotchange`)??null}set onslotchange(e){this[B].set(`onslotchange`,e)}get mode(){return this[Sn]}get host(){return this[Cn]}get clonable(){return this[_r]}get delegatesFocus(){return this[vr]}get serializable(){return this[yr]}get slotAssignment(){return this[br]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let e=new hf,t=``;for(let n of this[A])t+=e.serializeToString(n);return t}set innerHTML(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);new wf(this[y]).parse(e,this)}get adoptedStyleSheets(){return this[Vt]}set adoptedStyleSheets(e){this[Vt]=e}get activeElement(){let e=this[h][fe],t=e?.getRootNode();if(!t||t===this[h])return null;if(t===this)return e;for(;t&&t!==this;)e=t.host,t=e.getRootNode();return e}getAnimations(){return[]}setHTMLUnsafe(e){let t=this[A];for(;t.length;)this.removeChild(t[0]);new wf(this[y]).parse(e,this)}toString(){return this.innerHTML}[Pn](e=!1){let t=super[Pn](e);return t[Sn]=this[Sn],t[_r]=this[_r],t[vr]=this[vr],t[yr]=this[yr],t[br]=this[br],t}},_h=class extends Df{[dt]=null;#e=null;get onabort(){return Z.getEventListener(this,`onabort`)}set onabort(e){this[B].set(`onabort`,e)}get onanimationend(){return Z.getEventListener(this,`onanimationend`)}set onanimationend(e){this[B].set(`onanimationend`,e)}get onanimationiteration(){return Z.getEventListener(this,`onanimationiteration`)}set onanimationiteration(e){this[B].set(`onanimationiteration`,e)}get onanimationstart(){return Z.getEventListener(this,`onanimationstart`)}set onanimationstart(e){this[B].set(`onanimationstart`,e)}get onauxclick(){return Z.getEventListener(this,`onauxclick`)}set onauxclick(e){this[B].set(`onauxclick`,e)}get onblur(){return Z.getEventListener(this,`onblur`)}set onblur(e){this[B].set(`onblur`,e)}get oncancel(){return Z.getEventListener(this,`oncancel`)}set oncancel(e){this[B].set(`oncancel`,e)}get oncanplay(){return Z.getEventListener(this,`oncanplay`)}set oncanplay(e){this[B].set(`oncanplay`,e)}get oncanplaythrough(){return Z.getEventListener(this,`oncanplaythrough`)}set oncanplaythrough(e){this[B].set(`oncanplaythrough`,e)}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[B].set(`onchange`,e)}get onclick(){return Z.getEventListener(this,`onclick`)}set onclick(e){this[B].set(`onclick`,e)}get onclose(){return Z.getEventListener(this,`onclose`)}set onclose(e){this[B].set(`onclose`,e)}get oncontextmenu(){return Z.getEventListener(this,`oncontextmenu`)}set oncontextmenu(e){this[B].set(`oncontextmenu`,e)}get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[B].set(`oncopy`,e)}get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[B].set(`oncuechange`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[B].set(`oncut`,e)}get ondblclick(){return Z.getEventListener(this,`ondblclick`)}set ondblclick(e){this[B].set(`ondblclick`,e)}get ondrag(){return Z.getEventListener(this,`ondrag`)}set ondrag(e){this[B].set(`ondrag`,e)}get ondragend(){return Z.getEventListener(this,`ondragend`)}set ondragend(e){this[B].set(`ondragend`,e)}get ondragenter(){return Z.getEventListener(this,`ondragenter`)}set ondragenter(e){this[B].set(`ondragenter`,e)}get ondragleave(){return Z.getEventListener(this,`ondragleave`)}set ondragleave(e){this[B].set(`ondragleave`,e)}get ondragover(){return Z.getEventListener(this,`ondragover`)}set ondragover(e){this[B].set(`ondragover`,e)}get ondragstart(){return Z.getEventListener(this,`ondragstart`)}set ondragstart(e){this[B].set(`ondragstart`,e)}get ondrop(){return Z.getEventListener(this,`ondrop`)}set ondrop(e){this[B].set(`ondrop`,e)}get ondurationchange(){return Z.getEventListener(this,`ondurationchange`)}set ondurationchange(e){this[B].set(`ondurationchange`,e)}get onemptied(){return Z.getEventListener(this,`onemptied`)}set onemptied(e){this[B].set(`onemptied`,e)}get onended(){return Z.getEventListener(this,`onended`)}set onended(e){this[B].set(`onended`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[B].set(`onerror`,e)}get onfocus(){return Z.getEventListener(this,`onfocus`)}set onfocus(e){this[B].set(`onfocus`,e)}get onformdata(){return Z.getEventListener(this,`onformdata`)}set onformdata(e){this[B].set(`onformdata`,e)}get ongotpointercapture(){return Z.getEventListener(this,`ongotpointercapture`)}set ongotpointercapture(e){this[B].set(`ongotpointercapture`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[B].set(`oninput`,e)}get oninvalid(){return Z.getEventListener(this,`oninvalid`)}set oninvalid(e){this[B].set(`oninvalid`,e)}get onkeydown(){return Z.getEventListener(this,`onkeydown`)}set onkeydown(e){this[B].set(`onkeydown`,e)}get onkeypress(){return Z.getEventListener(this,`onkeypress`)}set onkeypress(e){this[B].set(`onkeypress`,e)}get onkeyup(){return Z.getEventListener(this,`onkeyup`)}set onkeyup(e){this[B].set(`onkeyup`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[B].set(`onload`,e)}get onloadeddata(){return Z.getEventListener(this,`onloadeddata`)}set onloadeddata(e){this[B].set(`onloadeddata`,e)}get onloadedmetadata(){return Z.getEventListener(this,`onloadedmetadata`)}set onloadedmetadata(e){this[B].set(`onloadedmetadata`,e)}get onloadstart(){return Z.getEventListener(this,`onloadstart`)}set onloadstart(e){this[B].set(`onloadstart`,e)}get onlostpointercapture(){return Z.getEventListener(this,`onlostpointercapture`)}set onlostpointercapture(e){this[B].set(`onlostpointercapture`,e)}get onmousedown(){return Z.getEventListener(this,`onmousedown`)}set onmousedown(e){this[B].set(`onmousedown`,e)}get onmouseenter(){return Z.getEventListener(this,`onmouseenter`)}set onmouseenter(e){this[B].set(`onmouseenter`,e)}get onmouseleave(){return Z.getEventListener(this,`onmouseleave`)}set onmouseleave(e){this[B].set(`onmouseleave`,e)}get onmousemove(){return Z.getEventListener(this,`onmousemove`)}set onmousemove(e){this[B].set(`onmousemove`,e)}get onmouseout(){return Z.getEventListener(this,`onmouseout`)}set onmouseout(e){this[B].set(`onmouseout`,e)}get onmouseover(){return Z.getEventListener(this,`onmouseover`)}set onmouseover(e){this[B].set(`onmouseover`,e)}get onmouseup(){return Z.getEventListener(this,`onmouseup`)}set onmouseup(e){this[B].set(`onmouseup`,e)}get onmousewheel(){return Z.getEventListener(this,`onmousewheel`)}set onmousewheel(e){this[B].set(`onmousewheel`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[B].set(`onpaste`,e)}get onpause(){return Z.getEventListener(this,`onpause`)}set onpause(e){this[B].set(`onpause`,e)}get onplay(){return Z.getEventListener(this,`onplay`)}set onplay(e){this[B].set(`onplay`,e)}get onplaying(){return Z.getEventListener(this,`onplaying`)}set onplaying(e){this[B].set(`onplaying`,e)}get onpointercancel(){return Z.getEventListener(this,`onpointercancel`)}set onpointercancel(e){this[B].set(`onpointercancel`,e)}get onpointerdown(){return Z.getEventListener(this,`onpointerdown`)}set onpointerdown(e){this[B].set(`onpointerdown`,e)}get onpointerenter(){return Z.getEventListener(this,`onpointerenter`)}set onpointerenter(e){this[B].set(`onpointerenter`,e)}get onpointerleave(){return Z.getEventListener(this,`onpointerleave`)}set onpointerleave(e){this[B].set(`onpointerleave`,e)}get onpointermove(){return Z.getEventListener(this,`onpointermove`)}set onpointermove(e){this[B].set(`onpointermove`,e)}get onpointerout(){return Z.getEventListener(this,`onpointerout`)}set onpointerout(e){this[B].set(`onpointerout`,e)}get onpointerover(){return Z.getEventListener(this,`onpointerover`)}set onpointerover(e){this[B].set(`onpointerover`,e)}get onpointerrawupdate(){return Z.getEventListener(this,`onpointerrawupdate`)}set onpointerrawupdate(e){this[B].set(`onpointerrawupdate`,e)}get onpointerup(){return Z.getEventListener(this,`onpointerup`)}set onpointerup(e){this[B].set(`onpointerup`,e)}get onprogress(){return Z.getEventListener(this,`onprogress`)}set onprogress(e){this[B].set(`onprogress`,e)}get onratechange(){return Z.getEventListener(this,`onratechange`)}set onratechange(e){this[B].set(`onratechange`,e)}get onreset(){return Z.getEventListener(this,`onreset`)}set onreset(e){this[B].set(`onreset`,e)}get onresize(){return Z.getEventListener(this,`onresize`)}set onresize(e){this[B].set(`onresize`,e)}get onscroll(){return Z.getEventListener(this,`onscroll`)}set onscroll(e){this[B].set(`onscroll`,e)}get onscrollend(){return Z.getEventListener(this,`onscrollend`)}set onscrollend(e){this[B].set(`onscrollend`,e)}get onscrollsnapchange(){return Z.getEventListener(this,`onscrollsnapchange`)}set onscrollsnapchange(e){this[B].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return Z.getEventListener(this,`onscrollsnapchanging`)}set onscrollsnapchanging(e){this[B].set(`onscrollsnapchanging`,e)}get onsecuritypolicyviolation(){return Z.getEventListener(this,`onsecuritypolicyviolation`)}set onsecuritypolicyviolation(e){this[B].set(`onsecuritypolicyviolation`,e)}get onseeked(){return Z.getEventListener(this,`onseeked`)}set onseeked(e){this[B].set(`onseeked`,e)}get onseeking(){return Z.getEventListener(this,`onseeking`)}set onseeking(e){this[B].set(`onseeking`,e)}get onselect(){return Z.getEventListener(this,`onselect`)}set onselect(e){this[B].set(`onselect`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get onselectstart(){return Z.getEventListener(this,`onselectstart`)}set onselectstart(e){this[B].set(`onselectstart`,e)}get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[B].set(`onslotchange`,e)}get onstalled(){return Z.getEventListener(this,`onstalled`)}set onstalled(e){this[B].set(`onstalled`,e)}get onsubmit(){return Z.getEventListener(this,`onsubmit`)}set onsubmit(e){this[B].set(`onsubmit`,e)}get onsuspend(){return Z.getEventListener(this,`onsuspend`)}set onsuspend(e){this[B].set(`onsuspend`,e)}get ontimeupdate(){return Z.getEventListener(this,`ontimeupdate`)}set ontimeupdate(e){this[B].set(`ontimeupdate`,e)}get ontoggle(){return Z.getEventListener(this,`ontoggle`)}set ontoggle(e){this[B].set(`ontoggle`,e)}get ontransitioncancel(){return Z.getEventListener(this,`ontransitioncancel`)}set ontransitioncancel(e){this[B].set(`ontransitioncancel`,e)}get ontransitionend(){return Z.getEventListener(this,`ontransitionend`)}set ontransitionend(e){this[B].set(`ontransitionend`,e)}get ontransitionrun(){return Z.getEventListener(this,`ontransitionrun`)}set ontransitionrun(e){this[B].set(`ontransitionrun`,e)}get ontransitionstart(){return Z.getEventListener(this,`ontransitionstart`)}set ontransitionstart(e){this[B].set(`ontransitionstart`,e)}get onvolumechange(){return Z.getEventListener(this,`onvolumechange`)}set onvolumechange(e){this[B].set(`onvolumechange`,e)}get onwaiting(){return Z.getEventListener(this,`onwaiting`)}set onwaiting(e){this[B].set(`onwaiting`,e)}get onwheel(){return Z.getEventListener(this,`onwheel`)}set onwheel(e){this[B].set(`onwheel`,e)}get ownerSVGElement(){let e=this[x];for(;e;){if(e[O]===`svg`)return e;e=e[x]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#e??=new Af(M,this)}get style(){return this[dt]||(this[dt]=new bl(M,this[y],{element:this})),this[dt]}get tabIndex(){let e=this.getAttribute(`tabindex`);return e===null?-1:Number(e)}set tabIndex(e){e===-1?this.removeAttribute(`tabindex`):this.setAttribute(`tabindex`,String(e))}blur(){Of.blur(this)}focus(){Of.focus(this)}},vh=class{observe(){}unobserve(){}disconnect(){}},yh=class extends rl{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null},bh=class extends yh{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=``},xh=class extends rl{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let e=new bh;this.currentScreen=e,this.screens=[e]}},Sh=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(Y.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(Y.isInclusiveAncestor(e.node,t.node)){let n=t.node;for(;n[x]!==e.node;)n=n[x];if(n[x][A].indexOf(n)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[S]===H.documentTypeNode)throw new vs(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(e.offset>Y.getNodeLength(e.node))throw new vs(`Offset out of bound.`,V.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:Y.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return Y.isInclusiveAncestor(e,t.startContainer)&&!Y.isInclusiveAncestor(e,t.endContainer)||!Y.isInclusiveAncestor(e,t.startContainer)&&Y.isInclusiveAncestor(e,t.endContainer)}},Ch;(function(e){e[e.forwards=1]=`forwards`,e[e.backwards=-1]=`backwards`,e[e.directionless=0]=`directionless`})(Ch||={});var wh=Ch,Th=class{#e;#t=null;#n=wh.directionless;constructor(e){this.#e=e}get rangeCount(){return+!!this.#t}get isCollapsed(){return this.#t===null||this.#t.collapsed}get type(){return this.#t?this.#t.collapsed?`Caret`:`Range`:`None`}get anchorNode(){return this.#t?this.#n===wh.forwards?this.#t.startContainer:this.#t.endContainer:null}get anchorOffset(){return this.#t?this.#n===wh.forwards?this.#t.startOffset:this.#t.endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.#t?this.#n===wh.forwards?this.#t.endContainer:this.#t.startContainer:null}get focusOffset(){return this.#t?this.#n===wh.forwards?this.#t.endOffset:this.#t.startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new this.#e[y].TypeError(`Failed to execute addRange on Selection. Parameter 1 is not of type Range.`);!this.#t&&e[h]===this.#e&&this.#r(e)}getRangeAt(e){if(!this.#t||e!==0)throw new this.#e[y].DOMException(`Invalid range index.`,V.indexSizeError);return this.#t}removeRange(e){if(this.#t!==e)throw new this.#e[y].DOMException(`Invalid range.`,V.notFoundError);this.#r(null)}removeAllRanges(){this.#r(null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[S]===H.documentTypeNode)throw new this.#e[y].DOMException(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(t>Y.getNodeLength(e))throw new this.#e[y].DOMException(`Invalid range index.`,V.indexSizeError);if(e!==this.#e&&e[h]!==this.#e)return;let n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(this.#t===null)throw new this.#e[y].DOMException(`There is no selection to collapse.`,V.invalidStateError);let{node:e,offset:t}=this.#t[p],n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}collapseToStart(){if(!this.#t)throw new this.#e[y].DOMException(`There is no selection to collapse.`,V.invalidStateError);let{node:e,offset:t}=this.#t[g],n=new this.#e[y].Range;n[g].node=e,n[g].offset=t,n[p].node=e,n[p].offset=t,this.#r(n)}containsNode(e,t=!1){if(!this.#t||e[h]!==this.#e)return!1;let n=Sh.compareBoundaryPointsPosition(this.#t[g],{node:e,offset:0})===-1,r=Sh.compareBoundaryPointsPosition(this.#t[p],{node:e,offset:Y.getNodeLength(e)})===1;return t?n||r:n&&r}deleteFromDocument(){this.#t&&this.#t.deleteContents()}extend(e,t){if(e!==this.#e&&e[h]!==this.#e)return;if(!this.#t)throw new this.#e[y].DOMException(`There is no selection to extend.`,V.invalidStateError);let n=this.anchorNode,r=this.anchorOffset,i=new this.#e[y].Range;i[g].node=e,i[g].offset=0,i[p].node=e,i[p].offset=0,e[h]===this.#t[h]?Sh.compareBoundaryPointsPosition({node:n,offset:r},{node:e,offset:t})<=0?(i[g].node=n,i[g].offset=r,i[p].node=e,i[p].offset=t):(i[g].node=e,i[g].offset=t,i[p].node=n,i[p].offset=r):(i[g].offset=t,i[p].offset=t),this.#r(i),this.#n=Sh.compareBoundaryPointsPosition({node:e,offset:t},{node:n,offset:r})===-1?wh.backwards:wh.forwards}selectAllChildren(e){if(e[S]===H.documentTypeNode)throw new this.#e[y].DOMException(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);if(e!==this.#e&&e[h]!==this.#e)return;let t=e[A].length,n=new this.#e[y].Range;n[g].node=e,n[g].offset=0,n[p].node=e,n[p].offset=t,this.#r(n)}setBaseAndExtent(e,t,n,r){if(t>Y.getNodeLength(e)||r>Y.getNodeLength(n))throw new this.#e[y].DOMException(`Invalid anchor or focus offset.`,V.indexSizeError);if(e!==this.#e&&e[h]!==this.#e||n!==this.#e&&n[h]!==this.#e)return;let i={node:e,offset:t},a={node:n,offset:r},o=new this.#e[y].Range;Sh.compareBoundaryPointsPosition(i,a)===-1?(o[g]=i,o[p]=a):(o[g]=a,o[p]=i),this.#r(o),this.#n=Sh.compareBoundaryPointsPosition(a,i)===-1?wh.backwards:wh.forwards}toString(){return this.#t?this.#t.toString():``}#r(e){let t=this.#t;this.#t=e,this.#n=e===null?wh.directionless:wh.forwards,t!==this.#t&&this.#e.dispatchEvent(new U(`selectionchange`))}},Eh=class e{[je]={};constructor(){let t=this[je],n=new Vc(this,[e]);return new Proxy(this,{get:(e,r)=>{if(r in e||typeof r==`symbol`)return n.bind(r),e[r];if(r in t)return t[r]},set(e,r,i){return n.bind(r),r in e||typeof r==`symbol`||(t[String(r)]=String(i)),!0},deleteProperty(e,n){return n in t?(delete t[String(n)],!0):!1},ownKeys(){return Object.keys(t)},has(e,n){return n in e||n in t},defineProperty(e,r,i){return n.preventBinding(r),r in e?(Object.defineProperty(e,r,i),!0):i.value===void 0?!1:(t[String(r)]=String(i.value),!0)},getOwnPropertyDescriptor(e,n){if(n in e)return;let r=t[String(n)];if(r!==void 0)return{value:r,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[je]).length}key(e){let t=Object.keys(this[je])[e];return t===void 0?null:t}setItem(e,t){this[je][e]=String(t)}getItem(e){return this[je][e]===void 0?null:this[je][e]}removeItem(e){delete this[je][e]}clear(){let e=this[je];for(let t of Object.keys(e))delete e[t]}},Dh={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048},Oh={1:Dh.SHOW_ELEMENT,2:Dh.SHOW_ATTRIBUTE,3:Dh.SHOW_TEXT,4:Dh.SHOW_CDATA_SECTION,5:Dh.SHOW_ENTITY_REFERENCE,6:Dh.SHOW_PROCESSING_INSTRUCTION,7:Dh.SHOW_PROCESSING_INSTRUCTION,8:Dh.SHOW_COMMENT,9:Dh.SHOW_DOCUMENT,10:Dh.SHOW_DOCUMENT_TYPE,11:Dh.SHOW_DOCUMENT_FRAGMENT,12:Dh.SHOW_NOTATION},kh;(function(e){e.first=`first`,e.last=`last`})(kh||={});var Ah;(function(e){e.next=`next`,e.previous=`previous`})(Ah||={});var jh=class{root;whatToShow=-1;filter=null;#e=null;constructor(e,t=-1,n=null){if(!(e instanceof gd))throw new vs(`Parameter 1 was not of type Node.`);this.root=e,this.whatToShow=t,this.filter=n,this.#e=e}get currentNode(){return this.#e}set currentNode(e){if(!(e instanceof gd))throw new this.root[y].TypeError(`Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.`);this.#e=e}parentNode(){let e=this.#e;for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Do](e)===Dh.FILTER_ACCEPT)return this.#e=e,this.#e;return null}firstChild(){return this.#t(kh.first)}lastChild(){return this.#t(kh.last)}nextSibling(){return this.#n(Ah.next)}previousSibling(){return this.#n(Ah.previous)}previousNode(){let e=this.#e;for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let e=t,n=this[Do](e);for(;n!==Dh.FILTER_REJECT&&e[A].length;)e=e.lastChild,n=this[Do](e);if(n===Dh.FILTER_ACCEPT)return this.#e=e,e;t=e.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Do](e)===Dh.FILTER_ACCEPT)return this.#e=e,e}return null}nextNode(){let e=this.#e,t=Dh.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==Dh.FILTER_REJECT&&e[A].length;)if(e=e.firstChild,t=this[Do](e),t===Dh.FILTER_ACCEPT)return this.#e=e,e;for(;e!==null;){if(e===this.root)return null;let t=e.nextSibling;if(t!==null){e=t;break}e=e.parentNode}if(e===null)return null;if(t=this[Do](e),t===Dh.FILTER_ACCEPT)return this.#e=e,e}}[Do](e){let t=Oh[e.nodeType];return t&&(this.whatToShow&t)==0?Dh.FILTER_SKIP:typeof this.filter==`function`?this.filter(e):this.filter?this.filter.acceptNode(e):Dh.FILTER_ACCEPT}#t(e){let t=this.#e;if(!t)return null;for(t=e===kh.first?t.firstChild:t.lastChild;t!==null;){let n=this[Do](t);if(n===Dh.FILTER_ACCEPT)return this.#e=t,t;if(n===Dh.FILTER_SKIP){let n=e===kh.first?t.firstChild:t.lastChild;if(n!==null){t=n;continue}}for(;t!==null;){let n=e===kh.first?t.nextSibling:t.previousSibling;if(n!==null){t=n;break}let r=t.parentNode;if(r===null||r===this.root||r===this.#e)return null;t=r}}return null}#n(e){let t=this.#e;if(!t||t===this.root)return null;for(;;){let n=e===Ah.next?t.nextSibling:t.previousSibling;for(;n!==null;){let t=n,r=this[Do](t);if(r===Dh.FILTER_ACCEPT)return this.#e=t,t;n=e===Ah.next?t.firstChild:t.lastChild,(r===Dh.FILTER_REJECT||n===null)&&(n=e===Ah.next?t.nextSibling:t.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Do](t)===Dh.FILTER_ACCEPT)return null}}},Mh=class{#e;#t=-1;#n=null;#r;#i=!0;constructor(e,t=-1,n=null){this.#e=e,this.#t=t,this.#n=n,this.#r=new jh(e,t,n)}get root(){return this.#e}get whatToShow(){return this.#t}get filter(){return this.#n}nextNode(){return this.#i?(this.#i=!1,this.#r[Do](this.#e)===Dh.FILTER_ACCEPT?this.#e:this.#r.nextNode()):this.#r.nextNode()}previousNode(){return this.#r.previousNode()}},Nh=class{serializeToString(e){return this.#e(e)}#e(e,t=null,n=null){switch(e[S]){case H.elementNode:let r=e,i=r[O],a=``,o=this.#t(r,n),s=r[w]===Il.html?r[wt]:this.#n(r,o),c=`${s?s+`:`:``}${i}`,l=s?t:r[w]||t,u=this.#r(r,s,t,n),d=l===Il.html&&i===`template`?e.content[A]:e[A];for(let e of d)a+=this.#e(e,l,o);return!a&&l===Il.html&&Id[i.toLowerCase()]?.contentModel===X.noDescendants?`<${c}${u} />`:!a&&l!==Il.html?`<${c}${u}/>`:`<${c}${u}>${a}</${c}>`;case gd.DOCUMENT_FRAGMENT_NODE:case gd.DOCUMENT_NODE:let f=``;e[Eo]&&(f+=this.#e(e[Eo],t,new Map(n)));for(let r of e[A])f+=this.#e(r,t,new Map(n));return f;case H.commentNode:return`<!--${e.textContent}-->`;case H.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case H.textNode:let ee=e.parentElement;return ee&&Id[ee[O]]?.contentModel===X.rawText?e.textContent:mf.encodeTextContent(e.textContent);case H.documentTypeNode:let te=e,ne=te.publicId?` PUBLIC`:te.systemId?` SYSTEM`:``,re=te.publicId?` "${te.publicId}"`:``,ie=te.systemId?` "${te.systemId}"`:``;return`<!DOCTYPE ${te.name}${ne}${re}${ie}>`}return``}#t(e,t){let n=new Map(t);for(let t of e[kt][k].values())t[w]===Il.xmlns&&t[wt]&&n.set(t[_],t[O]);return n}#n(e,t){if(e[wt]&&!e[w])throw Error(`Element has a prefix but no namespace.`);if(!e[wt]||!t)return null;let n=t.get(e[w]);if(n)return n;let r=new Set(t.values());if(r.has(e[wt])){let n=1;for(;r.has(`n`+n);)n++;return t.set(e[w],`n`+n),`n`+n}return t.set(e[w],e[wt]),e[wt]}#r(e,t,n,r){let i=``,a=``,o=new Set;for(let n of e[kt][k].values())n[w]===Il.xmlns?t&&n[O]===t&&e[w]?(a+=` xmlns:${t}="${mf.encodeXMLAttributeValue(e[w])}"`,o.add(e[w])):!t&&n[T]===`xmlns`&&e[w]?(a+=` xmlns="${mf.encodeXMLAttributeValue(e[w])}"`,o.add(e[w])):(a+=` ${n[T]}="${mf.encodeXMLAttributeValue(n[_])}"`,o.add(n[_])):i+=` ${n[T]}="${mf.encodeXMLAttributeValue(n[_])}"`;return e[w]&&n!==e[w]&&!o.has(e[w])&&(t&&!r?.has(e[w])?a+=` xmlns:${t}="${mf.encodeXMLAttributeValue(e[w])}"`:!t&&n!==e[w]&&(a+=` xmlns="${mf.encodeXMLAttributeValue(e[w])}"`)),a+i}},Ph=new ce(`
|
|
107
107
|
this.ArrayBuffer = globalThis.ArrayBuffer;
|
|
108
108
|
this.Boolean = globalThis.Boolean;
|
|
109
109
|
this.DataView = globalThis.DataView;
|
|
@@ -182,7 +182,7 @@ this.Function = globalThis.Function;
|
|
|
182
182
|
`,this.errorIndex=this.startTagIndex),this.readState=_g.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[wt]&&!this.nextElement[w]){this.errorMessage=`Namespace prefix ${this.nextElement[wt]} on name is not defined\n`,this.errorIndex=this.lastIndex,this.readState=_g.error;return}if(this.currentNode===this.rootNode&&this.rootNode[Xn].length!==0){this.errorMessage=`Extra content at the end of the document
|
|
183
183
|
`,this.errorIndex=this.lastIndex-this.nextElement[C].length-1,this.readState=_g.error;return}this.currentNode[Fn](this.nextElement,!0),t||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[w]&&!this.currentNode[wt]?this.defaultNamespaceStack.push(this.currentNode[w]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=_g.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){return this.tagNameStack[this.tagNameStack.length-1]===e?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0):!1}parseError(e,t){let n=this.rootNode.documentElement;if(!n){let e=this.rootNode.createElementNS(Il.html,`html`),t=this.rootNode.createElementNS(Il.html,`body`);e.appendChild(t),n=t,this.rootNode[Fn](e,!0)}let r=e.split(`
|
|
184
184
|
`),i=r[r.length-1].length+1,a=`error on line ${r.length} at column ${i}: ${t||`Unknown error`}`,o=this.rootNode.createElementNS(Il.html,`parsererror`);o.setAttribute(`style`,`display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black`),o.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,n.insertBefore(o,n.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[S]===gd.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith(`DOCTYPE`))return null;let t=e.split(hg);if(t.length<=1)return null;let n=t.slice(1).join(` `),r=[],i=new RegExp(mg,`gm`),a=n.toUpperCase().includes(`PUBLIC`),o;for(;o=i.exec(n);)r.push(o[1]);let s=a&&r[0]||``,c=a?r[1]||``:r[0]||``;return{name:t[1].toLowerCase(),publicId:s,systemId:c}}},bg=class{parseFromString(e,t){if(!t)throw new this[y].DOMException(`Second parameter "mimeType" is mandatory.`);let n=this[y];switch(t){case`text/html`:let r=new n.HTMLDocument;return r[Me]=n,new wf(this[y]).parse(e,r);case`image/svg+xml`:case`text/xml`:case`application/xml`:case`application/xhtml+xml`:return new yg(this[y]).parse(e);default:throw new n.DOMException(`Unknown mime type "${t}".`)}}},xg;(function(e){e[e.endToEnd=2]=`endToEnd`,e[e.endToStart=3]=`endToStart`,e[e.startToEnd=1]=`startToEnd`,e[e.startToStart=0]=`startToStart`})(xg||={});var Sg=xg,Cg=class{static END_TO_END=Sg.endToEnd;static END_TO_START=Sg.endToStart;static START_TO_END=Sg.startToEnd;static START_TO_START=Sg.startToStart;END_TO_END=Sg.endToEnd;END_TO_START=Sg.endToStart;START_TO_END=Sg.startToEnd;START_TO_START=Sg.startToStart;[g];[p];[h];constructor(){let e=this[y];if(!e)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[h]=e.document,this[g]={node:e.document,offset:0},this[p]={node:e.document,offset:0}}get startContainer(){return this[g].node}get endContainer(){return this[p].node}get startOffset(){if(this[g].offset>0){let e=Y.getNodeLength(this[g].node);this[g].offset>e&&(this[g].offset=e)}return this[g].offset}get endOffset(){if(this[p].offset>0){let e=Y.getNodeLength(this[p].node);this[p].offset>e&&(this[p].offset=e)}return this[p].offset}get collapsed(){return this[g].node===this[p].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[g].node;for(;e;){if(Y.isInclusiveAncestor(e,this[p].node))return e;e=e[x]}return null}collapse(e=!1){e?this[p]=Object.assign({},this[g]):this[g]=Object.assign({},this[p])}compareBoundaryPoints(e,t){if(e!==Sg.startToStart&&e!==Sg.startToEnd&&e!==Sg.endToEnd&&e!==Sg.endToStart)throw new this[y].DOMException(`The comparison method provided must be one of '${Sg.startToStart}', '${Sg.startToEnd}', '${Sg.endToEnd}' or '${Sg.endToStart}'.`,V.notSupportedError);if(this[h]!==t[h])throw new this[y].DOMException(`The two Ranges are not in the same tree.`,V.wrongDocumentError);let n={node:null,offset:0},r={node:null,offset:0};switch(e){case Sg.startToStart:n.node=this[g].node,n.offset=this.startOffset,r.node=t[g].node,r.offset=t.startOffset;break;case Sg.startToEnd:n.node=this[p].node,n.offset=this.endOffset,r.node=t[g].node,r.offset=t.startOffset;break;case Sg.endToEnd:n.node=this[p].node,n.offset=this.endOffset,r.node=t[p].node,r.offset=t.endOffset;break;case Sg.endToStart:n.node=this[g].node,n.offset=this.startOffset,r.node=t[p].node,r.offset=t.endOffset;break}return Sh.compareBoundaryPointsPosition(n,r)}comparePoint(e,t){if(e[h]!==this[h])throw new this[y].DOMException(`The two Ranges are not in the same tree.`,V.wrongDocumentError);Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};return Sh.compareBoundaryPointsPosition(n,{node:this[g].node,offset:this.startOffset})===-1?-1:+(Sh.compareBoundaryPointsPosition(n,{node:this[p].node,offset:this.endOffset})===1)}cloneContents(){let e=this[y],t=this[h].createDocumentFragment(),n=this.startOffset,r=this.endOffset;if(this.collapsed)return t;if(this[g].node===this[p].node&&(this[g].node[S]===H.textNode||this[g].node[S]===H.processingInstructionNode||this[g].node[S]===H.commentNode)){let e=this[g].node.cloneNode(!1);return e[je]=e.substringData(n,r-n),t.appendChild(e),t}let i=this[g].node;for(;!Y.isInclusiveAncestor(i,this[p].node);)i=i[x];let a=null;if(!Y.isInclusiveAncestor(this[g].node,this[p].node)){let e=i.firstChild;for(;!a;)Sh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!Y.isInclusiveAncestor(this[p].node,this[g].node)){let e=i.lastChild;for(;!o;)Sh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let t of i[A])if(Sh.isContained(t,this)){if(t[S]===H.documentTypeNode)throw new e.DOMException(`Invalid document type element.`,V.hierarchyRequestError);s.push(t)}if(a!==null&&(a[S]===H.textNode||a[S]===H.processingInstructionNode||a[S]===H.commentNode)){let e=this[g].node.cloneNode(!1);e[je]=e.substringData(n,Y.getNodeLength(this[g].node)-n),t.appendChild(e)}else if(a!==null){let r=a.cloneNode();t.appendChild(r);let i=new e.Range;i[g].node=this[g].node,i[g].offset=n,i[p].node=a,i[p].offset=Y.getNodeLength(a);let o=i.cloneContents();r.appendChild(o)}for(let e of s){let n=e.cloneNode(!0);t.appendChild(n)}if(o!==null&&(o[S]===H.textNode||o[S]===H.processingInstructionNode||o[S]===H.commentNode)){let e=this[p].node.cloneNode(!1);e[je]=e.substringData(0,r),t.appendChild(e)}else if(o!==null){let n=o.cloneNode(!1);t.appendChild(n);let i=new e.Range;i[g].node=o,i[g].offset=0,i[p].node=this[p].node,i[p].offset=r;let a=i.cloneContents();n.appendChild(a)}return t}cloneRange(){let e=new this[y].Range;return e[g].node=this[g].node,e[g].offset=this[g].offset,e[p].node=this[p].node,e[p].offset=this[p].offset,e}createContextualFragment(e){return new wf(this[y]).parse(e)}deleteContents(){let e=this.startOffset,t=this.endOffset;if(this.collapsed)return;if(this[g].node===this[p].node&&(this[g].node[S]===H.textNode||this[g].node[S]===H.processingInstructionNode||this[g].node[S]===H.commentNode)){this[g].node.replaceData(e,t-e,``);return}let n=[],r=this[g].node,i=Y.nextDescendantNode(this[p].node);for(;r&&r!==i;)Sh.isContained(r,this)&&!Sh.isContained(r[x],this)&&n.push(r),r=Y.following(r);let a,o;if(Y.isInclusiveAncestor(this[g].node,this[p].node))a=this[g].node,o=e;else{let e=this[g].node;for(;e&&!Y.isInclusiveAncestor(e[x],this[p].node);)e=e[x];a=e[x],o=e[x][A].indexOf(e)+1}(this[g].node[S]===H.textNode||this[g].node[S]===H.processingInstructionNode||this[g].node[S]===H.commentNode)&&this[g].node.replaceData(this.startOffset,Y.getNodeLength(this[g].node)-this.startOffset,``);for(let e of n)e[x].removeChild(e);(this[p].node[S]===H.textNode||this[p].node[S]===H.processingInstructionNode||this[p].node[S]===H.commentNode)&&this[p].node.replaceData(0,t,``),this[g].node=a,this[g].offset=o,this[p].node=a,this[p].offset=o}detach(){}extractContents(){let e=this[y],t=this[h].createDocumentFragment(),n=this.startOffset,r=this.endOffset;if(this.collapsed)return t;if(this[g].node===this[p].node&&(this[g].node[S]===H.textNode||this[g].node[S]===H.processingInstructionNode||this[g].node[S]===H.commentNode)){let e=this[g].node.cloneNode(!1);return e[je]=e.substringData(n,r-n),t.appendChild(e),this[g].node.replaceData(n,r-n,``),t}let i=this[g].node;for(;!Y.isInclusiveAncestor(i,this[p].node);)i=i[x];let a=null;if(!Y.isInclusiveAncestor(this[g].node,this[p].node)){let e=i.firstChild;for(;!a;)Sh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!Y.isInclusiveAncestor(this[p].node,this[g].node)){let e=i.lastChild;for(;!o;)Sh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let e of i[A])if(Sh.isContained(e,this)){if(e[S]===H.documentTypeNode)throw new this[y].DOMException(`Invalid document type element.`,V.hierarchyRequestError);s.push(e)}let c,l;if(Y.isInclusiveAncestor(this[g].node,this[p].node))c=this[g].node,l=n;else{let e=this[g].node;for(;e&&!Y.isInclusiveAncestor(e[x],this[p].node);)e=e[x];c=e[x],l=e[x][A].indexOf(e)+1}if(a!==null&&(a[S]===H.textNode||a[S]===H.processingInstructionNode||a[S]===H.commentNode)){let e=this[g].node.cloneNode(!1);e[je]=e.substringData(n,Y.getNodeLength(this[g].node)-n),t.appendChild(e),this[g].node.replaceData(n,Y.getNodeLength(this[g].node)-n,``)}else if(a!==null){let r=a.cloneNode(!1);t.appendChild(r);let i=new e.Range;i[g].node=this[g].node,i[g].offset=n,i[p].node=a,i[p].offset=Y.getNodeLength(a);let o=i.extractContents();r.appendChild(o)}for(let e of s)t.appendChild(e);if(o!==null&&(o[S]===H.textNode||o[S]===H.processingInstructionNode||o[S]===H.commentNode)){let e=this[p].node.cloneNode(!1);e[je]=e.substringData(0,r),t.appendChild(e),this[p].node.replaceData(0,r,``)}else if(o!==null){let n=o.cloneNode(!1);t.appendChild(n);let i=new e.Range;i[g].node=o,i[g].offset=0,i[p].node=this[p].node,i[p].offset=r;let a=i.extractContents();n.appendChild(a)}return this[g].node=c,this[g].offset=l,this[p].node=c,this[p].offset=l,t}getBoundingClientRect(){return new Dd}getClientRects(){return new Md(M)}isPointInRange(e,t=0){if(e[h]!==this[h])return!1;let n={node:e,offset:t};return Sh.validateBoundaryPoint(n),!(Sh.compareBoundaryPointsPosition(n,{node:this[g].node,offset:this.startOffset})===-1||Sh.compareBoundaryPointsPosition(n,{node:this[p].node,offset:this.endOffset})===1)}insertNode(e){if(this[g].node[S]===H.processingInstructionNode||this[g].node[S]===H.commentNode||this[g].node[S]===H.textNode&&!this[g].node[x]||e===this[g].node)throw new this[y].DOMException(`Invalid start node.`,V.hierarchyRequestError);let t=this[g].node[S]===H.textNode?this[g].node:this[g].node[A][this.startOffset]||null,n=t?t[x]:this[g].node;this[g].node[S]===H.textNode&&(t=this[g].node.splitText(this.startOffset)),e===t&&(t=t.nextSibling);let r=e[x];r&&r.removeChild(e);let i=t?t[x][A].indexOf(t):Y.getNodeLength(n);i+=e[S]===H.documentFragmentNode?Y.getNodeLength(e):1,n.insertBefore(e,t),this.collapsed&&(this[p].node=n,this[p].offset=i)}intersectsNode(e){if(e[h]!==this[h])return!1;let t=e[x];if(!t)return!0;let n=t[A].indexOf(e);return Sh.compareBoundaryPointsPosition({node:t,offset:n},{node:this[p].node,offset:this.endOffset})===-1&&Sh.compareBoundaryPointsPosition({node:t,offset:n+1},{node:this[g].node,offset:this.startOffset})===1}selectNode(e){if(!e[x])throw new this[y].DOMException(`The given Node has no parent.`,V.invalidNodeTypeError);let t=e[x][A].indexOf(e);this[g].node=e[x],this[g].offset=t,this[p].node=e[x],this[p].offset=t+1}selectNodeContents(e){if(e[S]===H.documentTypeNode)throw new this[y].DOMException(`DocumentType Node can't be used as boundary point.`,V.invalidNodeTypeError);this[g].node=e,this[g].offset=0,this[p].node=e,this[p].offset=Y.getNodeLength(e)}setEnd(e,t=0){Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[h]!==this[h]||Sh.compareBoundaryPointsPosition(n,{node:this[g].node,offset:this.startOffset})===-1)&&(this[g].node=e,this[g].offset=t),this[p].node=e,this[p].offset=t}setStart(e,t=0){Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[h]!==this[h]||Sh.compareBoundaryPointsPosition(n,{node:this[p].node,offset:this.endOffset})===1)&&(this[p].node=e,this[p].offset=t),this[g].node=e,this[g].offset=t}setEndAfter(e){if(!e[x])throw new this[y].DOMException(`The given Node has no parent.`,V.invalidNodeTypeError);this.setEnd(e[x],e[x][A].indexOf(e)+1)}setEndBefore(e){if(!e[x])throw new this[y].DOMException(`The given Node has no parent.`,V.invalidNodeTypeError);this.setEnd(e[x],e[x][A].indexOf(e))}setStartAfter(e){if(!e[x])throw new this[y].DOMException(`The given Node has no parent.`,V.invalidNodeTypeError);this.setStart(e[x],e[x][A].indexOf(e)+1)}setStartBefore(e){if(!e[x])throw new this[y].DOMException(`The given Node has no parent.`,V.invalidNodeTypeError);this.setStart(e[x],e[x][A].indexOf(e))}surroundContents(e){let t=this.commonAncestorContainer;if(!t)return;let n=Y.nextDescendantNode(t);for(;t&&t!==n;){if(t[S]!==H.textNode&&Sh.isPartiallyContained(t,this))throw new this[y].DOMException(`The Range has partially contains a non-Text node.`,V.invalidStateError);t=Y.following(t)}if(e[S]===H.documentNode||e[S]===H.documentTypeNode||e[S]===H.documentFragmentNode)throw new this[y].DOMException(`Invalid element type.`,V.invalidNodeTypeError);let r=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(r),this.selectNode(e)}toString(){let e=this.startOffset,t=this.endOffset,n=``;if(this[g].node===this[p].node&&this[g].node[S]===H.textNode)return this[g].node.data.slice(e,t);this[g].node[S]===H.textNode&&(n+=this[g].node.data.slice(e));let r=Y.nextDescendantNode(this[p].node),i=this[g].node;for(;i&&i!==r;)i[S]===H.textNode&&Sh.isContained(i,this)&&(n+=i.data),i=Y.following(i);return this[p].node[S]===H.textNode&&(n+=this[p].node.data.slice(0,t)),n}},wg=class extends rl{id=``;startTime=0;endTime=0;pauseOnExit=!1;[Dr]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==M)throw TypeError(`Illegal constructor`);if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Dr]}},Tg=class extends wg{region=null;vertical=``;snapToLines=!0;line=0;lineAlign=``;position=`auto`;positionAlign=`auto`;size=100;align=``;text=``;constructor(e,t,n){super(M);let r=this[y],i=0;if(e!==void 0&&i++,t!==void 0&&i++,n!==void 0&&i++,i<3)throw new r.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${i} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new r.TypeError(`Failed to construct 'VTTCue': The provided double value is non-finite.`);this.startTime=e,this.endTime=t,this.text=String(n)}getCueAsHTML(){let e=this[y],t=e.document.createDocumentFragment();return t.appendChild(e.document.createTextNode(this.text)),t}},Eg=class extends rl{[Fr]=Rf.subtitles;[Ir]=``;[Lr]=``;[Rr]=``;[Sn]=`disabled`;[Nr]=new Tm(M);[Pr]=new Tm(M);oncuechange=null;constructor(e){if(super(),e!==M)throw TypeError(`Illegal constructor`);if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[Fr]}get label(){return this[Ir]}get language(){return this[Lr]}get id(){return this[Rr]}get mode(){return this[Sn]}set mode(e){e!==`disabled`&&e!==`showing`||(this[Sn]=e)}get cues(){return this[Sn]===`disabled`?null:this[Nr]}get activeCues(){return this[Sn]===`disabled`?null:this[Pr]}addCue(e){this[Nr].includes(e)||(e[Dr]=this,this[Nr].push(e))}removeCue(e){let t=this[Nr].indexOf(e);t!==-1&&(e[Dr]=null,this[Nr].splice(t,1))}},Dg=class e extends rl{[k]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,n){if(super(),t!==M)throw TypeError(`Illegal constructor`);this[k]=n;let r=new Vc(this,[e,rl]);return new Proxy(this,{get:(e,t)=>{if(t===`length`)return n.length;if(t in e||typeof t==`symbol`)return r.bind(t),e[t];let i=Number(t);if(!isNaN(i))return n[i]},set(e,t,n){if(r.bind(t),typeof t==`symbol`)return e[t]=n,!0;let i=Number(t);return isNaN(i)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){return Object.keys(n)},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let r=Number(t);return!isNaN(r)&&r>=0&&r<n.length},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let r=Number(t);if(!isNaN(r)&&n[r])return{value:n[r],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[k].length}get[Symbol.toStringTag](){return`TextTrackList`}toLocaleString(){return`[object TextTrackList]`}toString(){return`[object TextTrackList]`}[Symbol.iterator](){return this[k][Symbol.iterator]()}getTrackById(e){for(let t of this[k])if(t.id===e)return t;return null}},Og=class extends rl{[zr]=`disconnected`;onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[zr]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}},kg=t((e=>{e.removeLeadingAndTrailingHTTPWhitespace=e=>e.replace(/^[ \t\n\r]+/u,``).replace(/[ \t\n\r]+$/u,``),e.removeTrailingHTTPWhitespace=e=>e.replace(/[ \t\n\r]+$/u,``),e.isHTTPWhitespaceChar=e=>e===` `||e===` `||e===`
|
|
185
|
-
`||e===`\r`,e.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),e.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),e.asciiLowercase=e=>e.replace(/[A-Z]/gu,e=>e.toLowerCase()),e.collectAnHTTPQuotedString=(e,t)=>{let n=``;for(t++;;){for(;t<e.length&&e[t]!==`"`&&e[t]!==`\\`;)n+=e[t],++t;if(t>=e.length)break;let r=e[t];if(++t,r===`\\`){if(t>=e.length){n+=`\\`;break}n+=e[t],++t}else break}return[n,t]}})),Ag=t(((e,t)=>{let{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:i}=kg();t.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=n(String(e)),this._map.get(e)}has(e){return e=n(String(e)),this._map.has(e)}set(e,t){if(e=n(String(e)),t=String(t),!r(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!i(t))throw Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=n(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}})),jg=t(((e,t)=>{let{removeLeadingAndTrailingHTTPWhitespace:n,removeTrailingHTTPWhitespace:r,isHTTPWhitespaceChar:i,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:o,asciiLowercase:s,collectAnHTTPQuotedString:c}=kg();t.exports=e=>{e=n(e);let t=0,l=``;for(;t<e.length&&e[t]!==`/`;)l+=e[t],++t;if(l.length===0||!a(l)||t>=e.length)return null;++t;let u=``;for(;t<e.length&&e[t]!==`;`;)u+=e[t],++t;if(u=r(u),u.length===0||!a(u))return null;let d={type:s(l),subtype:s(u),parameters:new Map};for(;t<e.length;){for(++t;i(e[t]);)++t;let n=``;for(;t<e.length&&e[t]!==`;`&&e[t]!==`=`;)n+=e[t],++t;if(n=s(n),t<e.length){if(e[t]===`;`)continue;++t}let l=null;if(e[t]===`"`)for([l,t]=c(e,t);t<e.length&&e[t]!==`;`;)++t;else{for(l=``;t<e.length&&e[t]!==`;`;)l+=e[t],++t;if(l=r(l),l===``)continue}n.length>0&&a(n)&&o(l)&&!d.parameters.has(n)&&d.parameters.set(n,l)}return d}})),Mg=t(((e,t)=>{let{solelyContainsHTTPTokenCodePoints:n}=kg();t.exports=e=>{let t=`${e.type}/${e.subtype}`;if(e.parameters.size===0)return t;for(let[r,i]of e.parameters)t+=`;`,t+=r,t+=`=`,(!n(i)||i.length===0)&&(i=i.replace(/(["\\])/gu,`\\$1`),i=`"${i}"`),t+=i;return t}})),Ng=e(t(((e,t)=>{let n=Ag(),r=jg(),i=Mg(),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:o}=kg();t.exports=class{constructor(e){e=String(e);let t=r(e);if(t===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new n(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid type: must be a non-empty string`);if(!o(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid subtype: must be a non-empty string`);if(!o(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return i(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case`text`:switch(this._subtype){case`ecmascript`:case`javascript`:case`javascript1.0`:case`javascript1.1`:case`javascript1.2`:case`javascript1.3`:case`javascript1.4`:case`javascript1.5`:case`jscript`:case`livescript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}case`application`:switch(this._subtype){case`ecmascript`:case`javascript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype===`xml`&&(this._type===`text`||this._type===`application`)||this._subtype.endsWith(`+xml`)}isHTML(){return this._subtype===`html`&&this._type===`text`}}}))(),1),Pg;(function(e){e[e.empty=0]=`empty`,e[e.loading=1]=`loading`,e[e.done=2]=`done`})(Pg||={});var Fg=Pg,Ig;(function(e){e.buffer=`buffer`,e.binaryString=`binaryString`,e.dataURL=`dataURL`,e.text=`text`})(Ig||={});var Lg=Ig,Rg;(function(e){e.abort=`abort`,e.error=`error`,e.load=`load`,e.loadstart=`loadstart`,e.loadend=`loadend`,e.progress=`progress`})(Rg||={});var zg=Rg,Bg=class extends rl{error=null;result=null;readyState=Fg.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#n=null;constructor(){if(super(),!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.buffer)}readAsBinaryString(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.binaryString)}readAsDataURL(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.dataURL)}readAsText(e,t=null){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.text,t||`UTF-8`)}abort(){let e=this[y];if(this.#t&&e.clearTimeout(this.#t),this.#n&&e.clearTimeout(this.#n),this.readyState===Fg.empty||this.readyState===Fg.done){this.result=null;return}this.readyState===Fg.loading&&(this.readyState=Fg.done,this.result=null),this.#e=!0,this.dispatchEvent(new uu(zg.abort)),this.dispatchEvent(new uu(zg.loadend))}#r(e,t,n=null){let r=this[y];if(this.readyState===Fg.loading)throw new r.DOMException(`The object is in an invalid state.`,V.invalidStateError);this.readyState=Fg.loading,this.#t=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new uu(zg.loadstart));let a=e[he];a||=i.alloc(0),this.dispatchEvent(new uu(zg.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:a.length})),this.#n=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(t){default:case Lg.buffer:this.result=new Uint8Array(a).buffer;break;case Lg.binaryString:this.result=a.toString(`binary`);break;case Lg.dataURL:{let t=Ng.default.parse(e.type)||`application/octet-stream`;this.result=`data:${t};base64,${a.toString(`base64`)}`;break}case Lg.text:this.result=new TextDecoder(n||`UTF-8`).decode(a);break}this.readyState=Fg.done,this.dispatchEvent(new uu(zg.load)),this.dispatchEvent(new uu(zg.loadend))})})}};const Vg={aspectRatio:{max:300,min:.006666666666666667},deviceId:``,facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:[`none`,`crop-and-scale`],width:{max:300,min:1}},Hg={deviceId:``,frameRate:60,resizeMode:`none`};var Ug=class extends rl{contentHint=``;enabled=!0;id=f.randomUUID();muted=!1;readyState=`live`;label=``;[Ir]=``;[Fr]=`video`;[Bn]={};[Vn]=JSON.parse(JSON.stringify(Vg));[Hn]=JSON.parse(JSON.stringify(Hg));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==M)throw TypeError(`Illegal constructor`);if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[Fr]}async applyConstraints(e){this.#e(this[Bn],e)}getConstraints(){return this[Bn]}getCapabilities(){return this[Vn]}getSettings(){return this[Hn]}clone(){let e=new this.constructor(M);return e[Fr]=this[Fr],e[Bn]=this[Bn],e[Vn]=this[Vn],e[Hn]=this[Hn],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState=`ended`}#e(e,t){for(let n in t)t[n]!==null&&typeof t[n]==`object`&&!Array.isArray(t[n])?(typeof e[n]!=`object`&&(e[n]={}),this.#e(e[n],t[n])):e[n]=t[n]}},Wg=class extends Ug{[Br];constructor(e,t){super(e),this[Br]=t}get canvas(){return this[Br]}requestFrame(){}clone(){let e=super.clone();return e[Br]=this.canvas,e}},Gg;(function(e){e[e.connecting=0]=`connecting`,e[e.open=1]=`open`,e[e.closing=2]=`closing`,e[e.closed=3]=`closed`})(Gg||={});var Kg=Gg;const qg=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;var Jg=class extends rl{static CONNECTING=Kg.connecting;static OPEN=Kg.open;static CLOSING=Kg.closing;static CLOSED=Kg.closed;#e=Kg.closed;#t=``;#n=`blob`;#r=null;#i;[as]=null;constructor(e,t){super();let n=this[y],r;try{r=new URL(e)}catch{throw new n.DOMException(`The URL '${e}' is invalid.`,V.syntaxError)}if(r.protocol!==`ws:`&&r.protocol!==`wss:`)throw new n.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${r.protocol}' is not allowed.`,V.syntaxError);r.hash&&=``;let i=new Set,a=t===void 0?[]:Array.isArray(t)?t:[t];for(let e of a){if(!this.#d(e))throw new n.DOMException(`The subprotocol '${e}' is invalid.`,V.syntaxError);if(i.has(e))throw new n.DOMException(`The subprotocol '${e}' is duplicated.`,V.syntaxError);i.add(e)}this.#i=r,this.#a(r,a)}get readyState(){return this.#e}get extensions(){return this.#t}get binaryType(){return this.#n}set binaryType(e){e!==`blob`&&e!==`arraybuffer`||(this.#n=e)}get protocol(){return this[as]?.protocol||``}get url(){return this.#i.href}close(e,t){let n=this[y];if(e!==void 0&&e!==1e3&&!(e>=3e3&&e<=4999))throw new n.DOMException(`The code must be either 1000, or between 3000 and 4999. ${e} is neither.`,V.invalidAccessError);if(t!==void 0&&Buffer.byteLength(t,`utf8`)>123)throw new n.DOMException(`The message must not be greater than 123 bytes.`,V.syntaxError);this.#o(e,t?Buffer.from(t):void 0)}send(e){let t=this[y];if(this.#e===Kg.connecting)throw new t.DOMException(`Still in CONNECTING state.`,V.invalidStateError);if(this.#e!==Kg.open)return;if(typeof e==`string`){this[as]?.send(e,{binary:!1});return}let n;n=e instanceof ArrayBuffer?Buffer.from(new Uint8Array(e)):e instanceof zs?e[he]:e instanceof Buffer?e:ArrayBuffer.isView(e)?Buffer.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)):Buffer.from(String(e)),this[as]?.send(n,{binary:!0})}[Ne](){super[Ne](),this.#o(1001)}#a(e,t){let r=this[y],i=new J(r).getBrowserContext();if(!i)return;let a=new URL(r.location.href),o=i.cookieContainer.getCookies(a,!1);this.#e=Kg.connecting,this[as]=new n(e,t,{headers:{"user-agent":r.navigator.userAgent,cookie:Pu.cookiesToString(o),origin:a.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[as].once(`open`,()=>{this.#s()}),this[as].on(`message`,this.#l.bind(this)),this[as].once(`close`,(e,t)=>{this.#c(e,t)}),this[as].once(`upgrade`,({headers:e})=>{if(e[`set-cookie`]!==void 0){let t=Array.isArray(e[`set-cookie`])?e[`set-cookie`]:[e[`set-cookie`]];for(let e of t){let t=Pu.stringToCookie(a,e);t&&i.cookieContainer.addCookies([t])}}}),this[as].once(`error`,e=>{this.#r=e}),r[is].push(this)}#o(e,t){this.readyState===Kg.connecting?this[as]?this[as].terminate():this.#e=Kg.closing:this[as]&&this.readyState===Kg.open&&this[as].close(e,t),this[as]=null}#s(){this[as]?.extensions&&(this.#t=Object.keys(this[as].extensions).join(`, `)),this.#e=Kg.open,this.dispatchEvent(new this[y].Event(`open`))}#c(e,t){let n=this[y],r=n[is].indexOf(this);r!==-1&&n[is].splice(r,1),this.#e=Kg.closed,this.dispatchEvent(new this[y].CloseEvent(`close`,{wasClean:this.#r===null,code:e,reason:t.toString()}))}#l(e,t){if(this.#e!==Kg.open)return;let n=this[y],r;if(t)switch(this.binaryType){case`arraybuffer`:r=e instanceof n.ArrayBuffer?e:Array.isArray(e)?this.#u(Buffer.concat(e)):this.#u(e);break;default:Array.isArray(e)||(e=[e]),r=new n.Blob(e);break}else r=String(e);this.dispatchEvent(new n.MessageEvent(`message`,{data:r,origin:this.#i.origin}))}#u(e){let t=new this[y].ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}#d(e){return qg.test(e)}},Yg=class{[je];[v];[m];constructor(e,t,n){if(arguments.length<2)throw new this[y].TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(e instanceof Uint8ClampedArray){if(typeof t!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The width argument must be a number.`);if(n!==void 0&&typeof n!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[je]=e,this[v]=t,this[m]=n===void 0?e.length/(t*4):n}else{if(typeof t!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[je]=new Uint8ClampedArray(Array(e*t*4).fill(0)),this[v]=e,this[m]=t}}get data(){return this[je]}get width(){return this[v]}get height(){return this[m]}};const Xg={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},Zg=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Qg=/[\s,]+/;var $g=class e{[Xi]=1;[Zi]=0;[Qi]=0;[$i]=0;[ea]=0;[ta]=1;[na]=0;[ra]=0;[ia]=0;[aa]=0;[oa]=1;[sa]=0;[ca]=0;[la]=0;[ua]=0;[da]=1;constructor(e){e&&this[fa](e)}get a(){return this[Xi]}get b(){return this[Zi]}get c(){return this[ea]}get d(){return this[ta]}get e(){return this[ca]}get f(){return this[la]}get m11(){return this[Xi]}get m12(){return this[Zi]}get m13(){return this[Qi]}get m14(){return this[$i]}get m21(){return this[ea]}get m22(){return this[ta]}get m23(){return this[na]}get m24(){return this[ra]}get m31(){return this[ia]}get m32(){return this[aa]}get m33(){return this[oa]}get m34(){return this[sa]}get m41(){return this[ca]}get m42(){return this[la]}get m43(){return this[ua]}get m44(){return this[da]}get isIdentity(){return this[Xi]===1&&this[Zi]===0&&this[Qi]===0&&this[$i]===0&&this[ea]===0&&this[ta]===1&&this[na]===0&&this[ra]===0&&this[ia]===0&&this[aa]===0&&this[oa]===1&&this[sa]===0&&this[ca]===0&&this[la]===0&&this[ua]===0&&this[da]===1}get is2D(){return this[ia]===0&&this[aa]===0&&this[oa]===1&&this[sa]===0&&this[ua]===0&&this[da]===1}toFloat32Array(e){return Float32Array.from(this[qi](e))}toFloat64Array(e){return Float64Array.from(this[qi](e))}toString(){let e=this.is2D,t=this[qi](e).join(`, `);return`${e?`matrix`:`matrix3d`}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Xi],m12:this[Zi],m13:this[Qi],m14:this[$i],m21:this[ea],m22:this[ta],m23:this[na],m24:this[ra],m31:this[ia],m32:this[aa],m33:this[oa],m34:this[sa],m41:this[ca],m42:this[la],m43:this[ua],m44:this[da],a:this[Xi],b:this[Zi],c:this[ea],d:this[ta],e:this[ca],f:this[la],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return e&&t[xa](e),t}translate(e=0,t=0,n=0){let r=new this.constructor(this);return r[pa](e,t,n),r}scale(e,t,n=1,r=0,i=0,a=0){let o=new this.constructor(this);return o[ga](e,t,n,r,i,a),o}scale3d(e=1,t=0,n=0,r=0){let i=new this.constructor(this);return i[_a](e,t,n,r),i}scaleNonUniform(e=1,t=1){let n=new this.constructor(this);return n[va](e,t),n}rotateAxisAngle(e=0,t=0,n=0,r=0){let i=new this.constructor(this);return i[ha](e,t,n,r),i}rotate(e=0,t,n){let r=new this.constructor(this);return r[ma](e,t,n),r}rotateFromVector(e=0,t=0){let n=new this.constructor(this);return n[vo](e,t),n}skewX(e){let t=new this.constructor(this);return t[ya](e),t}skewY(e){let t=new this.constructor(this);return t[ba](e),t}flipX(){let e=new this.constructor(this);return e[yo](),e}flipY(){let e=new this.constructor(this);return e[bo](),e}inverse(){let e=new this.constructor(this);return e[xo](),e}transformPoint(e){let t=e?.x??0,n=e?.y??0,r=e?.z??0,i=e?.w??1,a=this[Xi]*t+this[ea]*n+this[ia]*r+this[ca]*i,o=this[Zi]*t+this[ta]*n+this[aa]*r+this[la]*i,s=this[Qi]*t+this[na]*n+this[oa]*r+this[ua]*i,c=this[$i]*t+this[ra]*n+this[sa]*r+this[da]*i;return new this[y].DOMPoint(a,o,s,c)}[fa](e){let t=null;if(typeof e==`string`&&e.length&&e!==`none`)t=this.constructor[Ji](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[Yi](e);else if(typeof e==`object`)t=this.constructor.fromMatrix(e);else return;this[Xi]=t[Xi],this[Zi]=t[Zi],this[Qi]=t[Qi],this[$i]=t[$i],this[ea]=t[ea],this[ta]=t[ta],this[na]=t[na],this[ra]=t[ra],this[ia]=t[ia],this[aa]=t[aa],this[oa]=t[oa],this[sa]=t[sa],this[ca]=t[ca],this[la]=t[la],this[ua]=t[ua],this[da]=t[da]}[xa](t){if(!t)return;let n=t;n instanceof e||(n?.m11===void 0&&n?.a!==void 0?(n=Object.assign({},Xg,n),n.m11=n.a,n.m12=n.b,n.m21=n.c,n.m22=n.d,n.m41=n.e,n.m42=n.f):n=Object.assign({},Xg,n));let r=this[Xi]*n.m11+this[ea]*n.m12+this[ia]*n.m13+this[ca]*n.m14,i=this[Xi]*n.m21+this[ea]*n.m22+this[ia]*n.m23+this[ca]*n.m24,a=this[Xi]*n.m31+this[ea]*n.m32+this[ia]*n.m33+this[ca]*n.m34,o=this[Xi]*n.m41+this[ea]*n.m42+this[ia]*n.m43+this[ca]*n.m44,s=this[Zi]*n.m11+this[ta]*n.m12+this[aa]*n.m13+this[la]*n.m14,c=this[Zi]*n.m21+this[ta]*n.m22+this[aa]*n.m23+this[la]*n.m24,l=this[Zi]*n.m31+this[ta]*n.m32+this[aa]*n.m33+this[la]*n.m34,u=this[Zi]*n.m41+this[ta]*n.m42+this[aa]*n.m43+this[la]*n.m44,d=this[Qi]*n.m11+this[na]*n.m12+this[oa]*n.m13+this[ua]*n.m14,f=this[Qi]*n.m21+this[na]*n.m22+this[oa]*n.m23+this[ua]*n.m24,ee=this[Qi]*n.m31+this[na]*n.m32+this[oa]*n.m33+this[ua]*n.m34,te=this[Qi]*n.m41+this[na]*n.m42+this[oa]*n.m43+this[ua]*n.m44,ne=this[$i]*n.m11+this[ra]*n.m12+this[sa]*n.m13+this[da]*n.m14,re=this[$i]*n.m21+this[ra]*n.m22+this[sa]*n.m23+this[da]*n.m24,ie=this[$i]*n.m31+this[ra]*n.m32+this[sa]*n.m33+this[da]*n.m34,ae=this[$i]*n.m41+this[ra]*n.m42+this[sa]*n.m43+this[da]*n.m44;this[Xi]=r,this[Zi]=s,this[Qi]=d,this[$i]=ne,this[ea]=i,this[ta]=c,this[na]=f,this[ra]=re,this[ia]=a,this[aa]=l,this[oa]=ee,this[sa]=ie,this[ca]=o,this[la]=u,this[ua]=te,this[da]=ae}[pa](e=0,t=0,n=0){let r=this.constructor[Yi]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]);this[xa](r)}[ga](e,t,n=1,r=0,i=0,a=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(r!==0||i!==0||a!==0)&&this[pa](r,i,a),(e!==1||t!==1||n!==1)&&this[xa](this.constructor[Yi]([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1])),(r!==0||i!==0||a!==0)&&this[pa](-r,-i,-a)}[_a](e=1,t=0,n=0,r=0){(t!==0||n!==0||r!==0)&&this[pa](t,n,r),e!==1&&this[xa](this.constructor[Yi]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||n!==0||r!==0)&&this[pa](-t,-n,-r)}[va](e=1,t=1){e===1&&t===1||this[xa](this.constructor[Yi]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[ha](e=0,t=0,n=0,r=0){if(e=Number(e),t=Number(t),n=Number(n),r=Number(r),isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw new this[y].TypeError(`Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.`);let i=Math.hypot(e,t,n);if(i===0)return;i!==1&&(e/=i,t/=i,n/=i);let a=-(r*Math.PI/360),o=this.#e,s=Math.sin(a)*Math.cos(a),c=Math.sin(a)*Math.sin(a),l=o(1-2*(t*t+n*n)*c),u=o(2*(e*t*c+n*s)),d=o(2*(e*n*c-t*s)),f=o(2*(e*t*c-n*s)),ee=o(1-2*(e*e+n*n)*c),te=o(2*(t*n*c+e*s)),ne=o(2*(e*n*c+t*s)),re=o(2*(t*n*c-e*s)),ie=o(1-2*(e*e+t*t)*c),ae=this.constructor[Yi]([l,f,ne,0,u,ee,re,0,d,te,ie,0,0,0,0,1]);this[xa](ae)}[ma](e=0,t,n){if(t===void 0&&n===void 0&&(n=e,e=0,t=0),t===void 0&&(t=0),n===void 0&&(n=0),e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw new this[y].TypeError(`Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.`);n!==0&&this[ha](0,0,1,n),t!==0&&this[ha](0,1,0,t),e!==0&&this[ha](1,0,0,e)}[vo](e=0,t=0){e===0&&t===0||this[ma](Math.atan2(t,e)*180/Math.PI)}[ya](e){let t=Object.assign({},Xg),n=Math.tan(e*Math.PI/180);t.m21=n,t.c=n,this[xa](t)}[ba](e){let t=Object.assign({},Xg),n=Math.tan(e*Math.PI/180);t.m12=n,t.b=n,this[xa](t)}[yo](){let e=this.constructor[Yi]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[xa](e)}[bo](){let e=this.constructor[Yi]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[xa](e)}[xo](){let e=this[ta]*this[oa]*this[da]-this[ta]*this[sa]*this[ua]-this[aa]*this[na]*this[da]+this[aa]*this[ra]*this[ua]+this[la]*this[na]*this[sa]-this[la]*this[ra]*this[oa],t=-this[Zi]*this[oa]*this[da]+this[Zi]*this[sa]*this[ua]+this[aa]*this[Qi]*this[da]-this[aa]*this[$i]*this[ua]-this[la]*this[Qi]*this[sa]+this[la]*this[$i]*this[oa],n=this[Zi]*this[na]*this[da]-this[Zi]*this[ra]*this[ua]-this[ta]*this[Qi]*this[da]+this[ta]*this[$i]*this[ua]+this[la]*this[Qi]*this[ra]-this[la]*this[$i]*this[na],r=-this[Zi]*this[na]*this[sa]+this[Zi]*this[ra]*this[oa]+this[ta]*this[Qi]*this[sa]-this[ta]*this[$i]*this[oa]-this[aa]*this[Qi]*this[ra]+this[aa]*this[$i]*this[na],i=this[Xi]*e+this[ea]*t+this[ia]*n+this[ca]*r;if(i===0){this[Xi]=NaN,this[Zi]=NaN,this[Qi]=NaN,this[$i]=NaN,this[ea]=NaN,this[ta]=NaN,this[na]=NaN,this[ra]=NaN,this[ia]=NaN,this[aa]=NaN,this[oa]=NaN,this[sa]=NaN,this[ca]=NaN,this[la]=NaN,this[ua]=NaN,this[da]=NaN;return}let a=-this[ea]*this[oa]*this[da]+this[ea]*this[sa]*this[ua]+this[ia]*this[na]*this[da]-this[ia]*this[ra]*this[ua]-this[ca]*this[na]*this[sa]+this[ca]*this[ra]*this[oa],o=this[Xi]*this[oa]*this[da]-this[Xi]*this[sa]*this[ua]-this[ia]*this[Qi]*this[da]+this[ia]*this[$i]*this[ua]+this[ca]*this[Qi]*this[sa]-this[ca]*this[$i]*this[oa],s=-this[Xi]*this[na]*this[da]+this[Xi]*this[ra]*this[ua]+this[ea]*this[Qi]*this[da]-this[ea]*this[$i]*this[ua]-this[ca]*this[Qi]*this[ra]+this[ca]*this[$i]*this[na],c=this[Xi]*this[na]*this[sa]-this[Xi]*this[ra]*this[oa]-this[ea]*this[Qi]*this[sa]+this[ea]*this[$i]*this[oa]+this[ia]*this[Qi]*this[ra]-this[ia]*this[$i]*this[na],l=this[ea]*this[aa]*this[da]-this[ea]*this[sa]*this[la]-this[ia]*this[ta]*this[da]+this[ia]*this[ra]*this[la]+this[ca]*this[ta]*this[sa]-this[ca]*this[ra]*this[aa],u=-this[Xi]*this[aa]*this[da]+this[Xi]*this[sa]*this[la]+this[ia]*this[Zi]*this[da]-this[ia]*this[$i]*this[la]-this[ca]*this[Zi]*this[sa]+this[ca]*this[$i]*this[aa],d=this[Xi]*this[ta]*this[da]-this[Xi]*this[ra]*this[la]-this[ea]*this[Zi]*this[da]+this[ea]*this[$i]*this[la]+this[ca]*this[Zi]*this[ra]-this[ca]*this[$i]*this[ta],f=-this[Xi]*this[ta]*this[sa]+this[Xi]*this[ra]*this[aa]+this[ea]*this[Zi]*this[sa]-this[ea]*this[$i]*this[aa]-this[ia]*this[Zi]*this[ra]+this[ia]*this[$i]*this[ta],ee=-this[ea]*this[aa]*this[ua]+this[ea]*this[oa]*this[la]+this[ia]*this[ta]*this[ua]-this[ia]*this[na]*this[la]-this[ca]*this[ta]*this[oa]+this[ca]*this[na]*this[aa],te=this[Xi]*this[aa]*this[ua]-this[Xi]*this[oa]*this[la]-this[ia]*this[Zi]*this[ua]+this[ia]*this[Qi]*this[la]+this[ca]*this[Zi]*this[oa]-this[ca]*this[Qi]*this[aa],ne=-this[Xi]*this[ta]*this[ua]+this[Xi]*this[na]*this[la]+this[ea]*this[Zi]*this[ua]-this[ea]*this[Qi]*this[la]-this[ca]*this[Zi]*this[na]+this[ca]*this[Qi]*this[ta],re=this[Xi]*this[ta]*this[oa]-this[Xi]*this[na]*this[aa]-this[ea]*this[Zi]*this[oa]+this[ea]*this[Qi]*this[aa]+this[ia]*this[Zi]*this[na]-this[ia]*this[Qi]*this[ta];this[Xi]=e/i||0,this[Zi]=t/i||0,this[Qi]=n/i||0,this[$i]=r/i||0,this[ea]=a/i||0,this[ta]=o/i||0,this[na]=s/i||0,this[ra]=c/i||0,this[ia]=l/i||0,this[aa]=u/i||0,this[oa]=d/i||0,this[sa]=f/i||0,this[ca]=ee/i||0,this[la]=te/i||0,this[ua]=ne/i||0,this[da]=re/i||0}[qi](e=!1){return e?[this[Xi],this[Zi],this[ea],this[ta],this[ca],this[la]]:[this[Xi],this[Zi],this[Qi],this[$i],this[ea],this[ta],this[na],this[ra],this[ia],this[aa],this[oa],this[sa],this[ca],this[la],this[ua],this[da]]}#e(e,t=0x38d7ea4c68000){return Math.round(e*t)/t}static fromMatrix(t){return t instanceof e||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Xg,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Xg,t)),this[Yi]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(e){return this[Yi](e)}static fromFloat64Array(e){return this[Yi](e)}static[Yi](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[n,r,i,a,o,s,c,l,u,d,f,ee,te,ne,re,ie]=e;t[Xi]=n,t[Zi]=r,t[Qi]=i,t[$i]=a,t[ea]=o,t[ta]=s,t[na]=c,t[ra]=l,t[ia]=u,t[aa]=d,t[oa]=f,t[sa]=ee,t[ca]=te,t[la]=ne,t[ua]=re,t[da]=ie}else if(e.length===6){let[n,r,i,a,o,s]=e;t[Xi]=n,t[Zi]=r,t[ea]=i,t[ta]=a,t[ca]=o,t[la]=s}return t}static[Ji](e){if(typeof e!=`string`)throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,n=new RegExp(Zg),r;for(;r=n.exec(e);){let e=r[1],n=r[2].split(Qg);for(let e=0,t=n.length;e<t;e++)n[e]=this[So](n[e]);let[i,a,o,s]=n;switch(e){case`perspective`:!isNaN(i)&&i!==0&&a===void 0&&o===void 0&&(t[sa]=-1/i);break;case`translate`:!isNaN(i)&&o===void 0&&t[pa](i,a||0,0);break;case`translate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[pa](i,a,o);break;case`translateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](i);break;case`translateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,i);break;case`translateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,0,i);break;case`matrix`:case`matrix3d`:(n.length===6||n.length===16)&&t[fa](this[Yi](n));break;case`rotate`:case`rotateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](0,0,i);break;case`rotateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](i,0,0);break;case`rotateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](0,i,0);case`rotate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&!isNaN(s)&&t[ha](i,a,o,s);break;case`scale`:!isNaN(i)&&i!==1&&o===void 0&&t[ga](i,isNaN(a)?i:a);break;case`scale3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[ga](i,a,o);break;case`scaleX`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](i,1,1);break;case`scaleY`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](1,i,1);break;case`scaleZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](1,1,i);break;case`skew`:isNaN(i)||t[ya](i),isNaN(a)||t[ba](a);break;case`skewX`:!isNaN(i)&&a===void 0&&t[ya](i);break;case`skewY`:!isNaN(i)&&a===void 0&&t[ba](i);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${r[1]}'.`)}}return t}static[So](e){let t=parseFloat(e);switch(e.replace(t.toString(),``)){case`rem`:case`em`:case`vw`:case`vh`:case`%`:case`vmin`:case`vmax`:throw SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case`rad`:return 180/Math.PI*t;case`turn`:return t*360;case`px`:return t;case`cm`:return t*37.7812;case`mm`:return t*3.7781;case`in`:return t*96;case`pt`:return t*1.3281;case`pc`:return t*16;case`Q`:return t*.945;default:return t}}},e_=class extends $g{get a(){return this[Xi]}set a(e){this[Xi]=e}get b(){return this[Zi]}set b(e){this[Zi]=e}get c(){return this[ea]}set c(e){this[ea]=e}get d(){return this[ta]}set d(e){this[ta]=e}get e(){return this[ca]}set e(e){this[ca]=e}get f(){return this[la]}set f(e){this[la]=e}get m11(){return this[Xi]}set m11(e){this[Xi]=e}get m12(){return this[Zi]}set m12(e){this[Zi]=e}get m13(){return this[Qi]}set m13(e){this[Qi]=e}get m14(){return this[$i]}set m14(e){this[$i]=e}get m21(){return this[ea]}set m21(e){this[ea]=e}get m22(){return this[ta]}set m22(e){this[ta]=e}get m23(){return this[na]}set m23(e){this[na]=e}get m24(){return this[ra]}set m24(e){this[ra]=e}get m31(){return this[ia]}set m31(e){this[ia]=e}get m32(){return this[aa]}set m32(e){this[aa]=e}get m33(){return this[oa]}set m33(e){this[oa]=e}get m34(){return this[sa]}set m34(e){this[sa]=e}get m41(){return this[ca]}set m41(e){this[ca]=e}get m42(){return this[la]}set m42(e){this[la]=e}get m43(){return this[ua]}set m43(e){this[ua]=e}get m44(){return this[da]}set m44(e){this[da]=e}setMatrixValue(e){return this[fa](e),this}multiplySelf(e){return this[xa](e),this}translateSelf(e=0,t=0,n=0){return this[pa](e,t,n),this}scaleSelf(e,t,n=1,r=0,i=0,a=0){return this[ga](e,t,n,r,i,a),this}scale3dSelf(e=1,t=0,n=0,r=0){return this[_a](e,t,n,r),this}scaleNonUniformSelf(e=1,t=1){return this[va](e,t),this}rotateAxisAngleSelf(e=0,t=0,n=0,r=0){return this[ha](e,t,n,r),this}rotateSelf(e=0,t,n){return this[ma](e,t,n),this}rotateFromVectorSelf(e=0,t=0){return this[vo](e,t),this}skewXSelf(e){return this[ya](e),this}skewYSelf(e){return this[ba](e),this}flipXSelf(){return this[yo](),this}flipYSelf(){return this[bo](),this}invertSelf(){return this[xo](),this}preMultiplySelf(e){return this[xa](e),this}},t_=class{[E]=0;[D]=0;[Gi]=0;[Ki]=1;constructor(e,t,n,r){this[E]=e==null?0:Number(e),this[D]=t==null?0:Number(t),this[Gi]=n==null?0:Number(n),this[Ki]=r==null?1:Number(r)}get x(){return this[E]}get y(){return this[D]}get z(){return this[Gi]}get w(){return this[Ki]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}matrixTransform(e){let t=new this[y].DOMMatrixReadOnly(e),n=this.x*t.m11+this.y*t.m21+this.z*t.m31+this.w*t.m41,r=this.x*t.m12+this.y*t.m22+this.z*t.m32+this.w*t.m42,i=this.x*t.m13+this.y*t.m23+this.z*t.m33+this.w*t.m43,a=this.x*t.m14+this.y*t.m24+this.z*t.m34+this.w*t.m44;return new this.constructor(n,r,i,a)}},n_=class extends t_{set x(e){this[E]=e}get x(){return this[E]}set y(e){this[D]=e}get y(){return this[D]}set z(e){this[Gi]=e}get z(){return this[Gi]}set w(e){this[Ki]=e}get w(){return this[Ki]}},r_=class{static extendClasses(e){class t extends Bh{}t.prototype[y]=e,e.Document=t;class n extends Vh{}n.prototype[y]=e,e.HTMLDocument=n;class r extends Hh{}r.prototype[y]=e,e.XMLDocument=r;class i extends hh{}i.prototype[y]=e,e.DocumentFragment=i;class a extends Uh{}a.prototype[y]=e,e.Text=a;class o extends Wh{}o.prototype[y]=e,e.Comment=o;class s extends Gh{}s.prototype[y]=e,e.Image=s;class c extends Kh{}c.prototype[y]=e,e.Audio=c;class l extends Jh{}l.prototype[y]=e,e.MutationObserver=l;class u extends Yh{}u.prototype[y]=e,e.MessagePort=u;class d extends Qh{}d.prototype[y]=e,e.CSSStyleSheet=d;class f extends vs{}e.DOMException=f;class ee extends ys{}ee.prototype[y]=e,e.Headers=ee;class te extends Lu{}te.prototype[y]=e,e.Request=te;class ne extends zu{}ne.prototype[y]=e,ne[y]=e,e.Response=ne;class re extends rl{}re.prototype[y]=e,e.EventTarget=re;class ie extends eg{}ie.prototype[y]=e,e.XMLHttpRequestUpload=ie;class ae extends $h{}ae.prototype[y]=e,e.XMLHttpRequestEventTarget=ae;class oe extends tg{}oe.prototype[y]=e,e.AbortController=oe;class se extends ng{}se.prototype[y]=e,se[y]=e,e.AbortSignal=se;class ce extends Eu{}ce.prototype[y]=e,e.FormData=ce;class le extends rg{}le.prototype[y]=e,e.PermissionStatus=le;class ue extends lg{}ue.prototype[y]=e,e.XMLHttpRequest=ue;class de extends bg{}de.prototype[y]=e,e.DOMParser=de;class fe extends Cg{}fe.prototype[y]=e,e.Range=fe;class pe extends Tg{}pe.prototype[y]=e,e.VTTCue=pe;class me extends Eg{}me.prototype[y]=e,e.TextTrack=me;class he extends Dg{}he.prototype[y]=e,e.TextTrackList=he;class ge extends wg{}ge.prototype[y]=e,e.TextTrackCue=ge;class _e extends Og{}_e.prototype[y]=e,e.RemotePlayback=_e;class ve extends Bg{}ve.prototype[y]=e,e.FileReader=ve;class ye extends If{}ye.prototype[y]=e,e.MediaStream=ye;class be extends Ug{}be.prototype[y]=e,e.MediaStreamTrack=be;class xe extends Wg{}xe.prototype[y]=e,e.CanvasCaptureMediaStreamTrack=xe;class Se extends hu{}Se.prototype[y]=e,e.URL=Se;class Ce extends Jg{}Ce.prototype[y]=e,e.WebSocket=Ce;class we extends Yg{}we.prototype[y]=e,e.ImageData=we;class Te extends Xf{}Te.prototype[y]=e,e.OffscreenCanvas=Te;class Ee extends $g{}Ee.prototype[y]=e,e.DOMMatrixReadOnly=Ee;class De extends e_{}De.prototype[y]=e,e.DOMMatrix=De;class Oe extends t_{}Oe.prototype[y]=e,e.DOMPointReadOnly=Oe;class ke extends n_{}ke.prototype[y]=e,e.DOMPoint=ke}};const i_=/[\t\f\n\r ,]+/;var a_=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M||(this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute,t!==M))throw TypeError(`Illegal constructor`);let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){this[j].attributeValue=``,this[j].items=[],this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[I](e),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),this[I](n.join(` `)),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let n=this[N]();t<0?t=0:t>=n.length&&(t=n.length-1);let r=n[t];return n[t]=e,this[I](n.join(` `)),r}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return t.splice(e,1),this[I](t.join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),this[I](t.join(` `)),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;let n=[],r=e.trim();if(r)for(let e of r.split(i_))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}};const o_=/([a-zA-Z0-9]+)\(([^)]+)\)/,s_=/[\s,]+/;var c_=class e{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get a(){return this[Ca]().a}set a(e){if(this[P])return;let t=this[Ca]();t.a=e,this[wa](t)}get b(){return this[Ca]().b}set b(e){if(this[P])return;let t=this[Ca]();t.b=e,this[wa](t)}get c(){return this[Ca]().c}set c(e){if(this[P])return;let t=this[Ca]();t.c=e,this[wa](t)}get d(){return this[Ca]().d}set d(e){if(this[P])return;let t=this[Ca]();t.d=e,this[wa](t)}get e(){return this[Ca]().e}set e(e){if(this[P])return;let t=this[Ca]();t.e=e,this[wa](t)}get f(){return this[Ca]().f}set f(e){if(this[P])return;let t=this[Ca]();t.f=e,this[wa](t)}multiply(t){if(!(t instanceof e))throw new this[y].TypeError(`Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.`);let n=this[Ca](),r=new e(M,this[y]);return n.multiplySelf(t[Ca]()),r[wa](n),r}translate(t=0,n=0){let r=this[Ca](),i=new e(M,this[y]);return r.translateSelf(t,n),i[wa](r),i}scale(t){let n=this[Ca](),r=new e(M,this[y]);return n.scaleSelf(t),r[wa](n),r}scaleNonUniform(t=1,n=1){let r=this[Ca](),i=new e(M,this[y]);return r.scaleNonUniformSelf(t,n),i[wa](r),i}rotate(t){let n=this[Ca](),r=new e(M,this[y]);return n.rotateSelf(t),r[wa](n),r}rotateFromVector(t=0,n=0){let r=this[Ca](),i=new e(M,this[y]);return r.rotateFromVectorSelf(t,n),i[wa](r),i}skewX(t){let n=this[Ca](),r=new e(M,this[y]);return n.skewXSelf(t),r[wa](n),r}skewY(t){let n=this[Ca](),r=new e(M,this[y]);return n.skewYSelf(t),r[wa](n),r}flipX(){let t=this[Ca](),n=new e(M,this[y]);return t.flipXSelf(),n[wa](t),n}flipY(){let t=this[Ca](),n=new e(M,this[y]);return t.flipYSelf(),n[wa](t),n}inverse(){let t=this[Ca](),n=new e(M,this[y]);return t.invertSelf(),n[wa](t),n}[Ca](){let e=this[F]?this[F]():this[L],t=this[y];if(!e)return new t.DOMMatrix;let n=e.match(o_);if(!n)return new t.DOMMatrix;let r=[];for(let i of n[2].trim().split(s_)){let n=Number(i);if(isNaN(n))throw new t.TypeError(`Failed to parse transform attribute: Expected number, but got "${i}" in "${e}".`);r.push(n)}switch(n[1]){case`matrix`:if(r.length!==6)throw new t.TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return e_[Ji](e);case`scale`:case`translate`:if(r.length!==1&&r.length!==2)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return e_[Ji](e);case`skewY`:case`skewX`:if(r.length!==1)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return e_[Ji](e);case`rotate`:let n=new t.DOMMatrix;if(r.length!==1&&r.length!==3)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,a,o]=r;(a||o)&&n.translateSelf(a,o);let s=i*Math.PI/180;return n.multiplySelf(new t.DOMMatrix([Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0])),(a||o)&&n.translateSelf(-a,-o),n;default:throw new this[y].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[wa](e){this[L]=e.toString().replace(/, /g,` `),this[I]&&this[I](this[L])}},l_;(function(e){e[e.unknown=0]=`unknown`,e[e.matrix=1]=`matrix`,e[e.translate=2]=`translate`,e[e.scale=3]=`scale`,e[e.rotate=4]=`rotate`,e[e.skewX=5]=`skewX`,e[e.skewY=6]=`skewY`})(l_||={});var u_=l_;const d_=/([a-zA-Z0-9]+)\(([^)]+)\)/,f_=/[\s,]+/;var p_=class{static SVG_TRANSFORM_UNKNOWN=u_.unknown;static SVG_TRANSFORM_MATRIX=u_.matrix;static SVG_TRANSFORM_TRANSLATE=u_.translate;static SVG_TRANSFORM_SCALE=u_.scale;static SVG_TRANSFORM_ROTATE=u_.rotate;static SVG_TRANSFORM_SKEWX=u_.skewX;static SVG_TRANSFORM_SKEWY=u_.skewY;[y];[F]=null;[I]=null;[L]=null;[P]=!1;[Sa]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get type(){let e=(this[F]?this[F]():this[L])?.match(d_);if(!e)return u_.unknown;switch(e[1]){case`matrix`:return u_.matrix;case`translate`:return u_.translate;case`rotate`:return u_.rotate;case`scale`:return u_.scale;case`skewX`:return u_.skewX;case`skewY`:return u_.skewY}return 0}get angle(){let e=(this[F]?this[F]():this[L])?.match(d_);if(!e)return 0;let t=parseFloat(e[2].trim().split(f_)[0]);if(isNaN(t))return 0;switch(e[1]){case`rotate`:case`skewX`:case`skewY`:return t}return 0}get matrix(){return this[Sa]||(this[Sa]=new c_(M,this[y],{readOnly:this[P],getAttribute:()=>this[F]?this[F]():this[L],setAttribute:e=>{if(this[L]=e,this[I]){this[I](e);return}}})),this[Sa]}setMatrix(e){if(!(e instanceof c_))throw TypeError(`Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".`);this[P]||(this[Sa]&&(this[Sa][F]=null,this[Sa][I]=null),e[F]=()=>this[F]?this[F]():this[L],e[I]=e=>{if(this[L]=e,this[I]){this[I](e);return}},this[Sa]=e,e[L]!==this[L]&&(this[L]=e[L],this[I]&&this[I](this[L]||``)))}setTranslate(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`translate(${e} ${t})`,this[I]&&this[I](this[L]))}setScale(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`scale(${e} ${t})`,this[I]&&this[I](this[L]))}setRotate(e,t,n){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`rotate(${e} ${t} ${n})`,this[I]&&this[I](this[L]))}setSkewX(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`skewX(${e})`,this[I]&&this[I](this[L]))}setSkewY(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`skewY(${e})`,this[I]&&this[I](this[L]))}};const m_=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,h_=`matrix(1 0 0 1 0 0)`;var g_=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGTransformList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[j].attributeValue=t.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=new RegExp(m_),t;for(;t=e.exec(r);){let e=new p_(M,this[y],{readOnly:this[P],getAttribute:()=>e[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)}});e[L]=`${t[1]}(${t[2]})`,n.push(e)}}return t.attributeValue=e,t.items=n,n}},__=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new g_(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:()=>{}})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new g_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},v_=class extends _h{[ei]=null;[ti]=null;[ni]=null;get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[B].set(`oncopy`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[B].set(`oncut`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[B].set(`onpaste`,e)}get requiredExtensions(){return this[ei]||(this[ei]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[ei]}get systemLanguage(){return this[ti]||(this[ti]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ti]}get transform(){return this[ni]||(this[ni]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`transform`),setAttribute:e=>this.setAttribute(`transform`,e)})),this[ni]}getBBox(){return new Dd}getCTM(){return new this[y].DOMMatrix}getScreenCTM(){return new this[y].DOMMatrix}},y_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get x(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[0]);return isNaN(n)?0:n}set x(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'x' property on 'SVGRect': The object is read-only.`);this[L]=`${String(typeof e==`number`?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[I]&&this[I](this[L])}get y(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[1]);return isNaN(n)?0:n}set y(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'y' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${String(typeof e==`number`?e:parseFloat(e))} ${this.width} ${this.height}`,this[I]&&this[I](this[L])}get width(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[2]);return isNaN(n)?0:n}set width(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'width' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${this.y} ${String(typeof e==`number`?e:parseFloat(e))} ${this.height}`,this[I]&&this[I](this[L])}get height(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[3]);return isNaN(n)?0:n}set height(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'height' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${this.y} ${this.width} ${String(typeof e==`number`?e:parseFloat(e))}`,this[I]&&this[I](this[L])}};const b_=/[\t\f\n\r, ]+/;var x_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get x(){let e=((this[F]?this[F]():this[L])||``).split(b_);return e[0]?parseFloat(e[0]):0}set x(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'x' property on 'SVGPoint': The object is read-only.`);this[L]=`${e} ${this.y}`,this[I]&&this[I](this[L])}get y(){let e=((this[F]?this[F]():this[L])||``).split(b_);return e[1]?parseFloat(e[1]):0}set y(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'y' property on 'SVGPoint': The object is read-only.`);this[L]=`${this.x} ${e}`,this[I]&&this[I](this[L])}},S_;(function(e){e[e.unknown=0]=`unknown`,e[e.number=1]=`number`,e[e.percentage=2]=`percentage`,e[e.ems=3]=`ems`,e[e.exs=4]=`exs`,e[e.px=5]=`px`,e[e.cm=6]=`cm`,e[e.mm=7]=`mm`,e[e.in=8]=`in`,e[e.pt=9]=`pt`,e[e.pc=10]=`pc`})(S_||={});var C_=S_;const w_=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;var T_=class{static SVG_LENGTHTYPE_UNKNOWN=C_.unknown;static SVG_LENGTHTYPE_NUMBER=C_.number;static SVG_LENGTHTYPE_PERCENTAGE=C_.percentage;static SVG_LENGTHTYPE_EMS=C_.ems;static SVG_LENGTHTYPE_EXS=C_.exs;static SVG_LENGTHTYPE_PX=C_.px;static SVG_LENGTHTYPE_CM=C_.cm;static SVG_LENGTHTYPE_MM=C_.mm;static SVG_LENGTHTYPE_IN=C_.in;static SVG_LENGTHTYPE_PT=C_.pt;static SVG_LENGTHTYPE_PC=C_.pc;[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get unitType(){let e=(this[F]?this[F]()||``:this[L]||``).match(w_);if(!e||isNaN(parseFloat(e[1])))return C_.unknown;switch(e[2]){case``:return C_.number;case`px`:return C_.px;case`cm`:return C_.cm;case`mm`:return C_.mm;case`in`:return C_.in;case`pt`:return C_.pt;case`pc`:return C_.pc;case`em`:case`ex`:case`%`:throw new this[y].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return C_.unknown}}get value(){let e=(this[F]?this[F]()||``:this[L]||``).match(w_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`px`:return t;case`cm`:return t/2.54*96;case`mm`:return t/25.4*96;case`in`:return t*96;case`pt`:return t*72;case`pc`:return t*6;case`em`:case`ex`:case`%`:throw new this[y].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return 0}}set value(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case C_.number:n=e,t=``;break;case C_.px:n=e,t=`px`;break;case C_.cm:n=e/96*2.54,t=`cm`;break;case C_.mm:n=e/96*25.4,t=`mm`;break;case C_.in:n=e/96,t=`in`;break;case C_.pt:n=e/72,t=`pt`;break;case C_.pc:n=e/6,t=`pc`;break;case C_.percentage:case C_.ems:case C_.exs:throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(n)+t,this[I]&&this[I](this[L])}get valueAsString(){return this[F]?this[F]()||`0`:this[L]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(String(t)),isNaN(t))throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.`);let n=``;switch(e){case C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:n=`cm`;break;case C_.mm:n=`mm`;break;case C_.in:n=`in`;break;case C_.pt:n=`pt`;break;case C_.pc:n=`pc`;break;case C_.ems:case C_.exs:case C_.percentage:throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}convertToSpecifiedUnits(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:t=t/96*2.54,n=`cm`;break;case C_.mm:t=t/96*25.4,n=`mm`;break;case C_.in:t/=96,n=`in`;break;case C_.pt:t/=72,n=`pt`;break;case C_.pc:t/=6,n=`pc`;break;case C_.percentage:case C_.ems:case C_.exs:throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}},E_;(function(e){e[e.unknown=0]=`unknown`,e[e.unspecified=1]=`unspecified`,e[e.deg=2]=`deg`,e[e.rad=3]=`rad`,e[e.grad=4]=`grad`})(E_||={});var D_=E_;const O_=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;var k_=class{static SVG_ANGLETYPE_UNKNOWN=D_.unknown;static SVG_ANGLETYPE_UNSPECIFIED=D_.unspecified;static SVG_ANGLETYPE_DEG=D_.deg;static SVG_ANGLETYPE_RAD=D_.rad;static SVG_ANGLETYPE_GRAD=D_.grad;[y];[F]=null;[I]=null;[L]=``;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get unitType(){let e=(this[F]?this[F]():this[L])?.match(O_);if(!e||isNaN(parseFloat(e[1])))return D_.unknown;switch(e[2]){case``:return D_.unspecified;case`deg`:return D_.deg;case`rad`:return D_.rad;case`grad`:return D_.grad;case`turn`:return D_.unknown;default:return D_.unspecified}}get value(){let e=(this[F]?this[F]():this[L])?.match(O_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`deg`:return t;case`rad`:return 180/Math.PI*t;case`grad`:return 180/200*t;case`turn`:return t*360;default:return t}}set value(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGAngle': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case D_.unspecified:n=e,t=``;break;case D_.deg:n=e,t=`deg`;break;case D_.rad:n=e/(180/Math.PI),t=`rad`;break;case D_.grad:n=e/(180/200),t=`grad`;break;case D_.unknown:n=e/360,t=`turn`;default:break}this[L]=String(n)+t,this[I]&&this[I](this[L])}get valueAsString(){return this[F]?this[F]()||`0`:this[L]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(t),isNaN(t))throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.`);let n=``;switch(e){case D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`;break;case D_.grad:n=`grad`;break;case D_.unknown:n=`turn`;break;default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}convertToSpecifiedUnits(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`,t/=180/Math.PI;break;case D_.grad:n=`grad`,t/=180/200;break;case D_.unknown:n=`turn`,t/=360;break;default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}},A_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get value(){let e=this[F]?this[F]():this[L];return parseFloat(e||`0`)}set value(e){if(this[P])throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The object is read-only.`);if(isNaN(typeof e==`number`?e:parseFloat(String(e))))throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.`);this[L]=String(e),this[I]&&this[I](this[L]||``)}},j_=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new y_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new y_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},M_;(function(e){e[e.unknown=0]=`unknown`,e[e.meet=1]=`meet`,e[e.slice=2]=`slice`})(M_||={});var N_=M_,P_;(function(e){e[e.unknown=0]=`unknown`,e[e.none=1]=`none`,e[e.xMinYMin=2]=`xMinYMin`,e[e.xMidYMin=3]=`xMidYMin`,e[e.xMaxYMin=4]=`xMaxYMin`,e[e.xMinYMid=5]=`xMinYMid`,e[e.xMidYMid=6]=`xMidYMid`,e[e.xMaxYMid=7]=`xMaxYMid`,e[e.xMinYMax=8]=`xMinYMax`,e[e.xMidYMax=9]=`xMidYMax`,e[e.xMaxYMax=10]=`xMaxYMax`})(P_||={});var F_=P_;const I_=Object.values(F_);I_.length=I_.indexOf(0);const L_=Object.values(N_);L_.length=L_.indexOf(0);var R_=class{static SVG_MEETORSLICE_UNKNOWN=N_.unknown;static SVG_MEETORSLICE_MEET=N_.meet;static SVG_MEETORSLICE_SLICE=N_.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=F_.unknown;static SVG_PRESERVEASPECTRATIO_NONE=F_.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=F_.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=F_.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=F_.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=F_.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=F_.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=F_.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=F_.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=F_.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=F_.xMaxYMax;[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get align(){let e=this[F]?this[F]():this[L];if(!e)return F_.xMidYMid;let t=e.split(/\s+/)[0];return F_[t]===void 0?F_.xMidYMid:F_[t]}set align(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>I_.length)throw new this[y].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.`);this[L]=`${I_[t]} ${L_[this.meetOrSlice]}`,this[I]&&this[I](this[L])}get meetOrSlice(){let e=this[F]?this[F]():this[L];if(!e)return N_.meet;let t=e.split(/\s+/)[1];return!t||N_[t]===void 0?N_.meet:N_[t]}set meetOrSlice(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[y].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.`);this[L]=`${I_[this.align]} ${L_[t]}`,this[I]&&this[I](this[L])}},z_=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new R_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new R_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},$=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new T_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new T_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},B_=class extends v_{[hi]=null;[E]=null;[D]=null;[v]=null;[m]=null;[Co]=1;[oi]=null;get onafterprint(){return Z.getEventListener(this,`onafterprint`)}set onafterprint(e){this[B].set(`onafterprint`,e)}get onbeforeprint(){return Z.getEventListener(this,`onbeforeprint`)}set onbeforeprint(e){this[B].set(`onbeforeprint`,e)}get onbeforeunload(){return Z.getEventListener(this,`onbeforeunload`)}set onbeforeunload(e){this[B].set(`onbeforeunload`,e)}get ongamepadconnected(){return Z.getEventListener(this,`ongamepadconnected`)}set ongamepadconnected(e){this[B].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return Z.getEventListener(this,`ongamepaddisconnected`)}set ongamepaddisconnected(e){this[B].set(`ongamepaddisconnected`,e)}get onhashchange(){return Z.getEventListener(this,`onhashchange`)}set onhashchange(e){this[B].set(`onhashchange`,e)}get onlanguagechange(){return Z.getEventListener(this,`onlanguagechange`)}set onlanguagechange(e){this[B].set(`onlanguagechange`,e)}get onmessage(){return Z.getEventListener(this,`onmessage`)}set onmessage(e){this[B].set(`onmessage`,e)}get onmessageerror(){return Z.getEventListener(this,`onmessageerror`)}set onmessageerror(e){this[B].set(`onmessageerror`,e)}get onoffline(){return Z.getEventListener(this,`onoffline`)}set onoffline(e){this[B].set(`onoffline`,e)}get ononline(){return Z.getEventListener(this,`ononline`)}set ononline(e){this[B].set(`ononline`,e)}get onpagehide(){return Z.getEventListener(this,`onpagehide`)}set onpagehide(e){this[B].set(`onpagehide`,e)}get onpageshow(){return Z.getEventListener(this,`onpageshow`)}set onpageshow(e){this[B].set(`onpageshow`,e)}get onpopstate(){return Z.getEventListener(this,`onpopstate`)}set onpopstate(e){this[B].set(`onpopstate`,e)}get onrejectionhandled(){return Z.getEventListener(this,`onrejectionhandled`)}set onrejectionhandled(e){this[B].set(`onrejectionhandled`,e)}get onstorage(){return Z.getEventListener(this,`onstorage`)}set onstorage(e){this[B].set(`onstorage`,e)}get onunhandledrejection(){return Z.getEventListener(this,`onunhandledrejection`)}set onunhandledrejection(e){this[B].set(`onunhandledrejection`,e)}get onunload(){return Z.getEventListener(this,`onunload`)}set onunload(e){this[B].set(`onunload`,e)}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get currentScale(){return this[Co]}set currentScale(e){let t=typeof e==`number`?e:parseFloat(String(e));if(isNaN(t))throw this[y].TypeError(`Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.`);t<1||(this[Co]=t)}get currentTranslate(){return new x_(M,this[y])}get viewBox(){return this[oi]||(this[oi]=new j_(M,this[y],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[oi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,t){return new Hc(M,[])}getEnclosureList(e,t){return new Hc(M,[])}checkIntersection(e,t){return!1}checkEnclosure(e,t){return!1}deselectAll(){}createSVGNumber(){return new A_(M,this[y])}createSVGLength(){return new T_(M,this[y])}createSVGAngle(){return new k_(M,this[y])}createSVGPoint(){return new x_(M,this[y])}createSVGMatrix(){return new c_(M,this[y])}createSVGRect(){return new y_(M,this[y])}createSVGTransform(){return new p_(M,this[y])}createSVGTransformFromMatrix(e){let t=new p_(M,this[y]);return t.setMatrix(e),t}getElementsByClassName(e){return jd.getElementsByClassName(this,e)}getElementsByTagName(e){return jd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return jd.getElementsByTagNameNS(this,e,t)}getElementById(e){return jd.getElementById(this,e)}[Pn](e=!1){return super[Pn](e)}},V_=class extends _h{[ei]=null;[ti]=null;get onbegin(){return Z.getEventListener(this,`onbegin`)}set onbegin(e){this[B].set(`onbegin`,e)}get onend(){return Z.getEventListener(this,`onend`)}set onend(e){this[B].set(`onend`,e)}get onrepeat(){return Z.getEventListener(this,`onrepeat`)}set onrepeat(e){this[B].set(`onrepeat`,e)}get requiredExtensions(){return this[ei]||(this[ei]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[ei]}get systemLanguage(){return this[ti]||(this[ti]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ti]}get targetElement(){return null}},H_=class extends V_{},U_=class extends V_{},W_=class extends V_{},G_=class{[y];[F];[I];[hr]=0;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute,this[hr]=n.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return this[hr];let t=parseFloat(e);return isNaN(t)?this[hr]:t}set baseVal(e){let t=typeof e==`number`?e:parseFloat(e);if(isNaN(t))throw new this[y].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.`);this[I](String(t))}},K_=class extends v_{[ai]=null;get pathLength(){return this[ai]||(this[ai]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pathLength`),setAttribute:e=>this.setAttribute(`pathLength`,e)})),this[ai]}isPointInFill(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}isPointInStroke(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}getTotalLength(){return 0}getPointAtLength(e){return new x_(M,this[y])}},q_=class extends K_{[bi]=null;[xi]=null;[Si]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get r(){return this[Si]||(this[Si]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[Si]}},J_=class{[y];[F];[I];[ui];[hr];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute,this[ui]=n.values,this[hr]=n.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return this[ui].indexOf(this[hr])+1;let t=this[ui].indexOf(e);if(t===-1){let e=this[ui].indexOf(null);return e===-1?0:e+1}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[ui].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[ui].length}).`);let n=this[F](),r=this[ui][t-1]===null,i=r?`0`:this[ui][t-1];(!n||r&&this[ui].includes(n)||!r&&n!==i)&&this[I](i||``)}},Y_=class extends _h{[Ci]=null;get clipPathUnits(){return this[Ci]||(this[Ci]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`clipPathUnits`),setAttribute:e=>this.setAttribute(`clipPathUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ci]}},X_=class extends v_{},Z_=class extends _h{},Q_=class extends K_{[bi]=null;[xi]=null;[vi]=null;[yi]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get rx(){return this[vi]||(this[vi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[vi]}get ry(){return this[yi]||(this[yi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[yi]}},$_=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[F]()||``}set baseVal(e){this[I](String(e))}},ev=class extends _h{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[m]=null;[R]=null;[Oa]=null;[Sn]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get mode(){return this[Sn]||(this[Sn]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`mode`),setAttribute:e=>this.setAttribute(`mode`,e),values:[`normal`,`multiply`,`screen`,`darken`,`lighten`,`overlay`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],defaultValue:`normal`})),this[Sn]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}};const tv=/[\t\f\n\r, ]+/;var nv=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M||(this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute,t!==M))throw TypeError(`Illegal constructor`);let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGNumberList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]||`0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(tv);for(let t=0,r=e.length;t<r;t++){let r=new A_(M,this[y],{readOnly:this[P],getAttribute:()=>r[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)}});r[L]=String(parseFloat(e[t])),n.push(r)}}return t.attributeValue=e,t.items=n,n}},rv=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new nv(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:()=>{}})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new nv(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},iv=class extends _h{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[m]=null;[R]=null;[Oa]=null;[z]=null;[Jr]=null;[ui]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`matrix`,`saturate`,`huerotate`,`luminancetoalpha`],defaultValue:`matrix`})),this[Jr]}get values(){return this[ui]||(this[ui]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[ui]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},av=class extends _h{[m]=null;[R]=null;[z]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},ov=class extends _h{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[m]=null;[R]=null;[z]=null;[Jr]=null;[ui]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`over`,`in`,`out`,`atop`,`xor`,`arithmetic`],defaultValue:`over`})),this[Jr]}get values(){return this[ui]||(this[ui]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[ui]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},sv=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[F]()===`true`}set baseVal(e){this[I](String(typeof e==`boolean`?e:!!e))}},cv=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[y].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.`);this[I](String(t))}},lv=class extends _h{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[ka]=null;[Aa]=null;[ja]=null;[m]=null;[R]=null;[Ma]=null;[Na]=null;[Pa]=null;[Fa]=null;[Ia]=null;[La]=null;[z]=null;[Ra]=null;[za]=null;[v]=null;[E]=null;[D]=null;get bias(){return this[ka]||(this[ka]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`bias`),setAttribute:e=>this.setAttribute(`bias`,e)})),this[ka]}get divisor(){return this[Aa]||(this[Aa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`divisor`),setAttribute:e=>this.setAttribute(`divisor`,e)})),this[Aa]}get edgeMode(){return this[ja]||(this[ja]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelMatrix(){return this[Ma]||(this[Ma]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`kernelMatrix`),setAttribute:e=>this.setAttribute(`kernelMatrix`,e)})),this[Ma]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get orderX(){return this[Fa]||(this[Fa]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`orderX`),setAttribute:e=>this.setAttribute(`orderX`,e)})),this[Fa]}get orderY(){return this[Ia]||(this[Ia]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`orderY`),setAttribute:e=>this.setAttribute(`orderY`,e)})),this[Ia]}get preserveAlpha(){return this[La]||(this[La]=new sv(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAlpha`),setAttribute:e=>this.setAttribute(`preserveAlpha`,e)})),this[La]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get targetX(){return this[Ra]||(this[Ra]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`targetX`),setAttribute:e=>this.setAttribute(`targetX`,e)})),this[Ra]}get targetY(){return this[za]||(this[za]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`targetY`),setAttribute:e=>this.setAttribute(`targetY`,e)})),this[za]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},uv=class extends _h{[Ba]=null;[m]=null;[R]=null;[Na]=null;[Pa]=null;[z]=null;[Va]=null;[v]=null;[E]=null;[D]=null;get diffuseConstant(){return this[Ba]||(this[Ba]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`diffuseConstant`),setAttribute:e=>this.setAttribute(`diffuseConstant`,e)})),this[Ba]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get surfaceScale(){return this[Va]||(this[Va]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e)})),this[Va]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},dv=class extends _h{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[m]=null;[R]=null;[Oa]=null;[z]=null;[Ha]=null;[v]=null;[E]=null;[Ua]=null;[D]=null;[Wa]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get scale(){return this[Ha]||(this[Ha]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`scale`),setAttribute:e=>this.setAttribute(`scale`,e)})),this[Ha]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get xChannelSelector(){return this[Ua]||(this[Ua]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`xChannelSelector`),setAttribute:e=>this.setAttribute(`xChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ua]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get yChannelSelector(){return this[Wa]||(this[Wa]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`yChannelSelector`),setAttribute:e=>this.setAttribute(`yChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Wa]}},fv=class extends _h{[Ga]=null;[Ka]=null;get azimuth(){return this[Ga]||(this[Ga]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`azimuth`),setAttribute:e=>this.setAttribute(`azimuth`,e)})),this[Ga]}get elevation(){return this[Ka]||(this[Ka]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`elevation`),setAttribute:e=>this.setAttribute(`elevation`,e)})),this[Ka]}},pv=class extends _h{[qa]=null;[Ja]=null;[m]=null;[R]=null;[z]=null;[Ya]=null;[Xa]=null;[v]=null;[E]=null;[D]=null;get dx(){return this[qa]||(this[qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get stdDeviationX(){return this[Ya]||(this[Ya]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationX`),setAttribute:e=>this.setAttribute(`stdDeviationX`,e),defaultValue:2})),this[Ya]}get stdDeviationY(){return this[Xa]||(this[Xa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationY`),setAttribute:e=>this.setAttribute(`stdDeviationY`,e),defaultValue:2})),this[Xa]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},mv=class extends _h{[m]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},hv=class extends _h{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Jr]=null;[Za]=null;[Qa]=null;[$a]=null;[eo]=null;[to]=null;[Vi]=null;get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`identity`,`table`,`discrete`,`linear`,`gamma`],defaultValue:`identity`})),this[Jr]}get tableValues(){return this[Za]||(this[Za]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`tableValues`),setAttribute:e=>this.setAttribute(`tableValues`,e)})),this[Za]}get slope(){return this[Qa]||(this[Qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`slope`),setAttribute:e=>this.setAttribute(`slope`,e),defaultValue:1})),this[Qa]}get intercept(){return this[$a]||(this[$a]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`intercept`),setAttribute:e=>this.setAttribute(`intercept`,e)})),this[$a]}get amplitude(){return this[eo]||(this[eo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`amplitude`),setAttribute:e=>this.setAttribute(`amplitude`,e),defaultValue:1})),this[eo]}get exponent(){return this[to]||(this[to]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`exponent`),setAttribute:e=>this.setAttribute(`exponent`,e),defaultValue:1})),this[to]}get offset(){return this[Vi]||(this[Vi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Vi]}},gv=class extends hv{},_v=class extends hv{},vv=class extends hv{},yv=class extends hv{},bv=class extends _h{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[ja]=null;[m]=null;[R]=null;[z]=null;[Ya]=null;[Xa]=null;[v]=null;[E]=null;[D]=null;get edgeMode(){return this[ja]||(this[ja]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get stdDeviationX(){return this[Ya]||(this[Ya]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationX`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationX`,e)})),this[Ya]}get stdDeviationY(){return this[Xa]||(this[Xa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationY`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationY`,e)})),this[Xa]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},xv=class extends _h{[no]=null;[m]=null;[Oi]=null;[hi]=null;[z]=null;[v]=null;[E]=null;[D]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Sv=class extends _h{[m]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Cv=class extends _h{[R]=null;get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}},wv=class extends _h{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[m]=null;[R]=null;[ro]=null;[io]=null;[ao]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get operator(){return this[ro]||(this[ro]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`operator`),setAttribute:e=>this.setAttribute(`operator`,e),values:[`erode`,`dilate`],defaultValue:`erode`})),this[ro]}get radiusX(){return this[io]||(this[io]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`radiusX`),setAttribute:e=>this.setAttribute(`radiusX`,e)})),this[io]}get radiusY(){return this[ao]||(this[ao]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`radiusY`),setAttribute:e=>this.setAttribute(`radiusY`,e)})),this[ao]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Tv=class extends _h{[m]=null;[R]=null;[qa]=null;[Ja]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get dx(){return this[qa]||(this[qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Ev=class extends _h{[E]=null;[D]=null;[Gi]=null;get x(){return this[E]||(this[E]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get z(){return this[Gi]||(this[Gi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Gi]}},Dv=class extends _h{[m]=null;[R]=null;[Na]=null;[Pa]=null;[z]=null;[oo]=null;[so]=null;[Va]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get specularConstant(){return this[oo]||(this[oo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularConstant`),setAttribute:e=>this.setAttribute(`specularConstant`,e),defaultValue:1})),this[oo]}get specularExponent(){return this[so]||(this[so]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[so]}get surfaceScale(){return this[Va]||(this[Va]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e),defaultValue:1})),this[Va]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Ov=class extends _h{[E]=null;[D]=null;[Gi]=null;[co]=null;[lo]=null;[uo]=null;[so]=null;[fo]=null;get x(){return this[E]||(this[E]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get z(){return this[Gi]||(this[Gi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Gi]}get pointsAtX(){return this[co]||(this[co]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtX`),setAttribute:e=>this.setAttribute(`pointsAtX`,e)})),this[co]}get pointsAtY(){return this[lo]||(this[lo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtY`),setAttribute:e=>this.setAttribute(`pointsAtY`,e)})),this[lo]}get pointsAtZ(){return this[uo]||(this[uo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtZ`),setAttribute:e=>this.setAttribute(`pointsAtZ`,e)})),this[uo]}get specularExponent(){return this[so]||(this[so]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[so]}get limitingConeAngle(){return this[fo]||(this[fo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`limitingConeAngle`),setAttribute:e=>this.setAttribute(`limitingConeAngle`,e)})),this[fo]}},kv=class extends _h{[m]=null;[R]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Av=class extends _h{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[po]=null;[mo]=null;[m]=null;[ho]=null;[z]=null;[go]=null;[_o]=null;[Jr]=null;[v]=null;[E]=null;[D]=null;get baseFrequencyX(){return this[po]||(this[po]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`baseFrequencyX`),setAttribute:e=>this.setAttribute(`baseFrequencyX`,e)})),this[po]}get baseFrequencyY(){return this[mo]||(this[mo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`baseFrequencyY`),setAttribute:e=>this.setAttribute(`baseFrequencyY`,e)})),this[mo]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get numOctaves(){return this[ho]||(this[ho]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`numOctaves`),setAttribute:e=>this.setAttribute(`numOctaves`,e)})),this[ho]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get seed(){return this[go]||(this[go]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`seed`),setAttribute:e=>this.setAttribute(`seed`,e)})),this[go]}get stitchTiles(){return this[_o]||(this[_o]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`stitchTiles`),setAttribute:e=>this.setAttribute(`stitchTiles`,e),values:[`stitch`,`noStitch`],defaultValue:`stitch`})),this[_o]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`fractalNoise`,`turbulence`],defaultValue:`turbulence`})),this[Jr]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},jv=class extends _h{[Oi]=null;[Ei]=null;[Di]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get filterUnits(){return this[Ei]||(this[Ei]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`filterUnits`),setAttribute:e=>this.setAttribute(`filterUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ei]}get primitiveUnits(){return this[Di]||(this[Di]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`primitiveUnits`),setAttribute:e=>this.setAttribute(`primitiveUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Di]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Mv=class extends v_{[E]=null;[D]=null;[v]=null;[m]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Nv=class extends v_{},Pv=class extends v_{[Oi]=null;[hi]=null;[E]=null;[D]=null;[v]=null;[m]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get decoding(){let e=this.getAttribute(`decoding`);switch(e){case`sync`:case`async`:case`auto`:return e;default:return`auto`}}set decoding(e){this.setAttribute(`decoding`,e)}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}decode(){return Promise.resolve()}},Fv=class extends K_{[ki]=null;[Ai]=null;[ji]=null;[Mi]=null;get x1(){return this[ki]||(this[ki]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[ki]}get y1(){return this[Ai]||(this[Ai]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[Ai]}get x2(){return this[ji]||(this[ji]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[ji]}get y2(){return this[Mi]||(this[Mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[Mi]}},Iv=class extends v_{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Oi]=null;[Ni]=null;[Pi]=null;[Fi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get gradientUnits(){return this[Ni]||(this[Ni]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`gradientUnits`),setAttribute:e=>this.setAttribute(`gradientUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Ni]}get gradientTransform(){return this[Pi]||(this[Pi]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`gradientTransform`),setAttribute:e=>this.setAttribute(`gradientTransform`,e)})),this[Pi]}get spreadMethod(){return this[Fi]||(this[Fi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`spreadMethod`),setAttribute:e=>this.setAttribute(`spreadMethod`,e),values:[`pad`,`reflect`,`repeat`],defaultValue:`pad`})),this[Fi]}},Lv=class extends Iv{[ki]=null;[Ai]=null;[ji]=null;[Mi]=null;get x1(){return this[ki]||(this[ki]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[ki]}get y1(){return this[Ai]||(this[Ai]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[Ai]}get x2(){return this[ji]||(this[ji]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[ji]}get y2(){return this[Mi]||(this[Mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[Mi]}},Rv=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new k_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new k_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},zv=class extends _h{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[si]=null;[ci]=null;[li]=null;[di]=null;[fi]=null;[pi]=null;[mi]=null;[oi]=null;[hi]=null;get markerUnits(){return this[si]||(this[si]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`markerUnits`),setAttribute:e=>this.setAttribute(`markerUnits`,e),values:[`userSpaceOnUse`,`strokeWidth`],defaultValue:`strokeWidth`})),this[si]}get markerWidth(){return this[ci]||(this[ci]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`markerWidth`),setAttribute:e=>this.setAttribute(`markerWidth`,e)})),this[ci]}get markerHeight(){return this[li]||(this[li]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`markerHeight`),setAttribute:e=>this.setAttribute(`markerHeight`,e)})),this[li]}get orientType(){return this[di]||(this[di]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e),values:[`auto`,null],defaultValue:`auto`})),this[di]}get orientAngle(){return this[fi]||(this[fi]=new Rv(M,this[y],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e)})),this[fi]}get refX(){return this[pi]||(this[pi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`refX`),setAttribute:e=>this.setAttribute(`refX`,e)})),this[pi]}get refY(){return this[mi]||(this[mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`refY`),setAttribute:e=>this.setAttribute(`refY`,e)})),this[mi]}get viewBox(){return this[oi]||(this[oi]=new j_(M,this[y],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[oi]}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}setOrientToAuto(){this.setAttribute(`orient`,`auto`)}setOrientToAngle(e){this.setAttribute(`orient`,e.valueAsString)}},Bv=class extends _h{[wi]=null;[Ti]=null;[E]=null;[D]=null;[v]=null;[m]=null;get maskUnits(){return this[wi]||(this[wi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`maskUnits`),setAttribute:e=>this.setAttribute(`maskUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[wi]}get maskContentUnits(){return this[Ti]||(this[Ti]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`maskContentUnits`),setAttribute:e=>this.setAttribute(`maskContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ti]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Vv=class extends _h{},Hv=class extends _h{[Oi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}},Uv=class extends K_{},Wv=class extends _h{[Oi]=null;[Ii]=null;[Li]=null;[Ri]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get patternUnits(){return this[Ii]||(this[Ii]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`patternUnits`),setAttribute:e=>this.setAttribute(`patternUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Ii]}get patternContentUnits(){return this[Li]||(this[Li]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`patternContentUnits`),setAttribute:e=>this.setAttribute(`patternContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Li]}get patternTransform(){return this[Ri]||(this[Ri]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`patternTransform`),setAttribute:e=>this.setAttribute(`patternTransform`,e)})),this[Ri]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}};const Gv=/[\t\f\n\r, ]+/;var Kv=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGPointList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]||`0 0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(Gv);for(let t=0,r=e.length;t<r;t+=2){let r=parseFloat(e[t]),i=e[t+1]===void 0?``:` `+parseFloat(e[t+1]),a=new x_(M,this[y],{readOnly:this[P],getAttribute:()=>a[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)}});a[L]=`${r}${i}`,n.push(a)}}return t.attributeValue=e,t.items=n,n}},qv=class extends K_{[gi]=null;[_i]=null;get animatedPoints(){return this[gi]||(this[gi]=new Kv(M,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[gi]}get points(){return this[_i]||(this[_i]=new Kv(M,this[y],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[_i]}},Jv=class extends K_{[gi]=null;[_i]=null;get animatedPoints(){return this[gi]||(this[gi]=new Kv(M,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[gi]}get points(){return this[_i]||(this[_i]=new Kv(M,this[y],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[_i]}},Yv=class extends Iv{[bi]=null;[xi]=null;[Si]=null;[zi]=null;[Bi]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get r(){return this[Si]||(this[Si]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[Si]}get fx(){return this[zi]||(this[zi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`fx`),setAttribute:e=>this.setAttribute(`fx`,e)})),this[zi]}get fy(){return this[Bi]||(this[Bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`fy`),setAttribute:e=>this.setAttribute(`fy`,e)})),this[Bi]}},Xv=class extends K_{[E]=null;[D]=null;[v]=null;[m]=null;[vi]=null;[yi]=null;get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get rx(){return this[vi]||(this[vi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[vi]}get ry(){return this[yi]||(this[yi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[yi]}},Zv=class extends v_{[Oi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Qv=class extends V_{},$v=class extends _h{[Vi]=null;get offset(){return this[Vi]||(this[Vi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Vi]}},ey=class extends _h{[tn]=null;[Gn]=this;[Hi]=!1;get media(){return this.getAttribute(`media`)||`all`}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||`text/css`}set type(e){this.setAttribute(`type`,e)}get title(){return this.getAttribute(`title`)||``}set title(e){this.setAttribute(`title`,e)}get disabled(){return this[Hi]}set disabled(e){this[Hi]=!!e}get sheet(){return this[b]?(this[tn]||(this[tn]=new this[h][y].CSSStyleSheet,this[tn].replaceSync(this.textContent)),this[tn]):null}[Te](){super[Te](),this[tn]=null}[Ne](){super[Ne](),this[tn]=null}[Kn](){this[tn]&&this[tn].replaceSync(this.textContent)}},ty=class extends v_{},ny=class extends v_{},ry=class extends v_{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[Ui]=null;[Wi]=null;get textLength(){return this[Ui]||(this[Ui]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`textLength`),setAttribute:e=>this.setAttribute(`textLength`,e)})),this[Ui]}get lengthAdjust(){return this[Wi]||(this[Wi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`lengthAdjust`),setAttribute:e=>this.setAttribute(`lengthAdjust`,e),values:[`spacing`,`spacingAndGlyphs`],defaultValue:`spacing`})),this[Wi]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,t){return 0}getStartPositionOfChar(e){return new x_(M,this[y])}getEndPositionOfChar(e){return new x_(M,this[y])}getExtentOfChar(e){return new y_(M,this[y])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};const iy=/[\t\f\n\r, ]+/;var ay=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]??`0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(iy);for(let r=0,i=e.length;r<i;r++){let i=new T_(M,this[y],{readOnly:this[P],getAttribute:()=>i[L],setAttribute:e=>{i[L]=e;let r=n.map(e=>e[L]??`0`).join(` `);t.attributeValue=r,this[I](r)}});i[L]=e[r],n.push(i)}}return t.attributeValue=e,t.items=n,n}},oy=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new ay(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:this[I]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new ay(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},sy=class extends ry{[E]=null;[D]=null;[qa]=null;[Ja]=null;[wo]=null;get x(){return this[E]||(this[E]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get dx(){return this[qa]||(this[qa]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get rotate(){return this[wo]||(this[wo]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`rotate`),setAttribute:e=>this.setAttribute(`rotate`,e)})),this[wo]}},cy=class extends sy{},ly=class extends ry{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Oi]=null;[Ta]=null;[Ea]=null;[Da]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get startOffset(){return this[Ta]||(this[Ta]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`startOffset`),setAttribute:e=>this.setAttribute(`startOffset`,e)})),this[Ta]}get method(){return this[Ea]||(this[Ea]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`method`),setAttribute:e=>this.setAttribute(`method`,e),values:[`align`,`stretch`],defaultValue:`align`})),this[Ea]}get spacing(){return this[Da]||(this[Da]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`spacing`),setAttribute:e=>this.setAttribute(`spacing`,e),values:[`auto`,`exact`],defaultValue:`exact`})),this[Da]}},uy=class extends _h{},dy=class extends sy{},fy=class extends v_{[Oi]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}},py=class extends _h{},my=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==M)throw TypeError(`Illegal constructor`)}},hy=class{window;constructor(e){this.window=e}enqueueReaction(e,t,n){let r=this.window.customElements[nt]?.get(e.localName);if(r&&e[h]===this.window.document)switch(t){case`connectedCallback`:if(r.lifecycleCallbacks.connectedCallback){let t=r.lifecycleCallbacks.connectedCallback?.call(e);if(t instanceof Promise){let e=new J(this.window).getAsyncTaskManager();if(e){let n=e.startTask();t.then(()=>e.endTask(n)).catch(()=>e.endTask(n))}}}break;case`disconnectedCallback`:r.lifecycleCallbacks.disconnectedCallback&&r.lifecycleCallbacks.disconnectedCallback.call(e);break;case`attributeChangedCallback`:r.lifecycleCallbacks.attributeChangedCallback&&n?.length&&r.observedAttributes.has(n[0])&&r.lifecycleCallbacks.attributeChangedCallback.apply(e,n);break}}},gy=class extends U{state;hasUAVisualTransition;constructor(e,t=null){super(e),this.state=t?.state??null,this.hasUAVisualTransition=t?.hasUAVisualTransition??!1}},_y=class extends U{code;reason;wasClean;constructor(e,t=null){super(e,t),this.code=t?.code??0,this.reason=t?.reason??``,this.wasClean=t?.wasClean??!1}},vy=class e{[Br]=null;[v]=0;[m]=0;[bn]=null;constructor(t,n,r,i,a,o,s,c){if(t!==M)throw TypeError(`Illegal constructor`);let l=null;if(r instanceof e){if(r[Br]===null)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,V.invalidStateError);l=r}if(r instanceof Lp){if(!r[he])throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,V.invalidStateError);l=r}else if(r instanceof ph)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': HTMLVideoElement is not supported as an image source yet in Happy DOM.`,V.invalidStateError);else (r instanceof $f||r instanceof Xf)&&(l=r);if(l===null)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.`);this[v]=l.width,this[m]=l.height;let u=0,d=0;if(typeof i==`number`&&typeof a==`number`&&typeof o==`number`&&typeof s==`number`){if(u=i,d=a,this[v]=o,this[m]=s,c!==void 0&&typeof c!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[bn]=c||null}else if(typeof i==`number`&&typeof a==`number`){if(this[v]=i,this[m]=a,o!==void 0&&typeof o!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[bn]=o||null}else if(typeof i==`object`)this[bn]=i;else if(i!==void 0)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': Overload resolution failed.`);let f=new J(n).getSettings(),ee=new n.OffscreenCanvas(this[v],this[m]);f?.canvasAdapter&&(ee.getContext(`2d`).drawImage(l,-u,-d,l.width,l.height),this[Br]=ee)}get width(){return this[v]}get height(){return this[m]}close(){this[Br]=null,this[bn]=null,this[v]=0,this[m]=0}};const yy={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},by=setTimeout.toString().includes(`new Timeout`),xy=(()=>{try{return Function(`return true;`)(),!0}catch{return!1}})(),Sy=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();var Cy=class{constructor(){throw TypeError(`Illegal constructor`)}},wy=class{callback;constructor(e){this.callback=e}},Ty=class e extends rl{Node=gd;Attr=_d;ShadowRoot=gh;ProcessingInstruction=mh;Element=Df;CharacterData=xd;DocumentType=Sd;HTMLAnchorElement=Mf;HTMLButtonElement=Yf;HTMLOptGroupElement=Mm;HTMLOptionElement=Nm;HTMLElement=Q;HTMLUnknownElement=fh;HTMLTemplateElement=oh;HTMLInputElement=Yp;HTMLSelectElement=Jm;HTMLTextAreaElement=sh;HTMLImageElement=Lp;HTMLStyleElement=$m;HTMLLabelElement=Xp;HTMLSlotElement=Xm;HTMLMetaElement=Dm;HTMLMediaElement=zf;HTMLAudioElement=Bf;HTMLVideoElement=ph;HTMLBaseElement=Vf;HTMLDialogElement=ip;HTMLScriptElement=Km;HTMLLinkElement=Cm;HTMLIFrameElement=Sp;HTMLFormElement=hp;HTMLUListElement=dh;HTMLTrackElement=uh;HTMLTableRowElement=ah;HTMLTitleElement=lh;HTMLTimeElement=ch;HTMLTableSectionElement=rh;HTMLTableCellElement=th;HTMLTableElement=ih;HTMLSpanElement=Qm;HTMLSourceElement=Zm;HTMLQuoteElement=Bm;HTMLProgressElement=zm;HTMLPreElement=Rm;HTMLPictureElement=Lm;HTMLParamElement=Im;HTMLParagraphElement=Fm;HTMLOutputElement=Pm;HTMLOListElement=Am;HTMLObjectElement=jm;HTMLMeterElement=Om;HTMLMenuElement=Em;HTMLMapElement=wm;HTMLLIElement=Qp;HTMLLegendElement=Zp;HTMLModElement=km;HTMLHtmlElement=yp;HTMLHRElement=vp;HTMLHeadElement=gp;HTMLHeadingElement=_p;HTMLFieldSetElement=sp;HTMLEmbedElement=op;HTMLDListElement=ep;HTMLDivElement=ap;HTMLDetailsElement=rp;HTMLDataListElement=np;HTMLDataElement=tp;HTMLTableColElement=nh;HTMLTableCaptionElement=eh;HTMLCanvasElement=$f;HTMLBRElement=Uf;HTMLBodyElement=Hf;HTMLAreaElement=Nf;SVGSVGElement=B_;SVGAnimateElement=H_;SVGAnimateMotionElement=U_;SVGAnimateTransformElement=W_;SVGCircleElement=q_;SVGClipPathElement=Y_;SVGDefsElement=X_;SVGDescElement=Z_;SVGEllipseElement=Q_;SVGFEBlendElement=ev;SVGFEColorMatrixElement=iv;SVGFEComponentTransferElement=av;SVGFECompositeElement=ov;SVGFEConvolveMatrixElement=lv;SVGFEDiffuseLightingElement=uv;SVGFEDisplacementMapElement=dv;SVGFEDistantLightElement=fv;SVGFEDropShadowElement=pv;SVGFEFloodElement=mv;SVGFEFuncAElement=gv;SVGFEFuncBElement=_v;SVGFEFuncGElement=vv;SVGFEFuncRElement=yv;SVGFEGaussianBlurElement=bv;SVGFEImageElement=xv;SVGFEMergeElement=Sv;SVGFEMergeNodeElement=Cv;SVGFEMorphologyElement=wv;SVGFEOffsetElement=Tv;SVGFEPointLightElement=Ev;SVGFESpecularLightingElement=Dv;SVGFESpotLightElement=Ov;SVGFETileElement=kv;SVGFETurbulenceElement=Av;SVGFilterElement=jv;SVGForeignObjectElement=Mv;SVGGElement=Nv;SVGImageElement=Pv;SVGLineElement=Fv;SVGLinearGradientElement=Lv;SVGMarkerElement=zv;SVGMaskElement=Bv;SVGMetadataElement=Vv;SVGMPathElement=Hv;SVGPathElement=Uv;SVGPatternElement=Wv;SVGPolygonElement=qv;SVGPolylineElement=Jv;SVGRadialGradientElement=Yv;SVGRectElement=Xv;SVGScriptElement=Zv;SVGSetElement=Qv;SVGStopElement=$v;SVGStyleElement=ey;SVGSwitchElement=ty;SVGSymbolElement=ny;SVGTextElement=cy;SVGTextPathElement=ly;SVGTitleElement=uy;SVGTSpanElement=dy;SVGUseElement=fy;SVGViewElement=py;SVGElement=_h;SVGAnimationElement=V_;SVGComponentTransferFunctionElement=hv;SVGGeometryElement=K_;SVGGradientElement=Iv;SVGTextPositioningElement=sy;SVGGraphicsElement=v_;Event=U;UIEvent=Ql;CustomEvent=tu;CloseEvent=_y;AnimationEvent=$l;KeyboardEvent=ou;MessageEvent=su;MouseEvent=cu;PointerEvent=lu;FocusEvent=ru;WheelEvent=mu;InputEvent=au;ErrorEvent=nu;StorageEvent=du;SubmitEvent=fu;ProgressEvent=uu;MediaQueryListEvent=il;HashChangeEvent=iu;ClipboardEvent=eu;TouchEvent=pu;PopStateEvent=gy;Touch=Zl;AudioProcessingEvent=U;BeforeInputEvent=U;BeforeUnloadEvent=U;BlobEvent=U;CompositionEvent=U;CSSFontFaceLoadEvent=U;DeviceLightEvent=U;DeviceMotionEvent=U;DeviceOrientationEvent=U;DeviceProximityEvent=U;DOMTransactionEvent=U;DragEvent=U;EditingBeforeInputEvent=U;FetchEvent=U;GamepadEvent=U;IDBVersionChangeEvent=U;MediaStreamEvent=U;MutationEvent=U;OfflineAudioCompletionEvent=U;OverconstrainedError=U;PageTransitionEvent=U;PaymentRequestUpdateEvent=U;RelatedEvent=U;RTCDataChannelEvent=U;RTCIdentityErrorEvent=U;RTCIdentityEvent=U;RTCPeerConnectionIceEvent=U;SensorEvent=U;SVGEvent=U;SVGZoomEvent=U;TimeEvent=U;TrackEvent=U;TransitionEvent=U;UserProximityEvent=U;WebGLContextEvent=U;TextEvent=U;Permissions=cd;History=Qu;Navigator=ld;Clipboard=Bs;TimeRanges=Pf;TextTrackCueList=Tm;ValidityState=Kf;MutationRecord=nd;IntersectionObserver=$u;IntersectionObserverEntry=ed;CSSStyleDeclaration=bl;CSSRule=qs;CSSContainerRule=Sl;CSSFontFaceRule=Cl;CSSKeyframeRule=wl;CSSKeyframesRule=El;CSSMediaRule=kl;CSSStyleRule=Pl;CSSSupportsRule=Fl;CSSConditionRule=xl;CSSGroupingRule=pl;CSSScopeRule=ml;DOMRect=Dd;DOMRectReadOnly=Ed;Plugin=ud;PluginArray=ad;Location=td;CustomElementRegistry=Kl;ResizeObserver=vh;Blob=zs;File=Jl;Storage=Eh;MimeType=rd;MimeTypeArray=id;NodeFilter=Dh;ImageBitmap=vy;HTMLCollection=Ad;HTMLFormControlCollection=cp;HTMLOptionsCollection=qm;NodeList=Hc;RadioNodeList=mp;FileList=Rp;Screen=yh;ScreenDetails=xh;ScreenDetailed=bh;NamedNodeMap=Nd;TreeWalker=jh;NodeIterator=Mh;DataTransfer=Xl;DataTransferItem=ql;DataTransferItemList=Yl;XMLSerializer=Nh;ClipboardItem=Vs;Selection=Th;CSSUnitValue=Ws;SVGAngle=k_;SVGAnimatedAngle=Rv;SVGAnimatedBoolean=sv;SVGAnimatedEnumeration=J_;SVGAnimatedInteger=cv;SVGAnimatedLength=$;SVGAnimatedNumber=G_;SVGAnimatedNumberList=rv;SVGAnimatedPreserveAspectRatio=z_;SVGAnimatedRect=j_;SVGAnimatedString=$_;SVGAnimatedTransformList=__;SVGLength=T_;SVGLengthList=ay;SVGMatrix=c_;SVGNumber=A_;SVGNumberList=nv;SVGPoint=x_;SVGPointList=Kv;SVGPreserveAspectRatio=R_;SVGRect=y_;SVGStringList=a_;SVGTransform=p_;SVGTransformList=g_;SVGAnimatedLengthList=oy;SVGUnitTypes=my;StylePropertyMap=Nl;StylePropertyMapReadOnly=Ml;MediaList=Ol;CSSKeywordValue=Al;CSSStyleValue=jl;Window=this.constructor;URLSearchParams=u;WritableStream=d.Writable;ReadableStream=ce;TransformStream=d.Transform;PerformanceObserver=se;PerformanceEntry=oe;PerformanceObserverEntryList=Cy;document;customElements=new Kl(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=ee;TextEncoder=s;TextDecoder=o;closed=!1;console;name=``;Buffer=i;[yt]=[];[et];[Dn];[On];[kn];[An];[jn];[Mn];[dr]=this;[pr]=this;[fr]=this;[y]=this;[ts]=this;[ze]=-1;[Oo]=new hy(this);[Ao]={json:new Map,css:new Map,esm:new Map};[zo]=null;[is]=[];[B]=new Map;[cs]=new Map;#e;#t=null;#n=null;#r=null;#i=null;#a=null;#o={timeouts:null};#s=[];#c=[];constructor(e,t){super(),this.#e=e,this[rs](),this.console=e.page.console,this[et]=new Td(e),this[kn]=new ld(this),this[An]=new yh,this[jn]=new Eh,this[Mn]=new Eh,this[Dn]=new td(this.#e,t?.url??`about:blank`),this[On]=new Qu(this.#e,this),e[On].currentItem.href=t?.url??`about:blank`,J.setWindowBrowserFrameRelation(this,this.#e),this[lt](),r_.extendClasses(this),this.document=new this.HTMLDocument,this.document[Me]=this;let n=e[pe].startTask(()=>this[et].destroy());this[et].waitUntilComplete().then(()=>{e[pe].endTask(n),this.document[Ut]=wd.complete,this.document.dispatchEvent(new U(`readystatechange`));let t=new U(`load`);t[Ae]=this,t[ft]=this.document,t[Kr]=Ds.atTarget,this.dispatchEvent(t),t[Ae]=null,t[Kr]=Ds.none,t[ko]=!1}),this[To]()}get onsearch(){return this[B].get(`onsearch`)??null}set onsearch(e){this[B].set(`onsearch`,e)}get onappinstalled(){return this[B].get(`onappinstalled`)??null}set onappinstalled(e){this[B].set(`onappinstalled`,e)}get onbeforeinstallprompt(){return this[B].get(`onbeforeinstallprompt`)??null}set onbeforeinstallprompt(e){this[B].set(`onbeforeinstallprompt`,e)}get onabort(){return this[B].get(`onabort`)??null}set onabort(e){this[B].set(`onabort`,e)}get onbeforeinput(){return this[B].get(`onbeforeinput`)??null}set onbeforeinput(e){this[B].set(`onbeforeinput`,e)}get onbeforematch(){return this[B].get(`onbeforematch`)??null}set onbeforematch(e){this[B].set(`onbeforematch`,e)}get onbeforetoggle(){return this[B].get(`onbeforetoggle`)??null}set onbeforetoggle(e){this[B].set(`onbeforetoggle`,e)}get onblur(){return this[B].get(`onblur`)??null}set onblur(e){this[B].set(`onblur`,e)}get oncancel(){return this[B].get(`oncancel`)??null}set oncancel(e){this[B].set(`oncancel`,e)}get oncanplay(){return this[B].get(`oncanplay`)??null}set oncanplay(e){this[B].set(`oncanplay`,e)}get oncanplaythrough(){return this[B].get(`oncanplaythrough`)??null}set oncanplaythrough(e){this[B].set(`oncanplaythrough`,e)}get onchange(){return this[B].get(`onchange`)??null}set onchange(e){this[B].set(`onchange`,e)}get onclick(){return this[B].get(`onclick`)??null}set onclick(e){this[B].set(`onclick`,e)}get onclose(){return this[B].get(`onclose`)??null}set onclose(e){this[B].set(`onclose`,e)}get oncommand(){return this[B].get(`oncommand`)??null}set oncommand(e){this[B].set(`oncommand`,e)}get oncontentvisibilityautostatechange(){return this[B].get(`oncontentvisibilityautostatechange`)??null}set oncontentvisibilityautostatechange(e){this[B].set(`oncontentvisibilityautostatechange`,e)}get oncontextlost(){return this[B].get(`oncontextlost`)??null}set oncontextlost(e){this[B].set(`oncontextlost`,e)}get oncontextmenu(){return this[B].get(`oncontextmenu`)??null}set oncontextmenu(e){this[B].set(`oncontextmenu`,e)}get oncontextrestored(){return this[B].get(`oncontextrestored`)??null}set oncontextrestored(e){this[B].set(`oncontextrestored`,e)}get oncuechange(){return this[B].get(`oncuechange`)??null}set oncuechange(e){this[B].set(`oncuechange`,e)}get ondblclick(){return this[B].get(`ondblclick`)??null}set ondblclick(e){this[B].set(`ondblclick`,e)}get ondrag(){return this[B].get(`ondrag`)??null}set ondrag(e){this[B].set(`ondrag`,e)}get ondragend(){return this[B].get(`ondragend`)??null}set ondragend(e){this[B].set(`ondragend`,e)}get ondragenter(){return this[B].get(`ondragenter`)??null}set ondragenter(e){this[B].set(`ondragenter`,e)}get ondragleave(){return this[B].get(`ondragleave`)??null}set ondragleave(e){this[B].set(`ondragleave`,e)}get ondragover(){return this[B].get(`ondragover`)??null}set ondragover(e){this[B].set(`ondragover`,e)}get ondragstart(){return this[B].get(`ondragstart`)??null}set ondragstart(e){this[B].set(`ondragstart`,e)}get ondrop(){return this[B].get(`ondrop`)??null}set ondrop(e){this[B].set(`ondrop`,e)}get ondurationchange(){return this[B].get(`ondurationchange`)??null}set ondurationchange(e){this[B].set(`ondurationchange`,e)}get onemptied(){return this[B].get(`onemptied`)??null}set onemptied(e){this[B].set(`onemptied`,e)}get onended(){return this[B].get(`onended`)??null}set onended(e){this[B].set(`onended`,e)}get onerror(){return this[B].get(`onerror`)??null}set onerror(e){this[B].set(`onerror`,e)}get onfocus(){return this[B].get(`onfocus`)??null}set onfocus(e){this[B].set(`onfocus`,e)}get onformdata(){return this[B].get(`onformdata`)??null}set onformdata(e){this[B].set(`onformdata`,e)}get oninput(){return this[B].get(`oninput`)??null}set oninput(e){this[B].set(`oninput`,e)}get oninvalid(){return this[B].get(`oninvalid`)??null}set oninvalid(e){this[B].set(`oninvalid`,e)}get onkeydown(){return this[B].get(`onkeydown`)??null}set onkeydown(e){this[B].set(`onkeydown`,e)}get onkeypress(){return this[B].get(`onkeypress`)??null}set onkeypress(e){this[B].set(`onkeypress`,e)}get onkeyup(){return this[B].get(`onkeyup`)??null}set onkeyup(e){this[B].set(`onkeyup`,e)}get onload(){return this[B].get(`onload`)??null}set onload(e){this[B].set(`onload`,e)}get onloadeddata(){return this[B].get(`onloadeddata`)??null}set onloadeddata(e){this[B].set(`onloadeddata`,e)}get onloadedmetadata(){return this[B].get(`onloadedmetadata`)??null}set onloadedmetadata(e){this[B].set(`onloadedmetadata`,e)}get onloadstart(){return this[B].get(`onloadstart`)??null}set onloadstart(e){this[B].set(`onloadstart`,e)}get onmousedown(){return this[B].get(`onmousedown`)??null}set onmousedown(e){this[B].set(`onmousedown`,e)}get onmouseenter(){return this[B].get(`onmouseenter`)??null}set onmouseenter(e){this[B].set(`onmouseenter`,e)}get onmouseleave(){return this[B].get(`onmouseleave`)??null}set onmouseleave(e){this[B].set(`onmouseleave`,e)}get onmousemove(){return this[B].get(`onmousemove`)??null}set onmousemove(e){this[B].set(`onmousemove`,e)}get onmouseout(){return this[B].get(`onmouseout`)??null}set onmouseout(e){this[B].set(`onmouseout`,e)}get onmouseover(){return this[B].get(`onmouseover`)??null}set onmouseover(e){this[B].set(`onmouseover`,e)}get onmouseup(){return this[B].get(`onmouseup`)??null}set onmouseup(e){this[B].set(`onmouseup`,e)}get onmousewheel(){return this[B].get(`onmousewheel`)??null}set onmousewheel(e){this[B].set(`onmousewheel`,e)}get onpause(){return this[B].get(`onpause`)??null}set onpause(e){this[B].set(`onpause`,e)}get onplay(){return this[B].get(`onplay`)??null}set onplay(e){this[B].set(`onplay`,e)}get onplaying(){return this[B].get(`onplaying`)??null}set onplaying(e){this[B].set(`onplaying`,e)}get onprogress(){return this[B].get(`onprogress`)??null}set onprogress(e){this[B].set(`onprogress`,e)}get onratechange(){return this[B].get(`onratechange`)??null}set onratechange(e){this[B].set(`onratechange`,e)}get onreset(){return this[B].get(`onreset`)??null}set onreset(e){this[B].set(`onreset`,e)}get onresize(){return this[B].get(`onresize`)??null}set onresize(e){this[B].set(`onresize`,e)}get onscroll(){return this[B].get(`onscroll`)??null}set onscroll(e){this[B].set(`onscroll`,e)}get onscrollend(){return this[B].get(`onscrollend`)??null}set onscrollend(e){this[B].set(`onscrollend`,e)}get onsecuritypolicyviolation(){return this[B].get(`onsecuritypolicyviolation`)??null}set onsecuritypolicyviolation(e){this[B].set(`onsecuritypolicyviolation`,e)}get onseeked(){return this[B].get(`onseeked`)??null}set onseeked(e){this[B].set(`onseeked`,e)}get onseeking(){return this[B].get(`onseeking`)??null}set onseeking(e){this[B].set(`onseeking`,e)}get onselect(){return this[B].get(`onselect`)??null}set onselect(e){this[B].set(`onselect`,e)}get onslotchange(){return this[B].get(`onslotchange`)??null}set onslotchange(e){this[B].set(`onslotchange`,e)}get onstalled(){return this[B].get(`onstalled`)??null}set onstalled(e){this[B].set(`onstalled`,e)}get onsubmit(){return this[B].get(`onsubmit`)??null}set onsubmit(e){this[B].set(`onsubmit`,e)}get onsuspend(){return this[B].get(`onsuspend`)??null}set onsuspend(e){this[B].set(`onsuspend`,e)}get ontimeupdate(){return this[B].get(`ontimeupdate`)??null}set ontimeupdate(e){this[B].set(`ontimeupdate`,e)}get ontoggle(){return this[B].get(`ontoggle`)??null}set ontoggle(e){this[B].set(`ontoggle`,e)}get onvolumechange(){return this[B].get(`onvolumechange`)??null}set onvolumechange(e){this[B].set(`onvolumechange`,e)}get onwaiting(){return this[B].get(`onwaiting`)??null}set onwaiting(e){this[B].set(`onwaiting`,e)}get onwebkitanimationend(){return this[B].get(`onwebkitanimationend`)??null}set onwebkitanimationend(e){this[B].set(`onwebkitanimationend`,e)}get onwebkitanimationiteration(){return this[B].get(`onwebkitanimationiteration`)??null}set onwebkitanimationiteration(e){this[B].set(`onwebkitanimationiteration`,e)}get onwebkitanimationstart(){return this[B].get(`onwebkitanimationstart`)??null}set onwebkitanimationstart(e){this[B].set(`onwebkitanimationstart`,e)}get onwebkittransitionend(){return this[B].get(`onwebkittransitionend`)??null}set onwebkittransitionend(e){this[B].set(`onwebkittransitionend`,e)}get onwheel(){return this[B].get(`onwheel`)??null}set onwheel(e){this[B].set(`onwheel`,e)}get onauxclick(){return this[B].get(`onauxclick`)??null}set onauxclick(e){this[B].set(`onauxclick`,e)}get ongotpointercapture(){return this[B].get(`ongotpointercapture`)??null}set ongotpointercapture(e){this[B].set(`ongotpointercapture`,e)}get onlostpointercapture(){return this[B].get(`onlostpointercapture`)??null}set onlostpointercapture(e){this[B].set(`onlostpointercapture`,e)}get onpointerdown(){return this[B].get(`onpointerdown`)??null}set onpointerdown(e){this[B].set(`onpointerdown`,e)}get onpointermove(){return this[B].get(`onpointermove`)??null}set onpointermove(e){this[B].set(`onpointermove`,e)}get onpointerup(){return this[B].get(`onpointerup`)??null}set onpointerup(e){this[B].set(`onpointerup`,e)}get onpointercancel(){return this[B].get(`onpointercancel`)??null}set onpointercancel(e){this[B].set(`onpointercancel`,e)}get onpointerover(){return this[B].get(`onpointerover`)??null}set onpointerover(e){this[B].set(`onpointerover`,e)}get onpointerout(){return this[B].get(`onpointerout`)??null}set onpointerout(e){this[B].set(`onpointerout`,e)}get onpointerenter(){return this[B].get(`onpointerenter`)??null}set onpointerenter(e){this[B].set(`onpointerenter`,e)}get onpointerleave(){return this[B].get(`onpointerleave`)??null}set onpointerleave(e){this[B].set(`onpointerleave`,e)}get onselectstart(){return this[B].get(`onselectstart`)??null}set onselectstart(e){this[B].set(`onselectstart`,e)}get onselectionchange(){return this[B].get(`onselectionchange`)??null}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get onanimationcancel(){return this[B].get(`onanimationcancel`)??null}set onanimationcancel(e){this[B].set(`onanimationcancel`,e)}get onanimationend(){return this[B].get(`onanimationend`)??null}set onanimationend(e){this[B].set(`onanimationend`,e)}get onanimationiteration(){return this[B].get(`onanimationiteration`)??null}set onanimationiteration(e){this[B].set(`onanimationiteration`,e)}get onanimationstart(){return this[B].get(`onanimationstart`)??null}set onanimationstart(e){this[B].set(`onanimationstart`,e)}get ontransitionrun(){return this[B].get(`ontransitionrun`)??null}set ontransitionrun(e){this[B].set(`ontransitionrun`,e)}get ontransitionstart(){return this[B].get(`ontransitionstart`)??null}set ontransitionstart(e){this[B].set(`ontransitionstart`,e)}get ontransitionend(){return this[B].get(`ontransitionend`)??null}set ontransitionend(e){this[B].set(`ontransitionend`,e)}get ontransitioncancel(){return this[B].get(`ontransitioncancel`)??null}set ontransitioncancel(e){this[B].set(`ontransitioncancel`,e)}get onbeforexrselect(){return this[B].get(`onbeforexrselect`)??null}set onbeforexrselect(e){this[B].set(`onbeforexrselect`,e)}get onafterprint(){return this[B].get(`onafterprint`)??null}set onafterprint(e){this[B].set(`onafterprint`,e)}get onbeforeprint(){return this[B].get(`onbeforeprint`)??null}set onbeforeprint(e){this[B].set(`onbeforeprint`,e)}get onbeforeunload(){return this[B].get(`onbeforeunload`)??null}set onbeforeunload(e){this[B].set(`onbeforeunload`,e)}get onhashchange(){return this[B].get(`onhashchange`)??null}set onhashchange(e){this[B].set(`onhashchange`,e)}get onlanguagechange(){return this[B].get(`onlanguagechange`)??null}set onlanguagechange(e){this[B].set(`onlanguagechange`,e)}get onmessage(){return this[B].get(`onmessage`)??null}set onmessage(e){this[B].set(`onmessage`,e)}get onmessageerror(){return this[B].get(`onmessageerror`)??null}set onmessageerror(e){this[B].set(`onmessageerror`,e)}get onoffline(){return this[B].get(`onoffline`)??null}set onoffline(e){this[B].set(`onoffline`,e)}get ononline(){return this[B].get(`ononline`)??null}set ononline(e){this[B].set(`ononline`,e)}get onpagehide(){return this[B].get(`onpagehide`)??null}set onpagehide(e){this[B].set(`onpagehide`,e)}get onpageshow(){return this[B].get(`onpageshow`)??null}set onpageshow(e){this[B].set(`onpageshow`,e)}get onpopstate(){return this[B].get(`onpopstate`)??null}set onpopstate(e){this[B].set(`onpopstate`,e)}get onrejectionhandled(){return this[B].get(`onrejectionhandled`)??null}set onrejectionhandled(e){this[B].set(`onrejectionhandled`,e)}get onstorage(){return this[B].get(`onstorage`)??null}set onstorage(e){this[B].set(`onstorage`,e)}get onunhandledrejection(){return this[B].get(`onunhandledrejection`)??null}set onunhandledrejection(e){this[B].set(`onunhandledrejection`,e)}get onunload(){return this[B].get(`onunload`)??null}set onunload(e){this[B].set(`onunload`,e)}get ondevicemotion(){return this[B].get(`ondevicemotion`)??null}set ondevicemotion(e){this[B].set(`ondevicemotion`,e)}get ondeviceorientation(){return this[B].get(`ondeviceorientation`)??null}set ondeviceorientation(e){this[B].set(`ondeviceorientation`,e)}get ondeviceorientationabsolute(){return this[B].get(`ondeviceorientationabsolute`)??null}set ondeviceorientationabsolute(e){this[B].set(`ondeviceorientationabsolute`,e)}get onpointerrawupdate(){return this[B].get(`onpointerrawupdate`)??null}set onpointerrawupdate(e){this[B].set(`onpointerrawupdate`,e)}get onpageswap(){return this[B].get(`onpageswap`)??null}set onpageswap(e){this[B].set(`onpageswap`,e)}get onpagereveal(){return this[B].get(`onpagereveal`)??null}set onpagereveal(e){this[B].set(`onpagereveal`,e)}get onscrollsnapchange(){return this[B].get(`onscrollsnapchange`)??null}set onscrollsnapchange(e){this[B].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return this[B].get(`onscrollsnapchanging`)??null}set onscrollsnapchanging(e){this[B].set(`onscrollsnapchanging`,e)}get ongamepadconnected(){return this[B].get(`ongamepadconnected`)??null}set ongamepadconnected(e){this[B].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return this[B].get(`ongamepaddisconnected`)??null}set ongamepaddisconnected(e){this[B].set(`ongamepaddisconnected`,e)}get self(){return this[dr]}set self(e){this[dr]=e}get top(){return this[pr]}get parent(){return this[fr]}set parent(e){this[fr]=e}get frames(){return this[ts]}set frames(e){this[fr]=e}get location(){return this[Dn]}set location(e){this[Dn].href=e}get history(){return this[On]}get navigator(){return this[kn]}get screen(){return this[An]}get sessionStorage(){return this[jn]}get localStorage(){return this[Mn]}get opener(){return this.#e[xt]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new Gs}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set innerHeight(e){this.#n=e}get outerWidth(){return this.#r===null?this.#e.page.viewport.width:this.#r}set outerWidth(e){this.#r=e}get outerHeight(){return this.#i===null?this.#e.page.viewport.height:this.#i}set outerHeight(e){this.#i=e}get devicePixelRatio(){return this.#a===null?this.#e.page.viewport.devicePixelRatio:this.#a}set devicePixelRatio(e){this.#a=e}getComputedStyle(e){return e[tr]=e[tr]||new bl(M,this,{element:e,computed:!0}),e[tr]}getSelection(){return this.document.getSelection()}scroll(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};if(n.behavior===`smooth`)this.setTimeout(()=>{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}});else{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}}}scrollTo(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.`);this.scroll(e,t)}scrollBy(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};this.scroll({left:this.document.documentElement.scrollLeft+(n.left??0),top:this.document.documentElement.scrollTop+(n.top??0),behavior:n.behavior})}blur(){}focus(){}open(e,t,n){return Fh.openPage(this.#e,{url:e,target:t,features:n})}close(){this.#e.page.mainFrame===this.#e&&this.#e[xt]&&(this[Ne](),this.#e.page.close())}matchMedia(e){return new fl({window:this,media:e})}getScreenDetails(){return Promise.resolve(new xh)}setTimeout(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings;if(r.timer.preventTimerLoops){let e=Error().stack,t=this.#s,n=this.#c,i=t.indexOf(e);if(i!==-1){if(n[i].timeout++,n[i].timeout>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.timeout??1))return{}}else t.push(e),n.push({timeout:0,requestAnimationFrame:0})}if(!t){let t=this.#o;if(!t.timeouts){let e=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,n=yy.setTimeout(()=>{this.#e[pe].endTimer(n);let r=t.timeouts;t.timeouts=null;for(let t of r)if(e){let e;try{e=t.callback()}catch(e){this[Bo](e)}e instanceof Promise&&e.catch(e=>this[Bo](e))}else t.callback()},0);t.timeouts=[],this.#e[pe].startTimer(n)}let i=new wy(()=>e(...n));return t.timeouts.push(i),i}let i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,a=yy.setTimeout(()=>{if(this.#e[pe].endTimer(a),i){let t;try{t=e(...n)}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e(...n)},r?.timer.maxTimeout!==-1&&t&&t>r?.timer.maxTimeout?r?.timer.maxTimeout:t);return this.#e[pe].startTimer(a),a}clearTimeout(e){if(e&&e instanceof wy){let t=this.#o;if(!t.timeouts)return;let n=t.timeouts.indexOf(e);n!==-1&&t.timeouts.splice(n,1);return}by&&(!e||e.constructor.name!==`Timeout`)||(yy.clearTimeout(e),this.#e[pe].endTimer(e))}setInterval(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,a=0,o=yy.setInterval(()=>{if(i){let t;try{t=e(...n)}catch(e){this.clearInterval(o),this[Bo](e)}t instanceof Promise&&t.catch(e=>{this.clearInterval(o),this[Bo](e)})}else e(...n);r?.timer.maxIntervalIterations!==-1&&(a>=r?.timer.maxIntervalIterations&&this.clearInterval(o),a++)},r?.timer.maxIntervalTime!==-1&&t&&t>r?.timer.maxIntervalTime?r?.timer.maxIntervalTime:t);return this.#e[pe].startTimer(o),o}clearInterval(e){by&&(!e||e.constructor.name!==`Timeout`)||(yy.clearInterval(e),this.#e[pe].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let t=this.#e.page.context.browser.settings;if(t.timer.preventTimerLoops){let e=Error().stack,n=this.#s,r=this.#c,i=n.indexOf(e);if(i!==-1){if(r[i].requestAnimationFrame++,r[i].requestAnimationFrame>=(t.timer.preventTimerLoops===!0?1:t.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else n.push(e),r.push({timeout:0,requestAnimationFrame:0})}let n=!t||!t.disableErrorCapturing&&t.errorCapture===Rs.tryAndCatch,r=yy.setImmediate(()=>{if(this.#e[pe].endImmediate(r),n){let t;try{t=e(this.performance.now())}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e(this.performance.now())});return this.#e[pe].startImmediate(r),r}cancelAnimationFrame(e){by&&(!e||e.constructor.name!==`Immediate`)||(yy.clearImmediate(e),this.#e[pe].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let t=!1,n=this.#e[pe].startTask(()=>t=!0),r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch;yy.queueMicrotask(()=>{if(!t)if(this.#e[pe].endTask(n),i){let t;try{t=e()}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e()})}async fetch(e,t){return this.closed?Promise.reject(new this.DOMException(`Failed to execute 'fetch' on 'Window': The window is closed.`,V.invalidStateError)):await new Ju({browserFrame:this.#e,window:this,url:e,init:t}).send()}btoa(e){return Is.btoa(e)}atob(e){return Is.atob(e)}postMessage(e,t=`*`,n){if(!this.closed){if(t&&t!==`*`&&this.location.origin!==t)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${t}') does not match the recipient window\'s origin ('${this.location.origin}').`,V.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.`,V.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new su(`message`,{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:``})))}}resizeTo(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[Ct]&&this.#e.page.setViewport({width:e,height:t})}}resizeBy(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[Ct]){let n=this.#e.page.viewport;this.#e.page.setViewport({width:n.width+e,height:n.height+t})}}}async createImageBitmap(e,t,n,r,i,a){return new vy(M,this,e,t,n,r,i,a)}[Bo](e){this.#e.page.console.error(e),this.dispatchEvent(new nu(`error`,{message:e.message,error:e}))}[Ie](e,t){return new le.Script(e,t).runInContext(this)}[lt](){le.isContext(this)||(le.createContext(this),Ph.runInContext(this))}[rs](){let e=this.#e;(xy||Sy)&&e.page.context.browser.settings.enableJavaScriptEvaluation&&!e.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!e.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
|
|
185
|
+
`||e===`\r`,e.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),e.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),e.asciiLowercase=e=>e.replace(/[A-Z]/gu,e=>e.toLowerCase()),e.collectAnHTTPQuotedString=(e,t)=>{let n=``;for(t++;;){for(;t<e.length&&e[t]!==`"`&&e[t]!==`\\`;)n+=e[t],++t;if(t>=e.length)break;let r=e[t];if(++t,r===`\\`){if(t>=e.length){n+=`\\`;break}n+=e[t],++t}else break}return[n,t]}})),Ag=t(((e,t)=>{let{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:i}=kg();t.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=n(String(e)),this._map.get(e)}has(e){return e=n(String(e)),this._map.has(e)}set(e,t){if(e=n(String(e)),t=String(t),!r(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!i(t))throw Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=n(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}})),jg=t(((e,t)=>{let{removeLeadingAndTrailingHTTPWhitespace:n,removeTrailingHTTPWhitespace:r,isHTTPWhitespaceChar:i,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:o,asciiLowercase:s,collectAnHTTPQuotedString:c}=kg();t.exports=e=>{e=n(e);let t=0,l=``;for(;t<e.length&&e[t]!==`/`;)l+=e[t],++t;if(l.length===0||!a(l)||t>=e.length)return null;++t;let u=``;for(;t<e.length&&e[t]!==`;`;)u+=e[t],++t;if(u=r(u),u.length===0||!a(u))return null;let d={type:s(l),subtype:s(u),parameters:new Map};for(;t<e.length;){for(++t;i(e[t]);)++t;let n=``;for(;t<e.length&&e[t]!==`;`&&e[t]!==`=`;)n+=e[t],++t;if(n=s(n),t<e.length){if(e[t]===`;`)continue;++t}let l=null;if(e[t]===`"`)for([l,t]=c(e,t);t<e.length&&e[t]!==`;`;)++t;else{for(l=``;t<e.length&&e[t]!==`;`;)l+=e[t],++t;if(l=r(l),l===``)continue}n.length>0&&a(n)&&o(l)&&!d.parameters.has(n)&&d.parameters.set(n,l)}return d}})),Mg=t(((e,t)=>{let{solelyContainsHTTPTokenCodePoints:n}=kg();t.exports=e=>{let t=`${e.type}/${e.subtype}`;if(e.parameters.size===0)return t;for(let[r,i]of e.parameters)t+=`;`,t+=r,t+=`=`,(!n(i)||i.length===0)&&(i=i.replace(/(["\\])/gu,`\\$1`),i=`"${i}"`),t+=i;return t}})),Ng=e(t(((e,t)=>{let n=Ag(),r=jg(),i=Mg(),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:o}=kg();t.exports=class{constructor(e){e=String(e);let t=r(e);if(t===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new n(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid type: must be a non-empty string`);if(!o(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid subtype: must be a non-empty string`);if(!o(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return i(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case`text`:switch(this._subtype){case`ecmascript`:case`javascript`:case`javascript1.0`:case`javascript1.1`:case`javascript1.2`:case`javascript1.3`:case`javascript1.4`:case`javascript1.5`:case`jscript`:case`livescript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}case`application`:switch(this._subtype){case`ecmascript`:case`javascript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype===`xml`&&(this._type===`text`||this._type===`application`)||this._subtype.endsWith(`+xml`)}isHTML(){return this._subtype===`html`&&this._type===`text`}}}))(),1),Pg;(function(e){e[e.empty=0]=`empty`,e[e.loading=1]=`loading`,e[e.done=2]=`done`})(Pg||={});var Fg=Pg,Ig;(function(e){e.buffer=`buffer`,e.binaryString=`binaryString`,e.dataURL=`dataURL`,e.text=`text`})(Ig||={});var Lg=Ig,Rg;(function(e){e.abort=`abort`,e.error=`error`,e.load=`load`,e.loadstart=`loadstart`,e.loadend=`loadend`,e.progress=`progress`})(Rg||={});var zg=Rg,Bg=class extends rl{error=null;result=null;readyState=Fg.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#n=null;constructor(){if(super(),!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.buffer)}readAsBinaryString(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.binaryString)}readAsDataURL(e){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.dataURL)}readAsText(e,t=null){if(!(e instanceof zs))throw new this[y].TypeError(`Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.text,t||`UTF-8`)}abort(){let e=this[y];if(this.#t&&e.clearTimeout(this.#t),this.#n&&e.clearTimeout(this.#n),this.readyState===Fg.empty||this.readyState===Fg.done){this.result=null;return}this.readyState===Fg.loading&&(this.readyState=Fg.done,this.result=null),this.#e=!0,this.dispatchEvent(new uu(zg.abort)),this.dispatchEvent(new uu(zg.loadend))}#r(e,t,n=null){let r=this[y];if(this.readyState===Fg.loading)throw new r.DOMException(`The object is in an invalid state.`,V.invalidStateError);this.readyState=Fg.loading,this.#t=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new uu(zg.loadstart));let a=e[he];a||=i.alloc(0),this.dispatchEvent(new uu(zg.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:a.length})),this.#n=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(t){default:case Lg.buffer:this.result=new Uint8Array(a).buffer;break;case Lg.binaryString:this.result=a.toString(`binary`);break;case Lg.dataURL:{let t=Ng.default.parse(e.type)||`application/octet-stream`;this.result=`data:${t};base64,${a.toString(`base64`)}`;break}case Lg.text:this.result=new TextDecoder(n||`UTF-8`).decode(a);break}this.readyState=Fg.done,this.dispatchEvent(new uu(zg.load)),this.dispatchEvent(new uu(zg.loadend))})})}};const Vg={aspectRatio:{max:300,min:.006666666666666667},deviceId:``,facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:[`none`,`crop-and-scale`],width:{max:300,min:1}},Hg={deviceId:``,frameRate:60,resizeMode:`none`};var Ug=class extends rl{contentHint=``;enabled=!0;id=f.randomUUID();muted=!1;readyState=`live`;label=``;[Ir]=``;[Fr]=`video`;[Bn]={};[Vn]=JSON.parse(JSON.stringify(Vg));[Hn]=JSON.parse(JSON.stringify(Hg));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==M)throw TypeError(`Illegal constructor`);if(!this[y])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[Fr]}async applyConstraints(e){this.#e(this[Bn],e)}getConstraints(){return this[Bn]}getCapabilities(){return this[Vn]}getSettings(){return this[Hn]}clone(){let e=new this.constructor(M);return e[Fr]=this[Fr],e[Bn]=this[Bn],e[Vn]=this[Vn],e[Hn]=this[Hn],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState=`ended`}#e(e,t){for(let n in t)t[n]!==null&&typeof t[n]==`object`&&!Array.isArray(t[n])?(typeof e[n]!=`object`&&(e[n]={}),this.#e(e[n],t[n])):e[n]=t[n]}},Wg=class extends Ug{[Br];constructor(e,t){super(e),this[Br]=t}get canvas(){return this[Br]}requestFrame(){}clone(){let e=super.clone();return e[Br]=this.canvas,e}},Gg;(function(e){e[e.connecting=0]=`connecting`,e[e.open=1]=`open`,e[e.closing=2]=`closing`,e[e.closed=3]=`closed`})(Gg||={});var Kg=Gg;const qg=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;var Jg=class extends rl{static CONNECTING=Kg.connecting;static OPEN=Kg.open;static CLOSING=Kg.closing;static CLOSED=Kg.closed;#e=Kg.closed;#t=``;#n=`blob`;#r=null;#i;[as]=null;constructor(e,t){super();let n=this[y],r;try{r=new URL(e)}catch{throw new n.DOMException(`The URL '${e}' is invalid.`,V.syntaxError)}if(r.protocol!==`ws:`&&r.protocol!==`wss:`)throw new n.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${r.protocol}' is not allowed.`,V.syntaxError);r.hash&&=``;let i=new Set,a=t===void 0?[]:Array.isArray(t)?t:[t];for(let e of a){if(!this.#d(e))throw new n.DOMException(`The subprotocol '${e}' is invalid.`,V.syntaxError);if(i.has(e))throw new n.DOMException(`The subprotocol '${e}' is duplicated.`,V.syntaxError);i.add(e)}this.#i=r,this.#a(r,a)}get readyState(){return this.#e}get extensions(){return this.#t}get binaryType(){return this.#n}set binaryType(e){e!==`blob`&&e!==`arraybuffer`||(this.#n=e)}get protocol(){return this[as]?.protocol||``}get url(){return this.#i.href}close(e,t){let n=this[y];if(e!==void 0&&e!==1e3&&!(e>=3e3&&e<=4999))throw new n.DOMException(`The code must be either 1000, or between 3000 and 4999. ${e} is neither.`,V.invalidAccessError);if(t!==void 0&&Buffer.byteLength(t,`utf8`)>123)throw new n.DOMException(`The message must not be greater than 123 bytes.`,V.syntaxError);this.#o(e,t?Buffer.from(t):void 0)}send(e){let t=this[y];if(this.#e===Kg.connecting)throw new t.DOMException(`Still in CONNECTING state.`,V.invalidStateError);if(this.#e!==Kg.open)return;if(typeof e==`string`){this[as]?.send(e,{binary:!1});return}let n;n=e instanceof ArrayBuffer?Buffer.from(new Uint8Array(e)):e instanceof zs?e[he]:e instanceof Buffer?e:ArrayBuffer.isView(e)?Buffer.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)):Buffer.from(String(e)),this[as]?.send(n,{binary:!0})}[Ne](){super[Ne](),this.#o(1001)}#a(e,t){let r=this[y],i=new J(r).getBrowserContext();if(!i)return;let a=new URL(r.location.href),o=i.cookieContainer.getCookies(a,!1);this.#e=Kg.connecting,this[as]=new n(e,t,{headers:{"user-agent":r.navigator.userAgent,cookie:Pu.cookiesToString(o),origin:a.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[as].once(`open`,()=>{this.#s()}),this[as].on(`message`,this.#l.bind(this)),this[as].once(`close`,(e,t)=>{this.#c(e,t)}),this[as].once(`upgrade`,({headers:e})=>{if(e[`set-cookie`]!==void 0){let t=Array.isArray(e[`set-cookie`])?e[`set-cookie`]:[e[`set-cookie`]];for(let e of t){let t=Pu.stringToCookie(a,e);t&&i.cookieContainer.addCookies([t])}}}),this[as].once(`error`,e=>{this.#r=e}),r[is].push(this)}#o(e,t){this.readyState===Kg.connecting?this[as]?this[as].terminate():this.#e=Kg.closing:this[as]&&this.readyState===Kg.open&&this[as].close(e,t),this[as]=null}#s(){this[as]?.extensions&&(this.#t=Object.keys(this[as].extensions).join(`, `)),this.#e=Kg.open,this.dispatchEvent(new this[y].Event(`open`))}#c(e,t){let n=this[y],r=n[is].indexOf(this);r!==-1&&n[is].splice(r,1),this.#e=Kg.closed,this.dispatchEvent(new this[y].CloseEvent(`close`,{wasClean:this.#r===null,code:e,reason:t.toString()}))}#l(e,t){if(this.#e!==Kg.open)return;let n=this[y],r;if(t)switch(this.binaryType){case`arraybuffer`:r=e instanceof n.ArrayBuffer?e:Array.isArray(e)?this.#u(Buffer.concat(e)):this.#u(e);break;default:Array.isArray(e)||(e=[e]),r=new n.Blob(e);break}else r=String(e);this.dispatchEvent(new n.MessageEvent(`message`,{data:r,origin:this.#i.origin}))}#u(e){let t=new this[y].ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}#d(e){return qg.test(e)}},Yg=class{[je];[v];[m];constructor(e,t,n){if(arguments.length<2)throw new this[y].TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(e instanceof Uint8ClampedArray){if(typeof t!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The width argument must be a number.`);if(n!==void 0&&typeof n!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[je]=e,this[v]=t,this[m]=n===void 0?e.length/(t*4):n}else{if(typeof t!=`number`)throw new this[y].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[je]=new Uint8ClampedArray(Array(e*t*4).fill(0)),this[v]=e,this[m]=t}}get data(){return this[je]}get width(){return this[v]}get height(){return this[m]}};const Xg={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},Zg=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Qg=/[\s,]+/;var $g=class e{[Xi]=1;[Zi]=0;[Qi]=0;[$i]=0;[ea]=0;[ta]=1;[na]=0;[ra]=0;[ia]=0;[aa]=0;[oa]=1;[sa]=0;[ca]=0;[la]=0;[ua]=0;[da]=1;constructor(e){e&&this[fa](e)}get a(){return this[Xi]}get b(){return this[Zi]}get c(){return this[ea]}get d(){return this[ta]}get e(){return this[ca]}get f(){return this[la]}get m11(){return this[Xi]}get m12(){return this[Zi]}get m13(){return this[Qi]}get m14(){return this[$i]}get m21(){return this[ea]}get m22(){return this[ta]}get m23(){return this[na]}get m24(){return this[ra]}get m31(){return this[ia]}get m32(){return this[aa]}get m33(){return this[oa]}get m34(){return this[sa]}get m41(){return this[ca]}get m42(){return this[la]}get m43(){return this[ua]}get m44(){return this[da]}get isIdentity(){return this[Xi]===1&&this[Zi]===0&&this[Qi]===0&&this[$i]===0&&this[ea]===0&&this[ta]===1&&this[na]===0&&this[ra]===0&&this[ia]===0&&this[aa]===0&&this[oa]===1&&this[sa]===0&&this[ca]===0&&this[la]===0&&this[ua]===0&&this[da]===1}get is2D(){return this[ia]===0&&this[aa]===0&&this[oa]===1&&this[sa]===0&&this[ua]===0&&this[da]===1}toFloat32Array(e){return Float32Array.from(this[qi](e))}toFloat64Array(e){return Float64Array.from(this[qi](e))}toString(){let e=this.is2D,t=this[qi](e).join(`, `);return`${e?`matrix`:`matrix3d`}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Xi],m12:this[Zi],m13:this[Qi],m14:this[$i],m21:this[ea],m22:this[ta],m23:this[na],m24:this[ra],m31:this[ia],m32:this[aa],m33:this[oa],m34:this[sa],m41:this[ca],m42:this[la],m43:this[ua],m44:this[da],a:this[Xi],b:this[Zi],c:this[ea],d:this[ta],e:this[ca],f:this[la],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return e&&t[xa](e),t}translate(e=0,t=0,n=0){let r=new this.constructor(this);return r[pa](e,t,n),r}scale(e,t,n=1,r=0,i=0,a=0){let o=new this.constructor(this);return o[ga](e,t,n,r,i,a),o}scale3d(e=1,t=0,n=0,r=0){let i=new this.constructor(this);return i[_a](e,t,n,r),i}scaleNonUniform(e=1,t=1){let n=new this.constructor(this);return n[va](e,t),n}rotateAxisAngle(e=0,t=0,n=0,r=0){let i=new this.constructor(this);return i[ha](e,t,n,r),i}rotate(e=0,t,n){let r=new this.constructor(this);return r[ma](e,t,n),r}rotateFromVector(e=0,t=0){let n=new this.constructor(this);return n[vo](e,t),n}skewX(e){let t=new this.constructor(this);return t[ya](e),t}skewY(e){let t=new this.constructor(this);return t[ba](e),t}flipX(){let e=new this.constructor(this);return e[yo](),e}flipY(){let e=new this.constructor(this);return e[bo](),e}inverse(){let e=new this.constructor(this);return e[xo](),e}transformPoint(e){let t=e?.x??0,n=e?.y??0,r=e?.z??0,i=e?.w??1,a=this[Xi]*t+this[ea]*n+this[ia]*r+this[ca]*i,o=this[Zi]*t+this[ta]*n+this[aa]*r+this[la]*i,s=this[Qi]*t+this[na]*n+this[oa]*r+this[ua]*i,c=this[$i]*t+this[ra]*n+this[sa]*r+this[da]*i;return new this[y].DOMPoint(a,o,s,c)}[fa](e){let t=null;if(typeof e==`string`&&e.length&&e!==`none`)t=this.constructor[Ji](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[Yi](e);else if(typeof e==`object`)t=this.constructor.fromMatrix(e);else return;this[Xi]=t[Xi],this[Zi]=t[Zi],this[Qi]=t[Qi],this[$i]=t[$i],this[ea]=t[ea],this[ta]=t[ta],this[na]=t[na],this[ra]=t[ra],this[ia]=t[ia],this[aa]=t[aa],this[oa]=t[oa],this[sa]=t[sa],this[ca]=t[ca],this[la]=t[la],this[ua]=t[ua],this[da]=t[da]}[xa](t){if(!t)return;let n=t;n instanceof e||(n?.m11===void 0&&n?.a!==void 0?(n=Object.assign({},Xg,n),n.m11=n.a,n.m12=n.b,n.m21=n.c,n.m22=n.d,n.m41=n.e,n.m42=n.f):n=Object.assign({},Xg,n));let r=this[Xi]*n.m11+this[ea]*n.m12+this[ia]*n.m13+this[ca]*n.m14,i=this[Xi]*n.m21+this[ea]*n.m22+this[ia]*n.m23+this[ca]*n.m24,a=this[Xi]*n.m31+this[ea]*n.m32+this[ia]*n.m33+this[ca]*n.m34,o=this[Xi]*n.m41+this[ea]*n.m42+this[ia]*n.m43+this[ca]*n.m44,s=this[Zi]*n.m11+this[ta]*n.m12+this[aa]*n.m13+this[la]*n.m14,c=this[Zi]*n.m21+this[ta]*n.m22+this[aa]*n.m23+this[la]*n.m24,l=this[Zi]*n.m31+this[ta]*n.m32+this[aa]*n.m33+this[la]*n.m34,u=this[Zi]*n.m41+this[ta]*n.m42+this[aa]*n.m43+this[la]*n.m44,d=this[Qi]*n.m11+this[na]*n.m12+this[oa]*n.m13+this[ua]*n.m14,f=this[Qi]*n.m21+this[na]*n.m22+this[oa]*n.m23+this[ua]*n.m24,ee=this[Qi]*n.m31+this[na]*n.m32+this[oa]*n.m33+this[ua]*n.m34,te=this[Qi]*n.m41+this[na]*n.m42+this[oa]*n.m43+this[ua]*n.m44,ne=this[$i]*n.m11+this[ra]*n.m12+this[sa]*n.m13+this[da]*n.m14,re=this[$i]*n.m21+this[ra]*n.m22+this[sa]*n.m23+this[da]*n.m24,ie=this[$i]*n.m31+this[ra]*n.m32+this[sa]*n.m33+this[da]*n.m34,ae=this[$i]*n.m41+this[ra]*n.m42+this[sa]*n.m43+this[da]*n.m44;this[Xi]=r,this[Zi]=s,this[Qi]=d,this[$i]=ne,this[ea]=i,this[ta]=c,this[na]=f,this[ra]=re,this[ia]=a,this[aa]=l,this[oa]=ee,this[sa]=ie,this[ca]=o,this[la]=u,this[ua]=te,this[da]=ae}[pa](e=0,t=0,n=0){let r=this.constructor[Yi]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]);this[xa](r)}[ga](e,t,n=1,r=0,i=0,a=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(r!==0||i!==0||a!==0)&&this[pa](r,i,a),(e!==1||t!==1||n!==1)&&this[xa](this.constructor[Yi]([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1])),(r!==0||i!==0||a!==0)&&this[pa](-r,-i,-a)}[_a](e=1,t=0,n=0,r=0){(t!==0||n!==0||r!==0)&&this[pa](t,n,r),e!==1&&this[xa](this.constructor[Yi]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||n!==0||r!==0)&&this[pa](-t,-n,-r)}[va](e=1,t=1){e===1&&t===1||this[xa](this.constructor[Yi]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[ha](e=0,t=0,n=0,r=0){if(e=Number(e),t=Number(t),n=Number(n),r=Number(r),isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw new this[y].TypeError(`Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.`);let i=Math.hypot(e,t,n);if(i===0)return;i!==1&&(e/=i,t/=i,n/=i);let a=-(r*Math.PI/360),o=this.#e,s=Math.sin(a)*Math.cos(a),c=Math.sin(a)*Math.sin(a),l=o(1-2*(t*t+n*n)*c),u=o(2*(e*t*c+n*s)),d=o(2*(e*n*c-t*s)),f=o(2*(e*t*c-n*s)),ee=o(1-2*(e*e+n*n)*c),te=o(2*(t*n*c+e*s)),ne=o(2*(e*n*c+t*s)),re=o(2*(t*n*c-e*s)),ie=o(1-2*(e*e+t*t)*c),ae=this.constructor[Yi]([l,f,ne,0,u,ee,re,0,d,te,ie,0,0,0,0,1]);this[xa](ae)}[ma](e=0,t,n){if(t===void 0&&n===void 0&&(n=e,e=0,t=0),t===void 0&&(t=0),n===void 0&&(n=0),e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw new this[y].TypeError(`Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.`);n!==0&&this[ha](0,0,1,n),t!==0&&this[ha](0,1,0,t),e!==0&&this[ha](1,0,0,e)}[vo](e=0,t=0){e===0&&t===0||this[ma](Math.atan2(t,e)*180/Math.PI)}[ya](e){let t=Object.assign({},Xg),n=Math.tan(e*Math.PI/180);t.m21=n,t.c=n,this[xa](t)}[ba](e){let t=Object.assign({},Xg),n=Math.tan(e*Math.PI/180);t.m12=n,t.b=n,this[xa](t)}[yo](){let e=this.constructor[Yi]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[xa](e)}[bo](){let e=this.constructor[Yi]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[xa](e)}[xo](){let e=this[ta]*this[oa]*this[da]-this[ta]*this[sa]*this[ua]-this[aa]*this[na]*this[da]+this[aa]*this[ra]*this[ua]+this[la]*this[na]*this[sa]-this[la]*this[ra]*this[oa],t=-this[Zi]*this[oa]*this[da]+this[Zi]*this[sa]*this[ua]+this[aa]*this[Qi]*this[da]-this[aa]*this[$i]*this[ua]-this[la]*this[Qi]*this[sa]+this[la]*this[$i]*this[oa],n=this[Zi]*this[na]*this[da]-this[Zi]*this[ra]*this[ua]-this[ta]*this[Qi]*this[da]+this[ta]*this[$i]*this[ua]+this[la]*this[Qi]*this[ra]-this[la]*this[$i]*this[na],r=-this[Zi]*this[na]*this[sa]+this[Zi]*this[ra]*this[oa]+this[ta]*this[Qi]*this[sa]-this[ta]*this[$i]*this[oa]-this[aa]*this[Qi]*this[ra]+this[aa]*this[$i]*this[na],i=this[Xi]*e+this[ea]*t+this[ia]*n+this[ca]*r;if(i===0){this[Xi]=NaN,this[Zi]=NaN,this[Qi]=NaN,this[$i]=NaN,this[ea]=NaN,this[ta]=NaN,this[na]=NaN,this[ra]=NaN,this[ia]=NaN,this[aa]=NaN,this[oa]=NaN,this[sa]=NaN,this[ca]=NaN,this[la]=NaN,this[ua]=NaN,this[da]=NaN;return}let a=-this[ea]*this[oa]*this[da]+this[ea]*this[sa]*this[ua]+this[ia]*this[na]*this[da]-this[ia]*this[ra]*this[ua]-this[ca]*this[na]*this[sa]+this[ca]*this[ra]*this[oa],o=this[Xi]*this[oa]*this[da]-this[Xi]*this[sa]*this[ua]-this[ia]*this[Qi]*this[da]+this[ia]*this[$i]*this[ua]+this[ca]*this[Qi]*this[sa]-this[ca]*this[$i]*this[oa],s=-this[Xi]*this[na]*this[da]+this[Xi]*this[ra]*this[ua]+this[ea]*this[Qi]*this[da]-this[ea]*this[$i]*this[ua]-this[ca]*this[Qi]*this[ra]+this[ca]*this[$i]*this[na],c=this[Xi]*this[na]*this[sa]-this[Xi]*this[ra]*this[oa]-this[ea]*this[Qi]*this[sa]+this[ea]*this[$i]*this[oa]+this[ia]*this[Qi]*this[ra]-this[ia]*this[$i]*this[na],l=this[ea]*this[aa]*this[da]-this[ea]*this[sa]*this[la]-this[ia]*this[ta]*this[da]+this[ia]*this[ra]*this[la]+this[ca]*this[ta]*this[sa]-this[ca]*this[ra]*this[aa],u=-this[Xi]*this[aa]*this[da]+this[Xi]*this[sa]*this[la]+this[ia]*this[Zi]*this[da]-this[ia]*this[$i]*this[la]-this[ca]*this[Zi]*this[sa]+this[ca]*this[$i]*this[aa],d=this[Xi]*this[ta]*this[da]-this[Xi]*this[ra]*this[la]-this[ea]*this[Zi]*this[da]+this[ea]*this[$i]*this[la]+this[ca]*this[Zi]*this[ra]-this[ca]*this[$i]*this[ta],f=-this[Xi]*this[ta]*this[sa]+this[Xi]*this[ra]*this[aa]+this[ea]*this[Zi]*this[sa]-this[ea]*this[$i]*this[aa]-this[ia]*this[Zi]*this[ra]+this[ia]*this[$i]*this[ta],ee=-this[ea]*this[aa]*this[ua]+this[ea]*this[oa]*this[la]+this[ia]*this[ta]*this[ua]-this[ia]*this[na]*this[la]-this[ca]*this[ta]*this[oa]+this[ca]*this[na]*this[aa],te=this[Xi]*this[aa]*this[ua]-this[Xi]*this[oa]*this[la]-this[ia]*this[Zi]*this[ua]+this[ia]*this[Qi]*this[la]+this[ca]*this[Zi]*this[oa]-this[ca]*this[Qi]*this[aa],ne=-this[Xi]*this[ta]*this[ua]+this[Xi]*this[na]*this[la]+this[ea]*this[Zi]*this[ua]-this[ea]*this[Qi]*this[la]-this[ca]*this[Zi]*this[na]+this[ca]*this[Qi]*this[ta],re=this[Xi]*this[ta]*this[oa]-this[Xi]*this[na]*this[aa]-this[ea]*this[Zi]*this[oa]+this[ea]*this[Qi]*this[aa]+this[ia]*this[Zi]*this[na]-this[ia]*this[Qi]*this[ta];this[Xi]=e/i||0,this[Zi]=t/i||0,this[Qi]=n/i||0,this[$i]=r/i||0,this[ea]=a/i||0,this[ta]=o/i||0,this[na]=s/i||0,this[ra]=c/i||0,this[ia]=l/i||0,this[aa]=u/i||0,this[oa]=d/i||0,this[sa]=f/i||0,this[ca]=ee/i||0,this[la]=te/i||0,this[ua]=ne/i||0,this[da]=re/i||0}[qi](e=!1){return e?[this[Xi],this[Zi],this[ea],this[ta],this[ca],this[la]]:[this[Xi],this[Zi],this[Qi],this[$i],this[ea],this[ta],this[na],this[ra],this[ia],this[aa],this[oa],this[sa],this[ca],this[la],this[ua],this[da]]}#e(e,t=0x38d7ea4c68000){return Math.round(e*t)/t}static fromMatrix(t){return t instanceof e||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Xg,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Xg,t)),this[Yi]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(e){return this[Yi](e)}static fromFloat64Array(e){return this[Yi](e)}static[Yi](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[n,r,i,a,o,s,c,l,u,d,f,ee,te,ne,re,ie]=e;t[Xi]=n,t[Zi]=r,t[Qi]=i,t[$i]=a,t[ea]=o,t[ta]=s,t[na]=c,t[ra]=l,t[ia]=u,t[aa]=d,t[oa]=f,t[sa]=ee,t[ca]=te,t[la]=ne,t[ua]=re,t[da]=ie}else if(e.length===6){let[n,r,i,a,o,s]=e;t[Xi]=n,t[Zi]=r,t[ea]=i,t[ta]=a,t[ca]=o,t[la]=s}return t}static[Ji](e){if(typeof e!=`string`)throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,n=new RegExp(Zg),r;for(;r=n.exec(e);){let e=r[1],n=r[2].split(Qg);for(let e=0,t=n.length;e<t;e++)n[e]=this[So](n[e]);let[i,a,o,s]=n;switch(e){case`perspective`:!isNaN(i)&&i!==0&&a===void 0&&o===void 0&&(t[sa]=-1/i);break;case`translate`:!isNaN(i)&&o===void 0&&t[pa](i,a||0,0);break;case`translate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[pa](i,a,o);break;case`translateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](i);break;case`translateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,i);break;case`translateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,0,i);break;case`matrix`:case`matrix3d`:(n.length===6||n.length===16)&&t[fa](this[Yi](n));break;case`rotate`:case`rotateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](0,0,i);break;case`rotateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](i,0,0);break;case`rotateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[ma](0,i,0);case`rotate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&!isNaN(s)&&t[ha](i,a,o,s);break;case`scale`:!isNaN(i)&&i!==1&&o===void 0&&t[ga](i,isNaN(a)?i:a);break;case`scale3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[ga](i,a,o);break;case`scaleX`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](i,1,1);break;case`scaleY`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](1,i,1);break;case`scaleZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[ga](1,1,i);break;case`skew`:isNaN(i)||t[ya](i),isNaN(a)||t[ba](a);break;case`skewX`:!isNaN(i)&&a===void 0&&t[ya](i);break;case`skewY`:!isNaN(i)&&a===void 0&&t[ba](i);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${r[1]}'.`)}}return t}static[So](e){let t=parseFloat(e);switch(e.replace(t.toString(),``)){case`rem`:case`em`:case`vw`:case`vh`:case`%`:case`vmin`:case`vmax`:throw SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case`rad`:return 180/Math.PI*t;case`turn`:return t*360;case`px`:return t;case`cm`:return t*37.7812;case`mm`:return t*3.7781;case`in`:return t*96;case`pt`:return t*1.3281;case`pc`:return t*16;case`Q`:return t*.945;default:return t}}},e_=class extends $g{get a(){return this[Xi]}set a(e){this[Xi]=e}get b(){return this[Zi]}set b(e){this[Zi]=e}get c(){return this[ea]}set c(e){this[ea]=e}get d(){return this[ta]}set d(e){this[ta]=e}get e(){return this[ca]}set e(e){this[ca]=e}get f(){return this[la]}set f(e){this[la]=e}get m11(){return this[Xi]}set m11(e){this[Xi]=e}get m12(){return this[Zi]}set m12(e){this[Zi]=e}get m13(){return this[Qi]}set m13(e){this[Qi]=e}get m14(){return this[$i]}set m14(e){this[$i]=e}get m21(){return this[ea]}set m21(e){this[ea]=e}get m22(){return this[ta]}set m22(e){this[ta]=e}get m23(){return this[na]}set m23(e){this[na]=e}get m24(){return this[ra]}set m24(e){this[ra]=e}get m31(){return this[ia]}set m31(e){this[ia]=e}get m32(){return this[aa]}set m32(e){this[aa]=e}get m33(){return this[oa]}set m33(e){this[oa]=e}get m34(){return this[sa]}set m34(e){this[sa]=e}get m41(){return this[ca]}set m41(e){this[ca]=e}get m42(){return this[la]}set m42(e){this[la]=e}get m43(){return this[ua]}set m43(e){this[ua]=e}get m44(){return this[da]}set m44(e){this[da]=e}setMatrixValue(e){return this[fa](e),this}multiplySelf(e){return this[xa](e),this}translateSelf(e=0,t=0,n=0){return this[pa](e,t,n),this}scaleSelf(e,t,n=1,r=0,i=0,a=0){return this[ga](e,t,n,r,i,a),this}scale3dSelf(e=1,t=0,n=0,r=0){return this[_a](e,t,n,r),this}scaleNonUniformSelf(e=1,t=1){return this[va](e,t),this}rotateAxisAngleSelf(e=0,t=0,n=0,r=0){return this[ha](e,t,n,r),this}rotateSelf(e=0,t,n){return this[ma](e,t,n),this}rotateFromVectorSelf(e=0,t=0){return this[vo](e,t),this}skewXSelf(e){return this[ya](e),this}skewYSelf(e){return this[ba](e),this}flipXSelf(){return this[yo](),this}flipYSelf(){return this[bo](),this}invertSelf(){return this[xo](),this}preMultiplySelf(e){return this[xa](e),this}},t_=class{[E]=0;[D]=0;[Gi]=0;[Ki]=1;constructor(e,t,n,r){this[E]=e==null?0:Number(e),this[D]=t==null?0:Number(t),this[Gi]=n==null?0:Number(n),this[Ki]=r==null?1:Number(r)}get x(){return this[E]}get y(){return this[D]}get z(){return this[Gi]}get w(){return this[Ki]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}matrixTransform(e){let t=new this[y].DOMMatrixReadOnly(e),n=this.x*t.m11+this.y*t.m21+this.z*t.m31+this.w*t.m41,r=this.x*t.m12+this.y*t.m22+this.z*t.m32+this.w*t.m42,i=this.x*t.m13+this.y*t.m23+this.z*t.m33+this.w*t.m43,a=this.x*t.m14+this.y*t.m24+this.z*t.m34+this.w*t.m44;return new this.constructor(n,r,i,a)}},n_=class extends t_{set x(e){this[E]=e}get x(){return this[E]}set y(e){this[D]=e}get y(){return this[D]}set z(e){this[Gi]=e}get z(){return this[Gi]}set w(e){this[Ki]=e}get w(){return this[Ki]}},r_=class{static extendClasses(e){class t extends Bh{}t.prototype[y]=e,e.Document=t;class n extends Vh{}n.prototype[y]=e,e.HTMLDocument=n;class r extends Hh{}r.prototype[y]=e,e.XMLDocument=r;class i extends hh{}i.prototype[y]=e,e.DocumentFragment=i;class a extends Uh{}a.prototype[y]=e,e.Text=a;class o extends Wh{}o.prototype[y]=e,e.Comment=o;class s extends Gh{}s.prototype[y]=e,e.Image=s;class c extends Kh{}c.prototype[y]=e,e.Audio=c;class l extends Jh{}l.prototype[y]=e,e.MutationObserver=l;class u extends Yh{}u.prototype[y]=e,e.MessagePort=u;class d extends Qh{}d.prototype[y]=e,e.CSSStyleSheet=d;class f extends vs{}e.DOMException=f;class ee extends ys{}ee.prototype[y]=e,e.Headers=ee;class te extends Lu{}te.prototype[y]=e,e.Request=te;class ne extends zu{}ne.prototype[y]=e,ne[y]=e,e.Response=ne;class re extends rl{}re.prototype[y]=e,e.EventTarget=re;class ie extends eg{}ie.prototype[y]=e,e.XMLHttpRequestUpload=ie;class ae extends $h{}ae.prototype[y]=e,e.XMLHttpRequestEventTarget=ae;class oe extends tg{}oe.prototype[y]=e,e.AbortController=oe;class se extends ng{}se.prototype[y]=e,se[y]=e,e.AbortSignal=se;class ce extends Eu{}ce.prototype[y]=e,e.FormData=ce;class le extends rg{}le.prototype[y]=e,e.PermissionStatus=le;class ue extends lg{}ue.prototype[y]=e,e.XMLHttpRequest=ue;class de extends bg{}de.prototype[y]=e,e.DOMParser=de;class fe extends Cg{}fe.prototype[y]=e,e.Range=fe;class pe extends Tg{}pe.prototype[y]=e,e.VTTCue=pe;class me extends Eg{}me.prototype[y]=e,e.TextTrack=me;class he extends Dg{}he.prototype[y]=e,e.TextTrackList=he;class ge extends wg{}ge.prototype[y]=e,e.TextTrackCue=ge;class _e extends Og{}_e.prototype[y]=e,e.RemotePlayback=_e;class ve extends Bg{}ve.prototype[y]=e,e.FileReader=ve;class ye extends If{}ye.prototype[y]=e,e.MediaStream=ye;class be extends Ug{}be.prototype[y]=e,e.MediaStreamTrack=be;class xe extends Wg{}xe.prototype[y]=e,e.CanvasCaptureMediaStreamTrack=xe;class Se extends hu{}Se.prototype[y]=e,e.URL=Se;class Ce extends Jg{}Ce.prototype[y]=e,e.WebSocket=Ce;class we extends Yg{}we.prototype[y]=e,e.ImageData=we;class Te extends Xf{}Te.prototype[y]=e,e.OffscreenCanvas=Te;class Ee extends $g{}Ee.prototype[y]=e,e.DOMMatrixReadOnly=Ee;class De extends e_{}De.prototype[y]=e,e.DOMMatrix=De;class Oe extends t_{}Oe.prototype[y]=e,e.DOMPointReadOnly=Oe;class ke extends n_{}ke.prototype[y]=e,e.DOMPoint=ke}};const i_=/[\t\f\n\r ,]+/;var a_=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M||(this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute,t!==M))throw TypeError(`Illegal constructor`);let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){this[j].attributeValue=``,this[j].items=[],this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[I](e),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),this[I](n.join(` `)),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let n=this[N]();t<0?t=0:t>=n.length&&(t=n.length-1);let r=n[t];return n[t]=e,this[I](n.join(` `)),r}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return t.splice(e,1),this[I](t.join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),this[I](t.join(` `)),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;let n=[],r=e.trim();if(r)for(let e of r.split(i_))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}};const o_=/([a-zA-Z0-9]+)\(([^)]+)\)/,s_=/[\s,]+/;var c_=class e{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get a(){return this[Ca]().a}set a(e){if(this[P])return;let t=this[Ca]();t.a=e,this[wa](t)}get b(){return this[Ca]().b}set b(e){if(this[P])return;let t=this[Ca]();t.b=e,this[wa](t)}get c(){return this[Ca]().c}set c(e){if(this[P])return;let t=this[Ca]();t.c=e,this[wa](t)}get d(){return this[Ca]().d}set d(e){if(this[P])return;let t=this[Ca]();t.d=e,this[wa](t)}get e(){return this[Ca]().e}set e(e){if(this[P])return;let t=this[Ca]();t.e=e,this[wa](t)}get f(){return this[Ca]().f}set f(e){if(this[P])return;let t=this[Ca]();t.f=e,this[wa](t)}multiply(t){if(!(t instanceof e))throw new this[y].TypeError(`Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.`);let n=this[Ca](),r=new e(M,this[y]);return n.multiplySelf(t[Ca]()),r[wa](n),r}translate(t=0,n=0){let r=this[Ca](),i=new e(M,this[y]);return r.translateSelf(t,n),i[wa](r),i}scale(t){let n=this[Ca](),r=new e(M,this[y]);return n.scaleSelf(t),r[wa](n),r}scaleNonUniform(t=1,n=1){let r=this[Ca](),i=new e(M,this[y]);return r.scaleNonUniformSelf(t,n),i[wa](r),i}rotate(t){let n=this[Ca](),r=new e(M,this[y]);return n.rotateSelf(t),r[wa](n),r}rotateFromVector(t=0,n=0){let r=this[Ca](),i=new e(M,this[y]);return r.rotateFromVectorSelf(t,n),i[wa](r),i}skewX(t){let n=this[Ca](),r=new e(M,this[y]);return n.skewXSelf(t),r[wa](n),r}skewY(t){let n=this[Ca](),r=new e(M,this[y]);return n.skewYSelf(t),r[wa](n),r}flipX(){let t=this[Ca](),n=new e(M,this[y]);return t.flipXSelf(),n[wa](t),n}flipY(){let t=this[Ca](),n=new e(M,this[y]);return t.flipYSelf(),n[wa](t),n}inverse(){let t=this[Ca](),n=new e(M,this[y]);return t.invertSelf(),n[wa](t),n}[Ca](){let e=this[F]?this[F]():this[L],t=this[y];if(!e)return new t.DOMMatrix;let n=e.match(o_);if(!n)return new t.DOMMatrix;let r=[];for(let i of n[2].trim().split(s_)){let n=Number(i);if(isNaN(n))throw new t.TypeError(`Failed to parse transform attribute: Expected number, but got "${i}" in "${e}".`);r.push(n)}switch(n[1]){case`matrix`:if(r.length!==6)throw new t.TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return e_[Ji](e);case`scale`:case`translate`:if(r.length!==1&&r.length!==2)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return e_[Ji](e);case`skewY`:case`skewX`:if(r.length!==1)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return e_[Ji](e);case`rotate`:let n=new t.DOMMatrix;if(r.length!==1&&r.length!==3)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,a,o]=r;(a||o)&&n.translateSelf(a,o);let s=i*Math.PI/180;return n.multiplySelf(new t.DOMMatrix([Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0])),(a||o)&&n.translateSelf(-a,-o),n;default:throw new this[y].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[wa](e){this[L]=e.toString().replace(/, /g,` `),this[I]&&this[I](this[L])}},l_;(function(e){e[e.unknown=0]=`unknown`,e[e.matrix=1]=`matrix`,e[e.translate=2]=`translate`,e[e.scale=3]=`scale`,e[e.rotate=4]=`rotate`,e[e.skewX=5]=`skewX`,e[e.skewY=6]=`skewY`})(l_||={});var u_=l_;const d_=/([a-zA-Z0-9]+)\(([^)]+)\)/,f_=/[\s,]+/;var p_=class{static SVG_TRANSFORM_UNKNOWN=u_.unknown;static SVG_TRANSFORM_MATRIX=u_.matrix;static SVG_TRANSFORM_TRANSLATE=u_.translate;static SVG_TRANSFORM_SCALE=u_.scale;static SVG_TRANSFORM_ROTATE=u_.rotate;static SVG_TRANSFORM_SKEWX=u_.skewX;static SVG_TRANSFORM_SKEWY=u_.skewY;[y];[F]=null;[I]=null;[L]=null;[P]=!1;[Sa]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get type(){let e=(this[F]?this[F]():this[L])?.match(d_);if(!e)return u_.unknown;switch(e[1]){case`matrix`:return u_.matrix;case`translate`:return u_.translate;case`rotate`:return u_.rotate;case`scale`:return u_.scale;case`skewX`:return u_.skewX;case`skewY`:return u_.skewY}return 0}get angle(){let e=(this[F]?this[F]():this[L])?.match(d_);if(!e)return 0;let t=parseFloat(e[2].trim().split(f_)[0]);if(isNaN(t))return 0;switch(e[1]){case`rotate`:case`skewX`:case`skewY`:return t}return 0}get matrix(){return this[Sa]||(this[Sa]=new c_(M,this[y],{readOnly:this[P],getAttribute:()=>this[F]?this[F]():this[L],setAttribute:e=>{if(this[L]=e,this[I]){this[I](e);return}}})),this[Sa]}setMatrix(e){if(!(e instanceof c_))throw TypeError(`Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".`);this[P]||(this[Sa]&&(this[Sa][F]=null,this[Sa][I]=null),e[F]=()=>this[F]?this[F]():this[L],e[I]=e=>{if(this[L]=e,this[I]){this[I](e);return}},this[Sa]=e,e[L]!==this[L]&&(this[L]=e[L],this[I]&&this[I](this[L]||``)))}setTranslate(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`translate(${e} ${t})`,this[I]&&this[I](this[L]))}setScale(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`scale(${e} ${t})`,this[I]&&this[I](this[L]))}setRotate(e,t,n){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`rotate(${e} ${t} ${n})`,this[I]&&this[I](this[L]))}setSkewX(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`skewX(${e})`,this[I]&&this[I](this[L]))}setSkewY(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.`);this[P]||(this[L]=`skewY(${e})`,this[I]&&this[I](this[L]))}};const m_=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,h_=`matrix(1 0 0 1 0 0)`;var g_=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGTransformList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[j].attributeValue=t.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof p_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=new RegExp(m_),t;for(;t=e.exec(r);){let e=new p_(M,this[y],{readOnly:this[P],getAttribute:()=>e[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||h_).join(` `),this[I](this[j].attributeValue)}});e[L]=`${t[1]}(${t[2]})`,n.push(e)}}return t.attributeValue=e,t.items=n,n}},__=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new g_(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:()=>{}})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new g_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},v_=class extends _h{[ei]=null;[ti]=null;[ni]=null;get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[B].set(`oncopy`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[B].set(`oncut`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[B].set(`onpaste`,e)}get requiredExtensions(){return this[ei]||(this[ei]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[ei]}get systemLanguage(){return this[ti]||(this[ti]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ti]}get transform(){return this[ni]||(this[ni]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`transform`),setAttribute:e=>this.setAttribute(`transform`,e)})),this[ni]}getBBox(){return new Dd}getCTM(){return new this[y].DOMMatrix}getScreenCTM(){return new this[y].DOMMatrix}},y_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get x(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[0]);return isNaN(n)?0:n}set x(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'x' property on 'SVGRect': The object is read-only.`);this[L]=`${String(typeof e==`number`?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[I]&&this[I](this[L])}get y(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[1]);return isNaN(n)?0:n}set y(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'y' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${String(typeof e==`number`?e:parseFloat(e))} ${this.width} ${this.height}`,this[I]&&this[I](this[L])}get width(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[2]);return isNaN(n)?0:n}set width(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'width' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${this.y} ${String(typeof e==`number`?e:parseFloat(e))} ${this.height}`,this[I]&&this[I](this[L])}get height(){let e=this[F]?this[F]():this[L];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[3]);return isNaN(n)?0:n}set height(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'height' property on 'SVGRect': The object is read-only.`);this[L]=`${this.x} ${this.y} ${this.width} ${String(typeof e==`number`?e:parseFloat(e))}`,this[I]&&this[I](this[L])}};const b_=/[\t\f\n\r, ]+/;var x_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get x(){let e=((this[F]?this[F]():this[L])||``).split(b_);return e[0]?parseFloat(e[0]):0}set x(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'x' property on 'SVGPoint': The object is read-only.`);this[L]=`${e} ${this.y}`,this[I]&&this[I](this[L])}get y(){let e=((this[F]?this[F]():this[L])||``).split(b_);return e[1]?parseFloat(e[1]):0}set y(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'y' property on 'SVGPoint': The object is read-only.`);this[L]=`${this.x} ${e}`,this[I]&&this[I](this[L])}},S_;(function(e){e[e.unknown=0]=`unknown`,e[e.number=1]=`number`,e[e.percentage=2]=`percentage`,e[e.ems=3]=`ems`,e[e.exs=4]=`exs`,e[e.px=5]=`px`,e[e.cm=6]=`cm`,e[e.mm=7]=`mm`,e[e.in=8]=`in`,e[e.pt=9]=`pt`,e[e.pc=10]=`pc`})(S_||={});var C_=S_;const w_=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;var T_=class{static SVG_LENGTHTYPE_UNKNOWN=C_.unknown;static SVG_LENGTHTYPE_NUMBER=C_.number;static SVG_LENGTHTYPE_PERCENTAGE=C_.percentage;static SVG_LENGTHTYPE_EMS=C_.ems;static SVG_LENGTHTYPE_EXS=C_.exs;static SVG_LENGTHTYPE_PX=C_.px;static SVG_LENGTHTYPE_CM=C_.cm;static SVG_LENGTHTYPE_MM=C_.mm;static SVG_LENGTHTYPE_IN=C_.in;static SVG_LENGTHTYPE_PT=C_.pt;static SVG_LENGTHTYPE_PC=C_.pc;[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get unitType(){let e=(this[F]?this[F]()||``:this[L]||``).match(w_);if(!e||isNaN(parseFloat(e[1])))return C_.unknown;switch(e[2]){case``:return C_.number;case`px`:return C_.px;case`cm`:return C_.cm;case`mm`:return C_.mm;case`in`:return C_.in;case`pt`:return C_.pt;case`pc`:return C_.pc;case`em`:case`ex`:case`%`:throw new this[y].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return C_.unknown}}get value(){let e=(this[F]?this[F]()||``:this[L]||``).match(w_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`px`:return t;case`cm`:return t/2.54*96;case`mm`:return t/25.4*96;case`in`:return t*96;case`pt`:return t*72;case`pc`:return t*6;case`em`:case`ex`:case`%`:throw new this[y].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return 0}}set value(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case C_.number:n=e,t=``;break;case C_.px:n=e,t=`px`;break;case C_.cm:n=e/96*2.54,t=`cm`;break;case C_.mm:n=e/96*25.4,t=`mm`;break;case C_.in:n=e/96,t=`in`;break;case C_.pt:n=e/72,t=`pt`;break;case C_.pc:n=e/6,t=`pc`;break;case C_.percentage:case C_.ems:case C_.exs:throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(n)+t,this[I]&&this[I](this[L])}get valueAsString(){return this[F]?this[F]()||`0`:this[L]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(String(t)),isNaN(t))throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.`);let n=``;switch(e){case C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:n=`cm`;break;case C_.mm:n=`mm`;break;case C_.in:n=`in`;break;case C_.pt:n=`pt`;break;case C_.pc:n=`pc`;break;case C_.ems:case C_.exs:case C_.percentage:throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}convertToSpecifiedUnits(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:t=t/96*2.54,n=`cm`;break;case C_.mm:t=t/96*25.4,n=`mm`;break;case C_.in:t/=96,n=`in`;break;case C_.pt:t/=72,n=`pt`;break;case C_.pc:t/=6,n=`pc`;break;case C_.percentage:case C_.ems:case C_.exs:throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}},E_;(function(e){e[e.unknown=0]=`unknown`,e[e.unspecified=1]=`unspecified`,e[e.deg=2]=`deg`,e[e.rad=3]=`rad`,e[e.grad=4]=`grad`})(E_||={});var D_=E_;const O_=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;var k_=class{static SVG_ANGLETYPE_UNKNOWN=D_.unknown;static SVG_ANGLETYPE_UNSPECIFIED=D_.unspecified;static SVG_ANGLETYPE_DEG=D_.deg;static SVG_ANGLETYPE_RAD=D_.rad;static SVG_ANGLETYPE_GRAD=D_.grad;[y];[F]=null;[I]=null;[L]=``;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get unitType(){let e=(this[F]?this[F]():this[L])?.match(O_);if(!e||isNaN(parseFloat(e[1])))return D_.unknown;switch(e[2]){case``:return D_.unspecified;case`deg`:return D_.deg;case`rad`:return D_.rad;case`grad`:return D_.grad;case`turn`:return D_.unknown;default:return D_.unspecified}}get value(){let e=(this[F]?this[F]():this[L])?.match(O_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`deg`:return t;case`rad`:return 180/Math.PI*t;case`grad`:return 180/200*t;case`turn`:return t*360;default:return t}}set value(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGAngle': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[y].TypeError(`Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case D_.unspecified:n=e,t=``;break;case D_.deg:n=e,t=`deg`;break;case D_.rad:n=e/(180/Math.PI),t=`rad`;break;case D_.grad:n=e/(180/200),t=`grad`;break;case D_.unknown:n=e/360,t=`turn`;default:break}this[L]=String(n)+t,this[I]&&this[I](this[L])}get valueAsString(){return this[F]?this[F]()||`0`:this[L]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(t),isNaN(t))throw new this[y].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.`);let n=``;switch(e){case D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`;break;case D_.grad:n=`grad`;break;case D_.unknown:n=`turn`;break;default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}convertToSpecifiedUnits(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[y].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`,t/=180/Math.PI;break;case D_.grad:n=`grad`,t/=180/200;break;case D_.unknown:n=`turn`,t/=360;break;default:break}this[L]=String(t)+n,this[I]&&this[I](this[L])}},A_=class{[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get value(){let e=this[F]?this[F]():this[L];return parseFloat(e||`0`)}set value(e){if(this[P])throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The object is read-only.`);if(isNaN(typeof e==`number`?e:parseFloat(String(e))))throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.`);this[L]=String(e),this[I]&&this[I](this[L]||``)}},j_=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new y_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new y_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},M_;(function(e){e[e.unknown=0]=`unknown`,e[e.meet=1]=`meet`,e[e.slice=2]=`slice`})(M_||={});var N_=M_,P_;(function(e){e[e.unknown=0]=`unknown`,e[e.none=1]=`none`,e[e.xMinYMin=2]=`xMinYMin`,e[e.xMidYMin=3]=`xMidYMin`,e[e.xMaxYMin=4]=`xMaxYMin`,e[e.xMinYMid=5]=`xMinYMid`,e[e.xMidYMid=6]=`xMidYMid`,e[e.xMaxYMid=7]=`xMaxYMid`,e[e.xMinYMax=8]=`xMinYMax`,e[e.xMidYMax=9]=`xMidYMax`,e[e.xMaxYMax=10]=`xMaxYMax`})(P_||={});var F_=P_;const I_=Object.values(F_);I_.length=I_.indexOf(0);const L_=Object.values(N_);L_.length=L_.indexOf(0);var R_=class{static SVG_MEETORSLICE_UNKNOWN=N_.unknown;static SVG_MEETORSLICE_MEET=N_.meet;static SVG_MEETORSLICE_SLICE=N_.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=F_.unknown;static SVG_PRESERVEASPECTRATIO_NONE=F_.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=F_.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=F_.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=F_.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=F_.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=F_.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=F_.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=F_.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=F_.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=F_.xMaxYMax;[y];[F]=null;[I]=null;[L]=null;[P]=!1;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,n&&(this[P]=!!n.readOnly,this[F]=n.getAttribute||null,this[I]=n.setAttribute||null)}get align(){let e=this[F]?this[F]():this[L];if(!e)return F_.xMidYMid;let t=e.split(/\s+/)[0];return F_[t]===void 0?F_.xMidYMid:F_[t]}set align(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>I_.length)throw new this[y].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.`);this[L]=`${I_[t]} ${L_[this.meetOrSlice]}`,this[I]&&this[I](this[L])}get meetOrSlice(){let e=this[F]?this[F]():this[L];if(!e)return N_.meet;let t=e.split(/\s+/)[1];return!t||N_[t]===void 0?N_.meet:N_[t]}set meetOrSlice(e){if(this[P])throw new this[y].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[y].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.`);this[L]=`${I_[this.align]} ${L_[t]}`,this[I]&&this[I](this[L])}},z_=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new R_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new R_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},$=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new T_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new T_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},B_=class extends v_{[hi]=null;[E]=null;[D]=null;[v]=null;[m]=null;[Co]=1;[oi]=null;get onafterprint(){return Z.getEventListener(this,`onafterprint`)}set onafterprint(e){this[B].set(`onafterprint`,e)}get onbeforeprint(){return Z.getEventListener(this,`onbeforeprint`)}set onbeforeprint(e){this[B].set(`onbeforeprint`,e)}get onbeforeunload(){return Z.getEventListener(this,`onbeforeunload`)}set onbeforeunload(e){this[B].set(`onbeforeunload`,e)}get ongamepadconnected(){return Z.getEventListener(this,`ongamepadconnected`)}set ongamepadconnected(e){this[B].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return Z.getEventListener(this,`ongamepaddisconnected`)}set ongamepaddisconnected(e){this[B].set(`ongamepaddisconnected`,e)}get onhashchange(){return Z.getEventListener(this,`onhashchange`)}set onhashchange(e){this[B].set(`onhashchange`,e)}get onlanguagechange(){return Z.getEventListener(this,`onlanguagechange`)}set onlanguagechange(e){this[B].set(`onlanguagechange`,e)}get onmessage(){return Z.getEventListener(this,`onmessage`)}set onmessage(e){this[B].set(`onmessage`,e)}get onmessageerror(){return Z.getEventListener(this,`onmessageerror`)}set onmessageerror(e){this[B].set(`onmessageerror`,e)}get onoffline(){return Z.getEventListener(this,`onoffline`)}set onoffline(e){this[B].set(`onoffline`,e)}get ononline(){return Z.getEventListener(this,`ononline`)}set ononline(e){this[B].set(`ononline`,e)}get onpagehide(){return Z.getEventListener(this,`onpagehide`)}set onpagehide(e){this[B].set(`onpagehide`,e)}get onpageshow(){return Z.getEventListener(this,`onpageshow`)}set onpageshow(e){this[B].set(`onpageshow`,e)}get onpopstate(){return Z.getEventListener(this,`onpopstate`)}set onpopstate(e){this[B].set(`onpopstate`,e)}get onrejectionhandled(){return Z.getEventListener(this,`onrejectionhandled`)}set onrejectionhandled(e){this[B].set(`onrejectionhandled`,e)}get onstorage(){return Z.getEventListener(this,`onstorage`)}set onstorage(e){this[B].set(`onstorage`,e)}get onunhandledrejection(){return Z.getEventListener(this,`onunhandledrejection`)}set onunhandledrejection(e){this[B].set(`onunhandledrejection`,e)}get onunload(){return Z.getEventListener(this,`onunload`)}set onunload(e){this[B].set(`onunload`,e)}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get currentScale(){return this[Co]}set currentScale(e){let t=typeof e==`number`?e:parseFloat(String(e));if(isNaN(t))throw this[y].TypeError(`Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.`);t<1||(this[Co]=t)}get currentTranslate(){return new x_(M,this[y])}get viewBox(){return this[oi]||(this[oi]=new j_(M,this[y],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[oi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,t){return new Hc(M,[])}getEnclosureList(e,t){return new Hc(M,[])}checkIntersection(e,t){return!1}checkEnclosure(e,t){return!1}deselectAll(){}createSVGNumber(){return new A_(M,this[y])}createSVGLength(){return new T_(M,this[y])}createSVGAngle(){return new k_(M,this[y])}createSVGPoint(){return new x_(M,this[y])}createSVGMatrix(){return new c_(M,this[y])}createSVGRect(){return new y_(M,this[y])}createSVGTransform(){return new p_(M,this[y])}createSVGTransformFromMatrix(e){let t=new p_(M,this[y]);return t.setMatrix(e),t}getElementsByClassName(e){return jd.getElementsByClassName(this,e)}getElementsByTagName(e){return jd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return jd.getElementsByTagNameNS(this,e,t)}getElementById(e){return jd.getElementById(this,e)}[Pn](e=!1){return super[Pn](e)}},V_=class extends _h{[ei]=null;[ti]=null;get onbegin(){return Z.getEventListener(this,`onbegin`)}set onbegin(e){this[B].set(`onbegin`,e)}get onend(){return Z.getEventListener(this,`onend`)}set onend(e){this[B].set(`onend`,e)}get onrepeat(){return Z.getEventListener(this,`onrepeat`)}set onrepeat(e){this[B].set(`onrepeat`,e)}get requiredExtensions(){return this[ei]||(this[ei]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[ei]}get systemLanguage(){return this[ti]||(this[ti]=new a_(M,this[y],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ti]}get targetElement(){return null}},H_=class extends V_{},U_=class extends V_{},W_=class extends V_{},G_=class{[y];[F];[I];[hr]=0;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute,this[hr]=n.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return this[hr];let t=parseFloat(e);return isNaN(t)?this[hr]:t}set baseVal(e){let t=typeof e==`number`?e:parseFloat(e);if(isNaN(t))throw new this[y].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.`);this[I](String(t))}},K_=class extends v_{[ai]=null;get pathLength(){return this[ai]||(this[ai]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pathLength`),setAttribute:e=>this.setAttribute(`pathLength`,e)})),this[ai]}isPointInFill(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}isPointInStroke(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}getTotalLength(){return 0}getPointAtLength(e){return new x_(M,this[y])}},q_=class extends K_{[bi]=null;[xi]=null;[Si]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get r(){return this[Si]||(this[Si]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[Si]}},J_=class{[y];[F];[I];[ui];[hr];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute,this[ui]=n.values,this[hr]=n.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return this[ui].indexOf(this[hr])+1;let t=this[ui].indexOf(e);if(t===-1){let e=this[ui].indexOf(null);return e===-1?0:e+1}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[ui].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[ui].length}).`);let n=this[F](),r=this[ui][t-1]===null,i=r?`0`:this[ui][t-1];(!n||r&&this[ui].includes(n)||!r&&n!==i)&&this[I](i||``)}},Y_=class extends _h{[Ci]=null;get clipPathUnits(){return this[Ci]||(this[Ci]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`clipPathUnits`),setAttribute:e=>this.setAttribute(`clipPathUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ci]}},X_=class extends v_{},Z_=class extends _h{},Q_=class extends K_{[bi]=null;[xi]=null;[vi]=null;[yi]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get rx(){return this[vi]||(this[vi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[vi]}get ry(){return this[yi]||(this[yi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[yi]}},$_=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[F]()||``}set baseVal(e){this[I](String(e))}},ev=class extends _h{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[m]=null;[R]=null;[Oa]=null;[Sn]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get mode(){return this[Sn]||(this[Sn]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`mode`),setAttribute:e=>this.setAttribute(`mode`,e),values:[`normal`,`multiply`,`screen`,`darken`,`lighten`,`overlay`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],defaultValue:`normal`})),this[Sn]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}};const tv=/[\t\f\n\r, ]+/;var nv=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M||(this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute,t!==M))throw TypeError(`Illegal constructor`);let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGNumberList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]||`0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof A_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(tv);for(let t=0,r=e.length;t<r;t++){let r=new A_(M,this[y],{readOnly:this[P],getAttribute:()=>r[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0`).join(` `),this[I](this[j].attributeValue)}});r[L]=String(parseFloat(e[t])),n.push(r)}}return t.attributeValue=e,t.items=n,n}},rv=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new nv(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:()=>{}})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new nv(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},iv=class extends _h{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[m]=null;[R]=null;[Oa]=null;[z]=null;[Jr]=null;[ui]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`matrix`,`saturate`,`huerotate`,`luminancetoalpha`],defaultValue:`matrix`})),this[Jr]}get values(){return this[ui]||(this[ui]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[ui]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},av=class extends _h{[m]=null;[R]=null;[z]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},ov=class extends _h{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[m]=null;[R]=null;[z]=null;[Jr]=null;[ui]=null;[E]=null;[D]=null;[v]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`over`,`in`,`out`,`atop`,`xor`,`arithmetic`],defaultValue:`over`})),this[Jr]}get values(){return this[ui]||(this[ui]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[ui]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},sv=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[F]()===`true`}set baseVal(e){this[I](String(typeof e==`boolean`?e:!!e))}},cv=class{[y];[F];[I];constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[F]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[y].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.`);this[I](String(t))}},lv=class extends _h{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[ka]=null;[Aa]=null;[ja]=null;[m]=null;[R]=null;[Ma]=null;[Na]=null;[Pa]=null;[Fa]=null;[Ia]=null;[La]=null;[z]=null;[Ra]=null;[za]=null;[v]=null;[E]=null;[D]=null;get bias(){return this[ka]||(this[ka]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`bias`),setAttribute:e=>this.setAttribute(`bias`,e)})),this[ka]}get divisor(){return this[Aa]||(this[Aa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`divisor`),setAttribute:e=>this.setAttribute(`divisor`,e)})),this[Aa]}get edgeMode(){return this[ja]||(this[ja]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelMatrix(){return this[Ma]||(this[Ma]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`kernelMatrix`),setAttribute:e=>this.setAttribute(`kernelMatrix`,e)})),this[Ma]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get orderX(){return this[Fa]||(this[Fa]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`orderX`),setAttribute:e=>this.setAttribute(`orderX`,e)})),this[Fa]}get orderY(){return this[Ia]||(this[Ia]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`orderY`),setAttribute:e=>this.setAttribute(`orderY`,e)})),this[Ia]}get preserveAlpha(){return this[La]||(this[La]=new sv(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAlpha`),setAttribute:e=>this.setAttribute(`preserveAlpha`,e)})),this[La]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get targetX(){return this[Ra]||(this[Ra]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`targetX`),setAttribute:e=>this.setAttribute(`targetX`,e)})),this[Ra]}get targetY(){return this[za]||(this[za]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`targetY`),setAttribute:e=>this.setAttribute(`targetY`,e)})),this[za]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},uv=class extends _h{[Ba]=null;[m]=null;[R]=null;[Na]=null;[Pa]=null;[z]=null;[Va]=null;[v]=null;[E]=null;[D]=null;get diffuseConstant(){return this[Ba]||(this[Ba]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`diffuseConstant`),setAttribute:e=>this.setAttribute(`diffuseConstant`,e)})),this[Ba]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get surfaceScale(){return this[Va]||(this[Va]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e)})),this[Va]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},dv=class extends _h{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[m]=null;[R]=null;[Oa]=null;[z]=null;[Ha]=null;[v]=null;[E]=null;[Ua]=null;[D]=null;[Wa]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get in2(){return this[Oa]||(this[Oa]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Oa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get scale(){return this[Ha]||(this[Ha]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`scale`),setAttribute:e=>this.setAttribute(`scale`,e)})),this[Ha]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get xChannelSelector(){return this[Ua]||(this[Ua]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`xChannelSelector`),setAttribute:e=>this.setAttribute(`xChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ua]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get yChannelSelector(){return this[Wa]||(this[Wa]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`yChannelSelector`),setAttribute:e=>this.setAttribute(`yChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Wa]}},fv=class extends _h{[Ga]=null;[Ka]=null;get azimuth(){return this[Ga]||(this[Ga]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`azimuth`),setAttribute:e=>this.setAttribute(`azimuth`,e)})),this[Ga]}get elevation(){return this[Ka]||(this[Ka]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`elevation`),setAttribute:e=>this.setAttribute(`elevation`,e)})),this[Ka]}},pv=class extends _h{[qa]=null;[Ja]=null;[m]=null;[R]=null;[z]=null;[Ya]=null;[Xa]=null;[v]=null;[E]=null;[D]=null;get dx(){return this[qa]||(this[qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get stdDeviationX(){return this[Ya]||(this[Ya]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationX`),setAttribute:e=>this.setAttribute(`stdDeviationX`,e),defaultValue:2})),this[Ya]}get stdDeviationY(){return this[Xa]||(this[Xa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationY`),setAttribute:e=>this.setAttribute(`stdDeviationY`,e),defaultValue:2})),this[Xa]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},mv=class extends _h{[m]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},hv=class extends _h{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Jr]=null;[Za]=null;[Qa]=null;[$a]=null;[eo]=null;[to]=null;[Vi]=null;get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`identity`,`table`,`discrete`,`linear`,`gamma`],defaultValue:`identity`})),this[Jr]}get tableValues(){return this[Za]||(this[Za]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`tableValues`),setAttribute:e=>this.setAttribute(`tableValues`,e)})),this[Za]}get slope(){return this[Qa]||(this[Qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`slope`),setAttribute:e=>this.setAttribute(`slope`,e),defaultValue:1})),this[Qa]}get intercept(){return this[$a]||(this[$a]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`intercept`),setAttribute:e=>this.setAttribute(`intercept`,e)})),this[$a]}get amplitude(){return this[eo]||(this[eo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`amplitude`),setAttribute:e=>this.setAttribute(`amplitude`,e),defaultValue:1})),this[eo]}get exponent(){return this[to]||(this[to]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`exponent`),setAttribute:e=>this.setAttribute(`exponent`,e),defaultValue:1})),this[to]}get offset(){return this[Vi]||(this[Vi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Vi]}},gv=class extends hv{},_v=class extends hv{},vv=class extends hv{},yv=class extends hv{},bv=class extends _h{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[ja]=null;[m]=null;[R]=null;[z]=null;[Ya]=null;[Xa]=null;[v]=null;[E]=null;[D]=null;get edgeMode(){return this[ja]||(this[ja]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[ja]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get stdDeviationX(){return this[Ya]||(this[Ya]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationX`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationX`,e)})),this[Ya]}get stdDeviationY(){return this[Xa]||(this[Xa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`stdDeviationY`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationY`,e)})),this[Xa]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},xv=class extends _h{[no]=null;[m]=null;[Oi]=null;[hi]=null;[z]=null;[v]=null;[E]=null;[D]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Sv=class extends _h{[m]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Cv=class extends _h{[R]=null;get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}},wv=class extends _h{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[m]=null;[R]=null;[ro]=null;[io]=null;[ao]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get operator(){return this[ro]||(this[ro]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`operator`),setAttribute:e=>this.setAttribute(`operator`,e),values:[`erode`,`dilate`],defaultValue:`erode`})),this[ro]}get radiusX(){return this[io]||(this[io]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`radiusX`),setAttribute:e=>this.setAttribute(`radiusX`,e)})),this[io]}get radiusY(){return this[ao]||(this[ao]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`radiusY`),setAttribute:e=>this.setAttribute(`radiusY`,e)})),this[ao]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Tv=class extends _h{[m]=null;[R]=null;[qa]=null;[Ja]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get dx(){return this[qa]||(this[qa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Ev=class extends _h{[E]=null;[D]=null;[Gi]=null;get x(){return this[E]||(this[E]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get z(){return this[Gi]||(this[Gi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Gi]}},Dv=class extends _h{[m]=null;[R]=null;[Na]=null;[Pa]=null;[z]=null;[oo]=null;[so]=null;[Va]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get kernelUnitLengthX(){return this[Na]||(this[Na]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Na]}get kernelUnitLengthY(){return this[Pa]||(this[Pa]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Pa]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get specularConstant(){return this[oo]||(this[oo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularConstant`),setAttribute:e=>this.setAttribute(`specularConstant`,e),defaultValue:1})),this[oo]}get specularExponent(){return this[so]||(this[so]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[so]}get surfaceScale(){return this[Va]||(this[Va]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e),defaultValue:1})),this[Va]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Ov=class extends _h{[E]=null;[D]=null;[Gi]=null;[co]=null;[lo]=null;[uo]=null;[so]=null;[fo]=null;get x(){return this[E]||(this[E]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get z(){return this[Gi]||(this[Gi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Gi]}get pointsAtX(){return this[co]||(this[co]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtX`),setAttribute:e=>this.setAttribute(`pointsAtX`,e)})),this[co]}get pointsAtY(){return this[lo]||(this[lo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtY`),setAttribute:e=>this.setAttribute(`pointsAtY`,e)})),this[lo]}get pointsAtZ(){return this[uo]||(this[uo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`pointsAtZ`),setAttribute:e=>this.setAttribute(`pointsAtZ`,e)})),this[uo]}get specularExponent(){return this[so]||(this[so]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[so]}get limitingConeAngle(){return this[fo]||(this[fo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`limitingConeAngle`),setAttribute:e=>this.setAttribute(`limitingConeAngle`,e)})),this[fo]}},kv=class extends _h{[m]=null;[R]=null;[z]=null;[v]=null;[E]=null;[D]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get in1(){return this[R]||(this[R]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[R]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Av=class extends _h{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[po]=null;[mo]=null;[m]=null;[ho]=null;[z]=null;[go]=null;[_o]=null;[Jr]=null;[v]=null;[E]=null;[D]=null;get baseFrequencyX(){return this[po]||(this[po]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`baseFrequencyX`),setAttribute:e=>this.setAttribute(`baseFrequencyX`,e)})),this[po]}get baseFrequencyY(){return this[mo]||(this[mo]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`baseFrequencyY`),setAttribute:e=>this.setAttribute(`baseFrequencyY`,e)})),this[mo]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get numOctaves(){return this[ho]||(this[ho]=new cv(M,this[y],{getAttribute:()=>this.getAttribute(`numOctaves`),setAttribute:e=>this.setAttribute(`numOctaves`,e)})),this[ho]}get result(){return this[z]||(this[z]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[z]}get seed(){return this[go]||(this[go]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`seed`),setAttribute:e=>this.setAttribute(`seed`,e)})),this[go]}get stitchTiles(){return this[_o]||(this[_o]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`stitchTiles`),setAttribute:e=>this.setAttribute(`stitchTiles`,e),values:[`stitch`,`noStitch`],defaultValue:`stitch`})),this[_o]}get type(){return this[Jr]||(this[Jr]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`fractalNoise`,`turbulence`],defaultValue:`turbulence`})),this[Jr]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},jv=class extends _h{[Oi]=null;[Ei]=null;[Di]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get filterUnits(){return this[Ei]||(this[Ei]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`filterUnits`),setAttribute:e=>this.setAttribute(`filterUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ei]}get primitiveUnits(){return this[Di]||(this[Di]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`primitiveUnits`),setAttribute:e=>this.setAttribute(`primitiveUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Di]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Mv=class extends v_{[E]=null;[D]=null;[v]=null;[m]=null;get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Nv=class extends v_{},Pv=class extends v_{[Oi]=null;[hi]=null;[E]=null;[D]=null;[v]=null;[m]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get decoding(){let e=this.getAttribute(`decoding`);switch(e){case`sync`:case`async`:case`auto`:return e;default:return`auto`}}set decoding(e){this.setAttribute(`decoding`,e)}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}decode(){return Promise.resolve()}},Fv=class extends K_{[ki]=null;[Ai]=null;[ji]=null;[Mi]=null;get x1(){return this[ki]||(this[ki]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[ki]}get y1(){return this[Ai]||(this[Ai]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[Ai]}get x2(){return this[ji]||(this[ji]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[ji]}get y2(){return this[Mi]||(this[Mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[Mi]}},Iv=class extends v_{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Oi]=null;[Ni]=null;[Pi]=null;[Fi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get gradientUnits(){return this[Ni]||(this[Ni]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`gradientUnits`),setAttribute:e=>this.setAttribute(`gradientUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Ni]}get gradientTransform(){return this[Pi]||(this[Pi]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`gradientTransform`),setAttribute:e=>this.setAttribute(`gradientTransform`,e)})),this[Pi]}get spreadMethod(){return this[Fi]||(this[Fi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`spreadMethod`),setAttribute:e=>this.setAttribute(`spreadMethod`,e),values:[`pad`,`reflect`,`repeat`],defaultValue:`pad`})),this[Fi]}},Lv=class extends Iv{[ki]=null;[Ai]=null;[ji]=null;[Mi]=null;get x1(){return this[ki]||(this[ki]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[ki]}get y1(){return this[Ai]||(this[Ai]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[Ai]}get x2(){return this[ji]||(this[ji]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[ji]}get y2(){return this[Mi]||(this[Mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[Mi]}},Rv=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new k_(M,this[y],{readOnly:!0,getAttribute:this[F]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new k_(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},zv=class extends _h{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[si]=null;[ci]=null;[li]=null;[di]=null;[fi]=null;[pi]=null;[mi]=null;[oi]=null;[hi]=null;get markerUnits(){return this[si]||(this[si]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`markerUnits`),setAttribute:e=>this.setAttribute(`markerUnits`,e),values:[`userSpaceOnUse`,`strokeWidth`],defaultValue:`strokeWidth`})),this[si]}get markerWidth(){return this[ci]||(this[ci]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`markerWidth`),setAttribute:e=>this.setAttribute(`markerWidth`,e)})),this[ci]}get markerHeight(){return this[li]||(this[li]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`markerHeight`),setAttribute:e=>this.setAttribute(`markerHeight`,e)})),this[li]}get orientType(){return this[di]||(this[di]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e),values:[`auto`,null],defaultValue:`auto`})),this[di]}get orientAngle(){return this[fi]||(this[fi]=new Rv(M,this[y],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e)})),this[fi]}get refX(){return this[pi]||(this[pi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`refX`),setAttribute:e=>this.setAttribute(`refX`,e)})),this[pi]}get refY(){return this[mi]||(this[mi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`refY`),setAttribute:e=>this.setAttribute(`refY`,e)})),this[mi]}get viewBox(){return this[oi]||(this[oi]=new j_(M,this[y],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[oi]}get preserveAspectRatio(){return this[hi]||(this[hi]=new z_(M,this[y],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[hi]}setOrientToAuto(){this.setAttribute(`orient`,`auto`)}setOrientToAngle(e){this.setAttribute(`orient`,e.valueAsString)}},Bv=class extends _h{[wi]=null;[Ti]=null;[E]=null;[D]=null;[v]=null;[m]=null;get maskUnits(){return this[wi]||(this[wi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`maskUnits`),setAttribute:e=>this.setAttribute(`maskUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[wi]}get maskContentUnits(){return this[Ti]||(this[Ti]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`maskContentUnits`),setAttribute:e=>this.setAttribute(`maskContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ti]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}},Vv=class extends _h{},Hv=class extends _h{[Oi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}},Uv=class extends K_{},Wv=class extends _h{[Oi]=null;[Ii]=null;[Li]=null;[Ri]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get patternUnits(){return this[Ii]||(this[Ii]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`patternUnits`),setAttribute:e=>this.setAttribute(`patternUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Ii]}get patternContentUnits(){return this[Li]||(this[Li]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`patternContentUnits`),setAttribute:e=>this.setAttribute(`patternContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Li]}get patternTransform(){return this[Ri]||(this[Ri]=new __(M,this[y],{getAttribute:()=>this.getAttribute(`patternTransform`),setAttribute:e=>this.setAttribute(`patternTransform`,e)})),this[Ri]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}};const Gv=/[\t\f\n\r, ]+/;var Kv=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){if(this[P])throw new this[y].TypeError(`Failed to execute 'clear' on 'SVGPointList': The object is read-only.`);for(let e of this[j].items)e[F]=null,e[I]=null;this[j].items=[],this[j].attributeValue=``,this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]||`0 0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof x_))throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(Gv);for(let t=0,r=e.length;t<r;t+=2){let r=parseFloat(e[t]),i=e[t+1]===void 0?``:` `+parseFloat(e[t+1]),a=new x_(M,this[y],{readOnly:this[P],getAttribute:()=>a[L],setAttribute:()=>{this[j].attributeValue=this[N]().map(e=>e[L]||`0 0`).join(` `),this[I](this[j].attributeValue)}});a[L]=`${r}${i}`,n.push(a)}}return t.attributeValue=e,t.items=n,n}},qv=class extends K_{[gi]=null;[_i]=null;get animatedPoints(){return this[gi]||(this[gi]=new Kv(M,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[gi]}get points(){return this[_i]||(this[_i]=new Kv(M,this[y],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[_i]}},Jv=class extends K_{[gi]=null;[_i]=null;get animatedPoints(){return this[gi]||(this[gi]=new Kv(M,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[gi]}get points(){return this[_i]||(this[_i]=new Kv(M,this[y],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[_i]}},Yv=class extends Iv{[bi]=null;[xi]=null;[Si]=null;[zi]=null;[Bi]=null;get cx(){return this[bi]||(this[bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[bi]}get cy(){return this[xi]||(this[xi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[xi]}get r(){return this[Si]||(this[Si]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[Si]}get fx(){return this[zi]||(this[zi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`fx`),setAttribute:e=>this.setAttribute(`fx`,e)})),this[zi]}get fy(){return this[Bi]||(this[Bi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`fy`),setAttribute:e=>this.setAttribute(`fy`,e)})),this[Bi]}},Xv=class extends K_{[E]=null;[D]=null;[v]=null;[m]=null;[vi]=null;[yi]=null;get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get rx(){return this[vi]||(this[vi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[vi]}get ry(){return this[yi]||(this[yi]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[yi]}},Zv=class extends v_{[Oi]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Qv=class extends V_{},$v=class extends _h{[Vi]=null;get offset(){return this[Vi]||(this[Vi]=new G_(M,this[y],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Vi]}},ey=class extends _h{[tn]=null;[Gn]=this;[Hi]=!1;get media(){return this.getAttribute(`media`)||`all`}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||`text/css`}set type(e){this.setAttribute(`type`,e)}get title(){return this.getAttribute(`title`)||``}set title(e){this.setAttribute(`title`,e)}get disabled(){return this[Hi]}set disabled(e){this[Hi]=!!e}get sheet(){return this[b]?(this[tn]||(this[tn]=new this[h][y].CSSStyleSheet,this[tn].replaceSync(this.textContent)),this[tn]):null}[Te](){super[Te](),this[tn]=null}[Ne](){super[Ne](),this[tn]=null}[Kn](){this[tn]&&this[tn].replaceSync(this.textContent)}},ty=class extends v_{},ny=class extends v_{},ry=class extends v_{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[Ui]=null;[Wi]=null;get textLength(){return this[Ui]||(this[Ui]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`textLength`),setAttribute:e=>this.setAttribute(`textLength`,e)})),this[Ui]}get lengthAdjust(){return this[Wi]||(this[Wi]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`lengthAdjust`),setAttribute:e=>this.setAttribute(`lengthAdjust`,e),values:[`spacing`,`spacingAndGlyphs`],defaultValue:`spacing`})),this[Wi]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,t){return 0}getStartPositionOfChar(e){return new x_(M,this[y])}getEndPositionOfChar(e){return new x_(M,this[y])}getExtentOfChar(e){return new y_(M,this[y])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};const iy=/[\t\f\n\r, ]+/;var ay=class e{[y];[F];[I];[P]=!1;[j]={items:[],attributeValue:``};constructor(t,n,r){if(t!==M)throw TypeError(`Illegal constructor`);this[y]=n,this[P]=!!r.readOnly,this[F]=r.getAttribute,this[I]=r.setAttribute;let i=new Vc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[N]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[N]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[N]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[N]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[N]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[N]().length}get numberOfItems(){return this[N]().length}[Symbol.iterator](){return this[N]().values()}clear(){this[I](``)}initialize(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[j].items)e[F]=null,e[I]=null;return e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].items=[e],this[j].attributeValue=e[L],this[I](e[L]||``),e}getItem(e){let t=this[N]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[N](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),e}replaceItem(e,t){if(this[P])throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[N](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][F]=null,n[t][I]=null);let i=n[t];return n[t]=e,e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=n.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),i}removeItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[N]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,V.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,V.indexSizeError);let n=t[e];return n&&(n[F]=null,n[I]=null),t.splice(e,1),this[I](t.map(e=>e[L]??`0`).join(` `)),n}appendItem(e){if(this[P])throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[N](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[F]=()=>e[L],e[I]=()=>{this[j].attributeValue=this[N]().map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue)},this[j].attributeValue=t.map(e=>e[L]??`0`).join(` `),this[I](this[j].attributeValue),e}[N](){let e=this[F]()??``,t=this[j];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[F]=null,e[I]=null;let n=[],r=e.trim();if(r){let e=r.split(iy);for(let r=0,i=e.length;r<i;r++){let i=new T_(M,this[y],{readOnly:this[P],getAttribute:()=>i[L],setAttribute:e=>{i[L]=e;let r=n.map(e=>e[L]??`0`).join(` `);t.attributeValue=r,this[I](r)}});i[L]=e[r],n.push(i)}}return t.attributeValue=e,t.items=n,n}},oy=class{[y];[F];[I];[ri]=null;[ii]=null;constructor(e,t,n){if(e!==M)throw TypeError(`Illegal constructor`);this[y]=t,this[F]=n.getAttribute,this[I]=n.setAttribute}get animVal(){return this[ii]||(this[ii]=new ay(M,this[y],{readOnly:!0,getAttribute:this[F],setAttribute:this[I]})),this[ii]}set animVal(e){}get baseVal(){return this[ri]||(this[ri]=new ay(M,this[y],{getAttribute:this[F],setAttribute:this[I]})),this[ri]}set baseVal(e){}},sy=class extends ry{[E]=null;[D]=null;[qa]=null;[Ja]=null;[wo]=null;get x(){return this[E]||(this[E]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get dx(){return this[qa]||(this[qa]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[qa]}get dy(){return this[Ja]||(this[Ja]=new oy(M,this[y],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[Ja]}get rotate(){return this[wo]||(this[wo]=new rv(M,this[y],{getAttribute:()=>this.getAttribute(`rotate`),setAttribute:e=>this.setAttribute(`rotate`,e)})),this[wo]}},cy=class extends sy{},ly=class extends ry{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Oi]=null;[Ta]=null;[Ea]=null;[Da]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get startOffset(){return this[Ta]||(this[Ta]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`startOffset`),setAttribute:e=>this.setAttribute(`startOffset`,e)})),this[Ta]}get method(){return this[Ea]||(this[Ea]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`method`),setAttribute:e=>this.setAttribute(`method`,e),values:[`align`,`stretch`],defaultValue:`align`})),this[Ea]}get spacing(){return this[Da]||(this[Da]=new J_(M,this[y],{getAttribute:()=>this.getAttribute(`spacing`),setAttribute:e=>this.setAttribute(`spacing`,e),values:[`auto`,`exact`],defaultValue:`exact`})),this[Da]}},uy=class extends _h{},dy=class extends sy{},fy=class extends v_{[Oi]=null;[E]=null;[D]=null;[v]=null;[m]=null;get href(){return this[Oi]||(this[Oi]=new $_(M,this[y],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Oi]}get x(){return this[E]||(this[E]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[E]}get y(){return this[D]||(this[D]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[D]}get width(){return this[v]||(this[v]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[v]}get height(){return this[m]||(this[m]=new $(M,this[y],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[m]}},py=class extends _h{},my=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==M)throw TypeError(`Illegal constructor`)}},hy=class{window;constructor(e){this.window=e}enqueueReaction(e,t,n){let r=this.window.customElements[nt]?.get(e.localName);if(r&&e[h]===this.window.document)switch(t){case`connectedCallback`:if(r.lifecycleCallbacks.connectedCallback){let t=r.lifecycleCallbacks.connectedCallback?.call(e);if(t instanceof Promise){let e=new J(this.window).getAsyncTaskManager();if(e){let n=e.startTask();t.then(()=>e.endTask(n)).catch(()=>e.endTask(n))}}}break;case`disconnectedCallback`:r.lifecycleCallbacks.disconnectedCallback&&r.lifecycleCallbacks.disconnectedCallback.call(e);break;case`attributeChangedCallback`:r.lifecycleCallbacks.attributeChangedCallback&&n?.length&&r.observedAttributes.has(n[0])&&r.lifecycleCallbacks.attributeChangedCallback.apply(e,n);break}}},gy=class extends U{state;hasUAVisualTransition;constructor(e,t=null){super(e),this.state=t?.state??null,this.hasUAVisualTransition=t?.hasUAVisualTransition??!1}},_y=class extends U{code;reason;wasClean;constructor(e,t=null){super(e,t),this.code=t?.code??0,this.reason=t?.reason??``,this.wasClean=t?.wasClean??!1}},vy=class e{[Br]=null;[v]=0;[m]=0;[bn]=null;constructor(t,n,r,i,a,o,s,c){if(t!==M)throw TypeError(`Illegal constructor`);let l=null;if(r instanceof e){if(r[Br]===null)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,V.invalidStateError);l=r}if(r instanceof Lp){if(!r[he])throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,V.invalidStateError);l=r}else if(r instanceof ph)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': HTMLVideoElement is not supported as an image source yet in Happy DOM.`,V.invalidStateError);else (r instanceof $f||r instanceof Xf)&&(l=r);if(l===null)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.`);this[v]=l.width,this[m]=l.height;let u=0,d=0;if(typeof i==`number`&&typeof a==`number`&&typeof o==`number`&&typeof s==`number`){if(u=i,d=a,this[v]=o,this[m]=s,c!==void 0&&typeof c!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[bn]=c||null}else if(typeof i==`number`&&typeof a==`number`){if(this[v]=i,this[m]=a,o!==void 0&&typeof o!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[bn]=o||null}else if(typeof i==`object`)this[bn]=i;else if(i!==void 0)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': Overload resolution failed.`);let f=new J(n).getSettings(),ee=new n.OffscreenCanvas(this[v],this[m]);f?.canvasAdapter&&(ee.getContext(`2d`).drawImage(l,-u,-d,l.width,l.height),this[Br]=ee)}get width(){return this[v]}get height(){return this[m]}close(){this[Br]=null,this[bn]=null,this[v]=0,this[m]=0}};const yy={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},by=setTimeout.toString().includes(`new Timeout`),xy=(()=>{try{return Function(`return true;`)(),!0}catch{return!1}})(),Sy=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();var Cy=class{constructor(){throw TypeError(`Illegal constructor`)}},wy=class{callback;constructor(e){this.callback=e}},Ty=class e extends rl{Node=gd;Attr=_d;ShadowRoot=gh;ProcessingInstruction=mh;Element=Df;CharacterData=xd;DocumentType=Sd;HTMLAnchorElement=Mf;HTMLButtonElement=Yf;HTMLOptGroupElement=Mm;HTMLOptionElement=Nm;HTMLElement=Q;HTMLUnknownElement=fh;HTMLTemplateElement=oh;HTMLInputElement=Yp;HTMLSelectElement=Jm;HTMLTextAreaElement=sh;HTMLImageElement=Lp;HTMLStyleElement=$m;HTMLLabelElement=Xp;HTMLSlotElement=Xm;HTMLMetaElement=Dm;HTMLMediaElement=zf;HTMLAudioElement=Bf;HTMLVideoElement=ph;HTMLBaseElement=Vf;HTMLDialogElement=ip;HTMLScriptElement=Km;HTMLLinkElement=Cm;HTMLIFrameElement=Sp;HTMLFormElement=hp;HTMLUListElement=dh;HTMLTrackElement=uh;HTMLTableRowElement=ah;HTMLTitleElement=lh;HTMLTimeElement=ch;HTMLTableSectionElement=rh;HTMLTableCellElement=th;HTMLTableElement=ih;HTMLSpanElement=Qm;HTMLSourceElement=Zm;HTMLQuoteElement=Bm;HTMLProgressElement=zm;HTMLPreElement=Rm;HTMLPictureElement=Lm;HTMLParamElement=Im;HTMLParagraphElement=Fm;HTMLOutputElement=Pm;HTMLOListElement=Am;HTMLObjectElement=jm;HTMLMeterElement=Om;HTMLMenuElement=Em;HTMLMapElement=wm;HTMLLIElement=Qp;HTMLLegendElement=Zp;HTMLModElement=km;HTMLHtmlElement=yp;HTMLHRElement=vp;HTMLHeadElement=gp;HTMLHeadingElement=_p;HTMLFieldSetElement=sp;HTMLEmbedElement=op;HTMLDListElement=ep;HTMLDivElement=ap;HTMLDetailsElement=rp;HTMLDataListElement=np;HTMLDataElement=tp;HTMLTableColElement=nh;HTMLTableCaptionElement=eh;HTMLCanvasElement=$f;HTMLBRElement=Uf;HTMLBodyElement=Hf;HTMLAreaElement=Nf;SVGSVGElement=B_;SVGAnimateElement=H_;SVGAnimateMotionElement=U_;SVGAnimateTransformElement=W_;SVGCircleElement=q_;SVGClipPathElement=Y_;SVGDefsElement=X_;SVGDescElement=Z_;SVGEllipseElement=Q_;SVGFEBlendElement=ev;SVGFEColorMatrixElement=iv;SVGFEComponentTransferElement=av;SVGFECompositeElement=ov;SVGFEConvolveMatrixElement=lv;SVGFEDiffuseLightingElement=uv;SVGFEDisplacementMapElement=dv;SVGFEDistantLightElement=fv;SVGFEDropShadowElement=pv;SVGFEFloodElement=mv;SVGFEFuncAElement=gv;SVGFEFuncBElement=_v;SVGFEFuncGElement=vv;SVGFEFuncRElement=yv;SVGFEGaussianBlurElement=bv;SVGFEImageElement=xv;SVGFEMergeElement=Sv;SVGFEMergeNodeElement=Cv;SVGFEMorphologyElement=wv;SVGFEOffsetElement=Tv;SVGFEPointLightElement=Ev;SVGFESpecularLightingElement=Dv;SVGFESpotLightElement=Ov;SVGFETileElement=kv;SVGFETurbulenceElement=Av;SVGFilterElement=jv;SVGForeignObjectElement=Mv;SVGGElement=Nv;SVGImageElement=Pv;SVGLineElement=Fv;SVGLinearGradientElement=Lv;SVGMarkerElement=zv;SVGMaskElement=Bv;SVGMetadataElement=Vv;SVGMPathElement=Hv;SVGPathElement=Uv;SVGPatternElement=Wv;SVGPolygonElement=qv;SVGPolylineElement=Jv;SVGRadialGradientElement=Yv;SVGRectElement=Xv;SVGScriptElement=Zv;SVGSetElement=Qv;SVGStopElement=$v;SVGStyleElement=ey;SVGSwitchElement=ty;SVGSymbolElement=ny;SVGTextElement=cy;SVGTextPathElement=ly;SVGTitleElement=uy;SVGTSpanElement=dy;SVGUseElement=fy;SVGViewElement=py;SVGElement=_h;SVGAnimationElement=V_;SVGComponentTransferFunctionElement=hv;SVGGeometryElement=K_;SVGGradientElement=Iv;SVGTextPositioningElement=sy;SVGGraphicsElement=v_;Event=U;UIEvent=Ql;CustomEvent=tu;CloseEvent=_y;AnimationEvent=$l;KeyboardEvent=ou;MessageEvent=su;MouseEvent=cu;PointerEvent=lu;FocusEvent=ru;WheelEvent=mu;InputEvent=au;ErrorEvent=nu;StorageEvent=du;SubmitEvent=fu;ProgressEvent=uu;MediaQueryListEvent=il;HashChangeEvent=iu;ClipboardEvent=eu;TouchEvent=pu;PopStateEvent=gy;Touch=Zl;AudioProcessingEvent=U;BeforeInputEvent=U;BeforeUnloadEvent=U;BlobEvent=U;CompositionEvent=U;CSSFontFaceLoadEvent=U;DeviceLightEvent=U;DeviceMotionEvent=U;DeviceOrientationEvent=U;DeviceProximityEvent=U;DOMTransactionEvent=U;DragEvent=U;EditingBeforeInputEvent=U;FetchEvent=U;GamepadEvent=U;IDBVersionChangeEvent=U;MediaStreamEvent=U;MutationEvent=U;OfflineAudioCompletionEvent=U;OverconstrainedError=U;PageTransitionEvent=U;PaymentRequestUpdateEvent=U;RelatedEvent=U;RTCDataChannelEvent=U;RTCIdentityErrorEvent=U;RTCIdentityEvent=U;RTCPeerConnectionIceEvent=U;SensorEvent=U;SVGEvent=U;SVGZoomEvent=U;TimeEvent=U;TrackEvent=U;TransitionEvent=U;UserProximityEvent=U;WebGLContextEvent=U;TextEvent=U;Permissions=cd;History=Qu;Navigator=ld;Clipboard=Bs;TimeRanges=Pf;TextTrackCueList=Tm;ValidityState=Kf;MutationRecord=nd;IntersectionObserver=$u;IntersectionObserverEntry=ed;CSSStyleDeclaration=bl;CSSRule=qs;CSSContainerRule=Sl;CSSFontFaceRule=Cl;CSSKeyframeRule=wl;CSSKeyframesRule=El;CSSMediaRule=kl;CSSStyleRule=Pl;CSSSupportsRule=Fl;CSSConditionRule=xl;CSSGroupingRule=pl;CSSScopeRule=ml;DOMRect=Dd;DOMRectReadOnly=Ed;Plugin=ud;PluginArray=ad;Location=td;CustomElementRegistry=Kl;ResizeObserver=vh;Blob=zs;File=Jl;Storage=Eh;MimeType=rd;MimeTypeArray=id;NodeFilter=Dh;ImageBitmap=vy;HTMLCollection=Ad;HTMLFormControlCollection=cp;HTMLOptionsCollection=qm;NodeList=Hc;RadioNodeList=mp;FileList=Rp;Screen=yh;ScreenDetails=xh;ScreenDetailed=bh;NamedNodeMap=Nd;TreeWalker=jh;NodeIterator=Mh;DataTransfer=Xl;DataTransferItem=ql;DataTransferItemList=Yl;XMLSerializer=Nh;ClipboardItem=Vs;Selection=Th;CSSUnitValue=Ws;SVGAngle=k_;SVGAnimatedAngle=Rv;SVGAnimatedBoolean=sv;SVGAnimatedEnumeration=J_;SVGAnimatedInteger=cv;SVGAnimatedLength=$;SVGAnimatedNumber=G_;SVGAnimatedNumberList=rv;SVGAnimatedPreserveAspectRatio=z_;SVGAnimatedRect=j_;SVGAnimatedString=$_;SVGAnimatedTransformList=__;SVGLength=T_;SVGLengthList=ay;SVGMatrix=c_;SVGNumber=A_;SVGNumberList=nv;SVGPoint=x_;SVGPointList=Kv;SVGPreserveAspectRatio=R_;SVGRect=y_;SVGStringList=a_;SVGTransform=p_;SVGTransformList=g_;SVGAnimatedLengthList=oy;SVGUnitTypes=my;StylePropertyMap=Nl;StylePropertyMapReadOnly=Ml;MediaList=Ol;CSSKeywordValue=Al;CSSStyleValue=jl;Window=this.constructor;URLSearchParams=u;WritableStream=d.Writable;ReadableStream=oe;TransformStream=d.Transform;PerformanceObserver=ue;PerformanceEntry=le;PerformanceObserverEntryList=Cy;document;customElements=new Kl(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=ee;TextEncoder=s;TextDecoder=o;closed=!1;console;name=``;Buffer=i;[yt]=[];[et];[Dn];[On];[kn];[An];[jn];[Mn];[dr]=this;[pr]=this;[fr]=this;[y]=this;[ts]=this;[ze]=-1;[Oo]=new hy(this);[Ao]={json:new Map,css:new Map,esm:new Map};[zo]=null;[is]=[];[B]=new Map;[cs]=new Map;#e;#t=null;#n=null;#r=null;#i=null;#a=null;#o={timeouts:null};#s=[];#c=[];constructor(e,t){super(),this.#e=e,this[rs](),this.console=e.page.console,this[et]=new Td(e),this[kn]=new ld(this),this[An]=new yh,this[jn]=new Eh,this[Mn]=new Eh,this[Dn]=new td(this.#e,t?.url??`about:blank`),this[On]=new Qu(this.#e,this),e[On].currentItem.href=t?.url??`about:blank`,J.setWindowBrowserFrameRelation(this,this.#e),this[lt](),r_.extendClasses(this),this.document=new this.HTMLDocument,this.document[Me]=this;let n=e[pe].startTask(()=>this[et].destroy());this[et].waitUntilComplete().then(()=>{e[pe].endTask(n),this.document[Ut]=wd.complete,this.document.dispatchEvent(new U(`readystatechange`));let t=new U(`load`);t[Ae]=this,t[ft]=this.document,t[Kr]=Ds.atTarget,this.dispatchEvent(t),t[Ae]=null,t[Kr]=Ds.none,t[ko]=!1}),this[To]()}get onsearch(){return this[B].get(`onsearch`)??null}set onsearch(e){this[B].set(`onsearch`,e)}get onappinstalled(){return this[B].get(`onappinstalled`)??null}set onappinstalled(e){this[B].set(`onappinstalled`,e)}get onbeforeinstallprompt(){return this[B].get(`onbeforeinstallprompt`)??null}set onbeforeinstallprompt(e){this[B].set(`onbeforeinstallprompt`,e)}get onabort(){return this[B].get(`onabort`)??null}set onabort(e){this[B].set(`onabort`,e)}get onbeforeinput(){return this[B].get(`onbeforeinput`)??null}set onbeforeinput(e){this[B].set(`onbeforeinput`,e)}get onbeforematch(){return this[B].get(`onbeforematch`)??null}set onbeforematch(e){this[B].set(`onbeforematch`,e)}get onbeforetoggle(){return this[B].get(`onbeforetoggle`)??null}set onbeforetoggle(e){this[B].set(`onbeforetoggle`,e)}get onblur(){return this[B].get(`onblur`)??null}set onblur(e){this[B].set(`onblur`,e)}get oncancel(){return this[B].get(`oncancel`)??null}set oncancel(e){this[B].set(`oncancel`,e)}get oncanplay(){return this[B].get(`oncanplay`)??null}set oncanplay(e){this[B].set(`oncanplay`,e)}get oncanplaythrough(){return this[B].get(`oncanplaythrough`)??null}set oncanplaythrough(e){this[B].set(`oncanplaythrough`,e)}get onchange(){return this[B].get(`onchange`)??null}set onchange(e){this[B].set(`onchange`,e)}get onclick(){return this[B].get(`onclick`)??null}set onclick(e){this[B].set(`onclick`,e)}get onclose(){return this[B].get(`onclose`)??null}set onclose(e){this[B].set(`onclose`,e)}get oncommand(){return this[B].get(`oncommand`)??null}set oncommand(e){this[B].set(`oncommand`,e)}get oncontentvisibilityautostatechange(){return this[B].get(`oncontentvisibilityautostatechange`)??null}set oncontentvisibilityautostatechange(e){this[B].set(`oncontentvisibilityautostatechange`,e)}get oncontextlost(){return this[B].get(`oncontextlost`)??null}set oncontextlost(e){this[B].set(`oncontextlost`,e)}get oncontextmenu(){return this[B].get(`oncontextmenu`)??null}set oncontextmenu(e){this[B].set(`oncontextmenu`,e)}get oncontextrestored(){return this[B].get(`oncontextrestored`)??null}set oncontextrestored(e){this[B].set(`oncontextrestored`,e)}get oncuechange(){return this[B].get(`oncuechange`)??null}set oncuechange(e){this[B].set(`oncuechange`,e)}get ondblclick(){return this[B].get(`ondblclick`)??null}set ondblclick(e){this[B].set(`ondblclick`,e)}get ondrag(){return this[B].get(`ondrag`)??null}set ondrag(e){this[B].set(`ondrag`,e)}get ondragend(){return this[B].get(`ondragend`)??null}set ondragend(e){this[B].set(`ondragend`,e)}get ondragenter(){return this[B].get(`ondragenter`)??null}set ondragenter(e){this[B].set(`ondragenter`,e)}get ondragleave(){return this[B].get(`ondragleave`)??null}set ondragleave(e){this[B].set(`ondragleave`,e)}get ondragover(){return this[B].get(`ondragover`)??null}set ondragover(e){this[B].set(`ondragover`,e)}get ondragstart(){return this[B].get(`ondragstart`)??null}set ondragstart(e){this[B].set(`ondragstart`,e)}get ondrop(){return this[B].get(`ondrop`)??null}set ondrop(e){this[B].set(`ondrop`,e)}get ondurationchange(){return this[B].get(`ondurationchange`)??null}set ondurationchange(e){this[B].set(`ondurationchange`,e)}get onemptied(){return this[B].get(`onemptied`)??null}set onemptied(e){this[B].set(`onemptied`,e)}get onended(){return this[B].get(`onended`)??null}set onended(e){this[B].set(`onended`,e)}get onerror(){return this[B].get(`onerror`)??null}set onerror(e){this[B].set(`onerror`,e)}get onfocus(){return this[B].get(`onfocus`)??null}set onfocus(e){this[B].set(`onfocus`,e)}get onformdata(){return this[B].get(`onformdata`)??null}set onformdata(e){this[B].set(`onformdata`,e)}get oninput(){return this[B].get(`oninput`)??null}set oninput(e){this[B].set(`oninput`,e)}get oninvalid(){return this[B].get(`oninvalid`)??null}set oninvalid(e){this[B].set(`oninvalid`,e)}get onkeydown(){return this[B].get(`onkeydown`)??null}set onkeydown(e){this[B].set(`onkeydown`,e)}get onkeypress(){return this[B].get(`onkeypress`)??null}set onkeypress(e){this[B].set(`onkeypress`,e)}get onkeyup(){return this[B].get(`onkeyup`)??null}set onkeyup(e){this[B].set(`onkeyup`,e)}get onload(){return this[B].get(`onload`)??null}set onload(e){this[B].set(`onload`,e)}get onloadeddata(){return this[B].get(`onloadeddata`)??null}set onloadeddata(e){this[B].set(`onloadeddata`,e)}get onloadedmetadata(){return this[B].get(`onloadedmetadata`)??null}set onloadedmetadata(e){this[B].set(`onloadedmetadata`,e)}get onloadstart(){return this[B].get(`onloadstart`)??null}set onloadstart(e){this[B].set(`onloadstart`,e)}get onmousedown(){return this[B].get(`onmousedown`)??null}set onmousedown(e){this[B].set(`onmousedown`,e)}get onmouseenter(){return this[B].get(`onmouseenter`)??null}set onmouseenter(e){this[B].set(`onmouseenter`,e)}get onmouseleave(){return this[B].get(`onmouseleave`)??null}set onmouseleave(e){this[B].set(`onmouseleave`,e)}get onmousemove(){return this[B].get(`onmousemove`)??null}set onmousemove(e){this[B].set(`onmousemove`,e)}get onmouseout(){return this[B].get(`onmouseout`)??null}set onmouseout(e){this[B].set(`onmouseout`,e)}get onmouseover(){return this[B].get(`onmouseover`)??null}set onmouseover(e){this[B].set(`onmouseover`,e)}get onmouseup(){return this[B].get(`onmouseup`)??null}set onmouseup(e){this[B].set(`onmouseup`,e)}get onmousewheel(){return this[B].get(`onmousewheel`)??null}set onmousewheel(e){this[B].set(`onmousewheel`,e)}get onpause(){return this[B].get(`onpause`)??null}set onpause(e){this[B].set(`onpause`,e)}get onplay(){return this[B].get(`onplay`)??null}set onplay(e){this[B].set(`onplay`,e)}get onplaying(){return this[B].get(`onplaying`)??null}set onplaying(e){this[B].set(`onplaying`,e)}get onprogress(){return this[B].get(`onprogress`)??null}set onprogress(e){this[B].set(`onprogress`,e)}get onratechange(){return this[B].get(`onratechange`)??null}set onratechange(e){this[B].set(`onratechange`,e)}get onreset(){return this[B].get(`onreset`)??null}set onreset(e){this[B].set(`onreset`,e)}get onresize(){return this[B].get(`onresize`)??null}set onresize(e){this[B].set(`onresize`,e)}get onscroll(){return this[B].get(`onscroll`)??null}set onscroll(e){this[B].set(`onscroll`,e)}get onscrollend(){return this[B].get(`onscrollend`)??null}set onscrollend(e){this[B].set(`onscrollend`,e)}get onsecuritypolicyviolation(){return this[B].get(`onsecuritypolicyviolation`)??null}set onsecuritypolicyviolation(e){this[B].set(`onsecuritypolicyviolation`,e)}get onseeked(){return this[B].get(`onseeked`)??null}set onseeked(e){this[B].set(`onseeked`,e)}get onseeking(){return this[B].get(`onseeking`)??null}set onseeking(e){this[B].set(`onseeking`,e)}get onselect(){return this[B].get(`onselect`)??null}set onselect(e){this[B].set(`onselect`,e)}get onslotchange(){return this[B].get(`onslotchange`)??null}set onslotchange(e){this[B].set(`onslotchange`,e)}get onstalled(){return this[B].get(`onstalled`)??null}set onstalled(e){this[B].set(`onstalled`,e)}get onsubmit(){return this[B].get(`onsubmit`)??null}set onsubmit(e){this[B].set(`onsubmit`,e)}get onsuspend(){return this[B].get(`onsuspend`)??null}set onsuspend(e){this[B].set(`onsuspend`,e)}get ontimeupdate(){return this[B].get(`ontimeupdate`)??null}set ontimeupdate(e){this[B].set(`ontimeupdate`,e)}get ontoggle(){return this[B].get(`ontoggle`)??null}set ontoggle(e){this[B].set(`ontoggle`,e)}get onvolumechange(){return this[B].get(`onvolumechange`)??null}set onvolumechange(e){this[B].set(`onvolumechange`,e)}get onwaiting(){return this[B].get(`onwaiting`)??null}set onwaiting(e){this[B].set(`onwaiting`,e)}get onwebkitanimationend(){return this[B].get(`onwebkitanimationend`)??null}set onwebkitanimationend(e){this[B].set(`onwebkitanimationend`,e)}get onwebkitanimationiteration(){return this[B].get(`onwebkitanimationiteration`)??null}set onwebkitanimationiteration(e){this[B].set(`onwebkitanimationiteration`,e)}get onwebkitanimationstart(){return this[B].get(`onwebkitanimationstart`)??null}set onwebkitanimationstart(e){this[B].set(`onwebkitanimationstart`,e)}get onwebkittransitionend(){return this[B].get(`onwebkittransitionend`)??null}set onwebkittransitionend(e){this[B].set(`onwebkittransitionend`,e)}get onwheel(){return this[B].get(`onwheel`)??null}set onwheel(e){this[B].set(`onwheel`,e)}get onauxclick(){return this[B].get(`onauxclick`)??null}set onauxclick(e){this[B].set(`onauxclick`,e)}get ongotpointercapture(){return this[B].get(`ongotpointercapture`)??null}set ongotpointercapture(e){this[B].set(`ongotpointercapture`,e)}get onlostpointercapture(){return this[B].get(`onlostpointercapture`)??null}set onlostpointercapture(e){this[B].set(`onlostpointercapture`,e)}get onpointerdown(){return this[B].get(`onpointerdown`)??null}set onpointerdown(e){this[B].set(`onpointerdown`,e)}get onpointermove(){return this[B].get(`onpointermove`)??null}set onpointermove(e){this[B].set(`onpointermove`,e)}get onpointerup(){return this[B].get(`onpointerup`)??null}set onpointerup(e){this[B].set(`onpointerup`,e)}get onpointercancel(){return this[B].get(`onpointercancel`)??null}set onpointercancel(e){this[B].set(`onpointercancel`,e)}get onpointerover(){return this[B].get(`onpointerover`)??null}set onpointerover(e){this[B].set(`onpointerover`,e)}get onpointerout(){return this[B].get(`onpointerout`)??null}set onpointerout(e){this[B].set(`onpointerout`,e)}get onpointerenter(){return this[B].get(`onpointerenter`)??null}set onpointerenter(e){this[B].set(`onpointerenter`,e)}get onpointerleave(){return this[B].get(`onpointerleave`)??null}set onpointerleave(e){this[B].set(`onpointerleave`,e)}get onselectstart(){return this[B].get(`onselectstart`)??null}set onselectstart(e){this[B].set(`onselectstart`,e)}get onselectionchange(){return this[B].get(`onselectionchange`)??null}set onselectionchange(e){this[B].set(`onselectionchange`,e)}get onanimationcancel(){return this[B].get(`onanimationcancel`)??null}set onanimationcancel(e){this[B].set(`onanimationcancel`,e)}get onanimationend(){return this[B].get(`onanimationend`)??null}set onanimationend(e){this[B].set(`onanimationend`,e)}get onanimationiteration(){return this[B].get(`onanimationiteration`)??null}set onanimationiteration(e){this[B].set(`onanimationiteration`,e)}get onanimationstart(){return this[B].get(`onanimationstart`)??null}set onanimationstart(e){this[B].set(`onanimationstart`,e)}get ontransitionrun(){return this[B].get(`ontransitionrun`)??null}set ontransitionrun(e){this[B].set(`ontransitionrun`,e)}get ontransitionstart(){return this[B].get(`ontransitionstart`)??null}set ontransitionstart(e){this[B].set(`ontransitionstart`,e)}get ontransitionend(){return this[B].get(`ontransitionend`)??null}set ontransitionend(e){this[B].set(`ontransitionend`,e)}get ontransitioncancel(){return this[B].get(`ontransitioncancel`)??null}set ontransitioncancel(e){this[B].set(`ontransitioncancel`,e)}get onbeforexrselect(){return this[B].get(`onbeforexrselect`)??null}set onbeforexrselect(e){this[B].set(`onbeforexrselect`,e)}get onafterprint(){return this[B].get(`onafterprint`)??null}set onafterprint(e){this[B].set(`onafterprint`,e)}get onbeforeprint(){return this[B].get(`onbeforeprint`)??null}set onbeforeprint(e){this[B].set(`onbeforeprint`,e)}get onbeforeunload(){return this[B].get(`onbeforeunload`)??null}set onbeforeunload(e){this[B].set(`onbeforeunload`,e)}get onhashchange(){return this[B].get(`onhashchange`)??null}set onhashchange(e){this[B].set(`onhashchange`,e)}get onlanguagechange(){return this[B].get(`onlanguagechange`)??null}set onlanguagechange(e){this[B].set(`onlanguagechange`,e)}get onmessage(){return this[B].get(`onmessage`)??null}set onmessage(e){this[B].set(`onmessage`,e)}get onmessageerror(){return this[B].get(`onmessageerror`)??null}set onmessageerror(e){this[B].set(`onmessageerror`,e)}get onoffline(){return this[B].get(`onoffline`)??null}set onoffline(e){this[B].set(`onoffline`,e)}get ononline(){return this[B].get(`ononline`)??null}set ononline(e){this[B].set(`ononline`,e)}get onpagehide(){return this[B].get(`onpagehide`)??null}set onpagehide(e){this[B].set(`onpagehide`,e)}get onpageshow(){return this[B].get(`onpageshow`)??null}set onpageshow(e){this[B].set(`onpageshow`,e)}get onpopstate(){return this[B].get(`onpopstate`)??null}set onpopstate(e){this[B].set(`onpopstate`,e)}get onrejectionhandled(){return this[B].get(`onrejectionhandled`)??null}set onrejectionhandled(e){this[B].set(`onrejectionhandled`,e)}get onstorage(){return this[B].get(`onstorage`)??null}set onstorage(e){this[B].set(`onstorage`,e)}get onunhandledrejection(){return this[B].get(`onunhandledrejection`)??null}set onunhandledrejection(e){this[B].set(`onunhandledrejection`,e)}get onunload(){return this[B].get(`onunload`)??null}set onunload(e){this[B].set(`onunload`,e)}get ondevicemotion(){return this[B].get(`ondevicemotion`)??null}set ondevicemotion(e){this[B].set(`ondevicemotion`,e)}get ondeviceorientation(){return this[B].get(`ondeviceorientation`)??null}set ondeviceorientation(e){this[B].set(`ondeviceorientation`,e)}get ondeviceorientationabsolute(){return this[B].get(`ondeviceorientationabsolute`)??null}set ondeviceorientationabsolute(e){this[B].set(`ondeviceorientationabsolute`,e)}get onpointerrawupdate(){return this[B].get(`onpointerrawupdate`)??null}set onpointerrawupdate(e){this[B].set(`onpointerrawupdate`,e)}get onpageswap(){return this[B].get(`onpageswap`)??null}set onpageswap(e){this[B].set(`onpageswap`,e)}get onpagereveal(){return this[B].get(`onpagereveal`)??null}set onpagereveal(e){this[B].set(`onpagereveal`,e)}get onscrollsnapchange(){return this[B].get(`onscrollsnapchange`)??null}set onscrollsnapchange(e){this[B].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return this[B].get(`onscrollsnapchanging`)??null}set onscrollsnapchanging(e){this[B].set(`onscrollsnapchanging`,e)}get ongamepadconnected(){return this[B].get(`ongamepadconnected`)??null}set ongamepadconnected(e){this[B].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return this[B].get(`ongamepaddisconnected`)??null}set ongamepaddisconnected(e){this[B].set(`ongamepaddisconnected`,e)}get self(){return this[dr]}set self(e){this[dr]=e}get top(){return this[pr]}get parent(){return this[fr]}set parent(e){this[fr]=e}get frames(){return this[ts]}set frames(e){this[fr]=e}get location(){return this[Dn]}set location(e){this[Dn].href=e}get history(){return this[On]}get navigator(){return this[kn]}get screen(){return this[An]}get sessionStorage(){return this[jn]}get localStorage(){return this[Mn]}get opener(){return this.#e[xt]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new Gs}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set innerHeight(e){this.#n=e}get outerWidth(){return this.#r===null?this.#e.page.viewport.width:this.#r}set outerWidth(e){this.#r=e}get outerHeight(){return this.#i===null?this.#e.page.viewport.height:this.#i}set outerHeight(e){this.#i=e}get devicePixelRatio(){return this.#a===null?this.#e.page.viewport.devicePixelRatio:this.#a}set devicePixelRatio(e){this.#a=e}getComputedStyle(e){return e[tr]=e[tr]||new bl(M,this,{element:e,computed:!0}),e[tr]}getSelection(){return this.document.getSelection()}scroll(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};if(n.behavior===`smooth`)this.setTimeout(()=>{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}});else{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}}}scrollTo(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.`);this.scroll(e,t)}scrollBy(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};this.scroll({left:this.document.documentElement.scrollLeft+(n.left??0),top:this.document.documentElement.scrollTop+(n.top??0),behavior:n.behavior})}blur(){}focus(){}open(e,t,n){return Fh.openPage(this.#e,{url:e,target:t,features:n})}close(){this.#e.page.mainFrame===this.#e&&this.#e[xt]&&(this[Ne](),this.#e.page.close())}matchMedia(e){return new fl({window:this,media:e})}getScreenDetails(){return Promise.resolve(new xh)}setTimeout(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings;if(r.timer.preventTimerLoops){let e=Error().stack,t=this.#s,n=this.#c,i=t.indexOf(e);if(i!==-1){if(n[i].timeout++,n[i].timeout>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.timeout??1))return{}}else t.push(e),n.push({timeout:0,requestAnimationFrame:0})}if(!t){let t=this.#o;if(!t.timeouts){let e=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,n=yy.setTimeout(()=>{this.#e[pe].endTimer(n);let r=t.timeouts;t.timeouts=null;for(let t of r)if(e){let e;try{e=t.callback()}catch(e){this[Bo](e)}e instanceof Promise&&e.catch(e=>this[Bo](e))}else t.callback()},0);t.timeouts=[],this.#e[pe].startTimer(n)}let i=new wy(()=>e(...n));return t.timeouts.push(i),i}let i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,a=yy.setTimeout(()=>{if(this.#e[pe].endTimer(a),i){let t;try{t=e(...n)}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e(...n)},r?.timer.maxTimeout!==-1&&t&&t>r?.timer.maxTimeout?r?.timer.maxTimeout:t);return this.#e[pe].startTimer(a),a}clearTimeout(e){if(e&&e instanceof wy){let t=this.#o;if(!t.timeouts)return;let n=t.timeouts.indexOf(e);n!==-1&&t.timeouts.splice(n,1);return}by&&(!e||e.constructor.name!==`Timeout`)||(yy.clearTimeout(e),this.#e[pe].endTimer(e))}setInterval(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch,a=0,o=yy.setInterval(()=>{if(i){let t;try{t=e(...n)}catch(e){this.clearInterval(o),this[Bo](e)}t instanceof Promise&&t.catch(e=>{this.clearInterval(o),this[Bo](e)})}else e(...n);r?.timer.maxIntervalIterations!==-1&&(a>=r?.timer.maxIntervalIterations&&this.clearInterval(o),a++)},r?.timer.maxIntervalTime!==-1&&t&&t>r?.timer.maxIntervalTime?r?.timer.maxIntervalTime:t);return this.#e[pe].startTimer(o),o}clearInterval(e){by&&(!e||e.constructor.name!==`Timeout`)||(yy.clearInterval(e),this.#e[pe].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let t=this.#e.page.context.browser.settings;if(t.timer.preventTimerLoops){let e=Error().stack,n=this.#s,r=this.#c,i=n.indexOf(e);if(i!==-1){if(r[i].requestAnimationFrame++,r[i].requestAnimationFrame>=(t.timer.preventTimerLoops===!0?1:t.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else n.push(e),r.push({timeout:0,requestAnimationFrame:0})}let n=!t||!t.disableErrorCapturing&&t.errorCapture===Rs.tryAndCatch,r=yy.setImmediate(()=>{if(this.#e[pe].endImmediate(r),n){let t;try{t=e(this.performance.now())}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e(this.performance.now())});return this.#e[pe].startImmediate(r),r}cancelAnimationFrame(e){by&&(!e||e.constructor.name!==`Immediate`)||(yy.clearImmediate(e),this.#e[pe].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let t=!1,n=this.#e[pe].startTask(()=>t=!0),r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Rs.tryAndCatch;yy.queueMicrotask(()=>{if(!t)if(this.#e[pe].endTask(n),i){let t;try{t=e()}catch(e){this[Bo](e)}t instanceof Promise&&t.catch(e=>this[Bo](e))}else e()})}async fetch(e,t){return this.closed?Promise.reject(new this.DOMException(`Failed to execute 'fetch' on 'Window': The window is closed.`,V.invalidStateError)):await new Ju({browserFrame:this.#e,window:this,url:e,init:t}).send()}btoa(e){return Is.btoa(e)}atob(e){return Is.atob(e)}postMessage(e,t=`*`,n){if(!this.closed){if(t&&t!==`*`&&this.location.origin!==t)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${t}') does not match the recipient window\'s origin ('${this.location.origin}').`,V.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.`,V.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new su(`message`,{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:``})))}}resizeTo(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[Ct]&&this.#e.page.setViewport({width:e,height:t})}}resizeBy(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[Ct]){let n=this.#e.page.viewport;this.#e.page.setViewport({width:n.width+e,height:n.height+t})}}}async createImageBitmap(e,t,n,r,i,a){return new vy(M,this,e,t,n,r,i,a)}[Bo](e){this.#e.page.console.error(e),this.dispatchEvent(new nu(`error`,{message:e.message,error:e}))}[Ie](e,t){return new se.Script(e,t).runInContext(this)}[lt](){se.isContext(this)||(se.createContext(this),Ph.runInContext(this))}[rs](){let e=this.#e;(xy||Sy)&&e.page.context.browser.settings.enableJavaScriptEvaluation&&!e.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!e.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
|
|
186
186
|
Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
|
|
187
187
|
|
|
188
188
|
A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
|
|
@@ -191,5 +191,5 @@ It is recommended to disable code generation and freeze all builtins at process
|
|
|
191
191
|
|
|
192
192
|
For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
|
|
193
193
|
|
|
194
|
-
`)}[Ne](){if(this.closed)return;super[Ne](),this.closed=!0;let e=this[yt];for(let t of e)t[Ne]&&t[Ne]();this[yt]=[];for(let e of this[is])e[Ne]();this[is]=[],this.document[Ne]();let t=this.document.createElement(`html`),n=this.document.createElement(`head`),r=this.document.createElement(`body`);t.appendChild(n),t.appendChild(r),this.document[Fn](t),this.location[Ne]&&this.location[Ne](),this.customElements[Ne]&&this.customElements[Ne](),this.history[Ne]&&this.history[Ne](),this[cs].clear(),this[Ao].json.clear(),this[Ao].css.clear(),this[Ao].esm.clear(),this.document[jo].clear(),this.document[fe]=null,this.document[Ye]=null,this.document[ke]=null,this.document[ct]=null,this[fr]=null,this[pr]=null,J.removeWindowBrowserFrameRelation(this)}[To](){for(let t of[e,rl]){let e=Object.getOwnPropertyDescriptors(t.prototype),n=Object.keys(e);for(let t of n){let n=e[t];n.get||n.set?Object.defineProperty(this,t,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):t!==`constructor`&&typeof n.value==`function`&&!n.value.toString().startsWith(`class `)&&Object.defineProperty(this,t,{...n,value:n.value.bind(this)})}}}},Ey=class{static evaluate(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return t=typeof t==`string`?new ue(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);let n=e.window;if(t?.code){let e=t.url?new URL(t.url,n.location.href):n.location,r=t.code;switch(t?.type||`esm`){case`esm`:return await new bm({window:n,url:e,source:r,factory:new xm(n,e)}).evaluate();case`json`:return await new rm({window:n,url:e,source:r}).evaluate();case`css`:return await new nm({window:n,url:e,source:r}).evaluate()}}return t?.url?await(await new xm(n,n.location).getModule(t.url,{with:{type:t.type||`esm`}})).evaluate():{}}},Dy=class{currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:Xu.auto,method:`GET`,formData:null};items=[this.currentItem];push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw Error(`Current history item not found`);this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:Xu.auto,method:`GET`,formData:null},this.items.push(this.currentItem)}},Oy=class{#e;#t={};#n={};#r=0;#i=[];constructor(e){this.#e=e}assert(e,t,...n){e||this.#e.print({type:ks.assert,level:ws.error,message:[`Assertion failed:`,...t?[t,...n]:n],group:this.#i[this.#i.length-1]||null})}clear(){this.#e.clear()}count(e=`default`){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:ks.count,level:ws.info,message:[`${e}: ${this.#t[e]}`],group:this.#i[this.#i.length-1]||null})}countReset(e=`default`){delete this.#t[e],this.#e.print({type:ks.countReset,level:ws.warn,message:[`${e}: 0`],group:this.#i[this.#i.length-1]||null})}debug(e,...t){this.#e.print({type:ks.debug,level:ws.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}dir(e){this.#e.print({type:ks.dir,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}dirxml(e){this.#e.print({type:ks.dirxml,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}error(e,...t){this.#e.print({type:ks.error,level:ws.error,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:ks.group,level:ws.log,message:[e||`default`],group:t})}groupCollapsed(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:ks.groupCollapsed,level:ws.log,message:[e||`default`],group:t})}groupEnd(){this.#i.length!==0&&this.#i.pop()}info(e,...t){this.#e.print({type:ks.info,level:ws.info,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}log(e,...t){this.#e.print({type:ks.log,level:ws.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}profile(){throw Error(`Method not implemented.`)}profileEnd(){throw Error(`Method not implemented.`)}table(e){this.#e.print({type:ks.table,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}time(e=`default`){this.#n[e]=performance.now()}timeEnd(e=`default`){let t=this.#n[e];if(t){let n=performance.now()-t;this.#e.print({type:ks.timeEnd,level:ws.info,message:[`${e}: ${n}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(e=`default`,...t){let n=this.#n[e];if(n){let r=performance.now()-n;this.#e.print({type:ks.timeLog,level:ws.info,message:[`${e}: ${r}ms`,...t],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error(`Method not implemented.`)}trace(e,...t){this.#e.print({type:ks.trace,level:ws.log,message:[...e?[e,...t]:t,Error(`stack`).stack.replace(`Error: stack`,``)],group:this.#i[this.#i.length-1]||null})}warn(e,...t){this.#e.print({type:ks.warn,level:ws.warn,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}},ky=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),lp.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let n of e.childFrames)t=t.concat(this.findFrames(n));return t}},Ay=class{#e=new Map;get(e){let t=this.#e.get(e.url);return t?t.expires<Date.now()?(this.#e.delete(e.url),null):t:null}add(e,t){if(this.#e.delete(e.url),e.headers.get(`Cache-Control`)?.includes(`no-cache`)||t.status<200||t.status>=300)return null;let n=t.headers.get(`Access-Control-Max-Age`),r=t.headers.get(`Access-Control-Allow-Origin`);if(!n||!r)return null;let i=[];if(t.headers.has(`Access-Control-Allow-Methods`)&&t.headers.get(`Access-Control-Allow-Methods`)!==`*`)for(let e of t.headers.get(`Access-Control-Allow-Methods`).split(`,`))i.push(e.trim().toUpperCase());let a={allowOrigin:r,allowMethods:i,expires:Date.now()+parseInt(n)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}},jy={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,enableImageFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:Rs.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:dp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+` `+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${{version:`20.10.6`}.version}`,maxTouchPoints:0},device:{prefersColorScheme:`light`,prefersReducedMotion:`no-preference`,mediaType:`screen`,forcedColors:`none`},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1},canvasAdapter:null},My=class{static createSettings(e){return e&&this.validate(jy,e),{...jy,...e,navigation:{...jy.navigation,...e?.navigation},navigator:{...jy.navigator,...e?.navigator},timer:{...jy.timer,...e?.timer},fetch:{...jy.fetch,...e?.fetch},module:{...jy.module,...e?.module},device:{...jy.device,...e?.device},debug:{...jy.debug,...e?.debug},viewport:{...jy.viewport,...e?.viewport},canvasAdapter:e?.canvasAdapter??jy.canvasAdapter}}static validate(e,t,n){for(let r of Object.keys(t)){if(e[r]===void 0){let e=n?n+`.`+r:r;throw Error(`Unknown browser setting "${e}"`)}if(typeof e[r]==`object`&&!Array.isArray(e[r])&&e[r]!==null){let i=n?n+`.`+r:r;if(typeof t[r]!=`object`||Array.isArray(t[r])||t[r]===null)throw Error(`Browser setting "${i}" cannot be null`);this.validate(e[r],t[r],i)}else if((typeof e[r]==`boolean`||typeof e[r]==`number`||typeof e[r]==`string`)&&typeof t[r]!=typeof e[r]&&!(r===`preventTimerLoops`&&typeof t[r]==`object`&&t[r]!==null)){let t=n?n+`.`+r:r;throw Error(`Browser setting "${t}" must be of type "${typeof e[r]}"`)}}}},Ny=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(e){if(this.observedWindows.includes(e))throw Error(`Browser window is already being observed.`);this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(e,t)=>{if(t===`unhandledRejection`)return;let n=null;for(let t of this.observedWindows)if(e instanceof t.Error||e instanceof t.DOMException){n=t;break}n?(n.console.error(e),n.dispatchEvent(new n.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`uncaughtException`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.uncaughtRejectionListener=e=>{let t=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){t=n;break}t?(t.console.error(e),t.dispatchEvent(new t.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`unhandledRejection`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.constructor.listenerCount++,process.on(`uncaughtException`,this.uncaughtExceptionListener),process.on(`unhandledRejection`,this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off(`uncaughtException`,this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off(`unhandledRejection`,this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}},Py=class{childFrames=[];parentFrame=null;page;closed=!1;[pe]=new Ps(this);[qe]={navigation:[]};[bt]=null;[xt]=null;[Ct]=!1;[On]=new Dy;constructor(e){this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[Le]&&e.context.browser[Le].observe(this.window))}get content(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window.document[He]=!0,this.window.document[Ue]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.location.href}set url(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window[Dn][wn](this,Zu.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[pe].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[qe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(e=>e.abort()).concat([this[pe].abort()])).then(()=>e()).catch(t)}):this[pe].abort()}evaluate(e){return Ey.evaluate(this,e)}evaluateModule(e){return Ey.evaluateModule(this,e)}goto(e,t){return pp.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return pp.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return pp.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return pp.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return pp.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}},Fy=class{virtualConsolePrinter=new js;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new Oy(this.virtualConsolePrinter),this.mainFrame=new Py(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ky.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let n=this.context;ky.closePage(this).then(()=>{n.pages[0]===this?n.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new U(`resize`))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}},Iy=class{pages;browser;cookieContainer=new ms;responseCache=new Ss;preflightResponseCache=new Ay;closed=!1;[os]=new Map;constructor(e){this.browser=e,this.pages=[],this.pages.push(new Fy(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(e=>e.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newPage(){let e=new Fy(this);return this.pages.push(e),e}},Ly=class{contexts;settings;console;windowClass;[Le]=null;constructor(e,t){this.windowClass=e,this.console=t?.console||null,this.settings=My.createSettings(t?.settings),this.settings.errorCapture===Rs.processLevel&&(this[Le]=new Ny),this.contexts=[],this.contexts.push(new Iy(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(e=>e.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newIncognitoContext(){throw Error(`Not possible to create a new context on a detached browser.`)}newPage(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0].newPage()}},Ry=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}},zy=class extends Ty{happyDOM;constructor(e){let t=new Ly(Ty,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=t.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(t.viewport,{width:e.width||e.innerWidth||t.viewport.width,height:e.height||e.innerHeight||t.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[Le]&&n.page.context.browser[Le].observe(this),this.happyDOM=new Ry(n)}};export{zy as Window};
|
|
195
|
-
//# sourceMappingURL=lib-
|
|
194
|
+
`)}[Ne](){if(this.closed)return;super[Ne](),this.closed=!0;let e=this[yt];for(let t of e)t[Ne]&&t[Ne]();this[yt]=[];for(let e of this[is])e[Ne]();this[is]=[],this.document[Ne]();let t=this.document.createElement(`html`),n=this.document.createElement(`head`),r=this.document.createElement(`body`);t.appendChild(n),t.appendChild(r),this.document[Fn](t),this.location[Ne]&&this.location[Ne](),this.customElements[Ne]&&this.customElements[Ne](),this.history[Ne]&&this.history[Ne](),this[cs].clear(),this[Ao].json.clear(),this[Ao].css.clear(),this[Ao].esm.clear(),this.document[jo].clear(),this.document[fe]=null,this.document[Ye]=null,this.document[ke]=null,this.document[ct]=null,this[fr]=null,this[pr]=null,J.removeWindowBrowserFrameRelation(this)}[To](){for(let t of[e,rl]){let e=Object.getOwnPropertyDescriptors(t.prototype),n=Object.keys(e);for(let t of n){let n=e[t];n.get||n.set?Object.defineProperty(this,t,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):t!==`constructor`&&typeof n.value==`function`&&!n.value.toString().startsWith(`class `)&&Object.defineProperty(this,t,{...n,value:n.value.bind(this)})}}}},Ey=class{static evaluate(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return t=typeof t==`string`?new ce(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);let n=e.window;if(t?.code){let e=t.url?new URL(t.url,n.location.href):n.location,r=t.code;switch(t?.type||`esm`){case`esm`:return await new bm({window:n,url:e,source:r,factory:new xm(n,e)}).evaluate();case`json`:return await new rm({window:n,url:e,source:r}).evaluate();case`css`:return await new nm({window:n,url:e,source:r}).evaluate()}}return t?.url?await(await new xm(n,n.location).getModule(t.url,{with:{type:t.type||`esm`}})).evaluate():{}}},Dy=class{currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:Xu.auto,method:`GET`,formData:null};items=[this.currentItem];push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw Error(`Current history item not found`);this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:Xu.auto,method:`GET`,formData:null},this.items.push(this.currentItem)}},Oy=class{#e;#t={};#n={};#r=0;#i=[];constructor(e){this.#e=e}assert(e,t,...n){e||this.#e.print({type:ks.assert,level:ws.error,message:[`Assertion failed:`,...t?[t,...n]:n],group:this.#i[this.#i.length-1]||null})}clear(){this.#e.clear()}count(e=`default`){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:ks.count,level:ws.info,message:[`${e}: ${this.#t[e]}`],group:this.#i[this.#i.length-1]||null})}countReset(e=`default`){delete this.#t[e],this.#e.print({type:ks.countReset,level:ws.warn,message:[`${e}: 0`],group:this.#i[this.#i.length-1]||null})}debug(e,...t){this.#e.print({type:ks.debug,level:ws.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}dir(e){this.#e.print({type:ks.dir,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}dirxml(e){this.#e.print({type:ks.dirxml,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}error(e,...t){this.#e.print({type:ks.error,level:ws.error,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:ks.group,level:ws.log,message:[e||`default`],group:t})}groupCollapsed(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:ks.groupCollapsed,level:ws.log,message:[e||`default`],group:t})}groupEnd(){this.#i.length!==0&&this.#i.pop()}info(e,...t){this.#e.print({type:ks.info,level:ws.info,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}log(e,...t){this.#e.print({type:ks.log,level:ws.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}profile(){throw Error(`Method not implemented.`)}profileEnd(){throw Error(`Method not implemented.`)}table(e){this.#e.print({type:ks.table,level:ws.log,message:[e],group:this.#i[this.#i.length-1]||null})}time(e=`default`){this.#n[e]=performance.now()}timeEnd(e=`default`){let t=this.#n[e];if(t){let n=performance.now()-t;this.#e.print({type:ks.timeEnd,level:ws.info,message:[`${e}: ${n}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(e=`default`,...t){let n=this.#n[e];if(n){let r=performance.now()-n;this.#e.print({type:ks.timeLog,level:ws.info,message:[`${e}: ${r}ms`,...t],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error(`Method not implemented.`)}trace(e,...t){this.#e.print({type:ks.trace,level:ws.log,message:[...e?[e,...t]:t,Error(`stack`).stack.replace(`Error: stack`,``)],group:this.#i[this.#i.length-1]||null})}warn(e,...t){this.#e.print({type:ks.warn,level:ws.warn,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}},ky=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),lp.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let n of e.childFrames)t=t.concat(this.findFrames(n));return t}},Ay=class{#e=new Map;get(e){let t=this.#e.get(e.url);return t?t.expires<Date.now()?(this.#e.delete(e.url),null):t:null}add(e,t){if(this.#e.delete(e.url),e.headers.get(`Cache-Control`)?.includes(`no-cache`)||t.status<200||t.status>=300)return null;let n=t.headers.get(`Access-Control-Max-Age`),r=t.headers.get(`Access-Control-Allow-Origin`);if(!n||!r)return null;let i=[];if(t.headers.has(`Access-Control-Allow-Methods`)&&t.headers.get(`Access-Control-Allow-Methods`)!==`*`)for(let e of t.headers.get(`Access-Control-Allow-Methods`).split(`,`))i.push(e.trim().toUpperCase());let a={allowOrigin:r,allowMethods:i,expires:Date.now()+parseInt(n)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}},jy={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,enableImageFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:Rs.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:dp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+` `+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${{version:`20.10.6`}.version}`,maxTouchPoints:0},device:{prefersColorScheme:`light`,prefersReducedMotion:`no-preference`,mediaType:`screen`,forcedColors:`none`},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1},canvasAdapter:null},My=class{static createSettings(e){return e&&this.validate(jy,e),{...jy,...e,navigation:{...jy.navigation,...e?.navigation},navigator:{...jy.navigator,...e?.navigator},timer:{...jy.timer,...e?.timer},fetch:{...jy.fetch,...e?.fetch},module:{...jy.module,...e?.module},device:{...jy.device,...e?.device},debug:{...jy.debug,...e?.debug},viewport:{...jy.viewport,...e?.viewport},canvasAdapter:e?.canvasAdapter??jy.canvasAdapter}}static validate(e,t,n){for(let r of Object.keys(t)){if(e[r]===void 0){let e=n?n+`.`+r:r;throw Error(`Unknown browser setting "${e}"`)}if(typeof e[r]==`object`&&!Array.isArray(e[r])&&e[r]!==null){let i=n?n+`.`+r:r;if(typeof t[r]!=`object`||Array.isArray(t[r])||t[r]===null)throw Error(`Browser setting "${i}" cannot be null`);this.validate(e[r],t[r],i)}else if((typeof e[r]==`boolean`||typeof e[r]==`number`||typeof e[r]==`string`)&&typeof t[r]!=typeof e[r]&&!(r===`preventTimerLoops`&&typeof t[r]==`object`&&t[r]!==null)){let t=n?n+`.`+r:r;throw Error(`Browser setting "${t}" must be of type "${typeof e[r]}"`)}}}},Ny=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(e){if(this.observedWindows.includes(e))throw Error(`Browser window is already being observed.`);this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(e,t)=>{if(t===`unhandledRejection`)return;let n=null;for(let t of this.observedWindows)if(e instanceof t.Error||e instanceof t.DOMException){n=t;break}n?(n.console.error(e),n.dispatchEvent(new n.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`uncaughtException`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.uncaughtRejectionListener=e=>{let t=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){t=n;break}t?(t.console.error(e),t.dispatchEvent(new t.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`unhandledRejection`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.constructor.listenerCount++,process.on(`uncaughtException`,this.uncaughtExceptionListener),process.on(`unhandledRejection`,this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off(`uncaughtException`,this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off(`unhandledRejection`,this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}},Py=class{childFrames=[];parentFrame=null;page;closed=!1;[pe]=new Ps(this);[qe]={navigation:[]};[bt]=null;[xt]=null;[Ct]=!1;[On]=new Dy;constructor(e){this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[Le]&&e.context.browser[Le].observe(this.window))}get content(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window.document[He]=!0,this.window.document[Ue]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.location.href}set url(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window[Dn][wn](this,Zu.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[pe].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[qe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(e=>e.abort()).concat([this[pe].abort()])).then(()=>e()).catch(t)}):this[pe].abort()}evaluate(e){return Ey.evaluate(this,e)}evaluateModule(e){return Ey.evaluateModule(this,e)}goto(e,t){return pp.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return pp.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return pp.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return pp.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return pp.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}},Fy=class{virtualConsolePrinter=new js;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new Oy(this.virtualConsolePrinter),this.mainFrame=new Py(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ky.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let n=this.context;ky.closePage(this).then(()=>{n.pages[0]===this?n.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new U(`resize`))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}},Iy=class{pages;browser;cookieContainer=new ms;responseCache=new Ss;preflightResponseCache=new Ay;closed=!1;[os]=new Map;constructor(e){this.browser=e,this.pages=[],this.pages.push(new Fy(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(e=>e.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newPage(){let e=new Fy(this);return this.pages.push(e),e}},Ly=class{contexts;settings;console;windowClass;[Le]=null;constructor(e,t){this.windowClass=e,this.console=t?.console||null,this.settings=My.createSettings(t?.settings),this.settings.errorCapture===Rs.processLevel&&(this[Le]=new Ny),this.contexts=[],this.contexts.push(new Iy(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(e=>e.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newIncognitoContext(){throw Error(`Not possible to create a new context on a detached browser.`)}newPage(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0].newPage()}},Ry=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}},zy=class extends Ty{happyDOM;constructor(e){let t=new Ly(Ty,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=t.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(t.viewport,{width:e.width||e.innerWidth||t.viewport.width,height:e.height||e.innerHeight||t.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[Le]&&n.page.context.browser[Le].observe(this),this.happyDOM=new Ry(n)}};export{zy as Window};
|
|
195
|
+
//# sourceMappingURL=lib-CsZlOZVg.mjs.map
|