@harperfast/harper 5.2.5 → 5.2.7
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/bin/restart.ts +48 -23
- package/bin/restartExitWatchdog.ts +99 -0
- package/bin/run.ts +16 -10
- package/dist/bin/restart.js +39 -21
- package/dist/bin/restart.js.map +1 -1
- package/dist/bin/restartExitWatchdog.d.ts +5 -0
- package/dist/bin/restartExitWatchdog.js +100 -0
- package/dist/bin/restartExitWatchdog.js.map +1 -0
- package/dist/bin/run.d.ts +2 -0
- package/dist/bin/run.js +17 -10
- package/dist/bin/run.js.map +1 -1
- package/dist/resources/DatabaseTransaction.d.ts +18 -1
- package/dist/resources/DatabaseTransaction.js +63 -1
- package/dist/resources/DatabaseTransaction.js.map +1 -1
- package/dist/resources/LMDBTransaction.d.ts +2 -0
- package/dist/resources/LMDBTransaction.js +7 -1
- package/dist/resources/LMDBTransaction.js.map +1 -1
- package/dist/resources/PrimaryRocksDatabase.js +2 -3
- package/dist/resources/PrimaryRocksDatabase.js.map +1 -1
- package/dist/resources/RecordEncoder.d.ts +16 -0
- package/dist/resources/RecordEncoder.js +93 -3
- package/dist/resources/RecordEncoder.js.map +1 -1
- package/dist/resources/Resource.js +5 -4
- package/dist/resources/Resource.js.map +1 -1
- package/dist/resources/ResourceInterface.d.ts +5 -0
- package/dist/resources/ResourceInterface.js.map +1 -1
- package/dist/resources/Table.js +106 -9
- package/dist/resources/Table.js.map +1 -1
- package/dist/resources/graphql.js +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/tracked.js +5 -0
- package/dist/resources/tracked.js.map +1 -1
- package/dist/resources/transaction.js +1 -1
- package/dist/resources/transaction.js.map +1 -1
- package/dist/server/threads/manageThreads.d.ts +1 -0
- package/dist/server/threads/manageThreads.js +20 -3
- package/dist/server/threads/manageThreads.js.map +1 -1
- package/dist/utility/processManagement/processManagement.js +21 -3
- package/dist/utility/processManagement/processManagement.js.map +1 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/resources/DESIGN.md +24 -19
- package/resources/DatabaseTransaction.ts +63 -2
- package/resources/LMDBTransaction.ts +7 -1
- package/resources/PrimaryRocksDatabase.ts +3 -3
- package/resources/RecordEncoder.ts +85 -3
- package/resources/Resource.ts +6 -5
- package/resources/ResourceInterface.ts +5 -0
- package/resources/Table.ts +117 -9
- package/resources/graphql.ts +1 -1
- package/resources/tracked.ts +4 -0
- package/resources/transaction.ts +2 -2
- package/server/DESIGN.md +6 -0
- package/server/threads/manageThreads.js +17 -3
- package/studio/web/assets/{Chat-Lgj1d-8d.js → Chat-etJeJv4a.js} +71 -95
- package/studio/web/assets/FloatingChat-BvmHsuVo.js +23 -0
- package/studio/web/assets/abnfDiagram-VCTEODGH-C0_BAZyO.js +1 -0
- package/studio/web/assets/{alertDialog-BaBrZQ4M.js → alertDialog-DIHt7Z0r.js} +1 -1
- package/studio/web/assets/apiToken-Bl5LC8EH.js +1 -0
- package/studio/web/assets/applications-Dta6Y0Rg.js +296 -0
- package/studio/web/assets/arc-CVRByUzA.js +1 -0
- package/studio/web/assets/architecture-7GRP2DOG-DNdx5tEU.js +1 -0
- package/studio/web/assets/architectureDiagram-5GKGNRK7-BWzrASgm.js +36 -0
- package/studio/web/assets/authStore-qKmCZcaf.js +3 -0
- package/studio/web/assets/blockDiagram-NRAW4CY4-BdJX9Khj.js +129 -0
- package/studio/web/assets/{button-DfBmT4rc.js → button-DhiX-njv.js} +1 -1
- package/studio/web/assets/c4Diagram-UCG6FXSJ-CI6MzGmQ.js +38 -0
- package/studio/web/assets/channel-DtCV8PTL.js +1 -0
- package/studio/web/assets/chevron-up-Df2c8uoU.js +1 -0
- package/studio/web/assets/chunk-75Z2AOVW-BT8tVmks.js +2 -0
- package/studio/web/assets/chunk-DU6HZSFF-9kAOOmI6.js +127 -0
- package/studio/web/assets/{chunk-2GRJ4B5K-DtwG__pv.js → chunk-F27PBJKO-BW7ao8AY.js} +1 -1
- package/studio/web/assets/{chunk-KEIR6QF5-BICK3FdT.js → chunk-FOHPRMQF-DHwB1DNv.js} +2 -2
- package/studio/web/assets/{chunk-5RXB4S5H-D3c7okHC.js → chunk-G27WJ6UU-COyLMcgK.js} +2 -2
- package/studio/web/assets/chunk-GMAD6QVW-BNyXpoQO.js +72 -0
- package/studio/web/assets/chunk-JQ64N6SF-Cyz1IeLf.js +1 -0
- package/studio/web/assets/{chunk-GF5L2VYU-DreJ7Snz.js → chunk-LCL6LL3I-HOzK_ppE.js} +3 -3
- package/studio/web/assets/chunk-OBVCFTLP-D4wWOqDQ.js +1 -0
- package/studio/web/assets/chunk-P2QGCYS3-DmIFY4d7.js +1 -0
- package/studio/web/assets/{chunk-KBJHAD2P-CLDPbAA-.js → chunk-POPQ4Y6H-BPrvMyKz.js} +1 -1
- package/studio/web/assets/{chunk-4I5QYGJK-D1FhvtQq.js → chunk-PWAF6VOD-2zB6IW9i.js} +1 -1
- package/studio/web/assets/chunk-R7TYR2AO-Irip67yr.js +10 -0
- package/studio/web/assets/chunk-RHFEMEQ7-2FgyI8YU.js +168 -0
- package/studio/web/assets/{chunk-6Q2QTUOP-QviMM6bR.js → chunk-SVP7TREG-FwtbH2QC.js} +1 -1
- package/studio/web/assets/chunk-TEH6E4GO-P87k5mNi.js +62 -0
- package/studio/web/assets/{chunk-XXDRQBXY-CaP_jixK.js → chunk-XXDRQBXY-BoGZu3HH.js} +1 -1
- package/studio/web/assets/classDiagram-DTDB5LWJ-DbO_dCNE.js +1 -0
- package/studio/web/assets/classDiagram-v2-JRS7N3AN-DbO_dCNE.js +1 -0
- package/studio/web/assets/{cose-bilkent-JH36ORCC-BVTNhTKD.js → cose-bilkent-JH36ORCC-Cuuf67Bh.js} +1 -1
- package/studio/web/assets/{createLucideIcon-BMkDbMrz.js → createLucideIcon-BKGPfjm2.js} +1 -1
- package/studio/web/assets/cssMode-IAbO_2KK.js +1 -0
- package/studio/web/assets/cynefin-OW5HDTMX-BRkpLFQV.js +1 -0
- package/studio/web/assets/cynefinDiagram-5FMLGOSQ-CHT1DaX6.js +62 -0
- package/studio/web/assets/cytoscape.esm-C2x7inlt.js +321 -0
- package/studio/web/assets/dagre-3AP2YEHR-DpUXBh63.js +4 -0
- package/studio/web/assets/dagre-PrKaheQc.js +1 -0
- package/studio/web/assets/diagram-S7CK7UJ4-BuymVFZT.js +30 -0
- package/studio/web/assets/diagram-UQ7AKVKN-CyP148RM.js +41 -0
- package/studio/web/assets/diagram-VSXAHHWV-CoCAg3M9.js +3 -0
- package/studio/web/assets/diagram-VX7I27RA-BpOqCFca.js +24 -0
- package/studio/web/assets/diagram-Z3DM3KII-Bfpw7Vbj.js +24 -0
- package/studio/web/assets/dialog-CBf0Mr1d.js +1 -0
- package/studio/web/assets/{dist-CeoU7cfW.js → dist-kYfyPZP9.js} +1 -1
- package/studio/web/assets/{dist-cY0BPcz0.js → dist-lkA3O3eM.js} +1 -1
- package/studio/web/assets/download-BtTOBem-.js +1 -0
- package/studio/web/assets/ebnfDiagram-PWID7BFC-DS_6aWqL.js +1 -0
- package/studio/web/assets/editor-CeRXEhRl.js +1 -0
- package/studio/web/assets/erDiagram-SSCWMZ5O-DJNk6Fgw.js +99 -0
- package/studio/web/assets/eventmodeling-NTZA5JFV-5jbe4A5P.js +1 -0
- package/studio/web/assets/flowDiagram-A5DVABFB-Dp9Ezlow.js +1 -0
- package/studio/web/assets/{ganttDiagram-PKOTCBZU-Cit41Zp3.js → ganttDiagram-EL5Y4UJY-2pOExxMY.js} +2 -2
- package/studio/web/assets/{getAnalytics-rTxZLIM5.js → getAnalytics-D4LKGeVy.js} +1 -1
- package/studio/web/assets/gitGraph-4MIJSDKK-CH5ZxwzF.js +1 -0
- package/studio/web/assets/gitGraphDiagram-WWUBYQGX-DVIsIhbO.js +106 -0
- package/studio/web/assets/html-DOV4s_YT.js +1 -0
- package/studio/web/assets/htmlMode-CdqjnAh4.js +1 -0
- package/studio/web/assets/index-CTqasm6g.js +824 -0
- package/studio/web/assets/index-Cxj2_wsl.css +1 -0
- package/studio/web/assets/index.lazy-VmcKgiEy.js +2 -0
- package/studio/web/assets/info-A6RAGUB7-CPQfTnaG.js +1 -0
- package/studio/web/assets/infoDiagram-RXCK75RN-DlwLYlwm.js +2 -0
- package/studio/web/assets/{ishikawaDiagram-WSZJBQD7-BJYRB-hU.js → ishikawaDiagram-5VMMS53U-BRXRp29U.js} +2 -2
- package/studio/web/assets/{javascript-CGzSV8Sd.js → javascript-Dj7yXfx5.js} +1 -1
- package/studio/web/assets/{journeyDiagram-NVQOT4AX-B8K4wuMz.js → journeyDiagram-EYS64GPL-B0ou8k0n.js} +1 -1
- package/studio/web/assets/jsonMode-khk65qzx.js +1 -0
- package/studio/web/assets/{kanban-definition-27J2QSJJ-DKFV1ovM.js → kanban-definition-3QL26DDD-uYg7iYzp.js} +11 -11
- package/studio/web/assets/languageServices-D_06p7dw.js +1 -0
- package/studio/web/assets/linear-Cnt8506Q.js +1 -0
- package/studio/web/assets/lspLanguageFeatures-DTA6wyQw.js +4 -0
- package/studio/web/assets/mermaid-parser.core-Ck-fC8b7.js +7 -0
- package/studio/web/assets/mermaid.core-CP8aNNYm.js +44 -0
- package/studio/web/assets/{mindmap-definition-FAOFIHXS-CKL4PdAv.js → mindmap-definition-FBJOCRG2-CgTZ-rit.js} +25 -25
- package/studio/web/assets/notifications-Bah46LXX.js +1 -0
- package/studio/web/assets/notifications-CBZXgxVc.js +1 -0
- package/studio/web/assets/packet-AYTQ26CC-DEyoPtPb.js +1 -0
- package/studio/web/assets/pegDiagram-XKGWAZYB-DrD-7sD9.js +1 -0
- package/studio/web/assets/pie-WAS4IAKB-wjj-EI1d.js +1 -0
- package/studio/web/assets/pieDiagram-E7YTZNPT-GntqDCzv.js +39 -0
- package/studio/web/assets/profile-QspOun_j.js +1 -0
- package/studio/web/assets/{quadrantDiagram-CIZ2JOQS-CSbsuWtH.js → quadrantDiagram-AXDQQJYC-0UeqXQGd.js} +1 -1
- package/studio/web/assets/radar-RG4KPBEZ-DFSA5h7k.js +1 -0
- package/studio/web/assets/railroad-74A4TZTK-CaOUG9wR.js +1 -0
- package/studio/web/assets/railroad-abnf-HS5TGJTU-Bc0Qi0WH.js +1 -0
- package/studio/web/assets/railroad-ebnf-LZEXJU2U-G8rVVZ2C.js +1 -0
- package/studio/web/assets/railroad-peg-WCYAUIDC-CrehKBhC.js +1 -0
- package/studio/web/assets/railroadDiagram-O6MQD6OU-yHUELZaV.js +1 -0
- package/studio/web/assets/regions-QdUi7bQ9.js +1 -0
- package/studio/web/assets/{editor.api-eUd8PqEu.js → register-Buvoxmb8.js} +139 -138
- package/studio/web/assets/{requirementDiagram-LRYGKXZP-ZIF0Wlho.js → requirementDiagram-EFPCY7ZU-DNEGFjuW.js} +2 -2
- package/studio/web/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/studio/web/assets/safeParse-DeaoCCWH.js +1 -0
- package/studio/web/assets/{sankeyDiagram-W5VNT64P-BcRESt9x.js → sankeyDiagram-P5KCCOFB-DpyAmSVR.js} +1 -1
- package/studio/web/assets/{sequenceDiagram-SI44F4Z6-OpgTeJNU.js → sequenceDiagram-WJ2MYXX4-TyaT7xNk.js} +1 -1
- package/studio/web/assets/setComponentFile-BI4E_iDe.js +1 -0
- package/studio/web/assets/setLocalStorage-D_kflv4U.js +1 -0
- package/studio/web/assets/setSessionStorage-B0bf71m4.js +1 -0
- package/studio/web/assets/setup-Cop6LBQN.js +2 -0
- package/studio/web/assets/src-CMc7m_Ut.js +1 -0
- package/studio/web/assets/stateDiagram-HBIQ2CUA-CeEdTArZ.js +1 -0
- package/studio/web/assets/stateDiagram-v2-4QOOHH4V-D4tuw9Su.js +1 -0
- package/studio/web/assets/status-DRu3zRgl.js +61 -0
- package/studio/web/assets/step-vX8bovaY.js +1 -0
- package/studio/web/assets/swimlanes-XN3QIQJK-B54FmF46.js +1 -0
- package/studio/web/assets/swimlanesDiagram-VK2B7HYN-XOhmNEvq.js +8 -0
- package/studio/web/assets/tabs-B_G5zscN.js +1 -0
- package/studio/web/assets/{time-D55sDum-.js → time-Cclkb7kQ.js} +1 -1
- package/studio/web/assets/{timeline-definition-Z64GVDOM-Dy5A_tK2.js → timeline-definition-24CTP7MA-D-a9ujbo.js} +5 -5
- package/studio/web/assets/toggleHighContrast-C0dJLmZ0.js +49 -0
- package/studio/web/assets/treeView-Q6P3EWNA-CrW_6JnS.js +1 -0
- package/studio/web/assets/treemap-WGGIJYW6-BxyYLdP_.js +1 -0
- package/studio/web/assets/tsMode-dbDiapTA.js +11 -0
- package/studio/web/assets/typescript-CT1826cL.js +1 -0
- package/studio/web/assets/useEntityRestURL-D1u1X_gE.js +1 -0
- package/studio/web/assets/useLocalStorage-Dtj1QS8_.js +1 -0
- package/studio/web/assets/{vendor-core-CddkYGh5.js → vendor-core-RCcadM3e.js} +1 -1
- package/studio/web/assets/vendor-datadog-BRv-mOv1.js +6 -0
- package/studio/web/assets/{vendor-react-BhazFIp8.js → vendor-react-Dyj4O3HE.js} +1 -1
- package/studio/web/assets/vendor-tanstack-BiFWSB3W.js +1 -0
- package/studio/web/assets/{vendor-ui-BLIveqaL.js → vendor-ui-vhu-UHhF.js} +11 -11
- package/studio/web/assets/{vennDiagram-T6HMQDX7-DRvMIiSo.js → vennDiagram-4TSXK5OY-Cy7s7Mpy.js} +3 -3
- package/studio/web/assets/wardley-WFR3VGLG-BeBL35g2.js +1 -0
- package/studio/web/assets/{wardleyDiagram-T6FBY63Y-B04FSA0i.js → wardleyDiagram-VM6X3IG4-BylmIGSg.js} +3 -3
- package/studio/web/assets/workers-FpR9_D2K.js +3 -0
- package/studio/web/assets/x-B9o9hsep.js +1 -0
- package/studio/web/assets/xml-ZjKUMjth.js +1 -0
- package/studio/web/assets/{xychartDiagram-ELKLHX3M-BE0X7RA7.js → xychartDiagram-S5SC5T6Z-CoKALMXr.js} +3 -3
- package/studio/web/assets/yaml-B6gXbZU6.js +1 -0
- package/studio/web/assets/{yaml.worker-Iyy2Pf1T.js → yaml.worker-BDL8_iuk.js} +153 -153
- package/studio/web/harper-studio_black.png +0 -0
- package/studio/web/index.html +18 -24
- package/utility/processManagement/processManagement.js +19 -3
- package/studio/web/assets/FloatingChat-jLWvR4kI.js +0 -23
- package/studio/web/assets/abnfDiagram-N423BO3Z-BRuH0ywn.js +0 -1
- package/studio/web/assets/apiToken-DYI4DqWa.js +0 -1
- package/studio/web/assets/applications-DCmc9-lk.js +0 -296
- package/studio/web/assets/arc-3Xw6uabx.js +0 -1
- package/studio/web/assets/architecture-TIHT7OUA-CsHfPErM.js +0 -1
- package/studio/web/assets/architectureDiagram-T3A2C74G-DrwbS7Gp.js +0 -36
- package/studio/web/assets/array-BifhSqXX.js +0 -1
- package/studio/web/assets/authStore-B3IhXrn6.js +0 -3
- package/studio/web/assets/blockDiagram-VBNYF7ZC-DKN1mht5.js +0 -132
- package/studio/web/assets/c4Diagram-5PPSVZJV-CT9bmjm_.js +0 -10
- package/studio/web/assets/card-ByrPS_wa.js +0 -1
- package/studio/web/assets/channel-mnKBfsP-.js +0 -1
- package/studio/web/assets/chevron-right-CY-tr2sG.js +0 -1
- package/studio/web/assets/chunk-3NCLNEKW-BVj72ixc.js +0 -1
- package/studio/web/assets/chunk-5FCAYU7R-Dh5nylU8.js +0 -1
- package/studio/web/assets/chunk-5HE753X5-Bw-yg4kO.js +0 -1
- package/studio/web/assets/chunk-5JV3BV7I-Cy5pj3QY.js +0 -1
- package/studio/web/assets/chunk-5TONJI2A-DQOY3q1H.js +0 -2
- package/studio/web/assets/chunk-7BUUIJ7U-Bb538aSH.js +0 -1
- package/studio/web/assets/chunk-7Z6QIM7H-BJhESwQK.js +0 -10
- package/studio/web/assets/chunk-BIQX33UG-DZEsGuSn.js +0 -1
- package/studio/web/assets/chunk-CQNSW5MT-B8S09OIh.js +0 -1
- package/studio/web/assets/chunk-CYSBUYHQ-C1Rf4art.js +0 -1
- package/studio/web/assets/chunk-EMLP6XTP-RLD4nXpI.js +0 -1
- package/studio/web/assets/chunk-I66GZJ75-DHPYnKNr.js +0 -125
- package/studio/web/assets/chunk-J7OUQ5F2-DcY_kb6i.js +0 -2
- package/studio/web/assets/chunk-JG7HCLWE-BYfiSaVt.js +0 -2
- package/studio/web/assets/chunk-JQJVKLGR-DtEmbHZj.js +0 -156
- package/studio/web/assets/chunk-MOZMSUNE-XVucA-n6.js +0 -1
- package/studio/web/assets/chunk-NSK5VX7P-DDFNzCU_.js +0 -2
- package/studio/web/assets/chunk-OSBZ3O6U-CrKZOUOr.js +0 -1
- package/studio/web/assets/chunk-QBLGF6JB-CxAyS2mW.js +0 -1
- package/studio/web/assets/chunk-QR6OTTB3-Df7OCENk.js +0 -62
- package/studio/web/assets/chunk-R7FJI6CG-Cnn3gE-Y.js +0 -1
- package/studio/web/assets/chunk-RYQCIY6F-N0MDKk5G.js +0 -1
- package/studio/web/assets/chunk-U6XO7XAA-BFxjP5U3.js +0 -2
- package/studio/web/assets/chunk-UBXNYLIW-rn0yw1mp.js +0 -1
- package/studio/web/assets/chunk-W5SLKNZC-DKMlAWZk.js +0 -1
- package/studio/web/assets/chunk-WRU74C26-Dg10j8Pf.js +0 -70
- package/studio/web/assets/chunk-YOTPTUD7-D0vRKqYp.js +0 -1
- package/studio/web/assets/chunk-ZIRB5QZD-O39ZBUk3.js +0 -32
- package/studio/web/assets/classDiagram-JCYQIIEL-BrXNP4fl.js +0 -1
- package/studio/web/assets/classDiagram-v2-OCEON4UE-BrXNP4fl.js +0 -1
- package/studio/web/assets/cssMode-DipmMR_-.js +0 -1
- package/studio/web/assets/cynefin-VYW2F7L2-Ds2Fw2Y0.js +0 -1
- package/studio/web/assets/cynefinDiagram-MW4NZA55-DcTzrsC5.js +0 -62
- package/studio/web/assets/cytoscape.esm-B-NFISlW.js +0 -321
- package/studio/web/assets/dagre-Buvkdvvj.js +0 -1
- package/studio/web/assets/dagre-VZM6K2ZE-CMyJ9QPU.js +0 -4
- package/studio/web/assets/diagram-7IWD3JNH-jEGuzdp3.js +0 -30
- package/studio/web/assets/diagram-B4RE2ZJO-Ba7wC7iw.js +0 -3
- package/studio/web/assets/diagram-LBJQPF4R-Bm7Wj_dF.js +0 -24
- package/studio/web/assets/diagram-Q27KOJAE-C-gdktLC.js +0 -24
- package/studio/web/assets/diagram-UB23O5K3-COBVIEEk.js +0 -41
- package/studio/web/assets/ebnfDiagram-BXEA7PRR-G-t56mVV.js +0 -1
- package/studio/web/assets/editor-BDfNodZS.js +0 -1
- package/studio/web/assets/erDiagram-JOGREHBK-DpHzpqx1.js +0 -85
- package/studio/web/assets/eventmodeling-45OFAUF4-CLEiVx5s.js +0 -1
- package/studio/web/assets/flowDiagram-UKHOOZJN-CIxxUUxn.js +0 -1
- package/studio/web/assets/getRegistrationInfo--NLLrics.js +0 -1
- package/studio/web/assets/gitGraph-TEB2WS4Q-CZFBqwW-.js +0 -1
- package/studio/web/assets/gitGraphDiagram-DS77QQ5N-DuGnRv2R.js +0 -106
- package/studio/web/assets/html-DmSSmgE8.js +0 -1
- package/studio/web/assets/htmlMode-B2LqJw1z.js +0 -1
- package/studio/web/assets/index-BO3NaEw8.css +0 -1
- package/studio/web/assets/index-BnYZFLIB.css +0 -1
- package/studio/web/assets/index-CqbCnqsT.js +0 -810
- package/studio/web/assets/index.lazy-BNqr3j0f.js +0 -13
- package/studio/web/assets/info-DKCQHKI2--1InqQeT.js +0 -1
- package/studio/web/assets/infoDiagram-6WML65LV-DliK38kp.js +0 -2
- package/studio/web/assets/isArrayLikeObject-BHDnhloL.js +0 -1
- package/studio/web/assets/jsonMode-BVS6P5Xk.js +0 -1
- package/studio/web/assets/languageServices-Bl-BvoAb.js +0 -1
- package/studio/web/assets/line-Bom3IjHi.js +0 -1
- package/studio/web/assets/linear-DwB_ruUT.js +0 -1
- package/studio/web/assets/lspLanguageFeatures-C7XtZA_w.js +0 -4
- package/studio/web/assets/map-BaFkSB1l.js +0 -1
- package/studio/web/assets/math-Bi_r_ZWc.js +0 -1
- package/studio/web/assets/mermaid-parser.core-Dd4RYr9Q.js +0 -4
- package/studio/web/assets/mermaid.core-Bbo24DGo.js +0 -11
- package/studio/web/assets/notifications-Bb2cj14_.js +0 -1
- package/studio/web/assets/notifications-DVlKonbI.js +0 -1
- package/studio/web/assets/packet-7NZHBO7P-BGMXB0XL.js +0 -1
- package/studio/web/assets/path-fybaL0A-.js +0 -1
- package/studio/web/assets/pegDiagram-VL7TDLO6-CWEktcBB.js +0 -1
- package/studio/web/assets/pie-RZYD4A2V-DgYg3tCt.js +0 -1
- package/studio/web/assets/pieDiagram-7S7Q4E2Y-DEAmZOqY.js +0 -39
- package/studio/web/assets/pollUnlessForbidden-DIDXGBc5.js +0 -1
- package/studio/web/assets/profile-BSQWfYfq.js +0 -1
- package/studio/web/assets/purify.es-DrVcFY1Q.js +0 -3
- package/studio/web/assets/queryClient-BLhQvmWC.js +0 -1
- package/studio/web/assets/radar-I7S5WNFK-Ag-zp_Rq.js +0 -1
- package/studio/web/assets/railroad-3IZDKUUU-aibJDIDV.js +0 -1
- package/studio/web/assets/railroad-abnf-AHOZXSZD-BBMEuvIl.js +0 -1
- package/studio/web/assets/railroad-ebnf-EBAXGLYW-Be1nseej.js +0 -1
- package/studio/web/assets/railroad-peg-LSFZ7HO6-DIvD-Eyb.js +0 -1
- package/studio/web/assets/railroadDiagram-AXF67PYL-BJWrgR10.js +0 -1
- package/studio/web/assets/react-VeAY02s6.js +0 -1
- package/studio/web/assets/react-redux-Ds7wf7Ax.js +0 -5
- package/studio/web/assets/regions-Dk3g8bBF.js +0 -1
- package/studio/web/assets/register-3F1Tje_F.js +0 -2
- package/studio/web/assets/register-S_PdXsoi.js +0 -2
- package/studio/web/assets/rolldown-runtime-B0Z9INg1.js +0 -1
- package/studio/web/assets/select-CKgJgpkn.js +0 -1
- package/studio/web/assets/setComponentFile-DoITgNLb.js +0 -1
- package/studio/web/assets/setLocalStorage-CD_L8p_D.js +0 -1
- package/studio/web/assets/setup-CiEALLa7.js +0 -2
- package/studio/web/assets/src-DUvBCJIr.js +0 -1
- package/studio/web/assets/stateDiagram-OKZ733FA-D9oPLTjO.js +0 -1
- package/studio/web/assets/stateDiagram-v2-UEYNNEHI-CSD1wbuZ.js +0 -1
- package/studio/web/assets/status-CK9tD-Nd.js +0 -61
- package/studio/web/assets/string-f6JzSHaO.js +0 -1
- package/studio/web/assets/swagger-ui-react-CxjCDFB-.js +0 -240
- package/studio/web/assets/swimlanes-SLNWSIFB-BpeoNE9k.js +0 -2
- package/studio/web/assets/swimlanesDiagram-ULZ7WXOC-DHxwzxpp.js +0 -8
- package/studio/web/assets/table-BvFflPWi.js +0 -1
- package/studio/web/assets/tabs-Dd_ElZ36.js +0 -1
- package/studio/web/assets/textarea-a3RnTY31.js +0 -9
- package/studio/web/assets/toggleHighContrast-CyNC3SCQ.js +0 -49
- package/studio/web/assets/tokenization-CWuvR2gh.js +0 -7
- package/studio/web/assets/treeView-QDETBFTQ-uHZ-3Fz8.js +0 -1
- package/studio/web/assets/treemap-6X3UGDF4-BnUKyy3l.js +0 -1
- package/studio/web/assets/tsMode-CslzhcVk.js +0 -11
- package/studio/web/assets/typescript-Dtnury3t.js +0 -1
- package/studio/web/assets/useAuth-DiJUZS1C.js +0 -1
- package/studio/web/assets/useEntityRestURL-Cy-0i1UZ.js +0 -1
- package/studio/web/assets/useLocalStorage-DetQlhBe.js +0 -1
- package/studio/web/assets/vendor-datadog-XDrpA25D.js +0 -6
- package/studio/web/assets/vendor-tanstack-FsM5XZNE.js +0 -1
- package/studio/web/assets/wardley-OPB4EBWU-Da7TLC2F.js +0 -1
- package/studio/web/assets/workers-BtibQGyk.js +0 -3
- package/studio/web/assets/x-D39AGKMb.js +0 -1
- package/studio/web/assets/xml-D41zWqPl.js +0 -1
- package/studio/web/assets/yaml-BFQ3mF1U.js +0 -1
- /package/studio/web/assets/{editor-jjEx9u7D.css → register-jjEx9u7D.css} +0 -0
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-B0Z9INg1.js";import{a}from"./vendor-datadog-XDrpA25D.js";import{n as o}from"./vendor-react-BhazFIp8.js";import{Ft as s,It as c}from"./vendor-ui-BLIveqaL.js";import{Ut as l}from"./index-CqbCnqsT.js";import{t as u}from"./purify.es-DrVcFY1Q.js";import{a as d,c as f,i as p,l as m,n as h,o as g,t as _}from"./react-redux-Ds7wf7Ax.js";var v=i((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),y=i((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),b=i((e=>{var t=v(),n=y(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(xe(e,ArrayBuffer)||e&&xe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(xe(e,SharedArrayBuffer)||e&&xe(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=x(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(xe(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||Se(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function b(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(xe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),xe(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(xe(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function x(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||xe(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ge(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ye(e).length;default:if(i)return r?-1:ge(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=x;function S(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return M(this,t,n);case`ascii`:return ee(this,t,n);case`latin1`:case`binary`:return te(this,t,n);case`base64`:return j(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function C(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)C(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?M(this,0,e):S.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(xe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function w(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Se(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:T(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function T(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)};function E(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(Se(r))return o;e[n+o]=r}return o}function D(e,t,n,r){return be(ge(t,e.length-n),e,n,r)}function O(e,t,n,r){return be(_e(t),e,n,r)}function k(e,t,n,r){return be(ye(t),e,n,r)}function A(e,t,n,r){return be(ve(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return E(this,e,t,n);case`utf8`:case`utf-8`:return D(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return O(this,e,t,n);case`base64`:return k(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return A(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function M(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return P(r)}var N=4096;function P(e){let t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=N));return n}function ee(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function te(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=Ce[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=t+this[++e]*256+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*256+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*256+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*256+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=this[e+4]+this[e+5]*256+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*256+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*256+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ne(e,t,n,r,i){de(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function re(e,t,n,r,i){de(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=we(function(e,t=0){return ne(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=we(function(e,t=0){return re(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=we(function(e,t=0){return ne(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=we(function(e,t=0){return re(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ie(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function ae(e,t,r,i,a){return t=+t,r>>>=0,a||ie(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return ae(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return ae(this,e,t,!1,n)};function oe(e,t,r,i,a){return t=+t,r>>>=0,a||ie(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return oe(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return oe(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var se={};function ce(e,t,n){se[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}ce(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),ce(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),ce(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=le(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=le(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function le(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ue(e,t,n){fe(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&pe(t,e.length-(n+1))}function de(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new se.ERR_OUT_OF_RANGE(`value`,i,e)}ue(r,i,a)}function fe(e,t){if(typeof e!=`number`)throw new se.ERR_INVALID_ARG_TYPE(t,`number`,e)}function pe(e,t,n){throw Math.floor(e)===e?t<0?new se.ERR_BUFFER_OUT_OF_BOUNDS:new se.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(fe(e,n),new se.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var me=/[^+/0-9A-Za-z-_]/g;function he(e){if(e=e.split(`=`)[0],e=e.trim().replace(me,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ge(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function _e(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ve(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ye(e){return t.toByteArray(he(e))}function be(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function xe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Se(e){return e!==e}var Ce=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function we(e){return typeof BigInt>`u`?Te:e}function Te(){throw Error(`BigInt not supported`)}})),x=i(((e,t)=>{var n=b(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),S=i(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),C=i(((e,t)=>{t.exports=TypeError})),w=i(((e,t)=>{t.exports=Object})),T=i(((e,t)=>{t.exports=Error})),E=i(((e,t)=>{t.exports=EvalError})),D=i(((e,t)=>{t.exports=RangeError})),O=i(((e,t)=>{t.exports=ReferenceError})),k=i(((e,t)=>{t.exports=SyntaxError})),A=i(((e,t)=>{t.exports=URIError})),j=i(((e,t)=>{t.exports=Math.abs})),M=i(((e,t)=>{t.exports=Math.floor})),N=i(((e,t)=>{t.exports=Math.max})),P=i(((e,t)=>{t.exports=Math.min})),ee=i(((e,t)=>{t.exports=Math.pow})),te=i(((e,t)=>{t.exports=Math.round})),F=i(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),I=i(((e,t)=>{var n=F();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),L=i(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),R=i(((e,t)=>{var n=L();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),ne=i(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),re=i(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),ie=i(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=re();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),ae=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),oe=i(((e,t)=>{t.exports=w().getPrototypeOf||null})),se=i(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),ce=i(((e,t)=>{var n=se();t.exports=Function.prototype.bind||n})),le=i(((e,t)=>{t.exports=Function.prototype.call})),ue=i(((e,t)=>{t.exports=Function.prototype.apply})),de=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),fe=i(((e,t)=>{var n=ce(),r=ue(),i=le();t.exports=de()||n.call(i,r)})),pe=i(((e,t)=>{var n=ce(),r=C(),i=le(),a=fe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),me=i(((e,t)=>{var n=pe(),r=R(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),he=i(((e,t)=>{var n=ae(),r=oe(),i=me();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ge=i(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ce().call(n,r)})),_e=i(((e,t)=>{var n,r=w(),i=T(),a=E(),o=D(),s=O(),c=k(),l=C(),u=A(),d=j(),f=M(),p=N(),m=P(),h=ee(),g=te(),_=I(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=R(),x=ne(),S=function(){throw new l},F=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,L=ie()(),re=he(),se=oe(),de=ae(),fe=ue(),pe=le(),me={},_e=typeof Uint8Array>`u`||!re?n:re(Uint8Array),ve={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":L&&re?re([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":me,"%AsyncGenerator%":me,"%AsyncGeneratorFunction%":me,"%AsyncIteratorPrototype%":me,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":me,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&re?re(re([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!L||!re?n:re(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!L||!re?n:re(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&re?re(``[Symbol.iterator]()):n,"%Symbol%":L?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":F,"%TypedArray%":_e,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":pe,"%Function.prototype.apply%":fe,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":se,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":de};if(re)try{null.error}catch(e){ve[`%Error.prototype%`]=re(re(e))}var ye=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&re&&(n=re(i.prototype))}return ve[t]=n,n},be={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},xe=ce(),Se=ge(),Ce=xe.call(pe,Array.prototype.concat),we=xe.call(fe,Array.prototype.splice),Te=xe.call(pe,String.prototype.replace),Ee=xe.call(pe,String.prototype.slice),De=xe.call(pe,RegExp.prototype.exec),Oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,Ae=function(e){var t=Ee(e,0,1),n=Ee(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return Te(e,Oe,function(e,t,n,i){r[r.length]=n?Te(i,ke,`$1`):t||e}),r},je=function(e,t){var n=e,r;if(Se(be,n)&&(r=be[n],n=`%`+r[0]+`%`),Se(ve,n)){var i=ve[n];if(i===me&&(i=ye(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(De(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ae(e),r=n.length>0?n[0]:``,i=je(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],we(n,Ce([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=Ee(p,0,1),h=Ee(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,Se(ve,a))o=ve[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=Se(o,p),o=o[p];f&&!s&&(ve[a]=o)}}return o}})),ve=i(((e,t)=>{var n=_e(),r=pe(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),ye=i(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),be=i(((e,t)=>{var n=ye(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),xe=i(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),Se=i(((e,t)=>{var n=xe(),r=typeof globalThis>`u`?global:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),Ce=i(((e,t)=>{var n=ne(),r=k(),i=C(),a=R();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),we=i(((e,t)=>{var n=ne(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),Te=i(((e,t)=>{var n=_e(),r=Ce(),i=we()(),a=R(),o=C(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),Ee=i(((e,t)=>{var n=ce(),r=ue(),i=fe();t.exports=function(){return i(n,r,arguments)}})),De=i(((e,t)=>{var n=Te(),r=ne(),i=pe(),a=Ee();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),Oe=i(((e,t)=>{var n=re();t.exports=function(){return n()&&!!Symbol.toStringTag}})),ke=i(((e,t)=>{var n=be(),r=Se(),i=De(),a=ve(),o=R(),s=he(),c=a(`Object.prototype.toString`),l=Oe()(),u=typeof globalThis>`u`?global:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);if(!r&&n&&(r=o(s(n),Symbol.toStringTag)),r&&r.get){var a=i(r.get);m[`$`+e]=a}}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;if(n){var r=i(n);m[`$`+e]=r}});function h(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t}function g(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t}function _(e){return p(d,e)>-1}t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return _(t)?t:t===`Object`&&g(e)}return o?h(e):null}})),Ae=i(((e,t)=>{var n=ke();t.exports=function(e){return!!n(e)}})),je=i(((e,t)=>{var n=C(),r=ve()(`TypedArray.prototype.buffer`,!0),i=Ae();t.exports=r||function(e){if(!i(e))throw new n(`Not a Typed Array`);return e.buffer}})),Me=i(((e,t)=>{var n=x().Buffer,r=S(),i=je(),a=ArrayBuffer.isView||function(e){try{return i(e),!0}catch{return!1}},o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,c=s&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!(`isBuffer`in e)?n.from(e):e;if(typeof e==`string`)return n.from(e,t);if(s&&a(e)){if(e.byteLength===0)return n.alloc(0);if(c){var i=n.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var l=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(l);if(u.length===e.byteLength)return u}if(o&&e instanceof Uint8Array)return n.from(e);var d=r(e);if(d)for(var f=0;f<e.length;f+=1){var p=e[f];if(typeof p!=`number`||p<0||p>255||~~p!==p)throw RangeError(`Array items must be numbers in the range 0-255.`)}if(d||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.`)}})),Ne=r({Collection:()=>oi,Iterable:()=>za,List:()=>V,Map:()=>B,OrderedMap:()=>pa,OrderedSet:()=>ka,PairSorting:()=>Ma,Range:()=>Ca,Record:()=>Na,Repeat:()=>Fa,Seq:()=>xi,Set:()=>ba,Stack:()=>ga,default:()=>Ra,fromJS:()=>z,get:()=>cn,getIn:()=>Or,has:()=>sn,hasIn:()=>Ar,hash:()=>vt,is:()=>gt,isAssociative:()=>Je,isCollection:()=>Ge,isImmutable:()=>Ze,isIndexed:()=>qe,isKeyed:()=>Ke,isList:()=>nr,isMap:()=>pt,isOrdered:()=>Qe,isOrderedMap:()=>mt,isOrderedSet:()=>xr,isPlainObject:()=>rn,isRecord:()=>Xe,isSeq:()=>Ye,isSet:()=>br,isStack:()=>_r,isValueObject:()=>ht,merge:()=>Tn,mergeDeep:()=>Dn,mergeDeepWith:()=>On,mergeWith:()=>En,remove:()=>dn,removeIn:()=>_n,set:()=>fn,setIn:()=>hn,update:()=>yn,updateIn:()=>pn,version:()=>La});function Pe(){return{value:!1}}function Fe(e){e&&(e.value=!0)}function Ie(){}function Le(e){return e.size===void 0&&(e.size=e.__iterate(ze)),e.size}function Re(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?Le(e)+t:t}function ze(){return!0}function Be(e,t,n){return(e===0&&!We(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Ve(e,t){return Ue(e,t,0)}function He(e,t){return Ue(e,t,t)}function Ue(e,t,n){return e===void 0?n:We(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function We(e){return e<0||e===0&&1/e==-1/0}function Ge(e){return!!(e&&e[ri])}function Ke(e){return!!(e&&e[ii])}function qe(e){return!!(e&&e[ai])}function Je(e){return Ke(e)||qe(e)}function Ye(e){return!!(e&&e[ui])}function Xe(e){return!!(e&&e[di])}function Ze(e){return Ge(e)||Xe(e)}function Qe(e){return!!(e&&e[fi])}function $e(e,t,n,r){var i=e===0?t:e===1?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function et(){return{value:void 0,done:!0}}function tt(e){return Array.isArray(e)?!0:!!it(e)}function nt(e){return e&&typeof e.next==`function`}function rt(e){var t=it(e);return t&&t.call(e)}function it(e){var t=e&&(gi&&e[gi]||e[_i]);if(typeof t==`function`)return t}function at(e){var t=it(e);return t&&t===e.entries}function ot(e){var t=it(e);return t&&t===e.keys}function st(e){return Array.isArray(e)||typeof e==`string`?!0:e&&typeof e==`object`&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}function ct(){return Oi||=new Ti([])}function lt(e){var t=ft(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new Ei(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function ut(e){var t=ft(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function dt(e){var t=ft(e);if(t)return at(e)?t.fromEntrySeq():ot(e)?t.toSetSeq():t;if(typeof e==`object`)return new Ei(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function ft(e){return st(e)?new Ti(e):tt(e)?new Di(e):void 0}function pt(e){return!!(e&&e[ki])}function mt(e){return pt(e)&&Qe(e)}function ht(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function gt(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(ht(e)&&ht(t)&&e.equals(t))}function _t(e){return e>>>1&1073741824|e&3221225471}function vt(e){if(e==null)return yt(e);if(typeof e.hashCode==`function`)return _t(e.hashCode(e));var t=Dt(e);if(t==null)return yt(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return bt(t);case`string`:return t.length>Bi?xt(t):St(t);case`object`:case`function`:return Tt(t);case`symbol`:return wt(t);default:if(typeof t.toString==`function`)return St(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function yt(e){return e===null?1108378658:1108378659}function bt(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return _t(t)}function xt(e){var t=Ui[e];return t===void 0&&(t=St(e),Hi===Vi&&(Hi=0,Ui={}),Hi++,Ui[e]=t),t}function St(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return _t(t)}function Ct(e){if(typeof e!=`string`)return vt(e);for(var t=0,n=0;n<e.length;n++)t=Mi*t+e.charCodeAt(n)|0;return t}function wt(e){var t=Li[e];return t===void 0?(t=Ot(),Li[e]=t,t):t}function Tt(e){var t;if(Fi&&(t=Ii.get(e),t!==void 0)||(t=e[zi],t!==void 0)||!Pi&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[zi],t!==void 0||(t=Et(e),t!==void 0)))return t;if(t=Ot(),Fi)Ii.set(e,t);else if(Ni!==void 0&&Ni(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(Pi)Object.defineProperty(e,zi,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[zi]=t;else if(e.nodeType!==void 0)e[zi]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function Et(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function Dt(e){return e.valueOf!==ji&&typeof e.valueOf==`function`?e.valueOf(e):e}function Ot(){var e=++Ri;return Ri&1073741824&&(Ri=0),e}function kt(e){var t=Xt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Zt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===hi){var r=e.__iterator(t,n);return new yi(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===mi?pi:mi,n)},t}function At(e,t,n){var r=Xt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,ni);return a===ni?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(hi,i);return new yi(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return $e(r,s,t.call(n,o[1],s,e),i)})},r}function jt(e,t){var n=this,r=Xt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=kt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Zt,r.__iterate=function(n,r){var i=this,a=0;return r&&Le(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},r.__iterator=function(r,i){var a=0;i&&Le(e);var o=e.__iterator(hi,!i);return new yi(function(){var e=o.next();if(e.done)return e;var s=e.value;return $e(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},r}function Mt(e,t,n,r){var i=Xt(e);return r&&(i.has=function(r){var i=e.get(r,ni);return i!==ni&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,ni);return a!==ni&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(hi,a),s=0;return new yi(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return $e(i,r?l:s++,u,a)}})},i}function Nt(e,t,n){var r=B().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function Pt(e,t,n){var r=Ke(e),i=(Qe(e)?pa():B()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=Yt(e);return i.map(function(t){return qt(e,a(t))}).asImmutable()}function Ft(e,t,n){var r=Ke(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=Yt(e);return i.map(function(t){return qt(e,a(t))})}function It(e,t,n,r){var i=e.size;if(Be(t,n,i))return e;if(i===void 0&&(t<0||n<0))return It(e.toSeq().cacheResult(),t,n,r);var a=Ve(t,i),o=He(n,i)-a,s;o===o&&(s=o<0?0:o);var c=Xt(e);return c.size=s===0?s:e.size&&s||void 0,!r&&Ye(e)&&s>=0&&(c.get=function(t,n){return t=Re(this,t),t>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var i=this;if(s===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,l=0;return e.__iterate(function(e,n){if(!(c&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},c.__iteratorUncached=function(t,n){if(s!==0&&n)return this.cacheResult().__iterator(t,n);if(s===0)return new yi(et);var i=e.__iterator(t,n),o=0,c=0;return new yi(function(){for(;o++<a;)i.next();if(++c>s)return et();var e=i.next();return r||t===mi||e.done?e:t===pi?$e(t,c-1,void 0,e):$e(t,c-1,e.value[1],e)})},c}function Lt(e,t,n){var r=Xt(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(hi,i),s=!0;return new yi(function(){if(!s)return et();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===hi?e:$e(r,c,l,e):(s=!1,et())})},r}function Rt(e,t,n,r){var i=Xt(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(hi,a),c=!0,l=0;return new yi(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===mi?e:i===pi?$e(i,l++,void 0,e):$e(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===hi?e:$e(i,a,u,e)})},i}function zt(e,t){var n=Ke(e),r=[e].concat(t).map(function(e){return Ge(e)?n&&(e=si(e)):e=n?lt(e):ut(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&Ke(i)||qe(e)&&qe(i))return i}var a=new Ti(r);return n?a=a.toKeyedSeq():qe(e)||(a=a.toSetSeq()),a=a.flatten(!0),a.size=r.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),a}function Bt(e,t,n){var r=Xt(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;function c(e,l){e.__iterate(function(e,a){return(!t||l<t)&&Ge(e)?c(e,l+1):(o++,i(e,n?a:o-1,r)===!1&&(s=!0)),!s},a)}return c(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new yi(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===hi&&(c=c[1]),(!t||o.length<t)&&Ge(c))o.push(a),a=c.__iterator(r,i);else return n?e:$e(r,s++,c,e)}return et()})},r}function Vt(e,t,n){var r=Yt(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function Ht(e,t){var n=Xt(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(mi,r),a=0,o;return new yi(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?$e(n,a++,t):$e(n,a++,o.value,o)})},n}function Ut(e,t,n){t||=Qt;var r=Ke(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Si(a):qe(e)?Ci(a):wi(a)}function Wt(e,t,n){if(t||=Qt,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Gt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Gt(t,e,n)?n:e})}function Gt(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function Kt(e,t,n,r){var i=Xt(e),a=new Ti(n).map(function(e){return e.size});return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n=this.__iterator(mi,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=n.map(function(e){return e=oi(e),rt(i?e.reverse():e)}),o=0,s=!1;return new yi(function(){var n;return s||=(n=a.map(function(e){return e.next()}),r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?et():$e(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function qt(e,t){return e===t?e:Ye(e)?t:e.constructor(t)}function Jt(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function Yt(e){return Ke(e)?si:qe(e)?ci:li}function Xt(e){return Object.create((Ke(e)?Si:qe(e)?Ci:wi).prototype)}function Zt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):xi.prototype.cacheResult.call(this)}function Qt(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function $t(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function en(e,t){if(!e)throw Error(t)}function tn(e){en(e!==1/0,`Cannot perform this action with an infinite size.`)}function nn(e){if(st(e)&&typeof e!=`string`)return e;if(Qe(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function rn(e){if(!e||typeof e!=`object`||Ji.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function an(e){return typeof e==`object`&&(Ze(e)||Array.isArray(e)||rn(e))}function on(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function sn(e,t){return Ze(e)?e.has(t):an(e)&&bi.call(e,t)}function cn(e,t,n){return Ze(e)?e.get(t,n):sn(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function ln(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function un(e){if(Array.isArray(e))return $t(e);var t={};for(var n in e)ln(n)||bi.call(e,n)&&(t[n]=e[n]);return t}function dn(e,t){if(!an(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Ze(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!bi.call(e,t))return e;var n=un(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function fn(e,t,n){if(ln(t))return e;if(!an(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Ze(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}if(bi.call(e,t)&&n===e[t])return e;var r=un(e);return r[t]=n,r}function pn(e,t,n,r){r||(r=n,n=void 0);var i=mn(Ze(e),e,nn(t),0,n,r);return i===ni?n:i}function mn(e,t,n,r,i,a){var o=t===ni;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!an(t))throw TypeError(`Cannot update within non-data-structure value in path [`+n.slice(0,r).map(on)+`]: `+t);var l=n[r],u=o?ni:cn(t,l,ni),d=mn(u===ni?e:Ze(u),u,n,r+1,i,a);return d===u?t:d===ni?dn(t,l):fn(o?e?Wn():{}:t,l,d)}function hn(e,t,n){return pn(e,t,ni,function(){return n})}function gn(e,t){return hn(this,e,t)}function _n(e,t){return pn(e,t,function(){return ni})}function vn(e){return _n(this,e)}function yn(e,t,n,r){return pn(e,[t],n,r)}function bn(e,t,n){return arguments.length===1?e(this):yn(this,e,t,n)}function xn(e,t,n){return pn(this,e,t,n)}function Sn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return wn(this,e)}function Cn(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];if(typeof e!=`function`)throw TypeError(`Invalid merger function: `+e);return wn(this,t,e)}function wn(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=si(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){yn(e,r,ni,function(e){return e===ni?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function Tn(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return An(e,t)}function En(e,t){for(var n=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];return An(t,n,e)}function Dn(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return kn(e,t)}function On(e,t){for(var n=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];return kn(t,n,e)}function kn(e,t,n){return An(e,t,jn(n))}function An(e,t,n){if(!an(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(Ze(e))return typeof n==`function`&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?ci:si,o=r?function(t){i===e&&(i=un(i)),i.push(t)}:function(t,r){if(!ln(r)){var a=bi.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=un(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function jn(e){function t(n,r,i){return an(n)&&an(r)&&Mn(n,r)?An(n,[r],t):e?e(n,r,i):r}return t}function Mn(e,t){var n=xi(e),r=xi(t);return qe(n)===qe(r)&&Ke(n)===Ke(r)}function Nn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return kn(this,e)}function Pn(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return kn(this,t,e)}function Fn(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return pn(this,e,Wn(),function(e){return An(e,t)})}function In(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return pn(this,e,Wn(),function(e){return kn(e,t)})}function Ln(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Rn(){return this.__ownerID?this:this.__ensureOwner(new Ie)}function zn(){return this.__ensureOwner()}function Bn(){return this.__altered}function Vn(e,t){return $e(e,t[0],t[1])}function Hn(e,t){return{node:e,index:0,__prev:t}}function Un(e,t,n,r){var i=Object.create(Yi);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Wn(){return na||=Un(0)}function Gn(e,t,n){var r,i;if(e._root){var a=Pe(),o=Pe();if(r=Kn(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===ni?-1:1:0)}else{if(n===ni)return e;i=1,r=new Xi(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Un(i,r):Wn()}function Kn(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===ni?e:(Fe(s),Fe(o),new ea(t,r,[i,a]))}function qn(e){return e.constructor===ea||e.constructor===$i}function Jn(e,t,n,r,i){if(e.keyHash===r)return new $i(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&ti,o=(n===0?r:r>>>n)&ti,s,c=a===o?[Jn(e,t,n+$r,r,i)]:(s=new ea(t,r,i),a<o?[e,s]:[s,e]);return new Zi(t,1<<a|1<<o,c)}function Yn(e,t,n,r){e||=new Ie;for(var i=new ea(e,vt(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function Xn(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new Zi(e,i,o)}function Zn(e,t,n,r,i){for(var a=0,o=Array(ei),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new Qi(e,a+1,o)}function Qn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function $n(e,t,n,r){var i=r?e:$t(e);return i[t]=n,i}function er(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function tr(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}function nr(e){return!!(e&&e[sa])}function rr(e,t){var n=e._origin,r=e._capacity,i=fr(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>ei&&(l=ei),function(){if(c===l)return ua;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>ei&&(u=ei),function(){for(;;){if(s){var e=s();if(e!==ua)return e;s=null}if(l===u)return ua;var n=t?--u:l++;s=o(c&&c[n],i-$r,a+(n<<i))}}}}function ir(e,t,n,r,i,a,o){var s=Object.create(ca);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function ar(){return da||=ir(0,0,$r)}function or(e,t,n){if(t=Re(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?dr(e,t).set(0,n):dr(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=Pe();return t>=fr(e._capacity)?r=sr(r,e.__ownerID,0,t,n,a):i=sr(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ir(e._origin,e._capacity,e._level,i,r):e}function sr(e,t,n,r,i,a){var o=r>>>n&ti,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=sr(l,t,n-$r,r,i,a);return u===l?e:(c=cr(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&Fe(a),c=cr(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function cr(e,t){return t&&e&&t===e.ownerID?e:new la(e?e.array.slice():[],t)}function lr(e,t){if(t>=fr(e._capacity))return e._tail;if(t<1<<e._level+$r){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&ti],r-=$r;return n}}function ur(e,t,n){var r=e._origin+(t===void 0?0:t),i=n===void 0?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>fa||Number.isFinite(r)&&r<-fa||Number.isFinite(i)&&Number.isFinite(r)&&i-r>fa)throw RangeError(`Invalid List size: a List cannot hold more than `+fa+` (2 ** 30) values.`)}function dr(e,t,n){ur(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new Ie,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new la(l&&l.array.length?[void 0,l]:[],r),c+=$r,u+=pr(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=fr(a),f=fr(s);f>=pr(c+$r);)l=new la(l&&l.array.length?[l]:[],r),c+=$r;var p=e._tail,m=f<d?lr(e,s-1):f>d?new la([],r):p;if(p&&f>d&&o<a&&p.array.length){l=cr(l,r);for(var h=l,g=c;g>$r;g-=$r){var _=d>>>g&ti;h=h.array[_]=cr(h.array[_],r)}h.array[d>>>$r&ti]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=$r,l=null,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&ti;if(v!==f>>>c&ti)break;v&&(u+=(1<<c)*v),c-=$r,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):ir(o,s,c,l,m)}function fr(e){return e<ei?0:e-1>>>$r<<$r}function pr(e){return e<31?1<<e:2**e}function mr(e,t,n,r){var i=Object.create(pa.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function hr(){return ma||=mr(Wn(),ar())}function gr(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===ni){if(!o)return e;i.size>=ei&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e.__altered=!0,e):mr(s,c)}function _r(e){return!!(e&&e[ha])}function vr(e,t,n,r){var i=Object.create(_a);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function yr(){return va||=vr(0)}function br(e){return!!(e&&e[ya])}function xr(e){return br(e)&&Qe(e)}function Sr(e,t){if(e===t)return!0;if(!Ge(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Ke(e)!==Ke(t)||qe(e)!==qe(t)||Qe(e)!==Qe(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!Je(e);if(Qe(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&>(i[1],e)&&(n||gt(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0){if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}}var o=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!gt(t,e.get(r,ni)):!gt(e.get(r,ni),t))return o=!1,!1});return o&&e.size===s}function Cr(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function wr(e){if(!e||typeof e!=`object`)return e;if(!Ge(e)){if(!an(e))return e;e=xi(e)}if(Ke(e)){var t={};return e.__iterate(function(e,n){ln(n)||(t[n]=wr(e))}),t}var n=[];return e.__iterate(function(e){n.push(wr(e))}),n}function Tr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Er(e,t){var n=Object.create(xa);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Dr(){return Sa||=Er(Wn())}function Or(e,t,n){for(var r=nn(t),i=0;i!==r.length;)if(e=cn(e,r[i++],ni),e===ni)return n;return e}function kr(e,t){return Or(this,e,t)}function Ar(e,t){return Or(e,t,ni)!==ni}function jr(e){return Ar(this,e)}function Mr(){tn(this.size);var e={};return this.__iterate(function(t,n){ln(n)||(e[n]=t)}),e}function Nr(e,t,n,r,i,a){return tn(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function Pr(e,t){return t}function Fr(e,t){return[t,e]}function Ir(e){return function(){return!e.apply(this,arguments)}}function Lr(e){return function(){return-e.apply(this,arguments)}}function Rr(){return $t(arguments)}function zr(e,t){return e<t?1:e>t?-1:0}function Br(e){if(e.size===1/0)return 0;var t=Qe(e),n=Ke(e),r=+!!t;return Vr(e.__iterate(n?t?function(e,t){r=31*r+Hr(vt(e),vt(t))|0}:function(e,t){r=r+Hr(vt(e),vt(t))|0}:t?function(e){r=31*r+vt(e)|0}:function(e){r=r+vt(e)|0}),r)}function Vr(e,t){return t=Ai(t,3432918353),t=Ai(t<<15|t>>>-15,461845907),t=Ai(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ai(t^t>>>16,2246822507),t=Ai(t^t>>>13,3266489909),t=_t(t^t>>>16),t}function Hr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function Ur(e,t){var n=Object.create(Aa);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Wr(){return ja||=Ur(hr())}function Gr(e){if(Xe(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ze(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(typeof e!=`object`||!e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}function Kr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function qr(e){return e.constructor.displayName||e.constructor.name||`Record`}function Jr(e){return lt(e._keys.map(function(t){return[t,e.get(t)]}))}function Yr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){en(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function z(e,t){return Xr([],t||Zr,e,``,t&&t.length>2?[]:void 0,{"":e})}function Xr(e,t,n,r,i,a){if(typeof n!=`string`&&!Ze(n)&&(st(n)||tt(n)||rn(n))){if(~e.indexOf(n))throw TypeError(`Cannot convert circular structure to Immutable`);e.push(n),i&&r!==``&&i.push(r);var o=t.call(a,r,xi(n).map(function(r,a){return Xr(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function Zr(e,t){return qe(t)?t.toList():Ke(t)?t.toMap():t.toSet()}var Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,B,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,V,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba=n((()=>{Qr=`delete`,$r=5,ei=1<<$r,ti=ei-1,ni={},ri=`@@__IMMUTABLE_ITERABLE__@@`,ii=`@@__IMMUTABLE_KEYED__@@`,ai=`@@__IMMUTABLE_INDEXED__@@`,oi=function(e){return Ge(e)?e:xi(e)},si=function(e){function t(e){return Ke(e)?e:Si(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(oi),ci=function(e){function t(e){return qe(e)?e:Ci(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(oi),li=function(e){function t(e){return Ge(e)&&!Je(e)?e:wi(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(oi),oi.Keyed=si,oi.Indexed=ci,oi.Set=li,ui=`@@__IMMUTABLE_SEQ__@@`,di=`@@__IMMUTABLE_RECORD__@@`,fi=`@@__IMMUTABLE_ORDERED__@@`,pi=0,mi=1,hi=2,gi=typeof Symbol==`function`&&Symbol.iterator,_i=`@@iterator`,vi=gi||_i,yi=function(e){this.next=e},yi.prototype.toString=function(){return`[Iterator]`},yi.KEYS=pi,yi.VALUES=mi,yi.ENTRIES=hi,yi.prototype.inspect=yi.prototype.toSource=function(){return this.toString()},yi.prototype[vi]=function(){return this},bi=Object.prototype.hasOwnProperty,xi=function(e){function t(e){return e==null?ct():Ze(e)?e.toSeq():dt(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(e(a[1],a[0],this)===!1)break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new yi(function(){if(i===r)return et();var a=n[t?r-++i:i++];return $e(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(oi),Si=function(e){function t(e){return e==null?ct().toKeyedSeq():Ge(e)?Ke(e)?e.toSeq():e.fromEntrySeq():Xe(e)?e.toSeq():lt(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(xi),Ci=function(e){function t(e){return e==null?ct():Ge(e)?Ke(e)?e.entrySeq():e.toIndexedSeq():Xe(e)?e.toSeq().entrySeq():ut(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},t}(xi),wi=function(e){function t(e){return(Ge(e)&&!Je(e)?e:Ci(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(xi),xi.isSeq=Ye,xi.Keyed=Si,xi.Set=wi,xi.Indexed=Ci,xi.prototype[ui]=!0,Ti=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[Re(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(e(n[a],a,this)===!1)break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new yi(function(){if(i===r)return et();var a=t?r-++i:i++;return $e(e,a,n[a])})},t}(Ci),Ei=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},t.prototype.has=function(e){return bi.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(e(n[o],o,this)===!1)break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new yi(function(){if(a===i)return et();var o=r[t?i-++a:a++];return $e(e,o,n[o])})},t}(Si),Ei.prototype[fi]=!0,Di=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._collection,r=rt(n),i=0;if(nt(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._collection,r=rt(n);if(!nt(r))return new yi(et);var i=0;return new yi(function(){var t=r.next();return t.done?t:$e(e,i++,t.value)})},t}(Ci),ki=`@@__IMMUTABLE_MAP__@@`,Ai=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ji=Object.prototype.valueOf,Mi=(Math.random()*1048576|1)%1048576||40503,Ni=Object.isExtensible,Pi=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),Fi=typeof WeakMap==`function`,Fi&&(Ii=new WeakMap),Li=Object.create(null),Ri=0,zi=`__immutablehash__`,typeof Symbol==`function`&&(zi=Symbol(zi)),Bi=16,Vi=255,Hi=0,Ui={},Wi=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=jt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=At(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Si),Wi.prototype[fi]=!0,Gi=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&Le(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(mi,t),i=0;return t&&Le(this),new yi(function(){var a=r.next();return a.done?a:$e(e,t?n.size-++i:i++,a.value,a)})},t}(Ci),Ki=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(mi,t);return new yi(function(){var t=n.next();return t.done?t:$e(e,t.value,t.value,t)})},t}(wi),qi=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Jt(t);var r=Ge(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(mi,t);return new yi(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Jt(r);var i=Ge(r);return $e(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Si),Gi.prototype.cacheResult=Wi.prototype.cacheResult=Ki.prototype.cacheResult=qi.prototype.cacheResult=Zt,Ji=Object.prototype.toString,B=function(e){function t(t){return t==null?Wn():pt(t)&&!Qe(t)?t:Wn().withMutations(function(n){var r=e(t);tn(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Wn().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw Error(`Missing value for key: `+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString(`Map {`,`}`)},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Gn(this,e,t)},t.prototype.remove=function(e){return Gn(this,e,ni)},t.prototype.deleteAll=function(e){var t=oi(e);return t.size===0?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wn()},t.prototype.sort=function(e){return pa(Ut(this,e))},t.prototype.sortBy=function(e,t){return pa(Ut(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new ta(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Un(this.size,this._root,e,this.__hash):this.size===0?Wn():(this.__ownerID=e,this.__altered=!1,this)},t}(si),B.isMap=pt,Yi=B.prototype,Yi[ki]=!0,Yi[Qr]=Yi.remove,Yi.removeAll=Yi.deleteAll,Yi.setIn=gn,Yi.removeIn=Yi.deleteIn=vn,Yi.update=bn,Yi.updateIn=xn,Yi.merge=Yi.concat=Sn,Yi.mergeWith=Cn,Yi.mergeDeep=Nn,Yi.mergeDeepWith=Pn,Yi.mergeIn=Fn,Yi.mergeDeepIn=In,Yi.withMutations=Ln,Yi.wasAltered=Bn,Yi.asImmutable=zn,Yi[`@@transducer/init`]=Yi.asMutable=Rn,Yi[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},Yi[`@@transducer/result`]=function(e){return e.asImmutable()},Xi=function(e,t){this.ownerID=e,this.entries=t},Xi.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(gt(n,i[a][0]))return i[a][1];return r},Xi.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===ni,c=this.entries,l=0,u=c.length;l<u&&!gt(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(Fe(o),(s||!d)&&Fe(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=ra)return Yn(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:$t(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Xi(e,p)}},Zi=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},Zi.prototype.get=function(e,t,n,r){t===void 0&&(t=vt(n));var i=1<<((e===0?t:t>>>e)&ti),a=this.bitmap;return(a&i)===0?r:this.nodes[Qn(a&i-1)].get(e+$r,t,n,r)},Zi.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=vt(r));var s=(t===0?n:n>>>t)&ti,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===ni)return this;var d=Qn(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=Kn(p,e,t+$r,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=ia)return Zn(e,f,l,s,m);if(u&&!m&&f.length===2&&qn(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&qn(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?$n(f,d,m,h):tr(f,d,h):er(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new Zi(e,g,_)},Qi=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},Qi.prototype.get=function(e,t,n,r){t===void 0&&(t=vt(n));var i=(e===0?t:t>>>e)&ti,a=this.nodes[i];return a?a.get(e+$r,t,n,r):r},Qi.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=vt(r));var s=(t===0?n:n>>>t)&ti,c=i===ni,l=this.nodes,u=l[s];if(c&&!u)return this;var d=Kn(u,e,t+$r,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<aa))return Xn(e,l,f,s);var p=e&&e===this.ownerID,m=$n(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new Qi(e,f,m)},$i=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},$i.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=oa&&(r=this._buildIndex()),r!==void 0){var i=r[Ct(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(gt(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(gt(e,n[s][0]))return s;return-1},$i.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=Ct(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},$i.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},$i.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=vt(r));var s=i===ni;if(n!==this.keyHash)return s?this:(Fe(o),Fe(a),Jn(this,e,t,n,[r,i]));var c=this.entries,l=c.length,u=e&&e===this.ownerID,d=this._positionOf(r,u),f=d===-1?l:d,p=d!==-1;if(p?c[f][1]===i:s)return this;if(Fe(o),(s||!p)&&Fe(a),s&&l===2)return new ea(e,this.keyHash,c[f^1]);var m=u?c:$t(c);if(p)s?(f===l-1?m.pop():m[f]=m.pop(),u&&(this._index=void 0)):m[f]=[r,i];else if(m.push([r,i]),u&&this._index!==void 0){var h=Ct(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new $i(e,this.keyHash,m)},ea=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},ea.prototype.get=function(e,t,n,r){return gt(n,this.entry[0])?this.entry[1]:r},ea.prototype.update=function(e,t,n,r,i,a,o){var s=i===ni,c=gt(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(Fe(o),s){Fe(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new ea(e,this.keyHash,[r,i]):(Fe(a),Jn(this,e,t,vt(r),[r,i]))},Xi.prototype.iterate=$i.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},Zi.prototype.iterate=Qi.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},ea.prototype.iterate=function(e,t){return e(this.entry)},ta=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Hn(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(r===0)return Vn(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return Vn(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return Vn(e,a.entry);t=this._stack=Hn(a,t)}continue}t=this._stack=this._stack.__prev}return et()},t}(yi),ra=ei/4,ia=ei/2,aa=ei/4,oa=16,sa=`@@__IMMUTABLE_LIST__@@`,V=function(e){function t(t){var n=ar();if(t==null)return n;if(nr(t))return t;var r=e(t),i=r.size;return i===0?n:(tn(i),i>0&&i<ei?ir(0,i,$r,null,new la(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`List [`,`]`)},t.prototype.get=function(e,t){if(e=Re(this,e),e>=0&&e<this.size){e+=this._origin;var n=lr(this,e);return n&&n.array[e&ti]}return t},t.prototype.set=function(e,t){return or(this,e,t)},t.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=$r,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):ar()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){dr(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return dr(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){dr(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return dr(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e(typeof i!=`string`&&tt(i)?i:[i]);a.size!==0&&n.push(a)}return n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})})},t.prototype.setSize=function(e){return dr(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return Be(e,t,n)?this:dr(this,Ve(e,n),He(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=rr(this,t);return new yi(function(){var i=r();return i===ua?et():$e(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=rr(this,t),i;(i=r())!==ua&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ir(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?ar():(this.__ownerID=e,this.__altered=!1,this)},t}(ci),V.isList=nr,ca=V.prototype,ca[sa]=!0,ca[Qr]=ca.remove,ca.merge=ca.concat,ca.setIn=gn,ca.deleteIn=ca.removeIn=vn,ca.update=bn,ca.updateIn=xn,ca.mergeIn=Fn,ca.mergeDeepIn=In,ca.withMutations=Ln,ca.wasAltered=Bn,ca.asImmutable=zn,ca[`@@transducer/init`]=ca.asMutable=Rn,ca[`@@transducer/step`]=function(e,t){return e.push(t)},ca[`@@transducer/result`]=function(e){return e.asImmutable()},la=function(e,t){this.array=e,this.ownerID=t},la.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:this.array.length===0)return this;var r=n>>>t&ti;if(r>=this.array.length)return new la([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-$r,n),a===o&&i)return this}if(i&&!a)return this;var s=cr(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},la.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0)return this;var r=n-1>>>t&ti;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-$r,n),i===a&&r===this.array.length-1)return this}var o=cr(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},ua={},fa=2**30,pa=function(e){function t(e){return e==null?hr():mt(e)?e:hr().withMutations(function(t){var n=si(e);tn(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},t.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):hr()},t.prototype.set=function(e,t){return gr(this,e,t)},t.prototype.remove=function(e){return gr(this,e,ni)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?mr(t,n,e,this.__hash):this.size===0?hr():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(B),pa.isOrderedMap=mt,pa.prototype[fi]=!0,pa.prototype[Qr]=pa.prototype.remove,ha=`@@__IMMUTABLE_STACK__@@`,ga=function(e){function t(e){return e==null?yr():_r(e)?e:yr().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},t.prototype.get=function(e,t){var n=this._head;for(e=Re(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(arguments.length===0)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):vr(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&_r(t))return t;tn(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):vr(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):yr()},t.prototype.slice=function(t,n){if(Be(t,n,this.size))return this;var r=Ve(t,this.size);if(He(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):vr(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vr(this.size,this._head,e,this.__hash):this.size===0?yr():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Ti(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&e(i.value,r++,this)!==!1;)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Ti(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new yi(function(){if(r){var t=r.value;return r=r.next,$e(e,n++,t)}return et()})},t}(ci),ga.isStack=_r,_a=ga.prototype,_a[ha]=!0,_a.shift=_a.pop,_a.unshift=_a.push,_a.unshiftAll=_a.pushAll,_a.withMutations=Ln,_a.wasAltered=Bn,_a.asImmutable=zn,_a[`@@transducer/init`]=_a.asMutable=Rn,_a[`@@transducer/step`]=function(e,t){return e.unshift(t)},_a[`@@transducer/result`]=function(e){return e.asImmutable()},ya=`@@__IMMUTABLE_SET__@@`,ba=function(e){function t(t){return t==null?Dr():br(t)&&!Qe(t)?t:Dr().withMutations(function(n){var r=e(t);tn(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(si(e).keySeq())},t.intersect=function(e){return e=oi(e).toArray(),e.length?xa.intersect.apply(t(e.pop()),e):Dr()},t.union=function(e){return e=oi(e).toArray(),e.length?xa.union.apply(t(e.pop()),e):Dr()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Tr(this,this._map.set(e,e))},t.prototype.remove=function(e){return Tr(this,this._map.remove(e))},t.prototype.clear=function(){return Tr(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Tr(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(n){for(var r=0;r<t.length;r++)typeof t[r]==`string`?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})})},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return ka(Ut(this,e))},t.prototype.sortBy=function(e,t){return ka(Ut(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):this.size===0?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(li),ba.isSet=br,xa=ba.prototype,xa[ya]=!0,xa[Qr]=xa.remove,xa.merge=xa.concat=xa.union,xa.withMutations=Ln,xa.asImmutable=zn,xa[`@@transducer/init`]=xa.asMutable=Rn,xa[`@@transducer/step`]=function(e,t){return e.add(t)},xa[`@@transducer/result`]=function(e){return e.asImmutable()},xa.__empty=Dr,xa.__make=Er,Ca=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(en(r!==0,`Cannot step a Range by 0`),e||=0,n===void 0&&(n=1/0),r=r===void 0?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),this.size===0){if(wa)return wa;wa=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},t.prototype.get=function(e,t){return this.has(e)?this._start+Re(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return Be(e,n,this.size)?this:(e=Ve(e,this.size),n=He(n,this.size),n<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&e(i,t?n-++a:a++,this)!==!1;)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new yi(function(){if(a===n)return et();var o=i;return i+=t?-r:r,$e(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Sr(this,e)},t}(Ci),oi.isIterable=Ge,oi.isKeyed=Ke,oi.isIndexed=qe,oi.isAssociative=Je,oi.isOrdered=Qe,oi.Iterator=yi,Cr(oi,{toArray:function(){tn(this.size);var e=Array(this.size||0),t=Ke(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new Gi(this)},toJS:function(){return wr(this)},toKeyedSeq:function(){return new Wi(this,!0)},toMap:function(){return B(this.toKeyedSeq())},toObject:Mr,toOrderedMap:function(){return pa(this.toKeyedSeq())},toOrderedSet:function(){return ka(Ke(this)?this.valueSeq():this)},toSet:function(){return ba(Ke(this)?this.valueSeq():this)},toSetSeq:function(){return new Ki(this)},toSeq:function(){return qe(this)?this.toIndexedSeq():Ke(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ga(Ke(this)?this.valueSeq():this)},toList:function(){return V(Ke(this)?this.valueSeq():this)},toString:function(){return`[Collection]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qt(this,zt(this,e))},includes:function(e){return this.some(function(t){return gt(t,e)})},entries:function(){return this.__iterator(hi)},every:function(e,t){tn(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return qt(this,Mt(this,e,t,!0))},partition:function(e,t){return Ft(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tn(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tn(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(pi)},map:function(e,t){return qt(this,At(this,e,t))},reduce:function(e,t,n){return Nr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Nr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return qt(this,jt(this,!0))},slice:function(e,t){return qt(this,It(this,e,t,!0))},some:function(e,t){tn(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return qt(this,Ut(this,e))},values:function(){return this.__iterator(mi)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return Le(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return Nt(this,e,t)},equals:function(e){return Sr(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Ti(e._cache);var t=e.toSeq().map(Fr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ir(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(ze,null,e)},flatMap:function(e,t){return qt(this,Vt(this,e,t))},flatten:function(e){return qt(this,Bt(this,e,!0))},fromEntrySeq:function(){return new qi(this)},get:function(e,t){return this.find(function(t,n){return gt(n,e)},void 0,t)},getIn:kr,groupBy:function(e,t){return Pt(this,e,t)},has:function(e){return this.get(e,ni)!==ni},hasIn:jr,isSubset:function(e){return e=typeof e.includes==`function`?e:oi(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:oi(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return gt(t,e)})},keySeq:function(){return this.toSeq().map(Pr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Wt(this,e)},maxBy:function(e,t){return Wt(this,t,e)},min:function(e){return Wt(this,e?Lr(e):zr)},minBy:function(e,t){return Wt(this,t?Lr(t):zr,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return qt(this,Rt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ir(e),t)},sortBy:function(e,t){return qt(this,Ut(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return qt(this,Lt(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ir(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=Br(this)}}),Ta=oi.prototype,Ta[ri]=!0,Ta[vi]=Ta.values,Ta.toJSON=Ta.toArray,Ta.__toStringMapper=on,Ta.inspect=Ta.toSource=function(){return this.toString()},Ta.chain=Ta.flatMap,Ta.contains=Ta.includes,Cr(si,{flip:function(){return qt(this,kt(this))},mapEntries:function(e,t){var n=this,r=0;return qt(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),Ea=si.prototype,Ea[ii]=!0,Ea[vi]=Ta.entries,Ea.toJSON=Mr,Ea.__toStringMapper=function(e,t){return on(t)+`: `+on(e)},Cr(ci,{toKeyedSeq:function(){return new Wi(this,!1)},filter:function(e,t){return qt(this,Mt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return qt(this,jt(this,!1))},slice:function(e,t){return qt(this,It(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),n===0||n===2&&!t)return this;e=Ve(e,e<0?this.count():this.size);var r=this.slice(0,e);return qt(this,n===1?r:r.concat($t(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return qt(this,Bt(this,e,!1))},get:function(e,t){return e=Re(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=Re(this,e),e>=0&&(this.size===void 0?this.indexOf(e)!==-1:this.size===1/0||e<this.size)},interpose:function(e){return qt(this,Ht(this,e))},interleave:function(){var e=[this].concat($t(arguments)),t=Kt(this.toSeq(),Ci.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),qt(this,n)},keySeq:function(){return Ca(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return qt(this,Rt(this,e,t,!1))},zip:function(){var e=[this].concat($t(arguments));return qt(this,Kt(this,Rr,e))},zipAll:function(){var e=[this].concat($t(arguments));return qt(this,Kt(this,Rr,e,!0))},zipWith:function(e){var t=$t(arguments);return t[0]=this,qt(this,Kt(this,e,t))}}),Da=ci.prototype,Da[ai]=!0,Da[fi]=!0,Cr(li,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),Oa=li.prototype,Oa.has=Ta.includes,Oa.contains=Oa.includes,Oa.keys=Oa.values,Cr(Si,Ea),Cr(Ci,Da),Cr(wi,Oa),ka=function(e){function t(e){return e==null?Wr():xr(e)?e:Wr().withMutations(function(t){var n=li(e);tn(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(si(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(ba),ka.isOrderedSet=xr,Aa=ka.prototype,Aa[fi]=!0,Aa.zip=Da.zip,Aa.zipWith=Da.zipWith,Aa.zipAll=Da.zipAll,Aa.__empty=Wr,Aa.__make=Ur,Ma={LeftThenRight:-1,RightThenLeft:1},Na=function(e,t){var n;Gr(e);var r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,i[u]?typeof console==`object`&&console.warn&&console.warn(`Cannot define `+qr(this)+` with property "`+u+`" since that property name is part of the Record API.`):Yr(i,u)}}return this.__ownerID=void 0,this._values=V().withMutations(function(e){e.setSize(o._keys.length),si(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(Pa);return i.constructor=r,t&&(r.displayName=t),r},Na.prototype.toString=function(){for(var e=qr(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+on(this.get(n));return e+` }`},Na.prototype.equals=function(e){return this===e||Xe(e)&&Jr(this).equals(Jr(e))},Na.prototype.hashCode=function(){return Jr(this).hashCode()},Na.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Na.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return r===void 0?this._defaultValues[e]:r},Na.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return Kr(this,n)}return this},Na.prototype.remove=function(e){return this.set(e)},Na.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Kr(this,e)},Na.prototype.wasAltered=function(){return this._values.wasAltered()},Na.prototype.toSeq=function(){return Jr(this)},Na.prototype.toJS=function(){return wr(this)},Na.prototype.entries=function(){return this.__iterator(hi)},Na.prototype.__iterator=function(e,t){return Jr(this).__iterator(e,t)},Na.prototype.__iterate=function(e,t){return Jr(this).__iterate(e,t)},Na.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?Kr(this,t,e):(this.__ownerID=e,this._values=t,this)},Na.isRecord=Xe,Na.getDescriptiveName=qr,Pa=Na.prototype,Pa[di]=!0,Pa[Qr]=Pa.remove,Pa.deleteIn=Pa.removeIn=vn,Pa.getIn=kr,Pa.hasIn=Ta.hasIn,Pa.merge=Sn,Pa.mergeWith=Cn,Pa.mergeIn=Fn,Pa.mergeDeep=Nn,Pa.mergeDeepWith=Pn,Pa.mergeDeepIn=In,Pa.setIn=gn,Pa.update=bn,Pa.updateIn=xn,Pa.withMutations=Ln,Pa.asMutable=Rn,Pa.asImmutable=zn,Pa[vi]=Pa.entries,Pa.toJSON=Pa.toObject=Ta.toObject,Pa.inspect=Pa.toSource=function(){return this.toString()},Fa=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(Ia)return Ia;Ia=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?`Repeat []`:`Repeat [ `+this._value+` `+this.size+` times ]`},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return gt(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Be(e,n,r)?this:new t(this._value,He(n,r)-Ve(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return gt(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return gt(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&e(this._value,t?n-++r:r++,this)!==!1;);return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new yi(function(){return i===r?et():$e(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?gt(this._value,e._value):Sr(this,e)},t}(Ci),La=`4.3.9`,Ra={version:La,Collection:oi,Iterable:oi,Seq:xi,Map:B,OrderedMap:pa,List:V,Stack:ga,Set:ba,OrderedSet:ka,PairSorting:Ma,Record:Na,Range:Ca,Repeat:Fa,is:gt,fromJS:z,hash:vt,isImmutable:Ze,isCollection:Ge,isKeyed:Ke,isIndexed:qe,isAssociative:Je,isOrdered:Qe,isValueObject:ht,isPlainObject:rn,isSeq:Ye,isList:nr,isMap:pt,isOrderedMap:mt,isStack:_r,isSet:br,isOrderedSet:xr,isRecord:Xe,get:cn,getIn:Or,has:sn,hasIn:Ar,merge:Tn,mergeDeep:Dn,mergeWith:En,mergeDeepWith:On,remove:dn,removeIn:_n,set:fn,setIn:hn,update:yn,updateIn:pn},za=oi})),Va=i(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e&&e.type===`@@redux/INIT`?`initialState argument passed to createStore`:`previous state received by the reducer`},t.exports=e.default})),Ha=i(((e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=a((Ba(),t(Ne))),i=a(Va());function a(e){return e&&e.__esModule?e:{default:e}}e.default=function(e,t,n){var a=Object.keys(t);if(!a.length)return`Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.`;var o=(0,i.default)(n);if(r.default.isImmutable?!r.default.isImmutable(e):!r.default.Iterable.isIterable(e))return`The `+o+` is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "`+a.join(`", "`)+`".`;var s=e.toSeq().keySeq().toArray().filter(function(e){return!t.hasOwnProperty(e)});return s.length>0?`Unexpected `+(s.length===1?`property`:`properties`)+` "`+s.join(`", "`)+`" found in `+o+`. Expected to find one of the known reducer property names instead: "`+a.join(`", "`)+`". Unexpected properties will be ignored.`:null},n.exports=e.default})),Ua=i(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){if(e===void 0)throw Error(`Reducer "`+t+`" returned undefined when handling "`+n.type+`" action. To ignore an action, you must explicitly return the previous state.`)},t.exports=e.default})),Wa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateNextState=e.getUnexpectedInvocationParameterMessage=e.getStateName=void 0;var t=i(Va()),n=i(Ha()),r=i(Ua());function i(e){return e&&e.__esModule?e:{default:e}}e.getStateName=t.default,e.getUnexpectedInvocationParameterMessage=n.default,e.validateNextState=r.default})),Ga=i(((e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=a((Ba(),t(Ne))),i=Wa();function a(e){return e&&e.__esModule?e:{default:e}}e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.default.Map,n=Object.keys(e);return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t(),a=arguments[1];return r.withMutations(function(t){n.forEach(function(n){var r=e[n],o=r(t.get(n),a);(0,i.validateNextState)(o,n,a),t.set(n,o)})})}},n.exports=e.default})),Ka=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.combineReducers=void 0;var t=n(Ga());function n(e){return e&&e.__esModule?e:{default:e}}e.combineReducers=t.default})),qa=i(((e,t)=>{var n=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:`NonError`,configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},r=[{property:`name`,enumerable:!1},{property:`message`,enumerable:!1},{property:`stack`,enumerable:!1},{property:`code`,enumerable:!0}],i=Symbol(`.toJSON called`),a=e=>{e[i]=!0;let t=e.toJSON();return delete e[i],t},o=({from:e,seen:t,to_:n,forceEnumerable:s,maxDepth:c,depth:l})=>{let u=n||(Array.isArray(e)?[]:{});if(t.push(e),l>=c)return u;if(typeof e.toJSON==`function`&&e[i]!==!0)return a(e);for(let[n,r]of Object.entries(e)){if(typeof Buffer==`function`&&Buffer.isBuffer(r)){u[n]=`[object Buffer]`;continue}if(typeof r!=`function`){if(!r||typeof r!=`object`){u[n]=r;continue}if(!t.includes(e[n])){l++,u[n]=o({from:e[n],seen:t.slice(),forceEnumerable:s,maxDepth:c,depth:l});continue}u[n]=`[Circular]`}}for(let{property:t,enumerable:n}of r)typeof e[t]==`string`&&Object.defineProperty(u,t,{value:e[t],enumerable:s?!0:n,configurable:!0,writable:!0});return u};t.exports={serializeError:(e,t={})=>{let{maxDepth:n=1/0}=t;return typeof e==`object`&&e?o({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e==`function`?`[Function: ${e.name||`anonymous`}]`:e},deserializeError:(e,t={})=>{let{maxDepth:r=1/0}=t;if(e instanceof Error)return e;if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Error();return o({from:e,seen:[],to_:t,maxDepth:r,depth:0}),t}return new n(e)}}})),Ja=i(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ya=i(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Xa=i(((e,t)=>{var n=Ya();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Za=i(((e,t)=>{var n=Xa(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Qa=i(((e,t)=>{var n=Xa();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),$a=i(((e,t)=>{var n=Xa();function r(e){return n(this.__data__,e)>-1}t.exports=r})),eo=i(((e,t)=>{var n=Xa();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),to=i(((e,t)=>{var n=Ja(),r=Za(),i=Qa(),a=$a(),o=eo();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),no=i(((e,t)=>{var n=to();function r(){this.__data__=new n,this.size=0}t.exports=r})),ro=i(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),io=i(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),ao=i(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),oo=i(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),so=i(((e,t)=>{var n=oo(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),co=i(((e,t)=>{t.exports=so().Symbol})),lo=i(((e,t)=>{var n=co(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),uo=i(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),fo=i(((e,t)=>{var n=co(),r=lo(),i=uo(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),po=i(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),mo=i(((e,t)=>{var n=fo(),r=po(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),ho=i(((e,t)=>{t.exports=so()[`__core-js_shared__`]})),go=i(((e,t)=>{var n=ho(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),_o=i(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),vo=i(((e,t)=>{var n=mo(),r=go(),i=po(),a=_o(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),yo=i(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),bo=i(((e,t)=>{var n=vo(),r=yo();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),xo=i(((e,t)=>{t.exports=bo()(so(),`Map`)})),So=i(((e,t)=>{t.exports=bo()(Object,`create`)})),Co=i(((e,t)=>{var n=So();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),wo=i(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),To=i(((e,t)=>{var n=So(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Eo=i(((e,t)=>{var n=So(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Do=i(((e,t)=>{var n=So(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Oo=i(((e,t)=>{var n=Co(),r=wo(),i=To(),a=Eo(),o=Do();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ko=i(((e,t)=>{var n=Oo(),r=to(),i=xo();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Ao=i(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),jo=i(((e,t)=>{var n=Ao();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Mo=i(((e,t)=>{var n=jo();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),No=i(((e,t)=>{var n=jo();function r(e){return n(this,e).get(e)}t.exports=r})),Po=i(((e,t)=>{var n=jo();function r(e){return n(this,e).has(e)}t.exports=r})),Fo=i(((e,t)=>{var n=jo();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Io=i(((e,t)=>{var n=ko(),r=Mo(),i=No(),a=Po(),o=Fo();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Lo=i(((e,t)=>{var n=to(),r=xo(),i=Io(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Ro=i(((e,t)=>{var n=to(),r=no(),i=ro(),a=io(),o=ao(),s=Lo();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),zo=i(((e,t)=>{var n=bo();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),Bo=i(((e,t)=>{var n=zo();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Vo=i(((e,t)=>{var n=Bo(),r=Ya();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),Ho=i(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),Uo=i(((e,t)=>{t.exports=Ho()()})),Wo=i(((e,t)=>{var n=so(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),Go=i(((e,t)=>{t.exports=so().Uint8Array})),Ko=i(((e,t)=>{var n=Go();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),qo=i(((e,t)=>{var n=Ko();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),Jo=i(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),Yo=i(((e,t)=>{var n=po(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),Xo=i(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Zo=i(((e,t)=>{t.exports=Xo()(Object.getPrototypeOf,Object)})),Qo=i(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),$o=i(((e,t)=>{var n=Yo(),r=Zo(),i=Qo();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),es=i(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),ts=i(((e,t)=>{var n=fo(),r=es(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),ns=i(((e,t)=>{var n=ts(),r=es(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),rs=i(((e,t)=>{t.exports=Array.isArray})),is=i(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),as=i(((e,t)=>{var n=mo(),r=is();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),os=i(((e,t)=>{var n=as(),r=es();function i(e){return r(e)&&n(e)}t.exports=i})),ss=i(((e,t)=>{function n(){return!1}t.exports=n})),cs=i(((e,t)=>{var n=so(),r=ss(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),ls=i(((e,t)=>{var n=fo(),r=Zo(),i=es(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),us=i(((e,t)=>{var n=fo(),r=is(),i=es(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),ds=i(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),fs=i(((e,t)=>{var n=oo(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),ps=i(((e,t)=>{var n=us(),r=ds(),i=fs(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),ms=i(((e,t)=>{function n(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),hs=i(((e,t)=>{var n=Bo(),r=Ya(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),gs=i(((e,t)=>{var n=hs(),r=Bo();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),_s=i(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),vs=i(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),ys=i(((e,t)=>{var n=_s(),r=ns(),i=rs(),a=cs(),o=vs(),s=ps(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),bs=i(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),xs=i(((e,t)=>{var n=po(),r=Qo(),i=bs(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),Ss=i(((e,t)=>{var n=ys(),r=xs(),i=as();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),Cs=i(((e,t)=>{var n=gs(),r=Ss();function i(e){return n(e,r(e))}t.exports=i})),ws=i(((e,t)=>{var n=Vo(),r=Wo(),i=qo(),a=Jo(),o=$o(),s=ns(),c=rs(),l=os(),u=cs(),d=mo(),f=po(),p=ls(),m=ps(),h=ms(),g=Cs();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),Ts=i(((e,t)=>{var n=Ro(),r=Vo(),i=Uo(),a=ws(),o=po(),s=Ss(),c=ms();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),Es=i(((e,t)=>{function n(e){return e}t.exports=n})),Ds=i(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),Os=i(((e,t)=>{var n=Ds(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),ks=i(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),As=i(((e,t)=>{var n=ks(),r=zo(),i=Es();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),js=i(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),Ms=i(((e,t)=>{var n=As();t.exports=js()(n)})),Ns=i(((e,t)=>{var n=Es(),r=Os(),i=Ms();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Ps=i(((e,t)=>{var n=Ya(),r=as(),i=vs(),a=po();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),Fs=i(((e,t)=>{var n=Ns(),r=Ps();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),Is=i(((e,t)=>{var n=Ts();t.exports=Fs()(function(e,t,r){n(e,t,r)})})),Ls=i(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Rs=i(((e,t)=>{var n=fo(),r=es(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),zs=i(((e,t)=>{var n=co(),r=Ls(),i=rs(),a=Rs(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Bs=i(((e,t)=>{var n=zs();function r(e){return e==null?``:n(e)}t.exports=r})),Vs=i(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),Hs=i(((e,t)=>{var n=Vs();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Us=i(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Ws=i(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),Gs=i(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),Ks=i(((e,t)=>{var n=Ws(),r=Us(),i=Gs();function a(e){return r(e)?i(e):n(e)}t.exports=a})),qs=i(((e,t)=>{var n=Hs(),r=Us(),i=Ks(),a=Bs();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),Js=i(((e,t)=>{t.exports=qs()(`toUpperCase`)})),Ys=i(((e,t)=>{var n=Bs(),r=Js();function i(e){return r(n(e).toLowerCase())}t.exports=i})),Xs=i(((e,t)=>{function n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}t.exports=n})),Zs=i(((e,t)=>{function n(e){return function(t){return e?.[t]}}t.exports=n})),Qs=i(((e,t)=>{t.exports=Zs()({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`})})),$s=i(((e,t)=>{var n=Qs(),r=Bs(),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function o(e){return e=r(e),e&&e.replace(i,n).replace(a,``)}t.exports=o})),ec=i(((e,t)=>{var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r(e){return e.match(n)||[]}t.exports=r})),tc=i(((e,t)=>{var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function r(e){return n.test(e)}t.exports=r})),nc=i(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\u2700-\\u27bf`,a=`a-z\\xdf-\\xf6\\xf8-\\xff`,o=`\\xac\\xb1\\xd7\\xf7`,s=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,c=`\\u2000-\\u206f`,l=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,u=`A-Z\\xc0-\\xd6\\xd8-\\xde`,d=`\\ufe0e\\ufe0f`,f=o+s+c+l,p=`['’]`,m=`[`+f+`]`,h=`[`+r+`]`,g=`\\d+`,_=`[`+i+`]`,v=`[`+a+`]`,y=`[^`+n+f+g+i+a+u+`]`,b=`(?:`+h+`|\\ud83c[\\udffb-\\udfff])`,x=`[^`+n+`]`,S=`(?:\\ud83c[\\udde6-\\uddff]){2}`,C=`[\\ud800-\\udbff][\\udc00-\\udfff]`,w=`[`+u+`]`,T=`\\u200d`,E=`(?:`+v+`|`+y+`)`,D=`(?:`+w+`|`+y+`)`,O=`(?:`+p+`(?:d|ll|m|re|s|t|ve))?`,k=`(?:`+p+`(?:D|LL|M|RE|S|T|VE))?`,A=b+`?`,j=`[`+d+`]?`,M=`(?:`+T+`(?:`+[x,S,C].join(`|`)+`)`+j+A+`)*`,N=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,P=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,ee=j+A+M,te=`(?:`+[_,S,C].join(`|`)+`)`+ee,F=RegExp([w+`?`+v+`+`+O+`(?=`+[m,w,`$`].join(`|`)+`)`,D+`+`+k+`(?=`+[m,w+E,`$`].join(`|`)+`)`,w+`?`+E+`+`+O,w+`+`+k,P,N,g,te].join(`|`),`g`);function I(e){return e.match(F)||[]}t.exports=I})),rc=i(((e,t)=>{var n=ec(),r=tc(),i=Bs(),a=nc();function o(e,t,o){return e=i(e),t=o?void 0:t,t===void 0?r(e)?a(e):n(e):e.match(t)||[]}t.exports=o})),ic=i(((e,t)=>{var n=Xs(),r=$s(),i=rc(),a=RegExp(`['’]`,`g`);function o(e){return function(t){return n(i(r(t).replace(a,``)),e,``)}}t.exports=o})),ac=i(((e,t)=>{var n=Ys();t.exports=ic()(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)})})),oc=i(((e,t)=>{var n=Io(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),sc=i(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),cc=i(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),lc=i(((e,t)=>{var n=Io(),r=sc(),i=cc();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),uc=i(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),dc=i(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),fc=i(((e,t)=>{var n=lc(),r=uc(),i=dc(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),pc=i(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),mc=i(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),hc=i(((e,t)=>{var n=co(),r=Go(),i=Ya(),a=fc(),o=pc(),s=mc(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),gc=i(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),_c=i(((e,t)=>{var n=gc(),r=rs();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),vc=i(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),yc=i(((e,t)=>{function n(){return[]}t.exports=n})),bc=i(((e,t)=>{var n=vc(),r=yc(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),xc=i(((e,t)=>{t.exports=Xo()(Object.keys,Object)})),Sc=i(((e,t)=>{var n=Qo(),r=xc(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Cc=i(((e,t)=>{var n=ys(),r=Sc(),i=as();function a(e){return i(e)?n(e):r(e)}t.exports=a})),wc=i(((e,t)=>{var n=_c(),r=bc(),i=Cc();function a(e){return n(e,i,r)}t.exports=a})),Tc=i(((e,t)=>{var n=wc(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Ec=i(((e,t)=>{t.exports=bo()(so(),`DataView`)})),Dc=i(((e,t)=>{t.exports=bo()(so(),`Promise`)})),Oc=i(((e,t)=>{t.exports=bo()(so(),`Set`)})),kc=i(((e,t)=>{t.exports=bo()(so(),`WeakMap`)})),Ac=i(((e,t)=>{var n=Ec(),r=xo(),i=Dc(),a=Oc(),o=kc(),s=fo(),c=_o(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),jc=i(((e,t)=>{var n=Ro(),r=fc(),i=hc(),a=Tc(),o=Ac(),s=rs(),c=cs(),l=ps(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),Mc=i(((e,t)=>{var n=jc(),r=es();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Nc=i(((e,t)=>{var n=Ro(),r=Mc(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Pc=i(((e,t)=>{var n=po();function r(e){return e===e&&!n(e)}t.exports=r})),Fc=i(((e,t)=>{var n=Pc(),r=Cc();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Ic=i(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),Lc=i(((e,t)=>{var n=Nc(),r=Fc(),i=Ic();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Rc=i(((e,t)=>{var n=rs(),r=Rs(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),zc=i(((e,t)=>{var n=oc(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Bc=i(((e,t)=>{var n=zc(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Vc=i(((e,t)=>{var n=rs(),r=Rc(),i=Bc(),a=Bs();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Hc=i(((e,t)=>{var n=Rs(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Uc=i(((e,t)=>{var n=Vc(),r=Hc();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Wc=i(((e,t)=>{var n=Uc();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Gc=i(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Kc=i(((e,t)=>{var n=Vc(),r=ns(),i=rs(),a=vs(),o=is(),s=Hc();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),qc=i(((e,t)=>{var n=Gc(),r=Kc();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Jc=i(((e,t)=>{var n=Mc(),r=Wc(),i=qc(),a=Rc(),o=Pc(),s=Ic(),c=Hc(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Yc=i(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),Xc=i(((e,t)=>{var n=Uc();function r(e){return function(t){return n(t,e)}}t.exports=r})),Zc=i(((e,t)=>{var n=Yc(),r=Xc(),i=Rc(),a=Hc();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Qc=i(((e,t)=>{var n=Lc(),r=Jc(),i=Es(),a=rs(),o=Zc();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),$c=i(((e,t)=>{var n=Qc(),r=as(),i=Cc();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),el=i(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),tl=i(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),nl=i(((e,t)=>{var n=tl(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),rl=i(((e,t)=>{var n=nl(),r=po(),i=Rs(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),il=i(((e,t)=>{var n=rl(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),al=i(((e,t)=>{var n=il();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),ol=i(((e,t)=>{var n=el(),r=Qc(),i=al(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),sl=i(((e,t)=>{t.exports=$c()(ol())})),cl=i(((e,t)=>{var n=Uo(),r=Cc();function i(e,t){return e&&n(e,t,r)}t.exports=i})),ll=i(((e,t)=>{var n=as();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),ul=i(((e,t)=>{var n=cl();t.exports=ll()(n)})),dl=i(((e,t)=>{var n=ul();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),fl=i(((e,t)=>{var n=uc(),r=Qc(),i=dl(),a=rs(),o=Ps();function s(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=s})),pl=i(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=r(n):typeof define==`function`&&define.amd?define([],r.bind(n,n)):r(n)})(typeof global<`u`?global:e,function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);++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(r==0&&n==1&&i==45){a+=`\\`+t.charAt(r);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};return e.CSS||={},e.CSS.escape=t,t})})),ml=i(((e,t)=>{t.exports=function(e,t){if(t=t.split(`:`)[0],e=+e,!e)return!1;switch(t){case`http`:case`ws`:return e!==80;case`https`:case`wss`:return e!==443;case`ftp`:return e!==21;case`gopher`:return e!==70;case`file`:return!1}return e!==0}})),hl=i((e=>{var t=Object.prototype.hasOwnProperty,n;function r(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return null}}function i(e){try{return encodeURIComponent(e)}catch{return null}}function a(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var a=r(i[1]),o=r(i[2]);a===null||o===null||a in n||(n[a]=o)}return n}function o(e,r){r||=``;var a=[],o,s;for(s in typeof r!=`string`&&(r=`?`),e)if(t.call(e,s)){if(o=e[s],!o&&(o===null||o===n||isNaN(o))&&(o=``),s=i(s),o=i(o),s===null||o===null)continue;a.push(s+`=`+o)}return a.length?r+a.join(`&`):``}e.stringify=o,e.parse=a})),gl=i(((e,t)=>{var n=ml(),r=hl(),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(e){return(e||``).toString().replace(i,``)}var d=[[`#`,`hash`],[`?`,`query`],function(e,t){return m(t.protocol)?e.replace(/\\/g,`/`):e},[`/`,`pathname`],[`@`,`auth`,1],[NaN,`host`,void 0,1,1],[/:(\d*)$/,`port`,void 0,1],[NaN,`hostname`,void 0,1,1]],f={hash:1,query:1};function p(e){var t=(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{}).location||{};e||=t;var n={},r=typeof e,i;if(e.protocol===`blob:`)n=new _(unescape(e.pathname),{});else if(r===`string`)for(i in n=new _(e,{}),f)delete n[i];else if(r===`object`){for(i in e)i in f||(n[i]=e[i]);n.slashes===void 0&&(n.slashes=o.test(e.href))}return n}function m(e){return e===`file:`||e===`ftp:`||e===`http:`||e===`https:`||e===`ws:`||e===`wss:`}function h(e,t){e=u(e),e=e.replace(a,``),t||={};var n=c.exec(e),r=n[1]?n[1].toLowerCase():``,i=!!n[2],o=!!n[3],s=0,l;return i?o?(l=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(l=n[2]+n[4],s=n[2].length):o?(l=n[3]+n[4],s=n[3].length):l=n[4],r===`file:`?s>=2&&(l=l.slice(2)):m(r)?l=n[4]:r?i&&(l=l.slice(2)):s>=2&&m(t.protocol)&&(l=n[4]),{protocol:r,slashes:i||m(r),slashesCount:s,rest:l}}function g(e,t){if(e===``)return t;for(var n=(t||`/`).split(`/`).slice(0,-1).concat(e.split(`/`)),r=n.length,i=n[r-1],a=!1,o=0;r--;)n[r]===`.`?n.splice(r,1):n[r]===`..`?(n.splice(r,1),o++):o&&(r===0&&(a=!0),n.splice(r,1),o--);return a&&n.unshift(``),(i===`.`||i===`..`)&&n.push(``),n.join(`/`)}function _(e,t,i){if(e=u(e),e=e.replace(a,``),!(this instanceof _))return new _(e,t,i);var o,s,c,f,v,y,b=d.slice(),x=typeof t,S=this,C=0;for(x!==`object`&&x!==`string`&&(i=t,t=null),i&&typeof i!=`function`&&(i=r.parse),t=p(t),s=h(e||``,t),o=!s.protocol&&!s.slashes,S.slashes=s.slashes||o&&t.slashes,S.protocol=s.protocol||t.protocol||``,e=s.rest,(s.protocol===`file:`&&(s.slashesCount!==2||l.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(S.protocol)))&&(b[3]=[/(.*)/,`pathname`]);C<b.length;C++){if(f=b[C],typeof f==`function`){e=f(e,S);continue}c=f[0],y=f[1],c===c?typeof c==`string`?(v=c===`@`?e.lastIndexOf(c):e.indexOf(c),~v&&(typeof f[2]==`number`?(S[y]=e.slice(0,v),e=e.slice(v+f[2])):(S[y]=e.slice(v),e=e.slice(0,v)))):(v=c.exec(e))&&(S[y]=v[1],e=e.slice(0,v.index)):S[y]=e,S[y]=S[y]||o&&f[3]&&t[y]||``,f[4]&&(S[y]=S[y].toLowerCase())}i&&(S.query=i(S.query)),o&&t.slashes&&S.pathname.charAt(0)!==`/`&&(S.pathname!==``||t.pathname!==``)&&(S.pathname=g(S.pathname,t.pathname)),S.pathname.charAt(0)!==`/`&&m(S.protocol)&&(S.pathname=`/`+S.pathname),n(S.port,S.protocol)||(S.host=S.hostname,S.port=``),S.username=S.password=``,S.auth&&=(v=S.auth.indexOf(`:`),~v?(S.username=S.auth.slice(0,v),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=S.auth.slice(v+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(S.auth)),S.password?S.username+`:`+S.password:S.username),S.origin=S.protocol!==`file:`&&m(S.protocol)&&S.host?S.protocol+`//`+S.host:`null`,S.href=S.toString()}function v(e,t,i){var a=this;switch(e){case`query`:typeof t==`string`&&t.length&&(t=(i||r.parse)(t)),a[e]=t;break;case`port`:a[e]=t,n(t,a.protocol)?t&&(a.host=a.hostname+`:`+t):(a.host=a.hostname,a[e]=``);break;case`hostname`:a[e]=t,a.port&&(t+=`:`+a.port),a.host=t;break;case`host`:a[e]=t,s.test(t)?(t=t.split(`:`),a.port=t.pop(),a.hostname=t.join(`:`)):(a.hostname=t,a.port=``);break;case`protocol`:a.protocol=t.toLowerCase(),a.slashes=!i;break;case`pathname`:case`hash`:if(t){var o=e===`pathname`?`/`:`#`;a[e]=t.charAt(0)===o?t:o+t}else a[e]=t;break;case`username`:case`password`:a[e]=encodeURIComponent(t);break;case`auth`:var c=t.indexOf(`:`);~c?(a.username=t.slice(0,c),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(c+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<d.length;l++){var u=d[l];u[4]&&(a[u[1]]=a[u[1]].toLowerCase())}return a.auth=a.password?a.username+`:`+a.password:a.username,a.origin=a.protocol!==`file:`&&m(a.protocol)&&a.host?a.protocol+`//`+a.host:`null`,a.href=a.toString(),a}function y(e){(!e||typeof e!=`function`)&&(e=r.stringify);var t,n=this,i=n.host,a=n.protocol;a&&a.charAt(a.length-1)!==`:`&&(a+=`:`);var o=a+(n.protocol&&n.slashes||m(n.protocol)?`//`:``);return n.username?(o+=n.username,n.password&&(o+=`:`+n.password),o+=`@`):n.password?(o+=`:`+n.password,o+=`@`):n.protocol!==`file:`&&m(n.protocol)&&!i&&n.pathname!==`/`&&(o+=`@`),(i[i.length-1]===`:`||s.test(n.hostname)&&!n.port)&&(i+=`:`),o+=i+n.pathname,t=typeof n.query==`object`?e(n.query):n.query,t&&(o+=t.charAt(0)===`?`?t:`?`+t),n.hash&&(o+=n.hash),o}_.prototype={set:v,toString:y},_.extractProtocol=h,_.location=p,_.trimLeft=u,_.qs=r,t.exports=_})),_l=i(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),vl=i(((e,t)=>{var n=gs(),r=Cc();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),yl=i(((e,t)=>{var n=gs(),r=Ss();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),bl=i(((e,t)=>{var n=gs(),r=bc();function i(e,t){return n(e,r(e),t)}t.exports=i})),xl=i(((e,t)=>{var n=gc(),r=Zo(),i=bc(),a=yc();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),Sl=i(((e,t)=>{var n=gs(),r=xl();function i(e,t){return n(e,r(e),t)}t.exports=i})),Cl=i(((e,t)=>{var n=_c(),r=xl(),i=Ss();function a(e){return n(e,i,r)}t.exports=a})),wl=i(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),Tl=i(((e,t)=>{var n=Ko();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),El=i(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),Dl=i(((e,t)=>{var n=co(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),Ol=i(((e,t)=>{var n=Ko(),r=Tl(),i=El(),a=Dl(),o=qo(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),kl=i(((e,t)=>{var n=Ac(),r=es(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Al=i(((e,t)=>{var n=kl(),r=ds(),i=fs(),a=i&&i.isMap;t.exports=a?r(a):n})),jl=i(((e,t)=>{var n=Ac(),r=es(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Ml=i(((e,t)=>{var n=jl(),r=ds(),i=fs(),a=i&&i.isSet;t.exports=a?r(a):n})),Nl=i(((e,t)=>{var n=Ro(),r=_l(),i=hs(),a=vl(),o=yl(),s=Wo(),c=Jo(),l=bl(),u=Sl(),d=wc(),f=Cl(),p=Ac(),m=wl(),h=Ol(),g=$o(),_=rs(),v=cs(),y=Al(),b=po(),x=Ml(),S=Cc(),C=Ss(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,ee=`[object Number]`,te=`[object Object]`,F=`[object RegExp]`,I=`[object Set]`,L=`[object String]`,R=`[object Symbol]`,ne=`[object WeakMap]`,re=`[object ArrayBuffer]`,ie=`[object DataView]`,ae=`[object Float32Array]`,oe=`[object Float64Array]`,se=`[object Int8Array]`,ce=`[object Int16Array]`,le=`[object Int32Array]`,ue=`[object Uint8Array]`,de=`[object Uint8ClampedArray]`,fe=`[object Uint16Array]`,pe=`[object Uint32Array]`,me={};me[D]=me[O]=me[re]=me[ie]=me[k]=me[A]=me[ae]=me[oe]=me[se]=me[ce]=me[le]=me[P]=me[ee]=me[te]=me[F]=me[I]=me[L]=me[R]=me[ue]=me[de]=me[fe]=me[pe]=!0,me[j]=me[M]=me[ne]=!1;function he(e,t,O,k,A,j){var P,ee=t&w,F=t&T,I=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var L=_(e);if(L){if(P=m(e),!ee)return c(e,P)}else{var R=p(e),ne=R==M||R==N;if(v(e))return s(e,ee);if(R==te||R==D||ne&&!A){if(P=F||ne?{}:g(e),!ee)return F?u(e,o(P,e)):l(e,a(P,e))}else{if(!me[R])return A?e:{};P=h(e,R,ee)}}j||=new n;var re=j.get(e);if(re)return re;j.set(e,P),x(e)?e.forEach(function(n){P.add(he(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,he(n,t,O,r,e,j))});var ie=L?void 0:(I?F?f:d:F?C:S)(e);return r(ie||e,function(n,r){ie&&(r=n,n=e[r]),i(P,r,he(n,t,O,r,e,j))}),P}t.exports=he})),Pl=i(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n})),Fl=i(((e,t)=>{var n=Uc(),r=Vs();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),Il=i(((e,t)=>{var n=Vc(),r=Pl(),i=Fl(),a=Hc(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(;++s<c;){var l=a(t[s]);if(l===`__proto__`&&!o.call(e,`__proto__`)||(l===`constructor`||l===`prototype`)&&s<c-1)return!1}var u=i(e,t);return u==null||delete u[a(r(t))]}t.exports=s})),Ll=i(((e,t)=>{var n=ls();function r(e){return n(e)?void 0:e}t.exports=r})),Rl=i(((e,t)=>{var n=co(),r=ns(),i=rs(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),zl=i(((e,t)=>{var n=gc(),r=Rl();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),Bl=i(((e,t)=>{var n=zl();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),Vl=i(((e,t)=>{var n=Bl(),r=Os(),i=Ms();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),Hl=i(((e,t)=>{var n=Ls(),r=Nl(),i=Il(),a=Vc(),o=gs(),s=Ll(),c=Vl(),l=Cl(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),H=e(a()),Ul=e(l()),Wl=e(v()),Gl=e(y()),Kl=e(Me());Ba();var ql=Ka(),Jl=qa(),Yl=e(Ya()),Xl=e(mo()),Zl=e(Is());Js(),ac();var Ql=e(oc()),$l=e(sl()),eu=e(fl()),tu=e(pl()),nu=e(gl()),ru=e(Hl());function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var au={},ou={},su={},cu;function lu(){if(cu)return su;cu=1;function e(e){return e==null}function t(e){return typeof e==`object`&&!!e}function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}function a(e){return e===0&&1/e==-1/0}return su.isNothing=e,su.isObject=t,su.toArray=n,su.repeat=i,su.isNegativeZero=a,su.extend=r,su}var uu,du;function fu(){if(du)return uu;du=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
2
|
-
|
|
3
|
-
`+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},uu=t,uu}var pu,mu;function hu(){if(mu)return pu;mu=1;let e=lu();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function n(t,n){return e.repeat(` `,n-t.length)+t}function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+`
|
|
4
|
-
`+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+`
|
|
5
|
-
`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
6
|
-
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+`
|
|
7
|
-
`}return u.replace(/\n$/,``)}return pu=r,pu}var gu,_u;function vu(){if(_u)return gu;_u=1;let e=fu(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return gu=i,gu}var yu,bu;function xu(){if(bu)return yu;bu=1;let e=fu(),t=vu();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(a){let o=[],s=[];if(a instanceof t)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},yu=i,yu}var Su,Cu;function wu(){return Cu?Su:(Cu=1,Su=new(vu())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),Su)}var Tu,Eu;function Du(){return Eu?Tu:(Eu=1,Tu=new(vu())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),Tu)}var Ou,ku;function Au(){return ku?Ou:(ku=1,Ou=new(vu())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),Ou)}var ju,Mu;function Nu(){return Mu?ju:(Mu=1,ju=new(xu())({explicit:[wu(),Du(),Au()]}),ju)}var Pu,Fu;function Iu(){if(Fu)return Pu;Fu=1;let e=vu();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function n(){return null}function r(e){return e===null}return Pu=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`}),Pu}var Lu,Ru;function zu(){if(Ru)return Lu;Ru=1;let e=vu();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function n(e){return e===`true`||e===`True`||e===`TRUE`}function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return Lu=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`}),Lu}var Bu,Vu;function Hu(){if(Vu)return Bu;Vu=1;let e=lu(),t=vu();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let c=e[a];if((c===`-`||c===`+`)&&(c=e[++a]),c===`0`){if(a+1===t)return!0;if(c=e[++a],c===`b`){for(a++;a<t;a++){if(c=e[a],c!==`0`&&c!==`1`)return!1;s=!0}return s&&isFinite(o(e))}if(c===`x`){for(a++;a<t;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if(c===`o`){for(a++;a<t;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<t;a++){if(!i(e.charCodeAt(a)))return!1;s=!0}return s?isFinite(o(e)):!1}function o(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return o(e)}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return Bu=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:a,construct:s,predicate:c,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),Bu}var Uu,Wu;function Gu(){if(Wu)return Uu;Wu=1;let e=lu(),t=vu(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return Uu=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:c,represent:s,defaultStyle:`lowercase`}),Uu}var Ku,qu;function Ju(){return qu?Ku:(qu=1,Ku=Nu().extend({implicit:[Iu(),zu(),Hu(),Gu()]}),Ku)}var Yu,Xu;function Zu(){return Xu?Yu:(Xu=1,Yu=Ju(),Yu)}var Qu,$u;function ed(){if($u)return Qu;$u=1;let e=vu(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}function a(e){return e.toISOString()}return Qu=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),Qu}var td,nd;function rd(){if(nd)return td;nd=1;let e=vu();function t(e){return e===`<<`||e===null}return td=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),td}var id,ad;function od(){if(ad)return id;ad=1;let e=vu();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
-
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
-
\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
-
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return id=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),id}var sd,cd;function ld(){if(cd)return sd;cd=1;let e=vu(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r={},i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o||t.call(r,s))return!1;Object.defineProperty(r,s,{value:!0})}return!0}function i(e){return e===null?[]:e}return sd=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:i}),sd}var ud,dd;function fd(){if(dd)return ud;dd=1;let e=vu(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return ud=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,construct:r}),ud}var pd,md;function hd(){if(md)return pd;md=1;let e=vu(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}function r(e){return e===null?{}:e}return pd=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),pd}var gd,_d;function vd(){return _d?gd:(_d=1,gd=Zu().extend({implicit:[ed(),rd()],explicit:[od(),ld(),fd(),hd()]}),gd)}var yd;function bd(){if(yd)return ou;yd=1;let e=lu(),t=fu(),n=hu(),r=vd(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function d(e){return e===10||e===13}function f(e){return e===9||e===32}function p(e){return e===9||e===32||e===10||e===13}function m(e){return e===44||e===91||e===93||e===123||e===125}function h(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function g(e){return e===120?2:e===117?4:e===85?8:0}function _(e){return e>=48&&e<=57?e-48:-1}function v(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
11
|
-
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function O(e){e.anchorMapTransactions.push(Object.create(null))}function k(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];i.call(r,n)||(r[n]=t[n])}}function A(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function M(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let N={YAML:function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],c.test(a)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&T(e,`there is a previously declared suffix for "`+a+`" tag handle`),l.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r}};function P(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}else a.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}function ee(t,n,r,a){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&T(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),i.call(n,s)||(b(n,s,r[s]),a[s]=!0)}}function te(e,t,n,r,a,o,s,c,l){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t<n;t+=1)Array.isArray(a[t])&&T(e,`nested arrays are not supported inside keys`),typeof a==`object`&&u(a[t])===`[object Object]`&&(a[t]=`[object Object]`)}if(typeof a==`object`&&u(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o))for(let r=0,i=o.length;r<i;r+=1)ee(e,t,o[r],n);else ee(e,t,o,n)}else!e.json&&!i.call(n,a)&&i.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),b(t,a,o),delete n[a];return t}function F(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function I(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;f(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(d(i))for(F(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}function L(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||p(n)))}function R(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
|
|
12
|
-
`,n-1))}function ne(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,h=e.input.charCodeAt(e.position);if(p(h)||m(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return!1;if(h===63||h===45){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;h!==0;){if(h===58){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))break}else if(h===35){if(p(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&L(e)||n&&m(h))break;else if(d(h)){if(o=e.line,s=e.lineStart,c=e.lineIndent,I(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(P(e,r,i,!1),R(e,e.line-o),r=i=e.position,!1),f(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return P(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function re(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(P(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else d(i)?(P(e,n,r,!0),R(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&L(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,f(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}function ie(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return P(e,n,e.position,!0),e.position++,!0;else if(a===92){if(P(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),d(a))I(e,!1,t);else if(a<256&&x[a])e.result+=S[a],e.position++;else if((i=g(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=h(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=y(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else d(a)?(P(e,n,r,!0),R(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&L(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,f(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}function ae(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(I(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&p(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,I(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,pe(e,t,1,!1,!0),g=e.tag,h=e.result,I(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),I(e,!0,t),pe(e,t,1,!1,!0),_=e.result),f?te(e,s,m,g,h,_,r,i,a):u?s.push(te(e,null,m,g,h,_,r,i,a)):s.push(h),I(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}function oe(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,p=t.input.charCodeAt(t.position);if(p===124)r=!1;else if(p===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)i===1?i=p===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=_(p))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(f(p)){do p=t.input.charCodeAt(++t.position);while(f(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!d(p)&&p!==0)}for(;p!==0;){for(F(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),d(p)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
|
|
13
|
-
`,a?1+c:c):i===1&&a&&(t.result+=`
|
|
14
|
-
`);break}r?f(p)?(l=!0,t.result+=e.repeat(`
|
|
15
|
-
`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
|
|
16
|
-
`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
|
|
17
|
-
`,c):t.result+=e.repeat(`
|
|
18
|
-
`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);P(t,n,t.position,!1)}return!0}function se(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),!(o!==45||!p(e.input.charCodeAt(e.position+1))));){if(a=!0,e.position++,I(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(pe(e,t,3,!1,!0),i.push(e.result),I(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function ce(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(te(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!pe(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(te(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),pe(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(te(e,l,u,d,m,h,i,a,o),d=m=h=null),I(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&te(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function le(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function ue(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function de(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],I(e,!0,-1),!0}function fe(e,t,n,r){let i=j(e);return O(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ce(e,n,r)&&e.kind===`mapping`?(k(e),!0):(A(e),M(e,i),!1)}function pe(e,t,n,r,a){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&I(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=j(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!le(e)&&!ue(e))break;d===null&&(d=r),I(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||a,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(se(e,m)||ce(e,m,p))||ae(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&fe(e,d,d.position-d.lineStart,p)||o&&oe(e,p)||re(e,p)||ie(e,p)?u=!0:de(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ne(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&se(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(i.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}function me(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(I(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;f(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!d(r));break}if(d(r))break;for(t=e.position;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&F(e),i.call(N,a)?N[a](e,a,o):E(e,`unknown document directive "`+a+`"`)}if(I(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,I(e,!0,-1)):n&&T(e,`directives end mark is expected`),pe(e,e.lineIndent-1,4,!1,!0),I(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&L(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,I(e,!0,-1));return}e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}function he(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)me(n);return n.documents}function ge(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=he(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}function _e(e,n){let r=he(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return ou.loadAll=ge,ou.load=_e,ou}var xd={},Sd;function Cd(){if(Sd)return xd;Sd=1;let e=lu(),t=fu(),n=vd(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,o={};o[0]=`\\0`,o[7]=`\\a`,o[8]=`\\b`,o[9]=`\\t`,o[10]=`\\n`,o[11]=`\\v`,o[12]=`\\f`,o[13]=`\\r`,o[27]=`\\e`,o[34]=`\\"`,o[92]=`\\\\`,o[133]=`\\N`,o[160]=`\\_`,o[8232]=`\\L`,o[8233]=`\\P`;let s=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let a=0,o=r.length;a<o;a+=1){let o=r[a],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&i.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}function u(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}function d(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=l(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function f(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(`
|
|
20
|
-
`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
|
|
21
|
-
`&&(a+=r),a+=e}return a}function p(t,n){return`
|
|
22
|
-
`+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+k(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}function T(e,t){let n=S(e)?String(t):``,r=e[e.length-1]===`
|
|
23
|
-
`;return n+(r&&(e[e.length-2]===`
|
|
24
|
-
`||e===`
|
|
25
|
-
`)?`+`:r?``:`-`)+`
|
|
26
|
-
`}function E(e){return e[e.length-1]===`
|
|
27
|
-
`?e.slice(0,-1):e}function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
28
|
-
`);return r=r===-1?e.length:r,n.lastIndex=r,O(e.slice(0,r),t)})(),i=e[0]===`
|
|
29
|
-
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
30
|
-
`:``)+O(n,t),i=a}return r}function O(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
31
|
-
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
32
|
-
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
33
|
-
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function k(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=x(e,r);let i=o[n];!i&&g(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function A(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(ee(e,t,a,!1,!1)||a===void 0&&ee(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function j(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(ee(e,t+1,o,!0,!0,!1,!0)||o===void 0&&ee(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=p(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function M(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),ee(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),ee(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function N(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=p(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!ee(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=p(e,n)),ee(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function P(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=a?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let a=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,a);else if(i.call(c.represent,a))o=c.represent[a](n,a);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}function ee(e,n,i,a,o,s,c){e.tag=null,e.dump=i,P(e,i,!1)||P(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(N(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(M(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?j(e,n-1,e.dump,o):j(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(A(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&w(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function te(e,t){let n=[],r=[];F(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function F(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)F(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)F(e[r[i]],t,n)}}}function I(e,t){t||={};let n=new d(t);n.noRefs||te(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),ee(n,0,r,!0,!0)?n.dump+`
|
|
34
|
-
`:``}return xd.dump=I,xd}var wd;function Td(){if(wd)return au;wd=1;let e=bd(),t=Cd();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return au.Type=vu(),au.Schema=xu(),au.FAILSAFE_SCHEMA=Nu(),au.JSON_SCHEMA=Ju(),au.CORE_SCHEMA=Zu(),au.DEFAULT_SCHEMA=vd(),au.load=e.load,au.loadAll=e.loadAll,au.dump=t.dump,au.YAMLException=fu(),au.types={binary:od(),float:Gu(),map:Au(),null:Iu(),pairs:fd(),set:hd(),timestamp:ed(),bool:zu(),int:Hu(),merge:rd(),omap:ld(),seq:Du(),str:wu()},au.safeLoad=n(`safeLoad`,`load`),au.safeLoadAll=n(`safeLoadAll`,`loadAll`),au.safeDump=n(`safeDump`,`dump`),au}var Ed=iu(Td()),{Type:Dd,Schema:Od,FAILSAFE_SCHEMA:kd,JSON_SCHEMA:Ad,CORE_SCHEMA:jd,DEFAULT_SCHEMA:Md,load:Nd,loadAll:Pd,dump:Fd,YAMLException:Id,types:Ld,safeLoad:Rd,safeLoadAll:zd,safeDump:Bd}=Ed,Vd=i(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([],n()):typeof t==`object`&&t.exports?t.exports=n():(function t(){document&&document.body?e.zenscroll=n():setTimeout(t,9)})()})(e,function(){var e=function(e){return e&&`getComputedStyle`in window&&window.getComputedStyle(e)[`scroll-behavior`]===`smooth`};if(typeof window>`u`||!(`document`in window))return{};var t=function(t,n,r){n||=999,!r&&r!==0&&(r=9);var i,a=function(e){i=e},o=function(){clearTimeout(i),a(0)},s=function(e){return Math.max(0,t.getTopOf(e)-r)},c=function(r,i,s){if(o(),i===0||i&&i<0||e(t.body))t.toY(r),s&&s();else{var c=t.getY(),l=Math.max(0,r)-c,u=new Date().getTime();i||=Math.min(Math.abs(l),n),(function e(){a(setTimeout(function(){var n=Math.min(1,(new Date().getTime()-u)/i),r=Math.max(0,Math.floor(c+l*(n<.5?2*n*n:n*(4-n*2)-1)));t.toY(r),n<1&&t.getHeight()+r<t.body.scrollHeight?e():(setTimeout(o,99),s&&s())},9))})()}},l=function(e,t,n){c(s(e),t,n)};return{setup:function(e,t){return(e===0||e)&&(n=e),(t===0||t)&&(r=t),{defaultDuration:n,edgeOffset:r}},to:l,toY:c,intoView:function(e,n,i){var a=e.getBoundingClientRect().height,o=t.getTopOf(e)+a,u=t.getHeight(),d=t.getY(),f=d+u;s(e)<d||a+r>u?l(e,n,i):o+r>f?c(o-u+r,n,i):i&&i()},center:function(e,n,r,i){c(Math.max(0,t.getTopOf(e)-t.getHeight()/2+(r||e.getBoundingClientRect().height/2)),n,i)},stop:o,moving:function(){return!!i},getY:t.getY,getTopOf:t.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},i=t({body:document.scrollingElement||document.body,toY:function(e){window.scrollTo(0,e)},getY:r,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(e){return e.getBoundingClientRect().top+r()-n.offsetTop}});if(i.createScroller=function(e,r,i){return t({body:e,toY:function(t){e.scrollTop=t},getY:function(){return e.scrollTop},getHeight:function(){return Math.min(e.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(e){return e.offsetTop}},r,i)},`addEventListener`in window&&!window.noZensmooth&&!e(document.body)){var a=`history`in window&&`pushState`in history,o=a&&`scrollRestoration`in history;o&&(history.scrollRestoration=`auto`),window.addEventListener(`load`,function(){o&&(setTimeout(function(){history.scrollRestoration=`manual`},9),window.addEventListener(`popstate`,function(e){e.state&&`zenscrollY`in e.state&&i.toY(e.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var e=i.setup().edgeOffset;if(e){var t=document.getElementById(window.location.href.split(`#`)[1]);if(t){var n=Math.max(0,i.getTopOf(t)-e),r=i.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}},9)},!1);var s=RegExp(`(^|\\s)noZensmooth(\\s|$)`);window.addEventListener(`click`,function(e){for(var t=e.target;t&&t.tagName!==`A`;)t=t.parentNode;if(!(!t||e.which!==1||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){if(o){var n=history.state&&typeof history.state==`object`?history.state:{};n.zenscrollY=i.getY();try{history.replaceState(n,``)}catch{}}var r=t.getAttribute(`href`)||``;if(r.indexOf(`#`)===0&&!s.test(t.className)){var c=0,l=document.getElementById(r.substring(1));if(r!==`#`){if(!l)return;c=i.getTopOf(l)}e.preventDefault();var u=function(){window.location=r},d=i.setup().edgeOffset;d&&(c=Math.max(0,c-d),a&&(u=function(){history.pushState({},``,r)})),i.toY(c,null,u)}}},!1)}return i})})),Hd=i(((e,n)=>{var r=(Ba(),t(Ne)),i=`<<anonymous>>`,a,o=function(){invariant(!1,`ImmutablePropTypes type checking code is stripped in production.`)};o.isRequired=o;var s=function(){return o};a={listOf:s,mapOf:s,orderedMapOf:s,setOf:s,orderedSetOf:s,stackOf:s,iterableOf:s,recordOf:s,shape:s,contains:s,mapContains:s,orderedMapContains:s,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o},a.iterable.indexed=d(`Indexed`,r.Iterable.isIndexed),a.iterable.keyed=d(`Keyed`,r.Iterable.isKeyed);function c(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:e instanceof r.Iterable?`Immutable.`+e.toSource().split(` `)[0]:t}function l(e){function t(t,n,r,a,o,s){var c=[...arguments].slice(6);if(s||=r,a||=i,n[r]==null){var l=o;if(t)return Error(`Required `+l+" `"+s+"` was not specified in "+("`"+a+"`."))}else return e.apply(void 0,[n,r,a,o,s].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function u(e,t){function n(n,r,i,a,o){var s=n[r];if(!t(s)){var l=c(s);return Error(`Invalid `+a+" `"+o+"` of type `"+l+"` "+("supplied to `"+i+"`, expected `"+e+"`."))}return null}return l(n)}function d(e,t){return u(`Iterable.`+e,function(e){return r.Iterable.isIterable(e)&&t(e)})}n.exports=a})),Ud=i(((e,t)=>{function n(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}t.exports=n})),Wd=i(((e,t)=>{var n=Xs(),r=ul(),i=Qc(),a=Ud(),o=rs();function s(e,t,s){var c=o(e)?n:a,l=arguments.length<3;return c(e,i(t,4),s,l,r)}t.exports=s})),Gd=i(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof global==`object`&&global)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),Kd=i(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),qd=i(((e,t)=>{t.exports=!Kd()(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),Jd=i(((e,t)=>{var n=qd(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Yd=i(((e,t)=>{var n=qd(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),Xd=i(((e,t)=>{var n=Yd(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),Zd=i(((e,t)=>{var n=Xd(),r=Yd();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),Qd=i(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),$d=i(((e,t)=>{t.exports=!Kd()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),ef=i(((e,t)=>{var n=qd(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),tf=i((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),nf=i(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),rf=i(((e,t)=>{var n=Yd(),r=Kd(),i=Xd(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),af=i(((e,t)=>{t.exports=function(e){return e==null}})),of=i(((e,t)=>{var n=af(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),sf=i(((e,t)=>{var n=rf(),r=of();t.exports=function(e){return n(r(e))}})),cf=i(((e,t)=>{var n=Qd();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),lf=i(((e,t)=>{t.exports={}})),uf=i(((e,t)=>{var n=lf(),r=Gd(),i=Qd(),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}})),df=i(((e,t)=>{t.exports=Yd()({}.isPrototypeOf)})),ff=i(((e,t)=>{var n=Gd().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),pf=i(((e,t)=>{var n=Gd(),r=ff(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l})),mf=i(((e,t)=>{var n=pf(),r=Kd(),i=Gd().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),hf=i(((e,t)=>{t.exports=mf()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),gf=i(((e,t)=>{var n=uf(),r=Qd(),i=df(),a=hf(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),_f=i(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),vf=i(((e,t)=>{var n=Qd(),r=_f(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),yf=i(((e,t)=>{var n=vf(),r=af();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),bf=i(((e,t)=>{var n=ef(),r=Qd(),i=cf(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),xf=i(((e,t)=>{t.exports=!0})),Sf=i(((e,t)=>{var n=Gd(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),Cf=i(((e,t)=>{var n=xf(),r=Gd(),i=Sf(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.50.0`,mode:n?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),wf=i(((e,t)=>{var n=Cf(),r=Object.create||Object;t.exports=function(e,t){return n[e]||(n[e]=t||r(null))}})),Tf=i(((e,t)=>{var n=of(),r=Object;t.exports=function(e){return r(n(e))}})),Ef=i(((e,t)=>{var n=Yd(),r=Tf(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),Df=i(((e,t)=>{var n=Yd(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),Of=i(((e,t)=>{var n=Gd(),r=wf(),i=Ef(),a=Df(),o=mf(),s=hf(),c=n.Symbol,l=r(`wks`),u=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:u(`Symbol.`+e)),l[e]}})),kf=i(((e,t)=>{var n=ef(),r=cf(),i=gf(),a=yf(),o=bf(),s=Of(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),Af=i(((e,t)=>{var n=kf(),r=gf();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),jf=i(((e,t)=>{var n=Gd(),r=cf(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),Mf=i(((e,t)=>{var n=$d(),r=Kd(),i=jf();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),"a",{get:function(){return 7}}).a!==7})})),Nf=i((e=>{var t=$d(),n=ef(),r=tf(),i=nf(),a=sf(),o=Af(),s=Ef(),c=Mf(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),Pf=i(((e,t)=>{var n=Kd(),r=Qd(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a})),Ff=i(((e,t)=>{var n=Zd(),r=vf(),i=qd(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),If=i(((e,t)=>{var n=$d(),r=Kd();t.exports=n&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})})),Lf=i(((e,t)=>{var n=cf(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),Rf=i((e=>{var t=$d(),n=Mf(),r=If(),i=Lf(),a=Af(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),zf=i(((e,t)=>{var n=$d(),r=Rf(),i=nf();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),Bf=i(((e,t)=>{var n=Gd(),r=Jd(),i=Zd(),a=Qd(),o=Nf().f,s=Pf(),c=lf(),l=Ff(),u=zf(),d=Ef();Cf();var f=function(e){var t=function(n,i,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,a)}return r(e,this,arguments)};return t.prototype=e.prototype,t};t.exports=function(e,t){var r=e.target,p=e.global,m=e.stat,h=e.proto,g=p?n:m?n[r]:n[r]&&n[r].prototype,_=p?c:c[r]||u(c,r,{})[r],v=_.prototype,y,b,x,S,C,w,T,E,D;for(S in t)y=s(p?S:r+(m?`.`:`#`)+S,e.forced),b=!y&&g&&d(g,S),w=_[S],b&&(e.dontCallGetSet?(D=o(g,S),T=D&&D.value):T=g[S]),C=b&&T?T:t[S],!(!y&&!h&&typeof w==typeof C)&&(E=e.bind&&b?l(C,n):e.wrap&&b?f(C):h&&a(C)?i(C):C,(e.sham||C&&C.sham||w&&w.sham)&&u(E,`sham`,!0),u(_,S,E),h&&(x=r+`Prototype`,d(c,x)||u(c,x,{}),u(c[x],S,C),e.real&&v&&(y||!v[S])&&u(v,S,C)))}})),Vf=i(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),Hf=i(((e,t)=>{var n=Vf();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),Uf=i(((e,t)=>{var n=Hf(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),Wf=i(((e,t)=>{var n=Hf(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),Gf=i(((e,t)=>{var n=Wf();t.exports=function(e){return n(e.length)}})),Kf=i(((e,t)=>{var n=sf(),r=Uf(),i=Gf(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),qf=i(((e,t)=>{t.exports={}})),Jf=i(((e,t)=>{var n=Yd(),r=Ef(),i=sf(),a=Kf().indexOf,o=qf(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),Yf=i(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),Xf=i(((e,t)=>{var n=Jf(),r=Yf();t.exports=Object.keys||function(e){return n(e,r)}})),Zf=i((e=>{e.f=Object.getOwnPropertySymbols})),Qf=i(((e,t)=>{var n=$d(),r=Yd(),i=ef(),a=Kd(),o=Xf(),s=Zf(),c=tf(),l=Tf(),u=rf(),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||a(function(){if(n&&d({b:1},d(f({},`a`,{enumerable:!0,get:function(){f(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[r]=7,i.split(``).forEach(function(e){t[e]=e}),d({},e)[r]!==7||o(d({},t)).join(``)!==i})?function(e,t){for(var r=l(e),a=arguments.length,d=1,f=s.f,m=c.f;a>d;)for(var h=u(arguments[d++]),g=f?p(o(h),f(h)):o(h),_=g.length,v=0,y;_>v;)y=g[v++],(!n||i(m,h,y))&&(r[y]=h[y]);return r}:d})),$f=i((()=>{var e=Bf(),t=Qf();e({target:`Object`,stat:!0,arity:2,forced:Object.assign!==t},{assign:t})})),ep=i(((e,t)=>{$f(),t.exports=lf().Object.assign})),tp=i(((e,t)=>{t.exports=ep()})),np=i(((e,t)=>{t.exports=tp()})),rp=i(((e,t)=>{t.exports=np()})),ip=i(((e,t)=>{t.exports=rp()})),ap=i(((e,t)=>{t.exports=Yd()([].slice)})),op=i(((e,t)=>{var n=Yd(),r=vf(),i=cf(),a=Ef(),o=ap(),s=qd(),c=Function,l=n([].concat),u=n([].join),d={},f=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;d[t]=c(`C,a`,`return new C(`+u(r,`,`)+`)`)}return d[t](e,n)};t.exports=s?c.bind:function(e){var t=r(this),n=t.prototype,a=o(arguments,1),s=function(){var n=l(a,o(arguments));return this instanceof s?f(t,n.length,n):t.apply(e,n)};return i(n)&&(s.prototype=n),s}})),sp=i((()=>{var e=Bf(),t=op();e({target:`Function`,proto:!0,forced:Function.bind!==t},{bind:t})})),cp=i(((e,t)=>{var n=Gd(),r=lf();t.exports=function(e,t){var i=r[e+`Prototype`],a=i&&i[t];if(a)return a;var o=n[e],s=o&&o.prototype;return s&&s[t]}})),lp=i(((e,t)=>{sp(),t.exports=cp()(`Function`,`bind`)})),up=i(((e,t)=>{var n=df(),r=lp(),i=Function.prototype;t.exports=function(e){var t=e.bind;return e===i||n(i,e)&&t===i.bind?r:t}})),dp=i(((e,t)=>{t.exports=up()})),fp=i(((e,t)=>{t.exports=dp()})),pp=i(((e,t)=>{t.exports=fp()})),mp=i(((e,t)=>{t.exports=pp()})),hp=e(Wc()),gp=e(Vd()),_p=e(Hd()),vp=e(Wd()),yp=e(ip()),bp=e(mp());function xp(){var e;return xp=yp.default?(0,bp.default)(e=yp.default).call(e):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xp.apply(null,arguments)}var Sp=i(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),Cp=i(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),wp=i(((e,t)=>{var n=Cp(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o})),Tp=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var t=i(wp()),n=i(a()),r=[`text`,`onCopy`,`options`,`children`];function i(e){return e&&e.__esModule?e:{default:e}}function o(e){"@babel/helpers - typeof";return o=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},o(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(e==null)return{};var n,r,i=u(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function d(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t,n){return t=v(t),h(e,_()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function h(e,t){if(t&&(o(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return g(e)}function g(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function x(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=C(e,`string`);return o(t)==`symbol`?t:t+``}function C(e,t){if(o(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(o(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}x(e.CopyToClipboard=function(e){function i(){var e;d(this,i);var r=[...arguments];return e=m(this,i,[].concat(r)),x(e,`onClick`,function(r){var i=e.props,a=i.text,o=i.onCopy,s=i.children,c=i.options,l=n.default.Children.only(s),u=(0,t.default)(a,c);o&&o(a,u),l!=null&&l.props&&typeof l.props.onClick==`function`&&l.props.onClick(r)}),e}return y(i,e),p(i,[{key:`render`,value:function(){var e=this.props;e.text,e.onCopy,e.options;var t=e.children,i=l(e,r),a=n.default.Children.only(t);return n.default.cloneElement(a,c(c({},i),{},{onClick:this.onClick}))}}])}(n.default.PureComponent),`defaultProps`,{onCopy:void 0,options:void 0})})),Ep=i(((e,t)=>{var n=Tp().CopyToClipboard;n.CopyToClipboard=n,t.exports=n})),Dp=e(Sp()),Op=Ep();function kp(e){return kp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kp(e)}function Ap(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mp(e,t,n){return t&&jp(e.prototype,t),n&&jp(e,n),e}function Np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pp(n,!0).forEach(function(t){Np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ip(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rp(e,t)}function Lp(e){return Lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lp(e)}function Rp(e,t){return Rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rp(e,t)}function zp(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Bp(e,t){return t&&(typeof t==`object`||typeof t==`function`)?t:zp(e)}var Vp={};function Hp(e){return e!==null&&kp(e)===`object`&&typeof e.get==`function`&&typeof e.has==`function`}function Up(e){return e==null}function Wp(e,t,n){return Up(e)?n:Hp(e)?e.has(t)?e.get(t):n:hasOwnProperty.call(e,t)?e[t]:n}function Gp(e,t,n){for(var r=0;r!==t.length;)if(e=Wp(e,t[r++],Vp),e===Vp)return n;return e}function Kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=qp(t,n);return(e||Object.keys(Fp({},n,{},t))).every(r)}function qp(e,t){return function(n){if(typeof n==`string`)return gt(t[n],e[n]);if(Array.isArray(n))return gt(Gp(t,n),Gp(e,n));throw TypeError(`Invalid key: expected Array or string: `+n)}}var Jp=function(e){Ip(t,e);function t(){return Ap(this,t),Bp(this,Lp(t).apply(this,arguments))}return Mp(t,[{key:`shouldComponentUpdate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!Kp(this.updateOnProps,this.props,e,`updateOnProps`)||!Kp(this.updateOnStates,this.state,t,`updateOnStates`)}}]),t}(H.Component),Yp=i(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Xp=i((e=>{function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceInput=void 0;var n=o(a()),r=o(Yp()),i=[`element`,`onChange`,`value`,`minLength`,`debounceTimeout`,`forceNotifyByEnter`,`forceNotifyOnBlur`,`onKeyDown`,`onBlur`,`inputRef`];function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(e==null)return{};var n=c(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?l(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function g(e){var t=y();return function(){var n=b(e),r;if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,n){if(n&&(t(n)===`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){m(a,e);var t=g(a);function a(e){var n;d(this,a),n=t.call(this,e),x(v(n),`onChange`,function(e){e.persist();var t=n.state.value,r=n.props.minLength;n.setState({value:e.target.value},function(){var i=n.state.value;if(i.length>=r){n.notify(e);return}t.length>i.length&&n.notify(u(u({},e),{},{target:u(u({},e.target),{},{value:``})}))})}),x(v(n),`onKeyDown`,function(e){e.key===`Enter`&&n.forceNotify(e);var t=n.props.onKeyDown;t&&(e.persist(),t(e))}),x(v(n),`onBlur`,function(e){n.forceNotify(e);var t=n.props.onBlur;t&&(e.persist(),t(e))}),x(v(n),`createNotifier`,function(e){if(e<0)n.notify=function(){return null};else if(e===0)n.notify=n.doNotify;else{var t=(0,r.default)(function(e){n.isDebouncing=!1,n.doNotify(e)},e);n.notify=function(e){n.isDebouncing=!0,t(e)},n.flush=function(){return t.flush()},n.cancel=function(){n.isDebouncing=!1,t.cancel()}}}),x(v(n),`doNotify`,function(){n.props.onChange.apply(void 0,arguments)}),x(v(n),`forceNotify`,function(e){var t=n.props.debounceTimeout;if(!(!n.isDebouncing&&t>0)){n.cancel&&n.cancel();var r=n.state.value,i=n.props.minLength;r.length>=i?n.doNotify(e):n.doNotify(u(u({},e),{},{target:u(u({},e.target),{},{value:r})}))}}),n.isDebouncing=!1,n.state={value:e.value===void 0||e.value===null?``:e.value};var i=n.props.debounceTimeout;return n.createNotifier(i),n}return p(a,[{key:`componentDidUpdate`,value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,r=t.debounceTimeout,i=e.debounceTimeout,a=e.value,o=this.state.value;n!==void 0&&a!==n&&o!==n&&this.setState({value:n}),r!==i&&this.createNotifier(r)}}},{key:`componentWillUnmount`,value:function(){this.flush&&this.flush()}},{key:`render`,value:function(){var e=this.props,t=e.element;e.onChange,e.value,e.minLength,e.debounceTimeout;var r=e.forceNotifyByEnter,a=e.forceNotifyOnBlur,o=e.onKeyDown,c=e.onBlur,l=e.inputRef,d=s(e,i),f=this.state.value,p=r?{onKeyDown:this.onKeyDown}:o?{onKeyDown:o}:{},m=a?{onBlur:this.onBlur}:c?{onBlur:c}:{},h=l?{ref:l}:{};return n.default.createElement(t,u(u(u(u({},d),{},{onChange:this.onChange,value:f},p),m),h))}}]),a}(n.default.PureComponent);e.DebounceInput=S,x(S,`defaultProps`,{element:`input`,type:`text`,onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})})),Zp=i(((e,t)=>{var n=Xp().DebounceInput;n.DebounceInput=n,t.exports=n})),Qp=i(((e,t)=>{t.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}})),$p=i((e=>{var t=Qp(),n=()=>[{type:t.RANGE,from:48,to:57}],r=()=>[{type:t.CHAR,value:95},{type:t.RANGE,from:97,to:122},{type:t.RANGE,from:65,to:90}].concat(n()),i=()=>[{type:t.CHAR,value:9},{type:t.CHAR,value:10},{type:t.CHAR,value:11},{type:t.CHAR,value:12},{type:t.CHAR,value:13},{type:t.CHAR,value:32},{type:t.CHAR,value:160},{type:t.CHAR,value:5760},{type:t.RANGE,from:8192,to:8202},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233},{type:t.CHAR,value:8239},{type:t.CHAR,value:8287},{type:t.CHAR,value:12288},{type:t.CHAR,value:65279}],a=()=>[{type:t.CHAR,value:10},{type:t.CHAR,value:13},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233}];e.words=()=>({type:t.SET,set:r(),not:!1}),e.notWords=()=>({type:t.SET,set:r(),not:!0}),e.ints=()=>({type:t.SET,set:n(),not:!1}),e.notInts=()=>({type:t.SET,set:n(),not:!0}),e.whitespace=()=>({type:t.SET,set:i(),not:!1}),e.notWhitespace=()=>({type:t.SET,set:i(),not:!0}),e.anyChar=()=>({type:t.SET,set:a(),not:!0})})),em=i((e=>{var t=Qp(),n=$p(),r=`@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?`,i={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,n,a,o,s,c,l){if(n)return e;var u=t?8:a?parseInt(a,16):o?parseInt(o,16):s?parseInt(s,8):c?r.indexOf(c):i[l],d=String.fromCharCode(u);return/[[\]{}^$.|?*+()]/.test(d)&&(d=`\\`+d),d}),e},e.tokenizeClass=(r,i)=>{for(var a=[],o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,s,c;(s=o.exec(r))!=null;)if(s[1])a.push(n.words());else if(s[2])a.push(n.ints());else if(s[3])a.push(n.whitespace());else if(s[4])a.push(n.notWords());else if(s[5])a.push(n.notInts());else if(s[6])a.push(n.notWhitespace());else if(s[7])a.push({type:t.RANGE,from:(s[8]||s[9]).charCodeAt(0),to:s[10].charCodeAt(0)});else if(c=s[12])a.push({type:t.CHAR,value:c.charCodeAt(0)});else return[a,o.lastIndex];e.error(i,`Unterminated character class`)},e.error=(e,t)=>{throw SyntaxError(`Invalid regular expression: /`+e+`/: `+t)}})),tm=i((e=>{var t=Qp();e.wordBoundary=()=>({type:t.POSITION,value:`b`}),e.nonWordBoundary=()=>({type:t.POSITION,value:`B`}),e.begin=()=>({type:t.POSITION,value:`^`}),e.end=()=>({type:t.POSITION,value:`$`})})),nm=i(((e,t)=>{var n=em(),r=Qp(),i=$p(),a=tm();t.exports=e=>{var t=0,o,s,c={type:r.ROOT,stack:[]},l=c,u=c.stack,d=[],f=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},p=n.strToChars(e);for(o=p.length;t<o;)switch(s=p[t++],s){case`\\`:switch(s=p[t++],s){case`b`:u.push(a.wordBoundary());break;case`B`:u.push(a.nonWordBoundary());break;case`w`:u.push(i.words());break;case`W`:u.push(i.notWords());break;case`d`:u.push(i.ints());break;case`D`:u.push(i.notInts());break;case`s`:u.push(i.whitespace());break;case`S`:u.push(i.notWhitespace());break;default:/\d/.test(s)?u.push({type:r.REFERENCE,value:parseInt(s,10)}):u.push({type:r.CHAR,value:s.charCodeAt(0)})}break;case`^`:u.push(a.begin());break;case`$`:u.push(a.end());break;case`[`:var m;p[t]===`^`?(m=!0,t++):m=!1;var h=n.tokenizeClass(p.slice(t),e);t+=h[1],u.push({type:r.SET,set:h[0],not:m});break;case`.`:u.push(i.anyChar());break;case`(`:var g={type:r.GROUP,stack:[],remember:!0};s=p[t],s===`?`&&(s=p[t+1],t+=2,s===`=`?g.followedBy=!0:s===`!`?g.notFollowedBy=!0:s!==`:`&&n.error(e,`Invalid group, character '${s}' after '?' at column ${t-1}`),g.remember=!1),u.push(g),d.push(l),l=g,u=g.stack;break;case`)`:d.length===0&&n.error(e,`Unmatched ) at column ${t-1}`),l=d.pop(),u=l.options?l.options[l.options.length-1]:l.stack;break;case`|`:l.options||(l.options=[l.stack],delete l.stack);var _=[];l.options.push(_),u=_;break;case`{`:var v=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),y,b;v===null?u.push({type:r.CHAR,value:123}):(u.length===0&&f(t),y=parseInt(v[1],10),b=v[2]?v[3]?parseInt(v[3],10):1/0:y,t+=v[0].length,u.push({type:r.REPETITION,min:y,max:b,value:u.pop()}));break;case`?`:u.length===0&&f(t),u.push({type:r.REPETITION,min:0,max:1,value:u.pop()});break;case`+`:u.length===0&&f(t),u.push({type:r.REPETITION,min:1,max:1/0,value:u.pop()});break;case`*`:u.length===0&&f(t),u.push({type:r.REPETITION,min:0,max:1/0,value:u.pop()});break;default:u.push({type:r.CHAR,value:s.charCodeAt(0)})}return d.length!==0&&n.error(e,`Unterminated group`),c},t.exports.types=r})),rm=i(((e,t)=>{var n=class e{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(t){return new e(Math.min(this.low,t.low),Math.max(this.high,t.high))}subtract(t){return t.low<=this.low&&t.high>=this.high?[]:t.low>this.low&&t.high<this.high?[new e(this.low,t.low-1),new e(t.high+1,this.high)]:t.low<=this.low?[new e(t.high+1,this.high)]:[new e(this.low,t.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+`-`+this.high}};t.exports=class e{constructor(e,t){this.ranges=[],this.length=0,e!=null&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce((e,t)=>e+t.length,0)}add(t,r){var i=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var n=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;n.push(e),this.ranges=n.concat(this.ranges.slice(t)),this._update_length()};return t instanceof e?t.ranges.forEach(i):(r??=t,i(new n(t,r))),this}subtract(t,r){var i=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var n=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)n=n.concat(this.ranges[t].subtract(e)),t++;this.ranges=n.concat(this.ranges.slice(t)),this._update_length()};return t instanceof e?t.ranges.forEach(i):(r??=t,i(new n(t,r))),this}intersect(t,r){var i=[],a=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(;t<this.ranges.length&&e.overlaps(this.ranges[t]);){var r=Math.max(this.ranges[t].low,e.low),a=Math.min(this.ranges[t].high,e.high);i.push(new n(r,a)),t++}};return t instanceof e?t.ranges.forEach(a):(r??=t,a(new n(t,r))),this.ranges=i,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return`[ `+this.ranges.join(`, `)+` ]`}clone(){return new e(this)}numbers(){return this.ranges.reduce((e,t)=>{for(var n=t.low;n<=t.high;)e.push(n),n++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}}})),im=i(((e,t)=>{var n=nm(),r=rm(),i=n.types;t.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if(typeof e==`string`)this.ignoreCase=t&&t.indexOf(`i`)!==-1,this.multiline=t&&t.indexOf(`m`)!==-1;else throw Error(`Expected a regexp or string`);this.tokens=n(e)}_setDefaults(t){this.max=t.max==null?e.prototype.max==null?100:e.prototype.max:t.max,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var n,r,a,o,s;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return``;for(e.remember&&e.groupNumber===void 0&&(e.groupNumber=t.push(null)-1),n=e.options?this._randSelect(e.options):e.stack,r=``,o=0,s=n.length;o<s;o++)r+=this._gen(n[o],t);return e.remember&&(t[e.groupNumber]=r),r;case i.POSITION:return``;case i.SET:var c=this._expand(e);return c.length?String.fromCharCode(this._randSelect(c)):``;case i.REPETITION:for(a=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),r=``,o=0;o<a;o++)r+=this._gen(e.value,t);return r;case i.REFERENCE:return t[e.value-1]||``;case i.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(l)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof r?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR)return new r(e.value);if(e.type===n.types.RANGE)return new r(e.from,e.to);{let t=new r;for(let n=0;n<e.set.length;n++){let r=this._expand(e.set[n]);if(t.add(r),this.ignoreCase)for(let e=0;e<r.length;e++){let n=r.index(e),i=this._toOtherCase(n);n!==i&&t.add(i)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new r(32,126)}set defaultRange(e){this._range=e}static randexp(t,n){var r;return typeof t==`string`&&(t=new RegExp(t,n)),t._randexp===void 0?(r=new e(t,n),t._randexp=r):(r=t._randexp,r._setDefaults(t)),r.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}})),am=i(((e,t)=>{var n=Sc(),r=Ac(),i=ns(),a=rs(),o=as(),s=cs(),c=Qo(),l=ps(),u=`[object Map]`,d=`[object Set]`,f=Object.prototype.hasOwnProperty;function p(e){if(e==null)return!0;if(o(e)&&(a(e)||typeof e==`string`||typeof e.splice==`function`||s(e)||l(e)||i(e)))return!e.length;var t=r(e);if(t==u||t==d)return!e.size;if(c(e))return!n(e).length;for(var p in e)if(f.call(e,p))return!1;return!0}t.exports=p})),om=i(((e,t)=>{var n=fo(),r=rs(),i=es(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),sm=i(((e,t)=>{var n=so();t.exports=function(){return n.Date.now()}})),cm=i(((e,t)=>{var n=po(),r=sm(),i=rl(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),lm=i(((e,t)=>{var n=hs(),r=Vc(),i=vs(),a=po(),o=Hc();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),um=i(((e,t)=>{var n=lm();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),dm=i((e=>{e.aliasToReal={each:`forEach`,eachRight:`forEachRight`,entries:`toPairs`,entriesIn:`toPairsIn`,extend:`assignIn`,extendAll:`assignInAll`,extendAllWith:`assignInAllWith`,extendWith:`assignInWith`,first:`head`,conforms:`conformsTo`,matches:`isMatch`,property:`get`,__:`placeholder`,F:`stubFalse`,T:`stubTrue`,all:`every`,allPass:`overEvery`,always:`constant`,any:`some`,anyPass:`overSome`,apply:`spread`,assoc:`set`,assocPath:`set`,complement:`negate`,compose:`flowRight`,contains:`includes`,dissoc:`unset`,dissocPath:`unset`,dropLast:`dropRight`,dropLastWhile:`dropRightWhile`,equals:`isEqual`,identical:`eq`,indexBy:`keyBy`,init:`initial`,invertObj:`invert`,juxt:`over`,omitAll:`omit`,nAry:`ary`,path:`get`,pathEq:`matchesProperty`,pathOr:`getOr`,paths:`at`,pickAll:`pick`,pipe:`flow`,pluck:`map`,prop:`get`,propEq:`matchesProperty`,propOr:`getOr`,props:`at`,symmetricDifference:`xor`,symmetricDifferenceBy:`xorBy`,symmetricDifferenceWith:`xorWith`,takeLast:`takeRight`,takeLastWhile:`takeRightWhile`,unapply:`rest`,unnest:`flatten`,useWith:`overArgs`,where:`conformsTo`,whereEq:`isMatch`,zipObj:`zipObject`},e.aryMethod={1:`assignAll.assignInAll.attempt.castArray.ceil.create.curry.curryRight.defaultsAll.defaultsDeepAll.floor.flow.flowRight.fromPairs.invert.iteratee.memoize.method.mergeAll.methodOf.mixin.nthArg.over.overEvery.overSome.rest.reverse.round.runInContext.spread.template.trim.trimEnd.trimStart.uniqueId.words.zipAll`.split(`.`),2:`add.after.ary.assign.assignAllWith.assignIn.assignInAllWith.at.before.bind.bindAll.bindKey.chunk.cloneDeepWith.cloneWith.concat.conformsTo.countBy.curryN.curryRightN.debounce.defaults.defaultsDeep.defaultTo.delay.difference.divide.drop.dropRight.dropRightWhile.dropWhile.endsWith.eq.every.filter.find.findIndex.findKey.findLast.findLastIndex.findLastKey.flatMap.flatMapDeep.flattenDepth.forEach.forEachRight.forIn.forInRight.forOwn.forOwnRight.get.groupBy.gt.gte.has.hasIn.includes.indexOf.intersection.invertBy.invoke.invokeMap.isEqual.isMatch.join.keyBy.lastIndexOf.lt.lte.map.mapKeys.mapValues.matchesProperty.maxBy.meanBy.merge.mergeAllWith.minBy.multiply.nth.omit.omitBy.overArgs.pad.padEnd.padStart.parseInt.partial.partialRight.partition.pick.pickBy.propertyOf.pull.pullAll.pullAt.random.range.rangeRight.rearg.reject.remove.repeat.restFrom.result.sampleSize.some.sortBy.sortedIndex.sortedIndexOf.sortedLastIndex.sortedLastIndexOf.sortedUniqBy.split.spreadFrom.startsWith.subtract.sumBy.take.takeRight.takeRightWhile.takeWhile.tap.throttle.thru.times.trimChars.trimCharsEnd.trimCharsStart.truncate.union.uniqBy.uniqWith.unset.unzipWith.without.wrap.xor.zip.zipObject.zipObjectDeep`.split(`.`),3:`assignInWith.assignWith.clamp.differenceBy.differenceWith.findFrom.findIndexFrom.findLastFrom.findLastIndexFrom.getOr.includesFrom.indexOfFrom.inRange.intersectionBy.intersectionWith.invokeArgs.invokeArgsMap.isEqualWith.isMatchWith.flatMapDepth.lastIndexOfFrom.mergeWith.orderBy.padChars.padCharsEnd.padCharsStart.pullAllBy.pullAllWith.rangeStep.rangeStepRight.reduce.reduceRight.replace.set.slice.sortedIndexBy.sortedLastIndexBy.transform.unionBy.unionWith.update.xorBy.xorWith.zipWith`.split(`.`),4:[`fill`,`setWith`,`updateWith`]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),e.remap={assignAll:`assign`,assignAllWith:`assignWith`,assignInAll:`assignIn`,assignInAllWith:`assignInWith`,curryN:`curry`,curryRightN:`curryRight`,defaultsAll:`defaults`,defaultsDeepAll:`defaultsDeep`,findFrom:`find`,findIndexFrom:`findIndex`,findLastFrom:`findLast`,findLastIndexFrom:`findLastIndex`,getOr:`get`,includesFrom:`includes`,indexOfFrom:`indexOf`,invokeArgs:`invoke`,invokeArgsMap:`invokeMap`,lastIndexOfFrom:`lastIndexOf`,mergeAll:`merge`,mergeAllWith:`mergeWith`,padChars:`pad`,padCharsEnd:`padEnd`,padCharsStart:`padStart`,propertyOf:`get`,rangeStep:`range`,rangeStepRight:`rangeRight`,restFrom:`rest`,spreadFrom:`spread`,trimChars:`trim`,trimCharsEnd:`trimEnd`,trimCharsStart:`trimStart`,zipAll:`zip`},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})),fm=i(((e,t)=>{t.exports={}})),pm=i(((e,t)=>{var n=dm(),r=fm(),i=Array.prototype.push;function a(e,t){return t==2?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function o(e,t){return t==2?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e){return function(t){return e({},t)}}function l(e,t){return function(){for(var n=arguments.length,r=n-1,a=Array(n);n--;)a[n]=arguments[n];var o=a[t],s=a.slice(0,t);return o&&i.apply(s,o),t!=r&&i.apply(s,a.slice(t+1)),e.apply(this,s)}}function u(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}function d(e,t,i,f){var p=typeof t==`function`,m=t===Object(t);if(m&&(f=i,i=t,t=void 0),i==null)throw TypeError();f||={};var h={cap:`cap`in f?f.cap:!0,curry:`curry`in f?f.curry:!0,fixed:`fixed`in f?f.fixed:!0,immutable:`immutable`in f?f.immutable:!0,rearg:`rearg`in f?f.rearg:!0},g=p?i:r,_=`curry`in f&&f.curry,v=`fixed`in f&&f.fixed,y=`rearg`in f&&f.rearg,b=p?i.runInContext():void 0,x=p?i:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},S=x.ary,C=x.assign,w=x.clone,T=x.curry,E=x.forEach,D=x.isArray,O=x.isError,k=x.isFunction,A=x.isWeakMap,j=x.keys,M=x.rearg,N=x.toInteger,P=x.toPath,ee=j(n.aryMethod),te={castArray:function(e){return function(){var t=arguments[0];return D(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return h.cap&&typeof n==`number`?(n=n>2?n-2:1,i&&i<=n?r:o(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!k(n))return e(n,Object(t));var r=[];return E(j(t),function(e){k(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),E(r,function(e){var t=e[1];k(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:N(t)+1;return T(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return T(e(t,n),r)}},runInContext:function(t){return function(n){return d(e,t(n),f)}}};function F(e,t){if(h.cap){var r=n.iterateeRearg[e];if(r)return oe(t,r);var i=!p&&n.iterateeAry[e];if(i)return ae(t,i)}return t}function I(e,t,n){return _||h.curry&&n>1?T(t,n):t}function L(e,t,r){if(h.fixed&&(v||!n.skipFixed[e])){var i=n.methodSpread[e],a=i&&i.start;return a===void 0?S(t,r):l(t,a)}return t}function R(e,t,r){return h.rearg&&r>1&&(y||!n.skipRearg[e])?M(t,n.methodRearg[e]||n.aryRearg[r]):t}function ne(e,t){t=P(t);for(var n=-1,r=t.length,i=r-1,a=w(Object(e)),o=a;o!=null&&++n<r;){var s=t[n],c=o[s];c!=null&&!(k(c)||O(c)||A(c))&&(o[s]=w(n==i?c:Object(c))),o=o[s]}return a}function re(e){return le.runInContext.convert(e)(void 0)}function ie(e,t){var r=n.aliasToReal[e]||e,i=n.remap[r]||r,a=f;return function(e){return d(p?b:x,r,p?b[i]:t,C(C({},a),e))}}function ae(e,t){return se(e,function(e){return typeof e==`function`?o(e,t):e})}function oe(e,t){return se(e,function(e){var n=t.length;return a(M(o(e,n),t),n)})}function se(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=h.rearg?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function ce(e,t,r){var i,a=n.aliasToReal[e]||e,o=t,l=te[a];return l?o=l(t):h.immutable&&(n.mutate.array[a]?o=u(t,s):n.mutate.object[a]?o=u(t,c(t)):n.mutate.set[a]&&(o=u(t,ne))),E(ee,function(e){return E(n.aryMethod[e],function(t){if(a==t){var r=n.methodSpread[a];return i=r&&r.afterRearg?L(a,R(a,o,e),e):R(a,L(a,o,e),e),i=F(a,i),i=I(a,i,e),!1}}),!i}),i||=o,i==t&&(i=_?T(i,1):function(){return t.apply(this,arguments)}),i.convert=ie(a,t),i.placeholder=t.placeholder=r,i}if(!m)return ce(t,i,g);var le=i,ue=[];return E(ee,function(e){E(n.aryMethod[e],function(e){var t=le[n.remap[e]||e];t&&ue.push([e,ce(e,t,le)])})}),E(j(le),function(e){var t=le[e];if(typeof t==`function`){for(var n=ue.length;n--;)if(ue[n][0]==e)return;t.convert=ie(e,t),ue.push([e,t])}}),E(ue,function(e){le[e[0]]=e[1]}),le.convert=re,le.placeholder=le,E(j(le),function(e){E(n.realToAlias[e]||[],function(t){le[t]=le[e]})}),le}t.exports=d})),mm=i(((e,t)=>{var n=kc();t.exports=n&&new n})),hm=i(((e,t)=>{var n=Es(),r=mm();t.exports=r?function(e,t){return r.set(e,t),e}:n})),gm=i(((e,t)=>{var n=Yo(),r=po();function i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=n(e.prototype),a=e.apply(i,t);return r(a)?a:i}}t.exports=i})),_m=i(((e,t)=>{var n=gm(),r=so(),i=1;function a(e,t,a){var o=t&i,s=n(e);function c(){return(this&&this!==r&&this instanceof c?s:e).apply(o?a:this,arguments)}return c}t.exports=a})),vm=i(((e,t)=>{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=r.length,c=-1,l=t.length,u=n(o-s,0),d=Array(l+u),f=!i;++c<l;)d[c]=t[c];for(;++a<s;)(f||a<o)&&(d[r[a]]=e[a]);for(;u--;)d[c++]=e[a++];return d}t.exports=r})),ym=i(((e,t)=>{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(o-c,0),f=Array(d+u),p=!i;++a<d;)f[a]=e[a];for(var m=a;++l<u;)f[m+l]=t[l];for(;++s<c;)(p||a<o)&&(f[m+r[s]]=e[a++]);return f}t.exports=r})),bm=i(((e,t)=>{function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}t.exports=n})),xm=i(((e,t)=>{function n(){}t.exports=n})),Sm=i(((e,t)=>{var n=Yo(),r=xm(),i=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}a.prototype=n(r.prototype),a.prototype.constructor=a,t.exports=a})),Cm=i(((e,t)=>{function n(){}t.exports=n})),wm=i(((e,t)=>{var n=mm(),r=Cm();t.exports=n?function(e){return n.get(e)}:r})),Tm=i(((e,t)=>{t.exports={}})),Em=i(((e,t)=>{var n=Tm(),r=Object.prototype.hasOwnProperty;function i(e){for(var t=e.name+``,i=n[t],a=r.call(n,t)?i.length:0;a--;){var o=i[a],s=o.func;if(s==null||s==e)return o.name}return t}t.exports=i})),Dm=i(((e,t)=>{var n=Yo(),r=xm();function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(r.prototype),i.prototype.constructor=i,t.exports=i})),Om=i(((e,t)=>{var n=Sm(),r=Dm(),i=Jo();function a(e){if(e instanceof n)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}t.exports=a})),km=i(((e,t)=>{var n=Sm(),r=Dm(),i=xm(),a=rs(),o=es(),s=Om(),c=Object.prototype.hasOwnProperty;function l(e){if(o(e)&&!a(e)&&!(e instanceof n)){if(e instanceof r)return e;if(c.call(e,`__wrapped__`))return s(e)}return new r(e)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l})),Am=i(((e,t)=>{var n=Sm(),r=wm(),i=Em(),a=km();function o(e){var t=i(e),o=a[t];if(typeof o!=`function`||!(t in n.prototype))return!1;if(e===o)return!0;var s=r(o);return!!s&&e===s[0]}t.exports=o})),jm=i(((e,t)=>{var n=hm();t.exports=js()(n)})),Mm=i(((e,t)=>{var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;function i(e){var t=e.match(n);return t?t[1].split(r):[]}t.exports=i})),Nm=i(((e,t)=>{var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function r(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?`& `:``)+t[i],t=t.join(r>2?`, `:` `),e.replace(n,`{
|
|
35
|
-
/* [wrapped with `+t+`] */
|
|
36
|
-
`)}t.exports=r})),Pm=i(((e,t)=>{function n(e){return e!==e}t.exports=n})),Fm=i(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),Im=i(((e,t)=>{var n=el(),r=Pm(),i=Fm();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),Lm=i(((e,t)=>{var n=Im();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),Rm=i(((e,t)=>{var n=_l(),r=Lm(),i=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]];function a(e,t){return n(i,function(n){var i=`_.`+n[0];t&n[1]&&!r(e,i)&&e.push(i)}),e.sort()}t.exports=a})),zm=i(((e,t)=>{var n=Mm(),r=Nm(),i=Ms(),a=Rm();function o(e,t,o){var s=t+``;return i(e,r(s,a(n(s),o)))}t.exports=o})),Bm=i(((e,t)=>{var n=Am(),r=jm(),i=zm(),a=1,o=2,s=4,c=8,l=32,u=64;function d(e,t,d,f,p,m,h,g,_,v){var y=t&c,b=y?h:void 0,x=y?void 0:h,S=y?m:void 0,C=y?void 0:m;t|=y?l:u,t&=~(y?u:l),t&s||(t&=~(a|o));var w=[e,t,p,S,b,C,x,g,_,v],T=d.apply(void 0,w);return n(e)&&r(T,w),T.placeholder=f,i(T,e,t)}t.exports=d})),Vm=i(((e,t)=>{function n(e){return e.placeholder}t.exports=n})),Hm=i(((e,t)=>{var n=Jo(),r=vs(),i=Math.min;function a(e,t){for(var a=e.length,o=i(t.length,a),s=n(e);o--;){var c=t[o];e[o]=r(c,a)?s[c]:void 0}return e}t.exports=a})),Um=i(((e,t)=>{var n=`__lodash_placeholder__`;function r(e,t){for(var r=-1,i=e.length,a=0,o=[];++r<i;){var s=e[r];(s===t||s===n)&&(e[r]=n,o[a++]=r)}return o}t.exports=r})),Wm=i(((e,t)=>{var n=vm(),r=ym(),i=bm(),a=gm(),o=Bm(),s=Vm(),c=Hm(),l=Um(),u=so(),d=1,f=2,p=8,m=16,h=128,g=512;function _(e,t,v,y,b,x,S,C,w,T){var E=t&h,D=t&d,O=t&f,k=t&(p|m),A=t&g,j=O?void 0:a(e);function M(){for(var d=arguments.length,f=Array(d),p=d;p--;)f[p]=arguments[p];if(k)var m=s(M),h=i(f,m);if(y&&(f=n(f,y,b,k)),x&&(f=r(f,x,S,k)),d-=h,k&&d<T){var g=l(f,m);return o(e,t,_,M.placeholder,v,f,g,C,w,T-d)}var N=D?v:this,P=O?N[e]:e;return d=f.length,C?f=c(f,C):A&&d>1&&f.reverse(),E&&w<d&&(f.length=w),this&&this!==u&&this instanceof M&&(P=j||a(P)),P.apply(N,f)}return M}t.exports=_})),Gm=i(((e,t)=>{var n=Ds(),r=gm(),i=Wm(),a=Bm(),o=Vm(),s=Um(),c=so();function l(e,t,l){var u=r(e);function d(){for(var r=arguments.length,f=Array(r),p=r,m=o(d);p--;)f[p]=arguments[p];var h=r<3&&f[0]!==m&&f[r-1]!==m?[]:s(f,m);return r-=h.length,r<l?a(e,t,i,d.placeholder,void 0,f,h,void 0,void 0,l-r):n(this&&this!==c&&this instanceof d?u:e,this,f)}return d}t.exports=l})),Km=i(((e,t)=>{var n=Ds(),r=gm(),i=so(),a=1;function o(e,t,o,s){var c=t&a,l=r(e);function u(){for(var t=-1,r=arguments.length,a=-1,d=s.length,f=Array(d+r),p=this&&this!==i&&this instanceof u?l:e;++a<d;)f[a]=s[a];for(;r--;)f[a++]=arguments[++t];return n(p,c?o:this,f)}return u}t.exports=o})),qm=i(((e,t)=>{var n=vm(),r=ym(),i=Um(),a=`__lodash_placeholder__`,o=1,s=2,c=4,l=8,u=128,d=256,f=Math.min;function p(e,t){var p=e[1],m=t[1],h=p|m,g=h<(o|s|u),_=m==u&&p==l||m==u&&p==d&&e[7].length<=t[8]||m==(u|d)&&t[7].length<=t[8]&&p==l;if(!(g||_))return e;m&o&&(e[2]=t[2],h|=p&o?0:c);var v=t[3];if(v){var y=e[3];e[3]=y?n(y,v,t[4]):v,e[4]=y?i(e[3],a):t[4]}return v=t[5],v&&(y=e[5],e[5]=y?r(y,v,t[6]):v,e[6]=y?i(e[5],a):t[6]),v=t[7],v&&(e[7]=v),m&u&&(e[8]=e[8]==null?t[8]:f(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=h,e}t.exports=p})),Jm=i(((e,t)=>{var n=hm(),r=_m(),i=Gm(),a=Wm(),o=Km(),s=wm(),c=qm(),l=jm(),u=zm(),d=al(),f=`Expected a function`,p=1,m=2,h=8,g=16,_=32,v=64,y=Math.max;function b(e,t,b,x,S,C,w,T){var E=t&m;if(!E&&typeof e!=`function`)throw TypeError(f);var D=x?x.length:0;if(D||(t&=~(_|v),x=S=void 0),w=w===void 0?w:y(d(w),0),T=T===void 0?T:d(T),D-=S?S.length:0,t&v){var O=x,k=S;x=S=void 0}var A=E?void 0:s(e),j=[e,t,b,x,S,O,k,C,w,T];if(A&&c(j,A),e=j[0],t=j[1],b=j[2],x=j[3],S=j[4],T=j[9]=j[9]===void 0?E?0:e.length:y(j[9]-D,0),!T&&t&(h|g)&&(t&=~(h|g)),!t||t==p)var M=r(e,t,b);else M=t==h||t==g?i(e,t,T):(t==_||t==(p|_))&&!S.length?o(e,t,b,x):a.apply(void 0,j);return u((A?n:l)(M,j),e,t)}t.exports=b})),Ym=i(((e,t)=>{var n=Jm(),r=128;function i(e,t,i){return t=i?void 0:t,t=e&&t==null?e.length:t,n(e,r,void 0,void 0,void 0,void 0,t)}t.exports=i})),Xm=i(((e,t)=>{var n=Nl(),r=4;function i(e){return n(e,r)}t.exports=i})),Zm=i(((e,t)=>{var n=Jm(),r=8;function i(e,t,a){t=a?void 0:t;var o=n(e,r,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=i.placeholder,o}i.placeholder={},t.exports=i})),Qm=i(((e,t)=>{var n=fo(),r=es(),i=ls(),a=`[object DOMException]`,o=`[object Error]`;function s(e){if(!r(e))return!1;var t=n(e);return t==o||t==a||typeof e.message==`string`&&typeof e.name==`string`&&!i(e)}t.exports=s})),$m=i(((e,t)=>{var n=Ac(),r=es(),i=`[object WeakMap]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),eh=i(((e,t)=>{var n=Nl(),r=Qc(),i=1;function a(e){return r(typeof e==`function`?e:n(e,i))}t.exports=a})),th=i(((e,t)=>{var n=Jm(),r=Vl(),i=256;t.exports=r(function(e,t){return n(e,i,void 0,void 0,void 0,t)})})),nh=i(((e,t)=>{var n=Ls(),r=Jo(),i=rs(),a=Rs(),o=Bc(),s=Hc(),c=Bs();function l(e){return i(e)?n(e,s):a(e)?[e]:r(o(c(e)))}t.exports=l})),rh=i(((e,t)=>{t.exports={ary:Ym(),assign:vl(),clone:Xm(),curry:Zm(),forEach:_l(),isArray:rs(),isError:Qm(),isFunction:mo(),isWeakMap:$m(),iteratee:eh(),keys:Sc(),rearg:th(),toInteger:al(),toPath:nh()}})),ih=i(((e,t)=>{var n=pm(),r=rh();function i(e,t,i){return n(r,e,t,i)}t.exports=i})),ah=i(((e,t)=>{var n=ih()(`set`,um());n.placeholder=fm(),t.exports=n})),oh=i(((e,t)=>{t.exports=ah()})),sh=e(ls()),ch=e(ks()),lh=e(Zp()),uh=e(im()),dh=e(am()),fh=e(om()),ph=e(cm()),mh=e(um()),hh=e(oh()),gh=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),_h=Object.prototype.hasOwnProperty;function vh(e,t){return _h.call(e,t)}function yh(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n<t.length;n++)t[n]=``+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)vh(e,i)&&r.push(i);return r}function bh(e){switch(typeof e){case`object`:return JSON.parse(JSON.stringify(e));case`undefined`:return null;default:return e}}function xh(e){for(var t=0,n=e.length,r;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function Sh(e){return e.indexOf(`/`)===-1&&e.indexOf(`~`)===-1?e:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Ch(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function wh(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(wh(e[t]))return!0}else if(typeof e==`object`){for(var r=yh(e),i=r.length,a=0;a<i;a++)if(wh(e[r[a]]))return!0}}return!1}function Th(e,t){var n=[e];for(var r in t){var i=typeof t[r]==`object`?JSON.stringify(t[r],null,2):t[r];i!==void 0&&n.push(r+`: `+i)}return n.join(`
|
|
37
|
-
`)}var Eh=function(e){gh(t,e);function t(t,n,r,i,a){var o=this.constructor,s=e.call(this,Th(t,{name:n,index:r,operation:i,tree:a}))||this;return s.name=n,s.index=r,s.operation=i,s.tree=a,Object.setPrototypeOf(s,o.prototype),s.message=Th(t,{name:n,index:r,operation:i,tree:a}),s}return t}(Error),Dh=r({JsonPatchError:()=>Oh,_areEquals:()=>Rh,applyOperation:()=>Nh,applyPatch:()=>Ph,applyReducer:()=>Fh,deepClone:()=>kh,getValueByPointer:()=>Mh,validate:()=>Lh,validator:()=>Ih}),Oh=Eh,kh=bh,Ah={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Mh(n,this.path);r&&=bh(r);var i=Nh(n,{op:`remove`,path:this.from}).removed;return Nh(n,{op:`add`,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Mh(n,this.from);return Nh(n,{op:`add`,path:this.path,value:bh(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Rh(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},jh={add:function(e,t,n){return xh(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Ah.move,copy:Ah.copy,test:Ah.test,_get:Ah._get};function Mh(e,t){if(t==``)return e;var n={op:`_get`,path:t};return Nh(e,n),n.value}function Nh(e,t,n,r,i,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),n&&(typeof n==`function`?n(t,0,e,t.path):Ih(t,0)),t.path===``){var o={newDocument:e};if(t.op===`add`)return o.newDocument=t.value,o;if(t.op===`replace`)return o.newDocument=t.value,o.removed=e,o;if(t.op===`move`||t.op===`copy`)return o.newDocument=Mh(e,t.from),t.op===`move`&&(o.removed=e),o;if(t.op===`test`){if(o.test=Rh(e,t.value),o.test===!1)throw new Oh(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o.newDocument=e,o}if(t.op===`remove`)return o.removed=e,o.newDocument=null,o;if(t.op===`_get`)return t.value=e,o;if(n)throw new Oh("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,a,t,e);return o}r||(e=bh(e));var s=(t.path||``).split(`/`),c=e,l=1,u=s.length,d=void 0,f=void 0,p=void 0;for(p=typeof n==`function`?n:Ih;;){if(f=s[l],f&&f.indexOf(`~`)!=-1&&(f=Ch(f)),i&&(f==`__proto__`||f==`prototype`&&l>0&&s[l-1]==`constructor`))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&d===void 0&&(c[f]===void 0?d=s.slice(0,l).join(`/`):l==u-1&&(d=t.path),d!==void 0&&p(t,0,e,d)),l++,Array.isArray(c)){if(f===`-`)f=c.length;else if(n&&!xh(f))throw new Oh(`Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index`,`OPERATION_PATH_ILLEGAL_ARRAY_INDEX`,a,t,e);else xh(f)&&(f=~~f);if(l>=u){if(n&&t.op===`add`&&f>c.length)throw new Oh(`The specified index MUST NOT be greater than the number of elements in the array`,`OPERATION_VALUE_OUT_OF_BOUNDS`,a,t,e);var o=jh[t.op].call(t,c,f,e);if(o.test===!1)throw new Oh(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}}else if(l>=u){var o=Ah[t.op].call(t,c,f,e);if(o.test===!1)throw new Oh(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}if(c=c[f],n&&l<u&&(!c||typeof c!=`object`))throw new Oh(`Cannot perform operation at the desired path`,`OPERATION_PATH_UNRESOLVABLE`,a,t,e)}}function Ph(e,t,n,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),n&&!Array.isArray(t))throw new Oh(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);r||(e=bh(e));for(var a=Array(t.length),o=0,s=t.length;o<s;o++)a[o]=Nh(e,t[o],n,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function Fh(e,t,n){var r=Nh(e,t);if(r.test===!1)throw new Oh(`Test operation failed`,`TEST_OPERATION_FAILED`,n,t,e);return r.newDocument}function Ih(e,t,n,r){if(typeof e!=`object`||!e||Array.isArray(e))throw new Oh(`Operation is not an object`,`OPERATION_NOT_AN_OBJECT`,t,e,n);if(!Ah[e.op])throw new Oh("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,t,e,n);if(typeof e.path!=`string`)throw new Oh("Operation `path` property is not a string",`OPERATION_PATH_INVALID`,t,e,n);if(e.path.indexOf(`/`)!==0&&e.path.length>0)throw new Oh('Operation `path` property must start with "/"',`OPERATION_PATH_INVALID`,t,e,n);if((e.op===`move`||e.op===`copy`)&&typeof e.from!=`string`)throw new Oh("Operation `from` property is not present (applicable in `move` and `copy` operations)",`OPERATION_FROM_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&e.value===void 0)throw new Oh("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&wh(e.value))throw new Oh("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED`,t,e,n);if(n){if(e.op==`add`){var i=e.path.split(`/`).length,a=r.split(`/`).length;if(i!==a+1&&i!==a)throw new Oh("Cannot perform an `add` operation at the desired path",`OPERATION_PATH_CANNOT_ADD`,t,e,n)}else if(e.op===`replace`||e.op===`remove`||e.op===`_get`){if(e.path!==r)throw new Oh(`Cannot perform the operation at a path that does not exist`,`OPERATION_PATH_UNRESOLVABLE`,t,e,n)}else if(e.op===`move`||e.op===`copy`){var o=Lh([{op:`_get`,path:e.from,value:void 0}],n);if(o&&o.name===`OPERATION_PATH_UNRESOLVABLE`)throw new Oh(`Cannot perform the operation from a path that does not exist`,`OPERATION_FROM_UNRESOLVABLE`,t,e,n)}}}function Lh(e,t,n){try{if(!Array.isArray(e))throw new Oh(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);if(t)Ph(bh(t),bh(e),n||!0);else{n||=Ih;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof Oh)return e;throw e}}function Rh(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){var n=Array.isArray(e),r=Array.isArray(t),i,a,o;if(n&&r){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!Rh(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=Object.keys(e);if(a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!==0;)if(!t.hasOwnProperty(s[i]))return!1;for(i=a;i--!==0;)if(o=s[i],!Rh(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var zh=r({compare:()=>Xh,generate:()=>Jh,observe:()=>qh,unobserve:()=>Kh}),Bh=new WeakMap,Vh=function(){function e(e){this.observers=new Map,this.obj=e}return e}(),Hh=function(){function e(e,t){this.callback=e,this.observer=t}return e}();function Uh(e){return Bh.get(e)}function Wh(e,t){return e.observers.get(t)}function Gh(e,t){e.observers.delete(t.callback)}function Kh(e,t){t.unobserve()}function qh(e,t){var n=[],r,i=Uh(e);if(!i)i=new Vh(e),Bh.set(e,i);else{var a=Wh(i,t);r=a&&a.observer}if(r)return r;if(r={},i.value=bh(e),t){r.callback=t,r.next=null;var o=function(){Jh(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window<`u`&&(window.addEventListener(`mouseup`,s),window.addEventListener(`keyup`,s),window.addEventListener(`mousedown`,s),window.addEventListener(`keydown`,s),window.addEventListener(`change`,s))}return r.patches=n,r.object=e,r.unobserve=function(){Jh(r),clearTimeout(r.next),Gh(i,r),typeof window<`u`&&(window.removeEventListener(`mouseup`,s),window.removeEventListener(`keyup`,s),window.removeEventListener(`mousedown`,s),window.removeEventListener(`keydown`,s),window.removeEventListener(`change`,s))},i.observers.set(t,new Hh(t,r)),r}function Jh(e,t){t===void 0&&(t=!1);var n=Bh.get(e.object);Yh(n.value,e.object,e.patches,``,t),e.patches.length&&Ph(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Yh(e,t,n,r,i){if(t!==e){typeof t.toJSON==`function`&&(t=t.toJSON());for(var a=yh(t),o=yh(e),s=!1,c=o.length-1;c>=0;c--){var l=o[c],u=e[l];if(vh(t,l)&&(t[l]!==void 0||u===void 0||Array.isArray(t)!==!1)){var d=t[l];typeof u==`object`&&u&&typeof d==`object`&&d&&Array.isArray(u)===Array.isArray(d)?Yh(u,d,n,r+`/`+Sh(l),i):u!==d&&(i&&n.push({op:`test`,path:r+`/`+Sh(l),value:bh(u)}),n.push({op:`replace`,path:r+`/`+Sh(l),value:bh(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:`test`,path:r+`/`+Sh(l),value:bh(u)}),n.push({op:`remove`,path:r+`/`+Sh(l)}),s=!0):(i&&n.push({op:`test`,path:r,value:e}),n.push({op:`replace`,path:r,value:t}))}if(!(!s&&a.length==o.length))for(var c=0;c<a.length;c++){var l=a[c];!vh(e,l)&&t[l]!==void 0&&n.push({op:`add`,path:r+`/`+Sh(l),value:bh(t[l])})}}}function Xh(e,t,n){n===void 0&&(n=!1);var r=[];return Yh(e,t,r,``,n),r}Object.assign({},Dh,zh,{JsonPatchError:Eh,deepClone:bh,escapePathComponent:Sh,unescapePathComponent:Ch});var Zh=e(i(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(r[i]=p(e,i)&&n.isMergeableObject(t[i])?u(i,n)(e[i],t[i],n):c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}))()),Qh={add:tg,replace:ng,remove:rg,merge:ig,mergeDeep:ag,context:og,getIn:pg,applyPatch:$h,parentPathMatch:fg,flatten:gg,fullyNormalizeArray:mg,normalizeArray:hg,isPromise:yg,forEachNew:sg,forEachNewPrimitive:cg,isJsonPatch:Sg,isContextPatch:Eg,isPatch:Dg,isMutation:wg,isAdditiveMutation:Tg,isGenerator:Cg,isFunction:bg,isObject:vg,isError:xg};function $h(e,t,n){if(n||={},t={...t,path:t.path&&eg(t.path)},t.op===`merge`){let n=Og(e,t.path);Object.assign(n,t.value),Ph(e,[ng(t.path,n)])}else if(t.op===`mergeDeep`){let n=Og(e,t.path),r=(0,Zh.default)(n,t.value,{customMerge:e=>{if(e===`enum`)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:(0,Zh.default)(e,t)}});e=Ph(e,[ng(t.path,r)]).newDocument}else if(t.op===`add`&&t.path===``&&vg(t.value)){let n=Object.keys(t.value).reduce((e,n)=>(e.push({op:`add`,path:`/${eg(n)}`,value:t.value[n]}),e),[]);Ph(e,n)}else if(t.op===`replace`&&t.path===``){let{value:r}=t;n.allowMetaPatches&&t.meta&&Tg(t)&&(Array.isArray(t.value)||vg(t.value))&&(r={...r,...t.meta}),e=r}else if(Ph(e,[t]),n.allowMetaPatches&&t.meta&&Tg(t)&&(Array.isArray(t.value)||vg(t.value))){let n={...Og(e,t.path),...t.meta};Ph(e,[ng(t.path,n)])}return e}function eg(e){return Array.isArray(e)?e.length<1?``:`/${e.map(e=>(e+``).replace(/~/g,`~0`).replace(/\//g,`~1`)).join(`/`)}`:e}function tg(e,t){return{op:`add`,path:e,value:t}}function ng(e,t,n){return{op:`replace`,path:e,value:t,meta:n}}function rg(e){return{op:`remove`,path:e}}function ig(e,t){return{type:`mutation`,op:`merge`,path:e,value:t}}function ag(e,t){return{type:`mutation`,op:`mergeDeep`,path:e,value:t}}function og(e,t){return{type:`context`,path:e,value:t}}function sg(e,t){try{return lg(e,dg,t)}catch(e){return e}}function cg(e,t){try{return lg(e,ug,t)}catch(e){return e}}function lg(e,t,n){return _g(gg(e.filter(Tg).map(e=>t(e.value,n,e.path))||[]))}function ug(e,t,n){return n||=[],Array.isArray(e)?e.map((e,r)=>ug(e,t,n.concat(r))):vg(e)?Object.keys(e).map(r=>ug(e[r],t,n.concat(r))):t(e,n[n.length-1],n)}function dg(e,t,n){n||=[];let r=[];if(n.length>0){let i=t(e,n[n.length-1],n);i&&(r=r.concat(i))}if(Array.isArray(e)){let i=e.map((e,r)=>dg(e,t,n.concat(r)));i&&(r=r.concat(i))}else if(vg(e)){let i=Object.keys(e).map(r=>dg(e[r],t,n.concat(r)));i&&(r=r.concat(i))}return r=gg(r),r}function fg(e,t){if(!Array.isArray(t))return!1;for(let n=0,r=t.length;n<r;n+=1)if(t[n]!==e[n])return!1;return!0}function pg(e,t){return t.reduce((e,t)=>t!==void 0&&e?e[t]:e,e)}function mg(e){return _g(gg(hg(e)))}function hg(e){return Array.isArray(e)?e:[e]}function gg(e){return[].concat(...e.map(e=>Array.isArray(e)?gg(e):e))}function _g(e){return e.filter(e=>e!==void 0)}function vg(e){return e&&typeof e==`object`}function yg(e){return vg(e)&&bg(e.then)}function bg(e){return e&&typeof e==`function`}function xg(e){return e instanceof Error}function Sg(e){if(Dg(e)){let{op:t}=e;return t===`add`||t===`remove`||t===`replace`}return!1}function Cg(e){return Object.prototype.toString.call(e)===`[object GeneratorFunction]`}function wg(e){return Sg(e)||Dg(e)&&e.type===`mutation`}function Tg(e){return wg(e)&&(e.op===`add`||e.op===`replace`||e.op===`merge`||e.op===`mergeDeep`)}function Eg(e){return Dg(e)&&e.type===`context`}function Dg(e){return e&&typeof e==`object`}function Og(e,t){try{return Mh(e,t)}catch(e){return console.error(e),{}}}var kg=i(((e,t)=>{var n=wf(),r=Df(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),Ag=i(((e,t)=>{t.exports=!Kd()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),jg=i(((e,t)=>{var n=Ef(),r=Qd(),i=Tf(),a=kg(),o=Ag(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Mg=i(((e,t)=>{var n=Yd(),r=vf();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),Ng=i(((e,t)=>{var n=cf();t.exports=function(e){return n(e)||e===null}})),Pg=i(((e,t)=>{var n=Ng(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),Fg=i(((e,t)=>{var n=Mg(),r=cf(),i=of(),a=Pg();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),Ig=i((e=>{var t=Jf(),n=Yf().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),Lg=i(((e,t)=>{var n=uf(),r=Yd(),i=Ig(),a=Zf(),o=Lf(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),Rg=i(((e,t)=>{var n=Ef(),r=Lg(),i=Nf(),a=Rf();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),zg=i((e=>{var t=$d(),n=If(),r=Rf(),i=Lf(),a=sf(),o=Xf();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),Bg=i(((e,t)=>{t.exports=uf()(`document`,`documentElement`)})),Vg=i(((e,t)=>{var n=Lf(),r=zg(),i=Yf(),a=qf(),o=Bg(),s=jf(),c=kg(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),Hg=i(((e,t)=>{var n=cf(),r=zf();t.exports=function(e,t){n(t)&&`cause`in t&&r(e,`cause`,t.cause)}})),Ug=i(((e,t)=>{var n=Yd(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),Wg=i(((e,t)=>{var n=Kd(),r=nf();t.exports=!n(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,"stack",r(1,7)),e.stack!==7):!0})})),Gg=i(((e,t)=>{var n=zf(),r=Ug(),i=Wg(),a=Error.captureStackTrace;t.exports=function(e,t,o,s){i&&(a?a(e,t):n(e,`stack`,r(o,s)))}})),Kg=i(((e,t)=>{t.exports=Object.create?Object.create(null):{}})),qg=i(((e,t)=>{var n=Of(),r=Kg(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),Jg=i(((e,t)=>{var n=Of()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Yg=i(((e,t)=>{var n=Jg(),r=Qd(),i=Xd(),a=Of()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),Xg=i(((e,t)=>{var n=Yg(),r=Ef(),i=Kg();t.exports=function(e){var t=n(e);return t===`Arguments`&&(t=`Array`),r(i,t)?i[t]:void 0}})),Zg=i(((e,t)=>{var n=yf(),r=af(),i=Xg(),a=Of()(`iterator`);t.exports=function(e){if(!r(e))return n(e,a)||n(e,`@@iterator`)||i(e)}})),Qg=i(((e,t)=>{var n=ef(),r=Qd(),i=Lf(),a=_f(),o=Zg(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),$g=i(((e,t)=>{var n=ef(),r=Lf(),i=yf();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),e_=i(((e,t)=>{var n=Ff(),r=ef(),i=Lf(),a=_f(),o=qg(),s=Gf(),c=df(),l=Qg(),u=Zg(),d=$g(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&d(t,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(m,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)d(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&c(m,E))return E}return new p(!1)}})),t_=i(((e,t)=>{var n=Yg(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),n_=i(((e,t)=>{var n=t_();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),r_=i((()=>{var e=Bf(),t=df(),n=jg(),r=Fg(),i=Rg(),a=Vg(),o=zf(),s=nf(),c=Hg(),l=Gg(),u=e_(),d=n_(),f=Of()(`toStringTag`),p=Error,m=[].push,h=function(e,i){var s=t(g,this),_;r?_=r(new p,s?n(this):g):(_=s?this:a(g),o(_,f,`Error`)),i!==void 0&&o(_,`message`,d(i)),l(_,h,_.stack,1),arguments.length>2&&c(_,arguments[2]);var v=[];return u(e,m,{that:v}),o(_,`errors`,v),_};r?r(h,p):i(h,p,{name:!0});var g=h.prototype=a(p.prototype,{constructor:s(1,h),message:s(1,``),name:s(1,`AggregateError`)});e({global:!0,constructor:!0,arity:2},{AggregateError:h})})),i_=i((()=>{r_()})),a_=i((()=>{i_()})),o_=i(((e,t)=>{var n=Rf().f;t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}})),s_=i(((e,t)=>{var n=Qd(),r=cf(),i=Fg();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),c_=i(((e,t)=>{var n=uf(),r=Ef(),i=zf(),a=df(),o=Fg(),s=Rg(),c=o_(),l=s_(),u=n_(),d=Hg(),f=Gg(),p=$d(),m=xf();t.exports=function(e,t,h,g){var _=`stackTraceLimit`,v=g?2:1,y=e.split(`.`),b=y[y.length-1],x=n.apply(null,y);if(x){var S=x.prototype;if(!m&&r(S,`cause`)&&delete S.cause,!h)return x;var C=n(`Error`),w=t(function(e,t){var n=u(g?t:e,void 0),r=g?new x(e):new x;return n!==void 0&&i(r,`message`,n),f(r,w,r.stack,2),this&&a(S,this)&&l(r,this,w),arguments.length>v&&d(r,arguments[v]),r});if(w.prototype=S,b===`Error`?p&&_ in x&&(c(w,x,_),c(w,x,`prepareStackTrace`)):o?o(w,C):s(w,C,{name:!0}),s(w,x),!m)try{S.name!==b&&i(S,`name`,b),S.constructor=w}catch{}return w}}})),l_=i((()=>{var e=Bf(),t=Gd(),n=Jd(),r=c_(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}})})),u_=i((()=>{var e=Bf(),t=uf(),n=Jd(),r=Kd(),i=c_(),a=`AggregateError`,o=t(a),s=!r(function(){return o([1]).errors[0]!==1})&&r(function(){return o([1],a,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:i(a,function(e){return function(t,r){return n(e,this,arguments)}},s,!0)})})),d_=i(((e,t)=>{t.exports=function(){}})),f_=i(((e,t)=>{var n=Gd(),r=Qd(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),p_=i(((e,t)=>{var n=f_(),r=Gd(),i=cf(),a=zf(),o=Ef(),s=Cf(),c=kg(),l=qf(),u=`Object already initialized`,d=r.TypeError,f=r.WeakMap,p,m,h,g=function(e){return h(e)?m(e):p(e,{})},_=function(e){return function(t){var n;if(!i(t)||(n=m(t)).type!==e)throw new d(`Incompatible receiver, `+e+` required`);return n}};if(n||s.state){var v=s.state||=new f;v.get=v.get,v.has=v.has,v.set=v.set,p=function(e,t){if(v.has(e))throw new d(u);return t.facade=e,v.set(e,t),t},m=function(e){return v.get(e)||{}},h=function(e){return v.has(e)}}else{var y=c(`state`);l[y]=!0,p=function(e,t){if(o(e,y))throw new d(u);return t.facade=e,a(e,y,t),t},m=function(e){return o(e,y)?e[y]:{}},h=function(e){return o(e,y)}}t.exports={set:p,get:m,has:h,enforce:g,getterFor:_}})),m_=i(((e,t)=>{var n=$d(),r=Ef(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&function(){}.name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),h_=i(((e,t)=>{var n=zf();t.exports=function(e,t,r,i){return i&&i.enumerable?e[t]=r:n(e,t,r),e}})),g_=i(((e,t)=>{var n=Kd(),r=Qd(),i=cf(),a=Vg(),o=jg(),s=h_(),c=Of(),l=xf(),u=c(`iterator`),d=!1,f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0),!i(f)||n(function(){var e={};return f[u].call(e)!==e})?f={}:l&&(f=a(f)),r(f[u])||s(f,u,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}})),__=i(((e,t)=>{var n=Jg(),r=Yg();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}})),v_=i(((e,t)=>{var n=Jg(),r=Rf().f,i=zf(),a=Ef(),o=__(),s=Of()(`toStringTag`);t.exports=function(e,t,c,l){var u=c?e:e&&e.prototype;u&&(a(u,s)||r(u,s,{configurable:!0,value:t}),l&&!n&&i(u,`toString`,o))}})),y_=i(((e,t)=>{var n=g_().IteratorPrototype,r=Vg(),i=nf(),a=v_(),o=Kg(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),b_=i(((e,t)=>{var n=Bf(),r=ef(),i=xf(),a=m_(),o=Qd(),s=y_(),c=jg(),l=Fg(),u=v_(),d=zf(),f=h_(),p=Of(),m=Kg(),h=g_(),g=a.PROPER,_=a.CONFIGURABLE,v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,b=p(`iterator`),x=`keys`,S=`values`,C=`entries`,w=function(){return this};t.exports=function(e,t,a,p,h,T,E){s(a,t,p);var D=function(e){if(e===h&&M)return M;if(!y&&e&&e in A)return A[e];switch(e){case x:return function(){return new a(this,e)};case S:return function(){return new a(this,e)};case C:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[b]||A[`@@iterator`]||h&&A[h],M=!y&&j||D(h),N=t===`Array`&&A.entries||j,P,ee,te;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==v&&(l?l(P,v):o(P[b])||f(P,b,w)),u(P,O,!0,!0),i&&(m[O]=w))),g&&h===S&&j&&j.name!==S&&(!i&&_?d(A,`name`,S):(k=!0,M=function(){return r(j,this)})),h){if(ee={values:D(S),keys:T?M:D(x),entries:D(C)},E)for(te in ee)(y||k||!(te in A))&&f(A,te,ee[te]);else n({target:t,proto:!0,forced:y||k},ee)}return(!i||E)&&A[b]!==M&&f(A,b,M,{name:h}),m[t]=M,ee}})),x_=i(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),S_=i(((e,t)=>{var n=sf(),r=d_(),i=Kg(),a=p_(),o=Rf().f,s=b_(),c=x_(),l=xf(),u=$d(),d=`Array Iterator`,f=a.set,p=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var m=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&m.name!==`values`)try{o(m,`name`,{value:`values`})}catch{}})),C_=i(((e,t)=>{var n=Yd(),r=Hf(),i=t_(),a=of(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),w_=i((()=>{var e=C_().charAt,t=t_(),n=p_(),r=b_(),i=x_(),a=`String Iterator`,o=n.set,s=n.getterFor(a);r(String,`String`,function(e){o(this,{type:a,string:t(e),index:0})},function(){var t=s(this),n=t.string,r=t.index,a;return r>=n.length?i(void 0,!0):(a=e(n,r),t.index+=a.length,i(a,!1))})})),T_=i(((e,t)=>{l_(),i_(),u_(),S_(),w_(),t.exports=lf().AggregateError})),E_=i(((e,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}})),D_=i((()=>{S_();var e=E_(),t=Gd(),n=v_(),r=Kg();for(var i in e)n(t[i],i),r[i]=r.Array})),O_=i(((e,t)=>{a_();var n=T_();D_(),t.exports=n})),k_=i(((e,t)=>{t.exports=O_()})),A_=i(((e,t)=>{a_(),t.exports=k_()})),j_=i(((e,t)=>{t.exports=A_()})),M_=e(i(((e,t)=>{t.exports=j_()}))(),1),N_=class extends M_.default{constructor(e,t,n){if(super(e,t,n),this.name=this.constructor.name,typeof t==`string`&&(this.message=t),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(t).stack,typeof n==`object`&&n&&Object.hasOwn(n,`cause`)&&!(`cause`in this)){let{cause:e}=n;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}},P_=class extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(N_,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,typeof e==`string`&&(this.message=e),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack,typeof t==`object`&&t&&Object.hasOwn(t,`cause`)&&!(`cause`in this)){let{cause:e}=t;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}},F_=class extends P_{constructor(e,t){if(super(e,t),typeof t==`object`&&t){let{cause:e,...n}=t;Object.assign(this,n)}}},I_=class extends P_{},L_=class extends I_{},R_=function(){return!1},z_=function(){return!0};function B_(e){return typeof e==`object`&&!!e&&e[`@@functional/placeholder`]===!0}function V_(e){return function t(n){return arguments.length===0||B_(n)?t:e.apply(this,arguments)}}function H_(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return B_(n)?t:V_(function(t){return e(n,t)});default:return B_(n)&&B_(r)?t:B_(n)?V_(function(t){return e(t,r)}):B_(r)?V_(function(t){return e(n,t)}):e(n,r)}}}function U_(e,t){e||=[],t||=[];var n,r=e.length,i=t.length,a=[];for(n=0;n<r;)a[a.length]=e[n],n+=1;for(n=0;n<i;)a[a.length]=t[n],n+=1;return a}function W_(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,a){return t.apply(this,arguments)};case 6:return function(e,n,r,i,a,o){return t.apply(this,arguments)};case 7:return function(e,n,r,i,a,o,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,a,o,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,a,o,s,c,l){return t.apply(this,arguments)};case 10:return function(e,n,r,i,a,o,s,c,l,u){return t.apply(this,arguments)};default:throw Error(`First argument to _arity must be a non-negative integer no greater than ten`)}}function G_(e,t,n){return function(){for(var r=[],i=0,a=e,o=0,s=!1;o<t.length||i<arguments.length;){var c;o<t.length&&(!B_(t[o])||i>=arguments.length)?c=t[o]:(c=arguments[i],i+=1),r[o]=c,B_(c)?s=!0:--a,o+=1}return!s&&a<=0?n.apply(this,r):W_(Math.max(0,a),G_(e,r,n))}}var K_=H_(function(e,t){return e===1?V_(t):W_(e,G_(e,[],t))});function q_(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return B_(n)?t:H_(function(t,r){return e(n,t,r)});case 2:return B_(n)&&B_(r)?t:B_(n)?H_(function(t,n){return e(t,r,n)}):B_(r)?H_(function(t,r){return e(n,t,r)}):V_(function(t){return e(n,r,t)});default:return B_(n)&&B_(r)&&B_(i)?t:B_(n)&&B_(r)?H_(function(t,n){return e(t,n,i)}):B_(n)&&B_(i)?H_(function(t,n){return e(t,r,n)}):B_(r)&&B_(i)?H_(function(t,r){return e(n,t,r)}):B_(n)?V_(function(t){return e(t,r,i)}):B_(r)?V_(function(t){return e(n,t,i)}):B_(i)?V_(function(t){return e(n,r,t)}):e(n,r,i)}}}var J_=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)===`[object Array]`};function Y_(e){return e!=null&&typeof e[`@@transducer/step`]==`function`}function X_(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!J_(r)){for(var i=0;i<e.length;){if(typeof r[e[i]]==`function`)return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(Y_(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function Z_(e){return e&&e[`@@transducer/reduced`]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Q_={init:function(){return this.xf[`@@transducer/init`]()},result:function(e){return this.xf[`@@transducer/result`](e)}},$_=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=function(e){return this.all&&(e=this.xf[`@@transducer/step`](e,!0)),this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)||(this.all=!1,e=Z_(this.xf[`@@transducer/step`](e,!1))),e},e}();function ev(e){return function(t){return new $_(e,t)}}var tv=H_(X_([`all`],ev,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}));function nv(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function rv(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function iv(e){var t=String(e).match(/^function (\w*)/);return t==null?``:t[1]}function av(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function ov(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var sv=typeof Object.is==`function`?Object.is:ov,cv=Object.prototype.toString,lv=function(){return cv.call(arguments)===`[object Arguments]`?function(e){return cv.call(e)===`[object Arguments]`}:function(e){return av(`callee`,e)}}(),uv=!{toString:null}.propertyIsEnumerable(`toString`),dv=[`constructor`,`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleString`],fv=function(){return arguments.propertyIsEnumerable(`length`)}(),pv=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},mv=V_(typeof Object.keys==`function`&&!fv?function(e){return Object(e)===e?Object.keys(e):[]}:function(e){if(Object(e)!==e)return[];var t,n,r=[],i=fv&&lv(e);for(t in e)av(t,e)&&(!i||t!==`length`)&&(r[r.length]=t);if(uv)for(n=dv.length-1;n>=0;)t=dv[n],av(t,e)&&!pv(r,t)&&(r[r.length]=t),--n;return r}),hv=V_(function(e){return e===null?`Null`:e===void 0?`Undefined`:Object.prototype.toString.call(e).slice(8,-1)});function gv(e,t,n,r){var i=nv(e),a=nv(t);function o(e,t){return _v(e,t,n.slice(),r.slice())}return!rv(function(e,t){return!rv(o,t,e)},a,i)}function _v(e,t,n,r){if(sv(e,t))return!0;var i=hv(e);if(i!==hv(t))return!1;if(typeof e[`fantasy-land/equals`]==`function`||typeof t[`fantasy-land/equals`]==`function`)return typeof e[`fantasy-land/equals`]==`function`&&e[`fantasy-land/equals`](t)&&typeof t[`fantasy-land/equals`]==`function`&&t[`fantasy-land/equals`](e);if(typeof e.equals==`function`||typeof t.equals==`function`)return typeof e.equals==`function`&&e.equals(t)&&typeof t.equals==`function`&&t.equals(e);switch(i){case`Arguments`:case`Array`:case`Object`:if(typeof e.constructor==`function`&&iv(e.constructor)===`Promise`)return e===t;break;case`Boolean`:case`Number`:case`String`:if(!(typeof e==typeof t&&sv(e.valueOf(),t.valueOf())))return!1;break;case`Date`:if(!sv(e.valueOf(),t.valueOf()))return!1;break;case`Error`:return e.name===t.name&&e.message===t.message;case`RegExp`:if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;--a}switch(i){case`Map`:return e.size===t.size&&gv(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case`Set`:return e.size===t.size&&gv(e.values(),t.values(),n.concat([e]),r.concat([t]));case`Arguments`:case`Array`:case`Object`:case`Boolean`:case`Number`:case`String`:case`Date`:case`Error`:case`RegExp`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`ArrayBuffer`:break;default:return!1}var o=mv(e);if(o.length!==mv(t).length)return!1;var s=n.concat([e]),c=r.concat([t]);for(a=o.length-1;a>=0;){var l=o[a];if(!(av(l,t)&&_v(t[l],e[l],s,c)))return!1;--a}return!0}var vv=H_(function(e,t){return _v(e,t,[],[])});function yv(e,t,n){var r,i;if(typeof e.indexOf==`function`)switch(typeof t){case`number`:if(t===0){for(r=1/t;n<e.length;){if(i=e[n],i===0&&1/i===r)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if(i=e[n],typeof i==`number`&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case`string`:case`boolean`:case`function`:case`undefined`:return e.indexOf(t,n);case`object`:if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(vv(e[n],t))return n;n+=1}return-1}function bv(e,t){return yv(t,e,0)>=0}function xv(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function Sv(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/[\b]/g,`\\b`).replace(/\f/g,`\\f`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\t/g,`\\t`).replace(/\v/g,`\\v`).replace(/\0/g,`\\0`).replace(/"/g,`\\"`)+`"`}var Cv=function(e){return(e<10?`0`:``)+e},wv=typeof Date.prototype.toISOString==`function`?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+`-`+Cv(e.getUTCMonth()+1)+`-`+Cv(e.getUTCDate())+`T`+Cv(e.getUTCHours())+`:`+Cv(e.getUTCMinutes())+`:`+Cv(e.getUTCSeconds())+`.`+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+`Z`};function Tv(e){return function(){return!e.apply(this,arguments)}}function Ev(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function Dv(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}function Ov(e){return Object.prototype.toString.call(e)===`[object Object]`}var kv=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=Q_.result,e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)?this.xf[`@@transducer/step`](e,t):e},e}();function Av(e){return function(t){return new kv(e,t)}}var jv=H_(X_([`fantasy-land/filter`,`filter`],Av,function(e,t){return Ov(t)?Ev(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},mv(t)):Dv(e,t)})),Mv=H_(function(e,t){return jv(Tv(e),t)});function Nv(e,t){var n=function(n){var r=t.concat([e]);return bv(n,r)?`<Circular>`:Nv(n,r)},r=function(e,t){return xv(function(t){return Sv(t)+`: `+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case`[object Arguments]`:return`(function() { return arguments; }(`+xv(n,e).join(`, `)+`))`;case`[object Array]`:return`[`+xv(n,e).concat(r(e,Mv(function(e){return/^\d+$/.test(e)},mv(e)))).join(`, `)+`]`;case`[object Boolean]`:return typeof e==`object`?`new Boolean(`+n(e.valueOf())+`)`:e.toString();case`[object Date]`:return`new Date(`+(isNaN(e.valueOf())?n(NaN):Sv(wv(e)))+`)`;case`[object Map]`:return`new Map(`+n(Array.from(e))+`)`;case`[object Null]`:return`null`;case`[object Number]`:return typeof e==`object`?`new Number(`+n(e.valueOf())+`)`:1/e==-1/0?`-0`:e.toString(10);case`[object Set]`:return`new Set(`+n(Array.from(e).sort())+`)`;case`[object String]`:return typeof e==`object`?`new String(`+n(e.valueOf())+`)`:Sv(e);case`[object Undefined]`:return`undefined`;default:if(typeof e.toString==`function`){var i=e.toString();if(i!==`[object Object]`)return i}return`{`+r(e,mv(e)).join(`, `)+`}`}}var Pv=V_(function(e){return Nv(e,[])}),Fv=H_(function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(r!==void 0)return r;var i=n(typeof e,typeof t);if(i!==void 0)return i===typeof e?e:t;var a=Pv(e),o=n(a,Pv(t));return o===void 0?t:o===a?e:t}),Iv=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=Q_.result,e.prototype[`@@transducer/step`]=function(e,t){return this.xf[`@@transducer/step`](e,this.f(t))},e}(),Lv=H_(X_([`fantasy-land/map`,`map`],function(e){return function(t){return new Iv(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case`[object Function]`:return K_(t.length,function(){return e.call(this,t.apply(this,arguments))});case`[object Object]`:return Ev(function(n,r){return n[r]=e(t[r]),n},{},mv(t));default:return xv(e,t)}})),Rv=Number.isInteger||function(e){return e<<0===e};function zv(e){return Object.prototype.toString.call(e)===`[object String]`}function Bv(e,t){var n=e<0?t.length+e:e;return zv(t)?t.charAt(n):t[n]}var Vv=H_(function(e,t){if(t!=null)return Rv(e)?Bv(e,t):t[e]}),Hv=H_(function(e,t){return Lv(Vv(e),t)}),Uv=V_(function(e){return J_(e)?!0:!e||typeof e!=`object`||zv(e)?!1:e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)}),Wv=typeof Symbol<`u`?Symbol.iterator:`@@iterator`;function Gv(e,t,n){return function(r,i,a){if(Uv(a))return e(r,i,a);if(a==null)return i;if(typeof a[`fantasy-land/reduce`]==`function`)return t(r,i,a,`fantasy-land/reduce`);if(a[Wv]!=null)return n(r,i,a[Wv]());if(typeof a.next==`function`)return n(r,i,a);if(typeof a.reduce==`function`)return t(r,i,a,`reduce`);throw TypeError(`reduce: list must be array or iterable`)}}function Kv(e,t,n){for(var r=0,i=n.length;r<i;){if(t=e[`@@transducer/step`](t,n[r]),t&&t[`@@transducer/reduced`]){t=t[`@@transducer/value`];break}r+=1}return e[`@@transducer/result`](t)}var qv=H_(function(e,t){return W_(e.length,function(){return e.apply(t,arguments)})});function Jv(e,t,n){for(var r=n.next();!r.done;){if(t=e[`@@transducer/step`](t,r.value),t&&t[`@@transducer/reduced`]){t=t[`@@transducer/value`];break}r=n.next()}return e[`@@transducer/result`](t)}function Yv(e,t,n,r){return e[`@@transducer/result`](n[r](qv(e[`@@transducer/step`],e),t))}var Xv=Gv(Kv,Yv,Jv),Zv=function(){function e(e){this.f=e}return e.prototype[`@@transducer/init`]=function(){throw Error(`init not implemented on XWrap`)},e.prototype[`@@transducer/result`]=function(e){return e},e.prototype[`@@transducer/step`]=function(e,t){return this.f(e,t)},e}();function Qv(e){return new Zv(e)}var $v=q_(function(e,t,n){return Xv(typeof e==`function`?Qv(e):e,t,n)}),ey=V_(function(e){return K_($v(Fv,0,Hv(`length`,e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})}),ty=V_(function(e){return function(){return e}}),ny=H_(function(e,t){return e&&t}),ry=V_(function(e){return K_($v(Fv,0,Hv(`length`,e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});function iy(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function ay(e,t,n,r){return n[r](e,t)}var oy=Gv(Ev,ay,iy),sy=H_(function(e,t){return typeof t[`fantasy-land/ap`]==`function`?t[`fantasy-land/ap`](e):typeof e.ap==`function`?e.ap(t):typeof e==`function`?function(n){return e(n)(t(n))}:oy(function(e,n){return U_(e,Lv(n,t))},[],e)}),cy=H_(function(e,t){return e.apply(this,t)}),ly=V_(function(e){return K_(e.length,e)});function uy(e,t,n){if(Rv(e)&&J_(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var a in n)i[a]=n[a];return i[e]=t,i}var dy=V_(function(e){return e==null}),U=q_(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var a=!dy(r)&&av(i,r)&&typeof r[i]==`object`?r[i]:Rv(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,a)}return uy(i,n,r)}),fy=q_(function(e,t,n){return U([e],t,n)});function py(e){var t=Object.prototype.toString.call(e);return t===`[object Function]`||t===`[object AsyncFunction]`||t===`[object GeneratorFunction]`||t===`[object AsyncGeneratorFunction]`}var my=H_(function(e,t){var n=K_(e,t);return K_(e,function(){return Ev(sy,Lv(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),hy=V_(function(e){return my(e.length,e)}),gy=H_(function(e,t){return py(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:hy(ny)(e,t)});function _y(e){return new RegExp(e.source,e.flags?e.flags:(e.global?`g`:``)+(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.sticky?`y`:``)+(e.unicode?`u`:``)+(e.dotAll?`s`:``))}function vy(e,t,n){if(n||=new by,yy(e))return e;var r=function(r){var i=n.get(e);if(i)return i;for(var a in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=t?vy(e[a],!0,n):e[a]);return r};switch(hv(e)){case`Object`:return r(Object.create(Object.getPrototypeOf(e)));case`Array`:return r(Array(e.length));case`Date`:return new Date(e.valueOf());case`RegExp`:return _y(e);case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:return e.slice();default:return e}}function yy(e){var t=typeof e;return e==null||t!=`object`&&t!=`function`}var by=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var a=this.hash(e),n=this.map[a];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}(),xy=V_(function(e){return function(t,n){return e(t,n)?-1:+!!e(n,t)}}),Sy=hy(V_(function(e){return!e}));function Cy(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function wy(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return J_(r)||typeof r[e]!=`function`?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Ty=q_(wy(`slice`,function(e,t,n){return Array.prototype.slice.call(n,e,t)})),Ey=V_(wy(`tail`,Ty(1,1/0)));function Dy(){if(arguments.length===0)throw Error(`pipe requires at least one argument`);return W_(arguments[0].length,$v(Cy,arguments[0],Ey(arguments)))}var Oy=V_(function(e){return Bv(0,e)});function ky(e){return e}var Ay=V_(ky),jy=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=function(e){for(var t in this.inputs)if(av(t,this.inputs)&&(e=this.xf[`@@transducer/step`](e,this.inputs[t]),e[`@@transducer/reduced`])){e=e[`@@transducer/value`];break}return this.inputs=null,this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,vy(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();function My(e,t,n){return function(r){return new jy(e,t,n,r)}}var Ny=G_(4,[],X_([],My,function(e,t,n,r){return Xv(Qv(function(r,i){var a=n(i),o=e(av(a,r)?r[a]:vy(t,!1),i);return o&&o[`@@transducer/reduced`]?Z_(r):(r[a]=o,r)}),{},r)})),Py=H_(function(e,t){return t==null||t!==t?e:t}),Fy=function(){function e(){this._nativeSet=typeof Set==`function`?new Set:null,this._items={}}return e.prototype.add=function(e){return!Iy(e,!0,this)},e.prototype.has=function(e){return Iy(e,!1,this)},e}();function Iy(e,t,n){var r=typeof e,i,a;switch(r){case`string`:case`number`:return e===0&&1/e==-1/0?n._items[`-0`]?!0:(t&&(n._items[`-0`]=!0),!1):n._nativeSet===null?r in n._items?e in n._items[r]||(t&&(n._items[r][e]=!0),!1):(t&&(n._items[r]={},n._items[r][e]=!0),!1):t?(i=n._nativeSet.size,n._nativeSet.add(e),a=n._nativeSet.size,a===i):n._nativeSet.has(e);case`boolean`:if(r in n._items){var o=+!!e;return n._items[r][o]?!0:(t&&(n._items[r][o]=!0),!1)}return t&&(n._items[r]=e?[!1,!0]:[!0,!1]),!1;case`function`:return n._nativeSet===null?r in n._items?bv(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1):t?(i=n._nativeSet.size,n._nativeSet.add(e),a=n._nativeSet.size,a===i):n._nativeSet.has(e);case`undefined`:return n._items[r]?!0:(t&&(n._items[r]=!0),!1);case`object`:if(e===null)return n._items.null?!0:(t&&(n._items.null=!0),!1);default:return r=Object.prototype.toString.call(e),r in n._items?bv(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1)}}var Ly=H_(function(e,t){for(var n=[],r=0,i=e.length,a=t.length,o=new Fy,s=0;s<a;s+=1)o.add(t[s]);for(;r<i;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}),Ry=q_(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r});function zy(e,t){if(t==null)return t;if(Rv(e)&&J_(t))return Ry(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}function By(e,t){if(Rv(e)&&J_(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}var Vy=H_(function e(t,n){if(n==null)return n;switch(t.length){case 0:return n;case 1:return zy(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return n[r]==null?By(r,n):fy(r,e(i,n[r]),n)}}),Hy=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=Q_.result,e.prototype[`@@transducer/step`]=function(e,t){this.i+=1;var n=this.n===0?e:this.xf[`@@transducer/step`](e,t);return this.n>=0&&this.i>=this.n?Z_(n):n},e}();function Uy(e){return function(t){return new Hy(e,t)}}var Wy=H_(X_([`take`],Uy,function(e,t){return Ty(0,e<0?1/0:e,t)}));function Gy(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)--n;return Ty(0,n+1,t)}var Ky=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=function(e){return this.retained=null,this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Xv(this.xf,e,this.retained),this.retained=[],this.xf[`@@transducer/step`](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function qy(e){return function(t){return new Ky(e,t)}}var Jy=H_(X_([],qy,Gy)),Yy=V_(function(e){return Bv(-1,e)}),Xy=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=Q_.result,e.prototype[`@@transducer/step`]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf[`@@transducer/step`](e,t)},e}();function Zy(e){return function(t){return new Xy(e,t)}}var Qy=H_(X_([`dropWhile`],Zy,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Ty(n,1/0,t)})),$y=H_(function(e,t){return e||t}),eb=H_(function(e,t){return py(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:hy($y)(e,t)});function tb(e){var t=Object.prototype.toString.call(e);return t===`[object Uint8ClampedArray]`||t===`[object Int8Array]`||t===`[object Uint8Array]`||t===`[object Int16Array]`||t===`[object Uint16Array]`||t===`[object Int32Array]`||t===`[object Uint32Array]`||t===`[object Float32Array]`||t===`[object Float64Array]`||t===`[object BigInt64Array]`||t===`[object BigUint64Array]`}var nb=V_(function(e){return e!=null&&typeof e[`fantasy-land/empty`]==`function`?e[`fantasy-land/empty`]():e!=null&&e.constructor!=null&&typeof e.constructor[`fantasy-land/empty`]==`function`?e.constructor[`fantasy-land/empty`]():e!=null&&typeof e.empty==`function`?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty==`function`?e.constructor.empty():J_(e)?[]:zv(e)?``:Ov(e)?{}:lv(e)?function(){return arguments}():tb(e)?e.constructor.from(``):void 0}),rb=V_(function(e){return K_(e.length,function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})}),ib=H_(wy(`groupBy`,Ny(function(e,t){return e.push(t),e},[]))),ab=H_(function(e,t){if(e.length===0||dy(t))return!1;for(var n=t,r=0;r<e.length;)if(!dy(n)&&av(e[r],n))n=n[e[r]],r+=1;else return!1;return!0}),ob=H_(function(e,t){return ab([e],t)}),sb=function(e,t){switch(arguments.length){case 0:return sb;case 1:return function(){return function t(n){switch(arguments.length){case 0:return t;default:return sv(e,n)}}}();default:return sv(e,t)}},cb=q_(function(e,t,n){return K_(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),lb=H_(bv),ub=Ty(0,-1),db=H_(function(e,t){return K_(e+1,function(){var n=arguments[e];if(n!=null&&py(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw TypeError(Pv(n)+` does not have a method named "`+t+`"`)})}),fb=V_(function(e){return e!=null&&vv(e,nb(e))}),pb=V_(function(e){return!fb(e)}),mb=db(1,`join`);function hb(e){return Object.prototype.toString.call(e)===`[object Number]`}var gb=H_(function(e,t){return function(n){return function(r){return Lv(function(e){return t(e,r)},n(e(r)))}}});function _b(e,t){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;var i=e[r];n=Rv(i)?Bv(i,n):n[i]}return n}var vb=H_(function(e,t){return Ev(function(n,r){return n[r]=e(t[r],r,t),n},{},mv(t))}),yb=q_(function(e,t,n){var r={},i;for(i in t||={},n||={},t)av(i,t)&&(r[i]=av(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)av(i,n)&&!av(i,r)&&(r[i]=n[i]);return r}),bb=q_(function e(t,n,r){return yb(function(n,r,i){return Ov(r)&&Ov(i)?e(t,r,i):t(n,r,i)},n,r)}),xb=H_(function(e,t){return bb(function(e,t,n){return n},e,t)}),Sb=H_(function(e,t){return tv(Tv(e),t)}),Cb=function(e){return{value:e,map:function(t){return Cb(t(e))}}},wb=q_(function(e,t,n){return e(function(e){return Cb(t(e))})(n).value}),Tb=H_(_b),Eb=q_(function(e,t,n){return Py(e,_b(t,n))}),Db=q_(function(e,t,n){return e(_b(t,n))}),Ob=H_(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}),kb=q_(function(e,t,n){return vv(e,Vv(t,n))}),Ab=q_(function(e,t,n){return Py(e,Vv(t,n))}),jb=q_(function(e,t,n){return e(Vv(t,n))}),Mb=H_(function(e,t){if(!(hb(e)&&hb(t)))throw TypeError(`Both arguments to range must be numbers`);for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,i=0;i<r;)n[i]=i+e,i+=1;return n}),Nb=V_(Z_),Pb=q_(function(e,t,n){return n.replace(e,t)}),Fb=H_(function(e,t){return Array.prototype.slice.call(t,0).sort(e)}),Ib=db(1,`split`),Lb=H_(function(e,t){return vv(Wy(e.length,t),e)}),Rb=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype[`@@transducer/init`]=Q_.init,e.prototype[`@@transducer/result`]=Q_.result,e.prototype[`@@transducer/step`]=function(e,t){return rv(this.pred,t,this.items)?e:(this.items.push(t),this.xf[`@@transducer/step`](e,t))},e}();function zb(e){return function(t){return new Rb(e,t)}}var Bb=H_(X_([],zb,function(e,t){for(var n=0,r=t.length,i=[],a;n<r;)a=t[n],rv(e,a,i)||(i[i.length]=a),n+=1;return i})),Vb=q_(function(e,t,n){return e(n)?t(n):n}),Hb=ty(void 0),Ub=vv(Hb()),Wb=Sy(Ub),Gb=vv(null),Kb=Sy(Gb),qb=Sy(dy),Jb=K_(1,Dy(hv,sb(`GeneratorFunction`))),Yb=K_(1,Dy(hv,sb(`AsyncFunction`))),Xb=ry([Dy(hv,sb(`Function`)),Jb,Yb]),Zb=K_(1,Xb(Array.isArray)?Array.isArray:Dy(hv,sb(`Array`))),Qb=gy(Zb,fb),$b=gy(Zb,pb),ex=K_(1,Dy(hv,sb(`String`))),tx=vv(``);function nx(e){"@babel/helpers - typeof";return nx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nx(e)}var rx=function(e){return nx(e)===`object`},ix=ey([ex,Sy(K_(1,gy(Kb,eb(rx,Xb)))),pb]),ax=Sy(Xb),ox=K_(1,gy(Kb,rx)),sx=Dy(hv,sb(`Object`)),cx=Db(gy(Xb,Dy(Pv,vv(Pv(Object)))),[`constructor`]),lx=K_(1,function(e){if(!ox(e)||!sx(e))return!1;var t=Object.getPrototypeOf(e);return Gb(t)?!0:cx(t)}),ux=K_(1,Dy(hv,sb(`RegExp`)));function dx(e){return hx(e)||mx(e)||px(e)||fx()}function fx(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function px(e,t){if(e){if(typeof e==`string`)return gx(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gx(e,t):void 0}}function mx(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function hx(e){if(Array.isArray(e))return gx(e)}function gx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _x=Dy(Fb(xy(function(e,t){return e.length>t.length})),Oy,Vv(`length`)),vx=ly(function(e,t,n){var r=n.apply(void 0,dx(e));return qb(r)?Nb(r):t}),yx=cb($b,function(e){return K_(_x(e),function(){return $v(vx([...arguments]),void 0,e)})},Hb),bx=rb(lb),xx=K_(3,function(e,t,n){var r=Tb(e,n),i=Tb(ub(e),n);if(!ax(r)&&!Qb(e))return cy(qv(r,i),t)}),Sx=Vb(ex,Pb(/[.*+?^${}()|[\]\\-]/g,`\\$&`)),Cx=function(e,t,n){if(n==null||e==null||t==null)throw TypeError("Input values must not be `null` or `undefined`")},wx=function(e,t){if(typeof e!=`string`&&!(e instanceof String))throw TypeError(`\`${t}\` must be a string`)},Tx=function(e){if(typeof e!=`string`&&!(e instanceof String)&&!(e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},Ex=K_(3,function(e,t,n){return Cx(e,t,n),wx(n,`str`),wx(t,`replaceValue`),Tx(e),Pb(new RegExp(ux(e)?e:Sx(e),`g`),t,n)}),Dx=db(2,`replaceAll`),Ox=Xb(String.prototype.replaceAll)?Dx:Ex,kx=ly(function(e,t){return Dy(Ib(``),Jy(bx(e)),mb(``))(t)}),Ax=ly(function(e,t){return Dy(Ib(``),Qy(bx(e)),mb(``))(t)}),jx=r({cwd:()=>Ux,fromFileSystemPath:()=>Bx,getExtension:()=>Fx,getHash:()=>Vx,getProtocol:()=>Nx,hasProtocol:()=>Px,isFileSystemPath:()=>Ix,isHttpUrl:()=>Lx,isURI:()=>Rx,resolve:()=>Wx,sanitize:()=>Gx,stripHash:()=>Hx,toFileSystemPath:()=>zx,unsanitize:()=>Kx}),Mx=()=>/^win/.test(globalThis.process?.platform??``),Nx=e=>{try{return kx(`:`,new URL(e).protocol)}catch{return}},Px=Dy(Nx,Wb),Fx=e=>{let t=e.lastIndexOf(`.`);return t>=0?e.substring(t).toLowerCase():``},Ix=e=>{if(globalThis.window!==void 0)return!1;let t=Nx(e);return Ub(t)||t===`file`||/^[a-zA-Z]$/.test(t)},Lx=e=>{let t=Nx(e);return t===`http`||t===`https`},Rx=e=>{try{return new URL(e),!0}catch{return!1}},zx=(e,t)=>{let n=[/%23/g,`#`,/%24/g,`$`,/%26/g,`&`,/%2C/g,`,`,/%40/g,`@`],r=Ab(!1,`keepFileProtocol`,t),i=Ab(Mx,`isWindows`,t),a=decodeURI(e);for(let e=0;e<n.length;e+=2)a=a.replace(n[e],n[e+1]);let o=a.substring(0,7).toLowerCase()===`file://`;return o&&(a=a[7]===`/`?a.substring(8):a.substring(7),i()&&a[1]===`/`&&(a=`${a[0]}:${a.substring(1)}`),r?a=`file:///${a}`:(o=!1,a=i()?a:`/${a}`)),i()&&!o&&(a=Ox(`/`,`\\`,a),a.substring(1,3)===`:\\`&&(a=a[0].toUpperCase()+a.substring(1))),a},Bx=e=>{let t=[/\?/g,`%3F`,/#/g,`%23`],n=e;Mx()&&(n=n.replace(/\\/g,`/`)),n=encodeURI(n);for(let e=0;e<t.length;e+=2)n=n.replace(t[e],t[e+1]);return n},Vx=e=>{let t=e.indexOf(`#`);return t===-1?`#`:e.substring(t)},Hx=e=>{let t=e.indexOf(`#`),n=e;return t>=0&&(n=e.substring(0,t)),n},Ux=()=>{if(globalThis.window!==void 0)return Hx(globalThis.location.href);let e=globalThis.process?.cwd()??`/`,t=Yy(e);return[`/`,`\\`].includes(t)?e:e+(Mx()?`\\`:`/`)},Wx=(e,t)=>{let n=new URL(t,new URL(e,`resolve://`));if(n.protocol===`resolve:`){let{pathname:e,search:t,hash:r}=n;return e+t+r}return n.toString()},Gx=e=>{if(Ix(e))return Bx(zx(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,`[`).replace(/%5D/g,`]`)}},Kx=e=>Ix(e)?zx(e):decodeURI(e),qx=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t=`text/plain`,data:n,parseResult:r}){this.uri=e,this.mediaType=t,this.data=n,this.parseResult=r}get extension(){return ex(this.uri)?Fx(this.uri):``}toString(){return typeof this.data==`string`?this.data:this.data instanceof ArrayBuffer||[`ArrayBuffer`].includes(hv(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder(`utf-8`).decode(this.data):String(this.data)}},Jx=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(let t of e.values())this.add(t);return this}has(e){let t=ex(e)?e:e.uri;return Wb(this.find(e=>e.uri===t))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}},Yx={parse:{mediaType:`text/plain`,parsers:[],parserOpts:{}},resolve:{baseURI:``,resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:`ignore`,circularReplacer:Ay,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},Xx=gb(Tb([`resolve`,`baseURI`]),U([`resolve`,`baseURI`])),Zx=e=>tx(e)?Ux():e,Qx=(e,t)=>wb(Xx,Zx,xb(e,t)),$x=class extends P_{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},eS=async(e,t,n)=>{let r=await Promise.all(n.map(xx([e],t)));return n.filter((e,t)=>r[t])},tS=async(e,t,n)=>{let r;for(let i of n)try{return{plugin:i,result:await i[e].call(i,...t)}}catch(e){r=new $x(`Error while running plugin`,{cause:e,plugin:i})}return Promise.reject(r)},nS=class extends P_{},rS=class extends P_{},iS=class extends rS{},aS=class extends iS{},oS=`apidom-file-cache`,sS=async({cacheKey:e,cacheTTL:t})=>{if(t===0)return{cachedResult:null,cachedError:null};try{let n=await caches.open(oS),r=await n.match(e);if(r){let{cachedResult:i,cachedError:a,timestamp:o}=await r.json();if(Date.now()-o<t)return{cachedResult:i,cachedError:a};await n.delete(e)}}catch{return console.log(`There was an error parsing the response`),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}},cS=async({cacheKey:e,result:t,error:n,cacheTTL:r})=>{if(r!==0)try{let r={cachedResult:t,cachedError:n,timestamp:Date.now()},i=await caches.open(oS),a=new Response(JSON.stringify(r),{headers:{"Content-Type":`application/json`}});await i.put(e,a)}catch{console.error(`CacheStorage is not available`)}},lS=async(e,t)=>{let{cacheTTL:n=0}=t.resolve.resolverOpts,r=`read_${e.uri}`,{cachedResult:i,cachedError:a}=await sS({cacheKey:r,cacheTTL:n});if(i!==null)return i;if(a!==null)throw new rS(`Error while reading file "${e.uri}"`,{cause:a});let o=t.resolve.resolvers.map(e=>{let n=Object.create(e);return Object.assign(n,t.resolve.resolverOpts)}),s=await eS(`canRead`,[e,t],o);if(fb(s))throw new aS(e.uri);try{let{result:t}=await tS(`read`,[e],s);return await cS({cacheKey:r,result:new qx({...e,data:t}).toString(),error:null,cacheTTL:n}),t}catch(t){var c;throw await cS({cacheKey:r,result:null,error:(t==null||(c=t.cause)==null?void 0:c.cause)??t?.cause??t,cacheTTL:n}),new rS(`Error while reading file "${e.uri}"`,{cause:t})}},uS=async(e,t)=>{let n=t.parse.parsers.map(e=>{let n=Object.create(e);return Object.assign(n,t.parse.parserOpts)}),r=await eS(`canParse`,[e,t],n);if(fb(r))throw new aS(e.uri);try{let{plugin:n,result:i}=await tS(`parse`,[e,t],r);return!n.allowEmpty&&i.isEmpty?Promise.reject(new nS(`Error while parsing file "${e.uri}". File is empty.`)):i}catch(t){throw new nS(`Error while parsing file "${e.uri}"`,{cause:t})}},dS=async(e,t)=>{let n=new qx({uri:Gx(Hx(e)),mediaType:t.parse.mediaType}),r=await lS(n,t);return uS(new qx({...n,data:r}),t)},fS=i(((e,t)=>{function n(e){return e===null}t.exports=n})),pS=i(((e,t)=>{var n=fo(),r=es(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),mS=i(((e,t)=>{var n=fo(),r=es(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a})),hS=i(((e,t)=>{t.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw TypeError(`Given element \`${e}\` is not an Element instance`);let t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));let n=this.serialiseContent(e.content);return n!==void 0&&(t.content=n),t}deserialise(e){if(!e.element)throw Error(`Given value is not an object containing an element name`);let t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);let n=this.deserialiseContent(e.content);return(n!==void 0||t.content===null)&&(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){let t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.length===0?void 0:e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){let t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){let t={};if(e.forEach((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))}),Object.keys(t).length!==0)return t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}})),gS=i(((e,t)=>{var n=Mc();function r(e,t){return n(e,t)}t.exports=r})),_S=i(((e,t)=>{t.exports=class e{constructor(e,t){this.key=e,this.value=t}clone(){let t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}})),vS=i(((e,t)=>{function n(e){if(typeof e!=`function`)throw TypeError(`Expected a function`);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}t.exports=n})),yS=i(((e,t)=>{var n=vS();function r(e){return typeof e==`string`?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}var i=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map(e=>e.toValue())}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){let n=[];return this.forEach(r=>{let i=e.bind(t)(r);i&&n.push(i)}),n}filter(t,n){return t=r(t),new e(this.elements.filter(t,n))}reject(t,i){return t=r(t),new e(this.elements.filter(n(t),i))}find(e,t){return e=r(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some(t=>t.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){let t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}};typeof Symbol<`u`&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i})),bS=i(((e,t)=>{var n=gS(),r=_S(),i=yS();t.exports=class e{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){let e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),e.content=this.content?this.content.clone?this.content.clone():Array.isArray(this.content)?this.content.map(e=>e.clone()):this.content:this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof r?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(e=>e.toValue(),this):this.content}toRef(e){if(this.id.toValue()===``)throw Error(`Cannot create reference to an element that does not contain an ID`);let t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");let t=e.pop(),n=new i,a=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);let i=n.findRecursive(t);return i&&i.reduce(a,e),n.content instanceof r&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter(t=>{let n=t.parents.map(e=>e.element);for(let t in e){let r=e[t],i=n.indexOf(r);if(i!==-1)n=n.splice(0,i);else return!1}return!0})),n}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){let e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||`element`}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof i)this.content=t.elements;else if(typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===`null`||t==null)this._content=t;else if(t instanceof r)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else if(typeof t==`object`)this._content=Object.keys(t).map(e=>new this.MemberElement(e,t[e]));else throw Error(`Cannot set content to given value`)}get meta(){if(!this._meta){if(this.isFrozen){let e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){let e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty(`id`,``)}set id(e){this.setMetaProperty(`id`,e)}get classes(){return this.getMetaProperty(`classes`,[])}set classes(e){this.setMetaProperty(`classes`,e)}get title(){return this.getMetaProperty(`title`,``)}set title(e){this.setMetaProperty(`title`,e)}get description(){return this.getMetaProperty(`description`,``)}set description(e){this.setMetaProperty(`description`,e)}get links(){return this.getMetaProperty(`links`,[])}set links(e){this.setMetaProperty(`links`,e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this,t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof r){let e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new i([this.content]):new i}get recursiveChildren(){let e=new i;return this.children.forEach(t=>{e.push(t),t.recursiveChildren.forEach(t=>{e.push(t)})}),e}}})),xS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e||null,t,n),this.element=`null`}primitive(){return`null`}set(){return Error(`Cannot set the value of null`)}}})),SS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`string`}primitive(){return`string`}get length(){return this.content.length}}})),CS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`number`}primitive(){return`number`}}})),wS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`boolean`}primitive(){return`boolean`}}})),TS=i(((e,t)=>{var n=vS(),r=bS(),i=yS(),a=class extends r{constructor(e,t,n){super(e||[],t,n),this.element=`array`}primitive(){return`array`}get(e){return this.content[e]}getValue(e){let t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){let t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){let n=[];return this.forEach(r=>{let i=e.bind(t)(r);i&&n.push(i)}),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let n,r;t===void 0?(n=1,r=this.primitive()===`object`?this.first.value:this.first):(n=0,r=this.refract(t));for(let t=n;t<this.length;t+=1){let n=this.content[t];r=this.primitive()===`object`?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach((n,r)=>{e.bind(t)(n,this.refract(r))})}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){let n=t||{},r=!!n.recursive,i=n.results===void 0?[]:n.results;return this.forEach((t,n,a)=>{r&&t.findElements!==void 0&&t.findElements(e,{results:i,recursive:r}),e(t,n,a)&&i.push(t)}),i}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>t.classes.includes(e))}getById(e){return this.find(t=>t.id.toValue()===e).first}includes(e){return this.content.some(t=>t.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(t=>e(t),this).reduce((e,t)=>e.concat(t),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};a.empty=function(){return new this},a[`fantasy-land/empty`]=a.empty,typeof Symbol<`u`&&(a.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=a})),ES=i(((e,t)=>{var n=_S(),r=bS();t.exports=class extends r{constructor(e,t,r,i){super(new n,r,i),this.element=`member`,this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}})),DS=i(((e,t)=>{var n=vS(),r=yS();t.exports=class e extends r{map(e,t){return this.elements.map(n=>e.bind(t)(n.value,n.key,n))}filter(t,n){return new e(this.elements.filter(e=>t.bind(n)(e.value,e.key,e)))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach((n,r)=>{e.bind(t)(n.value,n.key,n,r)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}})),OS=i(((e,t)=>{var n=vS(),r=po(),i=TS(),a=ES(),o=DS();t.exports=class extends i{constructor(e,t,n){super(e||[],t,n),this.element=`object`}primitive(){return`object`}toValue(){return this.content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){let t=this.getMember(e);if(t)return t.value}getMember(e){if(e!==void 0)return this.content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this.content.filter(n=>n.key.toValue()!==e||(t=n,!1)),t}getKey(e){let t=this.getMember(e);if(t)return t.key}set(e,t){if(r(e))return Object.keys(e).forEach(t=>{this.set(t,e[t])}),this;let n=e,i=this.getMember(n);return i?i.value=t:this.content.push(new a(n,t)),this}keys(){return this.content.map(e=>e.key.toValue())}values(){return this.content.map(e=>e.value.toValue())}hasKey(e){return this.content.some(t=>t.key.equals(e))}items(){return this.content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this.content.map(n=>e.bind(t)(n.value,n.key,n))}compactMap(e,t){let n=[];return this.forEach((r,i,a)=>{let o=e.bind(t)(r,i,a);o&&n.push(o)}),n}filter(e,t){return new o(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach(n=>e.bind(t)(n.value,n.key,n))}}})),kS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e||[],t,n),this.element=`link`}get relation(){return this.attributes.get(`relation`)}set relation(e){this.attributes.set(`relation`,e)}get href(){return this.attributes.get(`href`)}set href(e){this.attributes.set(`href`,e)}}})),AS=i(((e,t)=>{var n=bS();t.exports=class extends n{constructor(e,t,n){super(e||[],t,n),this.element=`ref`,this.path||=`element`}get path(){return this.attributes.get(`path`)}set path(e){this.attributes.set(`path`,e)}}})),jS=i(((e,t)=>{var n=bS(),r=xS(),i=SS(),a=CS(),o=wS(),s=TS(),c=ES(),l=OS(),u=kS(),d=AS(),f=yS(),p=DS(),m=_S();function h(e){return e instanceof n?e:typeof e==`string`?new i(e):typeof e==`number`?new a(e):typeof e==`boolean`?new o(e):e===null?new r:Array.isArray(e)?new s(e.map(h)):typeof e==`object`?new l(e):e}n.prototype.ObjectElement=l,n.prototype.RefElement=d,n.prototype.MemberElement=c,n.prototype.refract=h,f.prototype.refract=h,t.exports={Element:n,NullElement:r,StringElement:i,NumberElement:a,BooleanElement:o,ArrayElement:s,MemberElement:c,ObjectElement:l,LinkElement:u,RefElement:d,refract:h,ArraySlice:f,ObjectSlice:p,KeyValuePair:m}})),MS=i(((e,t)=>{var n=fS(),r=om(),i=pS(),a=mS(),o=po(),s=hS(),c=jS(),l=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.KeyValuePair,(!e||!e.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register(`null`,c.NullElement).register(`string`,c.StringElement).register(`number`,c.NumberElement).register(`boolean`,c.BooleanElement).register(`array`,c.ArrayElement).register(`object`,c.ObjectElement).register(`member`,c.MemberElement).register(`ref`,c.RefElement).register(`link`,c.LinkElement),this.detect(n,c.NullElement,!1).detect(r,c.StringElement,!1).detect(i,c.NumberElement,!1).detect(a,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(o,c.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return n===void 0||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){let r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(e);break}}return t}getElementClass(e){let t=this.elementMap[e];return t===void 0?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{let t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new s(this)}};s.prototype.Namespace=l,t.exports=l})),NS=i(((e,t)=>{var n=hS();t.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get(`variable`)&&(t=e.attributes.get(`variable`));let n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));let r=e.element===`enum`||e.attributes.keys().indexOf(`enumerations`)!==-1;if(r){let t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get(`metadata`)&&(r=r.clone(),r.set(`meta`,r.get(`metadata`)),r.remove(`metadata`)),e.element===`member`&&t&&(r=r.clone(),r.remove(`variable`)),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(e.content!==void 0){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set(`variable`,t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return e.element===`parseResult`||e.element===`httpRequest`||e.element===`httpResponse`||e.element===`category`||e.element===`link`||!(t===void 0||Array.isArray(t)&&t.length===0)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){let t=e.attributes.clone(),n=t.remove(`enumerations`)||new this.namespace.elements.Array([]),r=t.get(`default`),i=t.get(`samples`)||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove(`typeAttributes`),t.set(`default`,new this.namespace.elements.Array([r.content]))),i.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove(`typeAttributes`)}),e.content&&n.length!==0&&i.unshift(e.content),i=i.map(e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content])),i.length&&t.set(`samples`,i),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){let t=e.attributes.get(`enumerations`);if(t&&t.length>0)return t.content.map(e=>{let t=e.clone();return t.attributes.remove(`typeAttributes`),this.serialise(t)})}if(e.content){let t=e.content.clone();return t.attributes.remove(`typeAttributes`),[this.serialise(t)]}return[]}deserialise(e){if(typeof e==`string`)return new this.namespace.elements.String(e);if(typeof e==`number`)return new this.namespace.elements.Number(e);if(typeof e==`boolean`)return new this.namespace.elements.Boolean(e);if(e===null)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));let t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);let r=this.deserialiseContent(e.content);if((r!==void 0||n.content===null)&&(n.content=r),n.element===`enum`){n.content&&n.attributes.set(`enumerations`,n.content);let e=n.attributes.get(`samples`);if(n.attributes.remove(`samples`),e){let r=e;e=new this.namespace.elements.Array,r.forEach(r=>{r.forEach(r=>{let i=new t(r);i.element=n.element,e.push(i)})});let i=e.shift();n.content=i?i.content:void 0,n.attributes.set(`samples`,e)}else n.content=void 0;let r=n.attributes.get(`default`);if(r&&r.length>0){r=r.get(0);let e=new t(r);e.element=n.element,n.attributes.set(`default`,e)}}else if(n.element===`dataStructure`&&Array.isArray(n.content))[n.content]=n.content;else if(n.element===`category`){let e=n.attributes.get(`meta`);e&&(n.attributes.set(`metadata`,e),n.attributes.remove(`meta`))}else n.element===`member`&&n.key&&n.key._attributes&&n.key._attributes.getValue(`variable`)&&(n.attributes.set(`variable`,n.key.attributes.get(`variable`)),n.key.attributes.remove(`variable`));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){let t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){let t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length?!0:e.element===`enum`?!1:e.element!==e.primitive()||e.element===`member`}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):t.element===`enum`?this.serialiseEnum(t):t.element===`array`?t.map(t=>this.shouldRefract(t)||e==="default"?this.serialise(t):t.element===`array`||t.element===`object`||t.element===`enum`?t.children.map(e=>this.serialise(e)):t.toValue()):t.element===`object`?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map(e=>this.serialise(e))}serialiseObject(e){let t={};return e.forEach((e,n)=>{if(e){let r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}})),W=i((e=>{var t=MS(),n=jS();e.Namespace=t,e.KeyValuePair=_S(),e.ArraySlice=n.ArraySlice,e.ObjectSlice=n.ObjectSlice,e.Element=n.Element,e.StringElement=n.StringElement,e.NumberElement=n.NumberElement,e.BooleanElement=n.BooleanElement,e.NullElement=n.NullElement,e.ArrayElement=n.ArrayElement,e.ObjectElement=n.ObjectElement,e.MemberElement=n.MemberElement,e.RefElement=n.RefElement,e.LinkElement=n.LinkElement,e.refract=n.refract,e.JSONSerialiser=hS(),e.JSON06Serialiser=NS()}))(),PS=class extends W.StringElement{constructor(e,t,n){super(e,t,n),this.element=`annotation`}get code(){return this.attributes.get(`code`)}set code(e){this.attributes.set(`code`,e)}},FS=class extends W.StringElement{constructor(e,t,n){super(e,t,n),this.element=`comment`}},IS=class extends W.ArrayElement{constructor(e,t,n){super(e,t,n),this.element=`parseResult`}get api(){return this.children.filter(e=>e.classes.contains(`api`)).first}get results(){return this.children.filter(e=>e.classes.contains(`result`))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>e.element===`annotation`)}get warnings(){return this.children.filter(e=>e.element===`annotation`&&e.classes.contains(`warning`))}get errors(){return this.children.filter(e=>e.element===`annotation`&&e.classes.contains(`error`))}get isEmpty(){return this.children.reject(e=>e.element===`annotation`).isEmpty}replaceResult(e){let{result:t}=this;if(Ub(t))return!1;let n=this.content.findIndex(e=>e===t);return n!==-1&&(this.content[n]=e,!0)}},LS=(e,t)=>typeof t==`object`&&!!t&&e in t&&typeof t[e]==`function`,RS=e=>typeof e==`object`&&!!e&&`_storedElement`in e&&typeof e._storedElement==`string`&&`_content`in e,zS=(e,t)=>typeof t==`object`&&t&&`primitive`in t?typeof t.primitive==`function`&&t.primitive()===e:!1,BS=(e,t)=>typeof t==`object`&&!!t&&`classes`in t&&(Array.isArray(t.classes)||t.classes instanceof W.ArrayElement)&&t.classes.includes(e),VS=(e,t)=>typeof t==`object`&&!!t&&`element`in t&&t.element===e,G=e=>e({hasMethod:LS,hasBasicElementProps:RS,primitiveEq:zS,isElementType:VS,hasClass:BS}),HS=r({hasElementSourceMap:()=>rC,includesClasses:()=>aC,includesSymbols:()=>iC,isAnnotationElement:()=>$S,isArrayElement:()=>YS,isBooleanElement:()=>qS,isCommentElement:()=>eC,isElement:()=>US,isLinkElement:()=>ZS,isMemberElement:()=>XS,isNullElement:()=>KS,isNumberElement:()=>GS,isObjectElement:()=>JS,isParseResultElement:()=>tC,isPrimitiveElement:()=>nC,isRefElement:()=>QS,isStringElement:()=>WS}),US=G(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof W.Element||e(n)&&t(void 0,n)),WS=G(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof W.StringElement||e(n)&&t(`string`,n)),GS=G(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof W.NumberElement||e(n)&&t(`number`,n)),KS=G(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof W.NullElement||e(n)&&t(`null`,n)),qS=G(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof W.BooleanElement||e(n)&&t(`boolean`,n)),JS=G(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof W.ObjectElement||e(r)&&t(`object`,r)&&n(`keys`,r)&&n(`values`,r)&&n(`items`,r)),YS=G(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof W.ArrayElement&&!(r instanceof W.ObjectElement)||e(r)&&t(`array`,r)&&n(`push`,r)&&n(`unshift`,r)&&n(`map`,r)&&n(`reduce`,r)),XS=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof W.MemberElement||e(r)&&t(`member`,r)&&n(void 0,r)),ZS=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof W.LinkElement||e(r)&&t(`link`,r)&&n(void 0,r)),QS=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof W.RefElement||e(r)&&t(`ref`,r)&&n(void 0,r)),$S=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PS||e(r)&&t(`annotation`,r)&&n(`array`,r)),eC=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof FS||e(r)&&t(`comment`,r)&&n(`string`,r)),tC=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof IS||e(r)&&t(`parseResult`,r)&&n(`array`,r)),nC=e=>VS(`object`,e)||VS(`array`,e)||VS(`boolean`,e)||VS(`number`,e)||VS(`string`,e)||VS(`null`,e)||VS(`member`,e),rC=e=>US(e)?Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex):!1,iC=(e,t)=>{if(e.length===0)return!0;let n=t.attributes.get(`symbols`);return YS(n)?tv(bx(n.toValue()),e):!1},aC=(e,t)=>e.length===0||tv(bx(t.classes.toValue()),e),oC=class extends W.Namespace{constructor(){super(),this.register(`annotation`,PS),this.register(`comment`,FS),this.register(`parseResult`,IS)}},sC=new oC,cC=e=>{let t=new oC;return lx(e)&&t.use(e),t},lC=()=>({predicates:{...HS},namespace:sC}),uC=(e,t,n)=>{let r=e[t];if(r!=null){if(!n&&typeof r==`function`)return r;let e=n?r.leave:r.enter;if(typeof e==`function`)return e}else{let r=n?e.leave:e.enter;if(r!=null){if(typeof r==`function`)return r;let e=r[t];if(typeof e==`function`)return e}}return null},dC={},fC=e=>e?.type,pC=e=>typeof fC(e)==`string`,mC=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),hC=(e,{visitFnGetter:t=uC,nodeTypeGetter:n=fC,breakSymbol:r=dC,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,exposeEdits:o=!1}={})=>{let s=Symbol(`skip`),c=Array(e.length).fill(s);return{enter(l,u,d,f,p,m){let h=l,g=!1,_={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===s){let s=t(e[l],n(h),!1);if(typeof s==`function`){let t=s.call(e[l],h,u,d,f,p,_);if(typeof t?.then==`function`)throw new F_(`Async visitor not supported in sync mode`,{visitor:e[l],visitFn:s});if(t===a)c[l]=h;else if(t===r)c[l]=r;else if(t===i)return t;else if(t!==void 0){if(o)h=t,g=!0;else return t}}}return g?h:void 0},leave(i,o,l,u,d,f){let p=i,m={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(c[i]===s){let s=t(e[i],n(p),!0);if(typeof s==`function`){let t=s.call(e[i],p,o,l,u,d,m);if(typeof t?.then==`function`)throw new F_(`Async visitor not supported in sync mode`,{visitor:e[i],visitFn:s});if(t===r)c[i]=r;else if(t!==void 0&&t!==a)return t}}else c[i]===p&&(c[i]=s)}}};hC[Symbol.for(`nodejs.util.promisify.custom`)]=(e,{visitFnGetter:t=uC,nodeTypeGetter:n=fC,breakSymbol:r=dC,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,exposeEdits:o=!1}={})=>{let s=Symbol(`skip`),c=Array(e.length).fill(s);return{async enter(l,u,d,f,p,m){let h=l,g=!1,_={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===s){let s=t(e[l],n(h),!1);if(typeof s==`function`){let t=await s.call(e[l],h,u,d,f,p,_);if(t===a)c[l]=h;else if(t===r)c[l]=r;else if(t===i)return t;else if(t!==void 0){if(o)h=t,g=!0;else return t}}}return g?h:void 0},async leave(i,o,l,u,d,f){let p=i,m={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(c[i]===s){let s=t(e[i],n(p),!0);if(typeof s==`function`){let t=await s.call(e[i],p,o,l,u,d,m);if(t===r)c[i]=r;else if(t!==void 0&&t!==a)return t}}else c[i]===p&&(c[i]=s)}}};var gC=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=dC,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:s=uC,nodeTypeGetter:c=fC,nodePredicate:l=pC,nodeCloneFn:u=mC,detectCycles:d=!0,detectCyclesCallback:f=null}={})=>{let p=n||{},m,h=Array.isArray(e),g=[e],_=-1,v,y=[],b=e,x=[],S=[];do{_+=1;let e=_===g.length,n,C=e&&y.length!==0;if(e){if(n=S.length===0?void 0:x.pop(),b=v,v=S.pop(),C){if(h){b=b.slice();let e=0;for(let[t,n]of y){let r=t-e;n===a?(b.splice(r,1),e+=1):b[r]=n}}else{b=u(b);for(let[e,t]of y)b[e]=t}}_=m.index,g=m.keys,y=m.edits,h=m.inArray,m=m.prev}else if(v!==a&&v!==void 0){if(n=h?_:g[_],b=v[n],b===a||b===void 0)continue;x.push(n)}let w;if(!Array.isArray(b)){if(!l(b))throw new F_(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&S.includes(b)){typeof f==`function`&&f(b,n,v,x,S),x.pop();continue}let a=s(t,c(b),e);if(a){for(let[e,n]of Object.entries(r))t[e]=n;w=a.call(t,b,n,v,x,S,{replaceWith(t,r){typeof r==`function`?r(t,b,n,v,x,S):v&&(v[n]=t),e||(b=t)}})}if(typeof w?.then==`function`)throw new F_(`Async visitor not supported in sync mode`,{visitor:t,visitFn:a});if(w===i)break;if(w===o){if(!e){x.pop();continue}}else if(w!==void 0&&(y.push([n,w]),!e)){if(l(w))b=w;else{x.pop();continue}}}w===void 0&&C&&y.push([n,b]),!e&&(m={inArray:h,index:_,keys:g,edits:y,prev:m},h=Array.isArray(b),g=h?b:p[c(b)]??[],_=-1,y=[],v!==a&&v!==void 0&&S.push(v),v=b)}while(m!==void 0);return y.length===0?e:y[y.length-1][1]};gC[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=dC,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:s=uC,nodeTypeGetter:c=fC,nodePredicate:l=pC,nodeCloneFn:u=mC,detectCycles:d=!0,detectCyclesCallback:f=null}={})=>{let p=n||{},m,h=Array.isArray(e),g=[e],_=-1,v,y=[],b=e,x=[],S=[];do{_+=1;let e=_===g.length,n,C=e&&y.length!==0;if(e){if(n=S.length===0?void 0:x.pop(),b=v,v=S.pop(),C){if(h){b=b.slice();let e=0;for(let[t,n]of y){let r=t-e;n===a?(b.splice(r,1),e+=1):b[r]=n}}else{b=u(b);for(let[e,t]of y)b[e]=t}}_=m.index,g=m.keys,y=m.edits,h=m.inArray,m=m.prev}else if(v!==a&&v!==void 0){if(n=h?_:g[_],b=v[n],b===a||b===void 0)continue;x.push(n)}let w;if(!Array.isArray(b)){if(!l(b))throw new F_(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&S.includes(b)){typeof f==`function`&&f(b,n,v,x,S),x.pop();continue}let a=s(t,c(b),e);if(a){for(let[e,n]of Object.entries(r))t[e]=n;w=await a.call(t,b,n,v,x,S,{replaceWith(t,r){typeof r==`function`?r(t,b,n,v,x,S):v&&(v[n]=t),e||(b=t)}})}if(w===i)break;if(w===o){if(!e){x.pop();continue}}else if(w!==void 0&&(y.push([n,w]),!e)){if(l(w))b=w;else{x.pop();continue}}}w===void 0&&C&&y.push([n,b]),!e&&(m={inArray:h,index:_,keys:g,edits:y,prev:m},h=Array.isArray(b),g=h?b:p[c(b)]??[],_=-1,y=[],v!==a&&v!==void 0&&S.push(v),v=b)}while(m!==void 0);return y.length===0?e:y[y.length-1][1]};var _C=class extends F_{value;constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},vC=class extends _C{},yC=class extends _C{},bC=(e,t)=>{let n=Py(e,t);return vb(e=>lx(e)&&ob(`$ref`,e)&&jb(ex,`$ref`,e)?Tb(Ax(`#/`,Tb([`$ref`],e)).split(`/`),n):lx(e)?bC(e,n):e,e)},xC=(e,t)=>(e.startPositionRow=t?.startPositionRow,e.startPositionColumn=t?.startPositionColumn,e.startIndex=t?.startIndex,e.endPositionRow=t?.endPositionRow,e.endPositionColumn=t?.endPositionColumn,e.endIndex=t?.endIndex,e),K=(e,t={})=>{let{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof W.KeyValuePair){let{key:t,value:i}=e,a=US(t)?K(t,r):t,o=US(i)?K(i,r):i,s=new W.KeyValuePair(a,o);return n.set(e,s),s}if(e instanceof W.ObjectSlice){let t=e=>K(e,r),i=[...e].map(t),a=new W.ObjectSlice(i);return n.set(e,a),a}if(e instanceof W.ArraySlice){let t=e=>K(e,r),i=[...e].map(t),a=new W.ArraySlice(i);return n.set(e,a),a}if(US(e)){let t=EC(e);return n.set(e,t),t.content=e.content?US(e.content)||e.content instanceof W.KeyValuePair?K(e.content,r):Array.isArray(e.content)?e.content.map(e=>K(e,r)):e.content:e.content,t}throw new vC(`Value provided to cloneDeep function couldn't be cloned`,{value:e})};K.safe=e=>{try{return K(e)}catch{return e}};var SC=e=>{let{key:t,value:n}=e;return new W.KeyValuePair(t,n)},CC=e=>{let t=[...e];return new W.ArraySlice(t)},wC=e=>{let t=[...e];return new W.ObjectSlice(t)},TC=e=>{let t=new e.constructor;if(t.element=e.element,rC(e)&&xC(t,e),e.meta.length>0&&(t._meta=K(e.meta)),e.attributes.length>0&&(t._attributes=K(e.attributes)),US(e.content)){let n=e.content;t.content=TC(n)}else t.content=Array.isArray(e.content)?[...e.content]:e.content instanceof W.KeyValuePair?SC(e.content):e.content;return t},EC=e=>{if(e instanceof W.KeyValuePair)return SC(e);if(e instanceof W.ObjectSlice)return wC(e);if(e instanceof W.ArraySlice)return CC(e);if(US(e))return TC(e);throw new yC(`Value provided to cloneShallow function couldn't be cloned`,{value:e})};EC.safe=e=>{try{return EC(e)}catch{return e}};var DC=e=>JS(e)?`ObjectElement`:YS(e)?`ArrayElement`:XS(e)?`MemberElement`:WS(e)?`StringElement`:qS(e)?`BooleanElement`:GS(e)?`NumberElement`:KS(e)?`NullElement`:ZS(e)?`LinkElement`:QS(e)?`RefElement`:void 0,OC=e=>US(e)?EC(e):mC(e),kC=Dy(DC,ex),AC={ObjectElement:[`content`],ArrayElement:[`content`],MemberElement:[`key`,`value`],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:[`content`]},jC=class{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=R_,returnOnTrue:t,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}},MC=(e,t,{keyMap:n=AC,...r}={})=>gC(e,t,{keyMap:n,nodeTypeGetter:DC,nodePredicate:kC,nodeCloneFn:OC,...r});MC[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,{keyMap:n=AC,...r}={})=>gC[Symbol.for(`nodejs.util.promisify.custom`)](e,t,{keyMap:n,nodeTypeGetter:DC,nodePredicate:kC,nodeCloneFn:OC,...r});var NC={toolboxCreator:lC,visitorOptions:{nodeTypeGetter:DC,exposeEdits:!0}},PC=(e,t,n={})=>{if(t.length===0)return e;let{toolboxCreator:r,visitorOptions:i}=xb(NC,n),a=r(),o=t.map(e=>e(a)),s=hC(o.map(Ab({},`visitor`)),{...i});o.forEach(xx([`pre`],[]));let c=MC(e,s,i);return o.forEach(xx([`post`],[])),c};PC[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,n={})=>{if(t.length===0)return e;let{toolboxCreator:r,visitorOptions:i}=xb(NC,n),a=r(),o=t.map(e=>e(a)),s=hC[Symbol.for(`nodejs.util.promisify.custom`)],c=MC[Symbol.for(`nodejs.util.promisify.custom`)],l=s(o.map(Ab({},`visitor`)),{...i});await Promise.allSettled(o.map(xx([`pre`],[])));let u=await c(e,l,i);return await Promise.allSettled(o.map(xx([`post`],[]))),u};var FC=e(i(((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||={})i.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&o(e,n,t[n]);return e},c=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},l=(r,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!i.call(r,c)&&c!==o&&e(r,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return r},u=t=>l(e({},`__esModule`,{value:!0}),t),d=(e,t,n)=>o(e,typeof t==`symbol`?t:t+``,n),f={};c(f,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>m,default:()=>_});var p=`5.3.2`,m=6,h={dictionary:`alphanum`,shuffle:!0,debug:!1,length:m,counter:0},g=class{constructor(e={}){d(this,`counter`),d(this,`debug`),d(this,`dict`),d(this,`version`),d(this,`dictIndex`,0),d(this,`dictRange`,[]),d(this,`lowerBound`,0),d(this,`upperBound`,0),d(this,`dictLength`,0),d(this,`uuidLength`),d(this,`_digit_first_ascii`,48),d(this,`_digit_last_ascii`,58),d(this,`_alpha_lower_first_ascii`,97),d(this,`_alpha_lower_last_ascii`,123),d(this,`_hex_last_ascii`,103),d(this,`_alpha_upper_first_ascii`,65),d(this,`_alpha_upper_last_ascii`,91),d(this,`_number_dict_ranges`,{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,`_alpha_dict_ranges`,{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,`_alpha_lower_dict_ranges`,{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,`_alpha_upper_dict_ranges`,{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,`_alphanum_dict_ranges`,{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,`_alphanum_lower_dict_ranges`,{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,`_alphanum_upper_dict_ranges`,{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,`_hex_dict_ranges`,{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,`_dict_ranges`,{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,`log`,(...e)=>{let t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,this.debug===!0&&typeof console<`u`&&console!==null){console.log(...t);return}}),d(this,`_normalizeDictionary`,(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],i=0;for(let[,e]of Object.entries(r)){let[t,n]=e;i+=Math.abs(n-t)}n=Array(i);let a=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,i=this.upperBound;if(t)for(let e=r;e<i;e++)n[a++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>i;e--)n[a++]=String.fromCharCode(e),this.dictIndex=e}n.length=a}if(t){let e=n.length;for(let t=e-1;t>0;t--){let e=Math.floor(Math.random()*(t+1));[n[t],n[e]]=[n[e],n[t]]}}return n}),d(this,`setDictionary`,(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,`seq`,()=>this.sequentialUUID()),d(this,`sequentialUUID`,()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let i=n%e;n=Math.trunc(n/e),r.push(t[i])}while(n!==0);let i=r.join(``);return this.counter+=1,i}),d(this,`rnd`,(e=this.uuidLength||m)=>this.randomUUID(e)),d(this,`randomUUID`,(e=this.uuidLength||m)=>{if(e==null||e<1)throw Error(`Invalid UUID Length Provided`);let t=Array(e),n=this.dictLength,r=this.dict;for(let i=0;i<e;i++){let e=Math.floor(Math.random()*n);t[i]=r[e]}return t.join(``)}),d(this,`fmt`,(e,t)=>this.formattedUUID(e,t)),d(this,`formattedUUID`,(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),i=Number.parseInt(e.slice(2),10);return r===`$s`?n[r]().padStart(i,`0`):r===`$t`&&t?n[r](i,t):n[r](i)})}),d(this,`availableUUIDs`,(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),d(this,`_collisionCache`,new Map),d(this,`approxMaxBeforeCollision`,(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(n!==void 0)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),d(this,`collisionProbability`,(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),d(this,`uniqueness`,(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),d(this,`getVersion`,()=>this.version),d(this,`stamp`,(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if(typeof e==`number`&&e===0)return n;if(typeof e!=`number`||e<10)throw Error([`Param finalLength must be a number greater than or equal to 10,`,`or 0 if you want the raw hexadecimal timestamp`].join(`
|
|
39
|
-
`));let r=e-9,i=Math.round(Math.random()*(r>15?15:r)),a=this.randomUUID(r);return`${a.substring(0,i)}${n}${a.substring(i)}${i.toString(16)}`}),d(this,`parseStamp`,(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error(`Cannot extract date from a formated UUID with no timestamp in the format`);let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>`r`).join(``),$s:e=>[...Array(e)].map(()=>`s`).join(``),$t:e=>[...Array(e)].map(()=>`t`).join(``)},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(n.length===8)return new Date(Number.parseInt(n,16)*1e3);if(n.length<10)throw Error(`Stamp length invalid`);let r=Number.parseInt(n.substring(n.length-1),16);return new Date(Number.parseInt(n.substring(r,r+8),16)*1e3)}),d(this,`setCounter`,e=>{this.counter=e}),d(this,`validate`,(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split(``).every(e=>n.includes(e))});let t=s(s({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version=p;let{dictionary:n,shuffle:r,length:i,counter:a}=t;this.uuidLength=i,this.setDictionary(n,r),this.setCounter(a),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(g,`default`,g);var _=g;return u(f)})();t!==void 0&&(t.exports=n.default),typeof window<`u`&&(n=n.default)}))(),1),IC=class extends F_{value;constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},LC=class{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new FC.default({length:e}),this.identityMap=new WeakMap}identify(e){if(!US(e))throw new IC("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey(`id`)&&WS(e.meta.get(`id`))&&!e.meta.get(`id`).equals(``))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);let t=new W.StringElement(this.generateId());return this.identityMap.set(e,t),t}forget(e){return this.identityMap.has(e)?(this.identityMap.delete(e),!0):!1}generateId(){return this.uuid.randomUUID()}};new LC;var RC=class extends Array{unknownMediaType=`application/octet-stream`;filterByFormat(){throw new L_(`filterByFormat method in MediaTypes class is not yet implemented.`)}findBy(){throw new L_(`findBy method in MediaTypes class is not yet implemented.`)}latest(){throw new L_(`latest method in MediaTypes class is not yet implemented.`)}},zC=(e,{Type:t,plugins:n=[]})=>{let r=new t(e);return US(e)&&(e.meta.length>0&&(r.meta=K(e.meta)),e.attributes.length>0&&(r.attributes=K(e.attributes))),PC(r,n,{toolboxCreator:lC,visitorOptions:{nodeTypeGetter:DC}})},BC=e=>(t,n={})=>zC(t,{...n,Type:e});W.ObjectElement.refract=BC(W.ObjectElement),W.ArrayElement.refract=BC(W.ArrayElement),W.StringElement.refract=BC(W.StringElement),W.BooleanElement.refract=BC(W.BooleanElement),W.NullElement.refract=BC(W.NullElement),W.NumberElement.refract=BC(W.NumberElement),W.LinkElement.refract=BC(W.LinkElement),W.RefElement.refract=BC(W.RefElement),PS.refract=BC(PS),FS.refract=BC(FS),IS.refract=BC(IS);var VC=(e,t)=>{let n=new jC({predicate:e});return MC(t,n),new W.ArraySlice(n.result)},HC=(e,t)=>{let n=new jC({predicate:e,returnOnTrue:dC});return MC(t,n),Eb(void 0,[0],n.result)},UC=(e,t=new WeakMap)=>(XS(e)?(t.set(e.key,e),UC(e.key,t),t.set(e.value,e),UC(e.value,t)):e.children.forEach(n=>{t.set(n,e),UC(n,t)}),t),WC=(e,t,n)=>{let r=n.get(e);XS(r)&&(r.key===e&&(r.key=t,n.delete(e),n.set(t,r)),r.value===e&&(r.value=t,n.delete(e),n.set(t,r)))},GC=(e,t,n)=>{let r=n.get(e);JS(r)&&(r.content=r.map((i,a,o)=>o===e?(n.delete(e),n.set(t,r),t):o))},KC=(e,t,n)=>{let r=n.get(e);YS(r)&&(r.content=r.map(i=>i===e?(n.delete(e),n.set(t,r),t):i))},qC=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){if(e===this.element)return t;if(e===t)return this.element;this.edges=this.edges??UC(this.element);let n=this.edges.get(e);if(!Ub(n))return JS(n)?GC(e,t,this.edges):YS(n)?KC(e,t,this.edges):XS(n)&&WC(e,t,this.edges),this.element}},JC=(e,t,n)=>new qC({element:n}).transclude(e,t),YC=(e,t=sC)=>{if(ex(e))try{return t.fromRefract(JSON.parse(e))}catch{}return lx(e)&&ob(`element`,e)?t.fromRefract(e):t.toElement(e)},XC=e=>typeof e?.type==`string`?e.type:DC(e),ZC={EphemeralObject:[`content`],EphemeralArray:[`content`],...AC},QC=(e,t,{keyMap:n=ZC,...r}={})=>MC(e,t,{keyMap:n,nodeTypeGetter:XC,nodePredicate:z_,detectCycles:!1,deleteNodeSymbol:Symbol.for(`delete-node`),skipVisitingNodeSymbol:Symbol.for(`skip-visiting-node`),...r});QC[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,{keyMap:t=ZC,...n}={})=>MC[Symbol.for(`nodejs.util.promisify.custom`)](e,visitor,{keyMap:t,nodeTypeGetter:XC,nodePredicate:z_,detectCycles:!1,deleteNodeSymbol:Symbol.for(`delete-node`),skipVisitingNodeSymbol:Symbol.for(`skip-visiting-node`),...n});var $C=class{type=`EphemeralArray`;content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},ew=class{type=`EphemeralObject`;content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},tw=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();let t=new ew(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();let t=new $C(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){let n=t[3];return n[n.length-1]?.type===`EphemeralObject`?Symbol.for(`delete-node`):String(e.toValue())}LinkElement(e){return WS(e.href)?e.href.toValue():``}},q=e=>US(e)?WS(e)||GS(e)||qS(e)||KS(e)?e.toValue():QC(e,new tw):e,nw=e=>{let t=e.meta.length>0?K(e.meta):void 0,n=e.attributes.length>0?K(e.attributes):void 0;return new e.constructor(void 0,t,n)},rw=(e,t)=>t.clone&&t.isMergeableElement(e)?cw(nw(e),e,t):e,iw=(e,t)=>{if(typeof t.customMerge!=`function`)return cw;let n=t.customMerge(e,t);return typeof n==`function`?n:cw},aw=e=>typeof e.customMetaMerge==`function`?e.customMetaMerge:e=>K(e),ow=e=>typeof e.customAttributesMerge==`function`?e.customAttributesMerge:e=>K(e),sw={clone:!0,isMergeableElement:e=>JS(e)||YS(e),arrayElementMerge:(e,t,n)=>e.concat(t)[`fantasy-land/map`](e=>rw(e,n)),objectElementMerge:(e,t,n)=>{let r=JS(e)?nw(e):nw(t);return JS(e)&&e.forEach((e,t,i)=>{let a=EC(i);a.value=rw(e,n),r.content.push(a)}),t.forEach((t,i,a)=>{let o=q(i),s;if(JS(e)&&e.hasKey(o)&&n.isMergeableElement(t)){let r=e.get(o);s=EC(a),s.value=iw(i,n)(r,t,n)}else s=EC(a),s.value=rw(t,n);r.remove(o),r.content.push(s)}),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},cw=(e,t,n)=>{let r={...sw,...n};r.isMergeableElement=r.isMergeableElement??sw.isMergeableElement,r.arrayElementMerge=r.arrayElementMerge??sw.arrayElementMerge,r.objectElementMerge=r.objectElementMerge??sw.objectElementMerge;let i=YS(t);if(i!==YS(e))return rw(t,r);let a=i&&typeof r.arrayElementMerge==`function`?r.arrayElementMerge(e,t,r):r.objectElementMerge(e,t,r);return a.meta=aw(r)(e.meta,t.meta),a.attributes=ow(r)(e.attributes,t.attributes),a};cw.all=(e,t)=>{if(!Array.isArray(e))throw TypeError(`First argument of deepmerge should be an array.`);return e.length===0?new W.ObjectElement:e.reduce((e,n)=>cw(e,n,t),nw(e[0]))};var lw=class extends P_{},uw=class extends lw{},dw=async(e,t)=>{let n=e,r=!1;if(!tC(e)){let t=EC(e);t.classes.push(`result`),n=new IS([t]),r=!0}let i=new qx({uri:t.resolve.baseURI,parseResult:n,mediaType:t.parse.mediaType}),a=await eS(`canDereference`,[i,t],t.dereference.strategies);if(fb(a))throw new uw(i.uri);try{let{result:e}=await tS(`dereference`,[i,t],a);return r?e.get(0):e}catch(e){throw new lw(`Error while dereferencing file "${i.uri}"`,{cause:e})}},fw=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:n=!1,fileExtensions:r=[],mediaTypes:i=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=n,this.fileExtensions=r,this.mediaTypes=i}},pw=class{name;constructor({name:e}){this.name=e}},mw=class extends pw{timeout;redirects;withCredentials;constructor(e){let{name:t=`http-resolver`,timeout:n=5e3,redirects:r=5,withCredentials:i=!1}=e??{};super({name:t}),this.timeout=n,this.redirects=r,this.withCredentials=i}canRead(e){return Lx(e.uri)}},hw=class{name;constructor({name:e}){this.name=e}},gw=class{name;constructor({name:e}){this.name=e}},_w=class extends Array{includesCycle(e){return this.filter(t=>t.has(e)).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some(t=>t.has(e))}findItem(e){for(let t of this)for(let n of t)if(US(n)&&e(n))return n}},vw=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:n,value:r}){this.uri=e,this.value=r,this.depth=t,this.refSet=n,this.errors=[]}},yw=class extends P_{},bw=class extends yw{},xw=class extends P_{},Sw=class extends xw{},Cw=class extends yw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},ww=class extends lw{},Tw=class extends rS{},Ew=class extends nS{},Dw=async(e,t={})=>dw(e,Qx(Yx,t)),Ow=i((()=>{var e=Bf(),t=Kf().includes,n=Kd(),r=d_(),i=n(function(){return![,].includes()}),a=n(function(){return[,1].includes(void 0,1)});e({target:`Array`,proto:!0,forced:i||a},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)})),kw=i(((e,t)=>{Ow(),t.exports=cp()(`Array`,`includes`)})),Aw=i(((e,t)=>{var n=cf(),r=Xd(),i=Of()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),jw=i(((e,t)=>{var n=Aw(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),Mw=i(((e,t)=>{var n=Of()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),Nw=i((()=>{var e=Bf(),t=Yd(),n=jw(),r=of(),i=t_(),a=Mw(),o=t(``.indexOf);e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})})),Pw=i(((e,t)=>{Nw(),t.exports=cp()(`String`,`includes`)})),Fw=i(((e,t)=>{var n=df(),r=kw(),i=Pw(),a=Array.prototype,o=String.prototype;t.exports=function(e){var t=e.includes;return e===a||n(a,e)&&t===a.includes?r:typeof e==`string`||e===o||n(o,e)&&t===o.includes?i:t}})),Iw=i(((e,t)=>{t.exports=Fw()})),Lw=e(i(((e,t)=>{t.exports=Iw()}))()),Rw=e=>Object.prototype.toString.call(e),zw=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Bw=Array.isArray,Vw=e=>{let t=Rw(e);return t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`},Hw=Object.getOwnPropertyDescriptor,Uw=Object.prototype.propertyIsEnumerable,Ww=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Kw=e=>e===`__proto__`||e===`constructor`||e===`prototype`;function qw(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Jw(e,t){if(t!==void 0&&e>t)throw RangeError(`neotraverse: maximum traversal depth (${t}) exceeded`)}function Yw(e){let t=Object.keys(e),n=Ww(e);for(let r=0;r<n.length;r++)Uw.call(e,n[r])&&t.push(n[r]);return t}function Xw(e,t){return!Hw(e,t)?.writable}function Zw(e,t){if(typeof e==`object`&&e){let n;if(Bw(e))n=[];else if(zw(e))return e.slice();else if(Vw(e))return Object(e);else{let t=Rw(e);n=t===`[object Date]`&&typeof e.getTime==`function`?new Date(e.getTime()):t===`[object RegExp]`&&typeof e.source==`string`?new RegExp(e):t===`[object Error]`?{message:e.message}:Object.create(Object.getPrototypeOf(e))}let r=t.includeSymbols?Yw:Object.keys;for(let t of r(e))qw(n,t,e[t]);return n}return e}var Qw={includeSymbols:!1,immutable:!1};function $w(e,t,n=Qw){let r=[],i=[],a=!0,o=n.includeSymbols?Yw:Object.keys,s=!!n.immutable,c=n.maxDepth;return(function e(l){Jw(r.length,c);let u=s?Zw(l,n):l,d={},f=!0,p={node:u,node_:l,path:r.slice(),parent:i[i.length-1],parents:i,key:r[r.length-1],isRoot:r.length===0,level:r.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e,t=!1){p.isRoot||qw(p.parent.node,p.key,e),p.node=e,t&&(f=!1)},delete:function(e){delete p.parent.node[p.key],e&&(f=!1)},remove:function(e){Bw(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],e&&(f=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){a=!1},block:function(){f=!1}};if(!a)return p;function m(){if(typeof p.node==`object`&&p.node!==null){(!p.keys||p.node_!==p.node)&&(p.keys=o(p.node)),p.isLeaf=p.keys.length===0;for(let e=0;e<i.length;e++)if(i[e].node_===l){p.circular=i[e];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}m();let h=t.call(p,p.node);if(h!==void 0&&p.update&&p.update(h),d.before&&d.before.call(p,p.node),!f)return p;if(typeof p.node==`object`&&p.node!==null&&!p.circular){i.push(p),m();let t=p.keys??[];for(let n=0;n<t.length;n++){let i=t[n];r.push(i),d.pre&&d.pre.call(p,p.node[i],i);let a=e(p.node[i]);s&&Gw.call(p.node,i)&&!Xw(p.node,i)&&qw(p.node,i,a.node),a.isLast=n===t.length-1,a.isFirst=n===0,d.post&&d.post.call(p,a),r.pop()}i.pop()}return d.after&&d.after.call(p,p.node),p})(e).node}var eT=class{constructor(e,t=Qw){this._value=e,this._options=t}get(e){let t=this._value;for(let n=0;t&&n<e.length;n++){let r=e[n];if(!Gw.call(t,r)||!this._options.includeSymbols&&typeof r==`symbol`)return;t=t[r]}return t}has(e){let t=this._value;for(let n=0;t&&n<e.length;n++){let r=e[n];if(!Gw.call(t,r)||!this._options.includeSymbols&&typeof r==`symbol`)return!1;t=t[r]}return!0}set(e,t){let n=this._value,r=0;for(r=0;r<e.length-1;r++){let i=e[r];if(Kw(i))return t;Gw.call(n,i)||(n[i]={}),n=n[i]}return Kw(e[r])||(n[e[r]]=t),t}map(e){return $w(this._value,e,{immutable:!0,includeSymbols:!!this._options.includeSymbols,maxDepth:this._options.maxDepth})}forEach(e){return this._value=$w(this._value,e,this._options),this._value}reduce(e,t){let n=arguments.length===1,r=n?this._value:t;return this.forEach(function(t){(!this.isRoot||!n)&&(r=e.call(this,r,t))}),r}paths(){let e=[];return this.forEach(function(){e.push(this.path)}),e}nodes(){let e=[];return this.forEach(function(){e.push(this.node)}),e}clone(){let e=[],t=[],n=this._options,r=n.maxDepth;return zw(this._value)?this._value.slice():(function i(a){Jw(e.length,r);for(let n=0;n<e.length;n++)if(e[n]===a)return t[n];if(typeof a==`object`&&a){let r=Zw(a,n);if(zw(a)||Vw(a))return r;e.push(a),t.push(r);let o=n.includeSymbols?Yw:Object.keys;for(let e of o(a))qw(r,e,i(a[e]));return e.pop(),t.pop(),r}return a})(this._value)}},tT=(e,t)=>new eT(e,t);tT.get=(e,t,n)=>new eT(e,n).get(t),tT.set=(e,t,n,r)=>new eT(e,r).set(t,n),tT.has=(e,t,n)=>new eT(e,n).has(t),tT.map=(e,t,n)=>new eT(e,n).map(t),tT.forEach=(e,t,n)=>new eT(e,n).forEach(t),tT.reduce=(e,t,n,r)=>new eT(e,r).reduce(t,n),tT.paths=(e,t)=>new eT(e,t).paths(),tT.nodes=(e,t)=>new eT(e,t).nodes(),tT.clone=(e,t)=>new eT(e,t).clone();var nT=`application/json, application/yaml`,rT=`https://swagger.io`,iT=Object.freeze({url:`/`}),aT=[`properties`],oT=[`properties`],sT=[`definitions`,`parameters`,`responses`,`securityDefinitions`,`components/schemas`,`components/responses`,`components/parameters`,`components/securitySchemes`],cT=[`schema/example`,`items/example`];function lT(e){let t=e[e.length-1],n=e[e.length-2],r=e.join(`/`);return aT.indexOf(t)>-1&&oT.indexOf(n)===-1||sT.indexOf(r)>-1||cT.some(e=>r.indexOf(e)>-1)}function uT(e,t,{specmap:n,getBaseUrlForNodePath:r=e=>n.getContext([...t,...e]).baseDoc,targetKeys:i=[`$ref`,`$$ref`]}={}){let a=[];return tT(e).forEach(function(){if((0,Lw.default)(i).call(i,this.key)&&typeof this.node==`string`){let e=this.path,i=t.concat(this.path),o=dT(this.node,r(e));a.push(n.replace(i,o))}}),a}function dT(e,t){let[n,r]=e.split(`#`),i=t??``,a=n??``,o;if(Lx(i))o=Wx(i,a);else{let e=Wx(Wx(rT,i),a).replace(rT,``);o=a.startsWith(`/`)?e:e.substring(1)}return r?`${o}#${r}`:o}var fT=/^([a-z]+:\/\/|\/\/)/i,pT=class extends F_{},mT={},hT=new WeakMap,gT=[e=>e[0]===`paths`&&e[3]===`responses`&&e[5]===`examples`,e=>e[0]===`paths`&&e[3]===`responses`&&e[5]===`content`&&e[7]===`example`,e=>e[0]===`paths`&&e[3]===`responses`&&e[5]===`content`&&e[7]===`examples`&&e[9]===`value`,e=>e[0]===`paths`&&e[3]===`requestBody`&&e[4]===`content`&&e[6]===`example`,e=>e[0]===`paths`&&e[3]===`requestBody`&&e[4]===`content`&&e[6]===`examples`&&e[8]===`value`,e=>e[0]===`paths`&&e[2]===`parameters`&&e[4]===`example`,e=>e[0]===`paths`&&e[3]===`parameters`&&e[5]===`example`,e=>e[0]===`paths`&&e[2]===`parameters`&&e[4]===`examples`&&e[6]===`value`,e=>e[0]===`paths`&&e[3]===`parameters`&&e[5]===`examples`&&e[7]===`value`,e=>e[0]===`paths`&&e[2]===`parameters`&&e[4]===`content`&&e[6]===`example`,e=>e[0]===`paths`&&e[2]===`parameters`&&e[4]===`content`&&e[6]===`examples`&&e[8]===`value`,e=>e[0]===`paths`&&e[3]===`parameters`&&e[4]===`content`&&e[7]===`example`,e=>e[0]===`paths`&&e[3]===`parameters`&&e[5]===`content`&&e[7]===`examples`&&e[9]===`value`],_T=e=>gT.some(t=>t(e)),vT=Object.assign({key:`$ref`,plugin:(e,t,n,r)=>{let i=r.getInstance(),a=n.slice(0,-1);if(lT(a)||_T(a))return;let{baseDoc:o}=r.getContext(n);if(typeof e!=`string`)return new pT(`$ref: must be a string (JSON-Ref)`,{$ref:e,baseDoc:o,fullPath:n});let s=xT(e),c=s[0],l=s[1]||``,u;try{u=o||c?yT(c,o):null}catch(t){return bT(t,{pointer:l,$ref:e,basePath:u,fullPath:n})}let d,f;if(NT(l,u,a,r)&&!i.useCircularStructures){let t=dT(e,u);return e===t?null:Qh.replace(n,t)}if(u==null?(f=DT(l),d=r.get(f),d===void 0&&(d=new pT(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:n}))):(d=ST(u,l),d=d.__value==null?d.catch(t=>{throw bT(t,{pointer:l,$ref:e,baseDoc:o,fullPath:n})}):d.__value),d instanceof Error)return[Qh.remove(n),d];let p=dT(e,u),m=Qh.replace(a,d,{$$ref:p});if(u&&u!==o)return[m,Qh.context(a,{baseDoc:u})];try{if(!PT(r.state,m)||i.useCircularStructures)return m}catch{return null}}},{docCache:mT,absoluteify:yT,clearCache:CT,JSONRefError:pT,wrapError:bT,getDoc:wT,split:xT,extractFromDoc:ST,fetchJSON:TT,extract:ET,jsonPointerToArray:DT,unescapeJsonPointerToken:OT});function yT(e,t){if(!fT.test(e)){if(!t)throw new pT(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Wx(t,e)}return e}function bT(e,t){let n;return n=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new pT(`Could not resolve reference: ${n}`,{...t,cause:e})}function xT(e){return(e+``).split(`#`)}function ST(e,t){let n=mT[e];if(n&&!Qh.isPromise(n))try{let e=ET(t,n);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return wT(e).then(e=>ET(t,e))}function CT(e){e===void 0?Object.keys(mT).forEach(e=>{delete mT[e]}):delete mT[e]}function wT(e){let t=mT[e];return t?Qh.isPromise(t)?t:Promise.resolve(t):(mT[e]=vT.fetchJSON(e).then(t=>(mT[e]=t,t)),mT[e])}function TT(e){return fetch(e,{headers:{Accept:nT},loadSpec:!0}).then(e=>e.text()).then(e=>Ed.load(e))}function ET(e,t){let n=DT(e);if(n.length<1)return t;let r=Qh.getIn(t,n);if(r===void 0)throw new pT(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return r}function DT(e){if(typeof e!=`string`)throw TypeError(`Expected a string, got a ${typeof e}`);return e[0]===`/`&&(e=e.substr(1)),e===``?[]:e.split(`/`).map(OT)}function OT(e){return typeof e==`string`?new URLSearchParams(`=${e.replace(/~1/g,`/`).replace(/~0/g,`~`)}`).get(``):e}function kT(e){return new URLSearchParams([[``,e.replace(/~/g,`~0`).replace(/\//g,`~1`)]]).toString().slice(1)}function AT(e){return e.length===0?``:`/${e.map(kT).join(`/`)}`}var jT=e=>!e||e===`/`||e===`#`;function MT(e,t){if(jT(t))return!0;let n=e.charAt(t.length),r=t.slice(-1);return e.indexOf(t)===0&&(!n||n===`/`||n===`#`)&&r!==`#`}function NT(e,t,n,r){let i=hT.get(r);i||(i={},hT.set(r,i));let a=AT(n),o=`${t||`<specmap-base>`}#${e}`,s=a.replace(/allOf\/\d+\/?/g,``);if(t===r.contextTree.get([]).baseDoc&&MT(s,e))return!0;let c=``;if(n.some(e=>(c=`${c}/${kT(e)}`,i[c]&&i[c].some(e=>MT(e,o)||MT(o,e)))))return!0;i[s]=(i[s]||[]).concat(o)}function PT(e,t){let n=[e];return t.path.reduce((e,t)=>(n.push(e[t]),e[t]),e),r(t.value);function r(e){return Qh.isObject(e)&&(n.indexOf(e)>=0||Object.keys(e).some(t=>r(e[t])))}}var FT={key:`allOf`,plugin:(e,t,n,r,i)=>{if(i.meta&&i.meta.$$ref)return;let a=n.slice(0,-1);if(lT(a))return;if(!Array.isArray(e)){let e=TypeError(`allOf must be an array`);return e.fullPath=n,e}let o=!1,s=i.value;if(a.forEach(e=>{s&&=s[e]}),s={...s},Object.keys(s).length===0)return;delete s.allOf;let c=[];return c.push(r.replace(a,{})),e.forEach((e,t)=>{if(!r.isObject(e)){if(o)return null;o=!0;let e=TypeError(`Elements in allOf must be objects`);return e.fullPath=n,c.push(e)}c.push(r.mergeDeep(a,e));let i=uT(e,n.slice(0,-1),{getBaseUrlForNodePath:e=>r.getContext([...n,t,...e]).baseDoc,specmap:r});c.push(...i)}),s.example&&c.push(r.remove([].concat(a,`example`))),c.push(r.mergeDeep(a,s)),s.$$ref||c.push(r.remove([].concat(a,`$$ref`))),c}},IT={key:`parameters`,plugin:(e,t,n,r)=>{if(Array.isArray(e)&&e.length){let t=Object.assign([],e),i=n.slice(0,-1),a={...Qh.getIn(r.spec,i)};for(let i=0;i<e.length;i+=1){let o=e[i];try{t[i].default=r.parameterMacro(a,o)}catch(e){let t=Error(e);return t.fullPath=n,t}}return Qh.replace(n,t)}return Qh.replace(n,e)}},LT={key:`properties`,plugin:(e,t,n,r)=>{let i={...e};for(let t in e)try{i[t].default=r.modelPropertyMacro(i[t])}catch(e){let t=Error(e);return t.fullPath=n,t}return Qh.replace(n,i)}},RT=class{constructor(e){this.root=zT(e||{})}set(e,t){let n=this.getParent(e,!0);if(!n){BT(this.root,t,null);return}let r=e[e.length-1],{children:i}=n;if(i[r]){BT(i[r],t,n);return}i[r]=zT(t,n)}get(e){if(e||=[],e.length<1)return this.root.value;let t=this.root,n,r;for(let i=0;i<e.length&&(r=e[i],n=t.children,n[r]);i+=1)t=n[r];return t&&t.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((e,n)=>{if(!e)return e;let{children:r}=e;return!r[n]&&t&&(r[n]=zT(null,e)),r[n]},this.root)}};function zT(e,t){return BT({children:{}},e,t)}function BT(e,t,n){return e.value=t||{},e.protoValue=n?{...n.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(t=>{let n=e.children[t];e.children[t]=BT(n,n.value,e)}),e}var VT=100,HT=()=>{},UT=class{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:``,debugLevel:`info`,plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new RT,showDebug:!1,allPatches:[],pluginProp:`specMap`,libMethods:Object.assign(Object.create(this),Qh,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(Qh.isFunction),this.patches.push(Qh.add([],this.spec)),this.patches.push(Qh.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){this.debugLevel===`verbose`&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){let{pathDiscriminator:n}=this,r=null,i;return e[this.pluginProp]?(r=e,i=e[this.pluginProp]):Qh.isFunction(e)?i=e:Qh.isObject(e)&&(i=a(e)),Object.assign(i.bind(r),{pluginName:e.name||t,isGenerator:Qh.isGenerator(i)});function a(e){let t=(e,t)=>!Array.isArray(e)||e.every((e,n)=>e===t[n]);return function*(r,i){let a={};for(let[e,t]of r.filter(Qh.isAdditiveMutation).entries())if(e<3e3)yield*o(t.value,t.path,t);else return;function*o(r,s,c){if(!Qh.isObject(r))e.key===s[s.length-1]&&(yield e.plugin(r,e.key,s,i));else{let l=s.length-1,u=s[l],d=s.indexOf(`properties`),f=u===`properties`&&l===d,p=i.allowMetaPatches&&a[r.$$ref];for(let l of Object.keys(r)){let u=r[l],d=s.concat(l),m=Qh.isObject(u),h=r.$$ref;if(p||m&&(i.allowMetaPatches&&h&&t(n,d)&&(a[h]=!0),yield*o(u,d,c)),!f&&l===e.key){let r=t(n,s);(!n||r)&&(yield e.plugin(u,l,d,i,c))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(e=>this.getMutationsForPlugin(e).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(e=>e.value))}getPluginHistory(e){let t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){let t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){let t=this.getPluginHistoryTip(e).mutationIndex;return typeof t==`number`?t:-1}updatePluginHistory(e,t){let n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}updatePatches(e){Qh.normalizeArray(e).forEach(e=>{if(e instanceof Error){this.errors.push(e);return}try{if(!Qh.isObject(e)){this.debug(`updatePatches`,`Got a non-object patch`,e);return}if(this.showDebug&&this.allPatches.push(e),Qh.isPromise(e.value)){this.promisedPatches.push(e),this.promisedPatchThen(e);return}if(Qh.isContextPatch(e)){this.setContext(e.path,e.value);return}Qh.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}})}updateMutations(e){typeof e.value==`object`&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});let t=Qh.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){let t=this.promisedPatches.indexOf(e);if(t<0){this.debug(`Tried to remove a promisedPatch that isn't there!`);return}this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then(t=>{let n={...e,value:t};this.removePromisedPatch(e),this.updatePatches(n)}).catch(t=>{this.removePromisedPatch(e),this.updatePatches(t)}),e.value}getMutations(e,t){return e||=0,typeof t!=`number`&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){let t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return Qh.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){let e=this,t=this.nextPlugin();if(!t){let e=this.nextPromisedPatch();if(e)return e.then(()=>this.dispatch()).catch(()=>this.dispatch());let t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>VT)return Promise.resolve({spec:e.state,errors:e.errors.concat(Error(`We've reached a hard limit of ${VT} plugin runs`))});if(t!==this.currentPlugin&&this.promisedPatches.length){let e=this.promisedPatches.map(e=>e.value);return Promise.all(e.map(e=>e.then(HT,HT))).then(()=>this.dispatch())}return n();function n(){e.currentPlugin=t;let n=e.getCurrentMutations(),i=e.mutations.length-1;try{if(t.isGenerator)for(let i of t(n,e.getLib()))r(i);else r(t(n,e.getLib()))}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:i})}return e.dispatch()}function r(n){n&&(n=Qh.fullyNormalizeArray(n),e.updatePatches(n,t))}}};function WT(e){return new UT(e).dispatch()}var GT={refs:vT,allOf:FT,parameters:IT,properties:LT};function KT(e,t={}){let{requestInterceptor:n,responseInterceptor:r}=t,i=e.withCredentials?`include`:`same-origin`;return t=>e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:nT},credentials:i}).then(e=>e.body)}function qT(e,t){return!t&&typeof navigator<`u`&&(t=navigator),t&&t.product===`ReactNative`?!!(e&&typeof e==`object`&&typeof e.uri==`string`):typeof File<`u`&&e instanceof File||typeof Blob<`u`&&e instanceof Blob||ArrayBuffer.isView(e)?!0:typeof e==`object`&&!!e&&typeof e.pipe==`function`}function JT(e,t){return Array.isArray(e)&&e.some(e=>qT(e,t))}var YT=class extends File{constructor(e,t=``,n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}},XT=e=>`:/?#[]@!$&'()*+,;=`.indexOf(e)>-1,ZT=e=>/^[a-z0-9\-._~]+$/i.test(e);function QT(e,t=`reserved`){return[...e].map(e=>{if(ZT(e)||XT(e)&&t===`unsafe`)return e;let n=new TextEncoder;return Array.from(n.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join(``)}).join(``)}function $T(e){let{value:t}=e;return Array.isArray(t)?tE(e):typeof t==`object`?nE(e):rE(e)}function eE(e,t=!1){return Array.isArray(e)||typeof e==`object`&&e?e=JSON.stringify(e):(typeof e==`number`||typeof e==`boolean`)&&(e=String(e)),t&&typeof e==`string`&&e.length>0?QT(e,t):e??``}function tE({key:e,value:t,style:n,explode:r,escape:i}){if(n===`simple`)return t.map(e=>eE(e,i)).join(`,`);if(n===`label`)return`.${t.map(e=>eE(e,i)).join(`.`)}`;if(n===`matrix`)return t.map(e=>eE(e,i)).reduce((t,n)=>!t||r?`${t||``};${e}=${n}`:`${t},${n}`,``);if(n===`form`){let n=r?`&${e}=`:`,`;return t.map(e=>eE(e,i)).join(n)}if(n===`spaceDelimited`){let n=r?`${e}=`:``;return t.map(e=>eE(e,i)).join(` ${n}`)}if(n===`pipeDelimited`){let n=r?`${e}=`:``;return t.map(e=>eE(e,i)).join(`|${n}`)}}function nE({key:e,value:t,style:n,explode:r,escape:i}){let a=Object.keys(t);if(n===`simple`)return a.reduce((e,n)=>{let a=eE(t[n],i),o=r?`=`:`,`;return`${e?`${e},`:``}${n}${o}${a}`},``);if(n===`label`)return a.reduce((e,n)=>{let a=eE(t[n],i),o=r?`=`:`.`;return`${e?`${e}.`:`.`}${n}${o}${a}`},``);if(n===`matrix`&&r)return a.reduce((e,n)=>{let r=eE(t[n],i);return`${e?`${e};`:`;`}${n}=${r}`},``);if(n===`matrix`)return a.reduce((n,r)=>{let a=eE(t[r],i);return`${n?`${n},`:`;${e}=`}${r},${a}`},``);if(n===`form`)return a.reduce((e,n)=>{let a=eE(t[n],i);return`${e?`${e}${r?`&`:`,`}`:``}${n}${r?`=`:`,`}${a}`},``)}function rE({key:e,value:t,style:n,escape:r}){if(n===`simple`)return eE(t,r);if(n===`label`)return`.${eE(t,r)}`;if(n===`matrix`)return`;${e}=${eE(t,r)}`;if(n===`form`||n===`deepObject`)return eE(t,r)}var iE={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`},aE={csv:`,`,ssv:`%20`,tsv:`%09`,pipes:`|`};function oE(e,t,n=!1){let{collectionFormat:r,allowEmptyValue:i,serializationOption:a,encoding:o}=t,s=typeof t==`object`&&!Array.isArray(t)?t.value:t,c=n?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(s===void 0&&i)return[[l,``]];if(qT(s)||JT(s))return[[l,s]];if(a)return sE(e,s,n,a);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some(e=>e!==`undefined`)){let{style:t,explode:r,allowReserved:i}=o;return sE(e,s,n,{style:t,explode:r,allowReserved:i})}return typeof o.contentType==`string`?o.contentType.startsWith(`application/json`)?[[l,new YT(c(typeof s==`string`?s:JSON.stringify(s)),`blob`,{type:o.contentType})]]:[[l,new YT(c(String(s)),`blob`,{type:o.contentType})]]:typeof s==`object`?Array.isArray(s)&&s.every(e=>typeof e!=`object`)?[[l,s.map(c).join(`,`)]]:[[l,c(JSON.stringify(s))]]:[[l,c(s)]]}return typeof s==`object`?Array.isArray(s)?r===`multi`?[[l,s.map(c)]]:[[l,s.map(c).join(aE[r||`csv`])]]:[[l,``]]:[[l,c(s)]]}function sE(e,t,n,r){let i=r.style||`form`,a=r.explode===void 0?i===`form`:r.explode,o=n?!1:r&&r.allowReserved?`unsafe`:`reserved`,s=e=>eE(e,o),c=n?e=>e:e=>s(e);return typeof t==`object`?Array.isArray(t)?a?[[c(e),t.map(s)]]:[[c(e),t.map(s).join(iE[i])]]:i===`deepObject`?Object.keys(t).map(n=>[c(`${e}[${n}]`),s(t[n])]):a?Object.keys(t).map(e=>[c(e),s(t[e])]):[[c(e),Object.keys(t).map(e=>[`${c(e)},${s(t[e])}`]).join(`,`)]]:[[c(e),s(t)]]}function cE(e){return Object.entries(e).reduce((e,[t,n])=>{for(let[r,i]of oE(t,n,!0))if(Array.isArray(i))for(let t of i)if(ArrayBuffer.isView(t)){let n=new Blob([t]);e.append(r,n)}else e.append(r,t);else if(ArrayBuffer.isView(i)){let t=new Blob([i]);e.append(r,t)}else e.append(r,i);return e},new FormData)}var lE=(e,{encode:t=!0}={})=>{let n=(e,t,r)=>(Array.isArray(r)?r.reduce((r,i)=>n(e,t,i),e):r instanceof Date?e.append(t,r.toISOString()):typeof r==`object`?Object.entries(r).reduce((r,[i,a])=>n(e,`${t}[${i}]`,a),e):e.append(t,r),e),r=Object.entries(e).reduce((e,[t,r])=>n(e,t,r),new URLSearchParams),i=String(r);return t?i:decodeURIComponent(i)};function uE(e){return lE(Object.keys(e).reduce((t,n)=>{for(let[r,i]of oE(n,e[n]))t[r]=i instanceof YT?i.valueOf():i;return t},{}),{encode:!1})}function dE(e={}){let{url:t=``,query:n,form:r}=e,i=(...e)=>{let t=e.filter(e=>e).join(`&`);return t?`?${t}`:``};if(r){let t=Object.keys(r).some(e=>{let{value:t}=r[e];return qT(t)||JT(t)}),n=e.headers[`content-type`]||e.headers[`Content-Type`];if(t||/multipart\/form-data/i.test(n)){let t=cE(e.form);e.formdata=t,e.body=t}else e.body=uE(r);delete e.form}if(n){let[r,a]=t.split(`?`),o=``;if(a){let e=new URLSearchParams(a);Object.keys(n).forEach(t=>e.delete(t)),o=String(e)}e.url=r+i(o,uE(n)),delete e.query}return e}var fE=(e=``)=>/(json|xml|yaml|text)\b/.test(e);function pE(e,t){if(t){if(t.indexOf(`application/json`)===0||t.indexOf(`+json`)>0)return JSON.parse(e);if(t.indexOf(`application/xml`)===0||t.indexOf(`+xml`)>0)return e}return Ed.load(e)}function mE(e){return(0,Lw.default)(e).call(e,`, `)?e.split(`, `):e}function hE(e={}){return typeof e.entries==`function`?Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=mE(n),e),{}):{}}function gE(e,t,{loadSpec:n=!1}={}){let r={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:hE(e.headers)},i=r.headers[`content-type`],a=n||fE(i);return(a?e.text:e.blob||e.buffer).call(e).then(e=>{if(r.text=e,r.data=e,a)try{let t=pE(e,i);r.body=t,r.obj=t}catch(e){r.parseError=e}return r})}async function _E(e,t={}){typeof e==`object`&&(t=e,e=t.url),t.headers=t.headers||{},t=dE(t),t.headers&&Object.keys(t.headers).forEach(e=>{let n=t.headers[e];typeof n==`string`&&(t.headers[e]=n.replace(/\n+/g,` `))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);let n=t.headers[`content-type`]||t.headers[`Content-Type`];/multipart\/form-data/i.test(n)&&(delete t.headers[`content-type`],delete t.headers[`Content-Type`]);let r;try{r=await(t.userFetch||fetch)(t.url,t),r=await gE(r,e,t),t.responseInterceptor&&(r=await t.responseInterceptor(r)||r)}catch(e){if(!r)throw e;let t=Error(r.statusText||`response status is ${r.status}`);throw t.status=r.status,t.statusCode=r.status,t.responseError=e,t}if(!r.ok){let e=Error(r.statusText||`response status is ${r.status}`);throw e.status=r.status,e.statusCode=r.status,e.response=r,e}return r}function vE(e,t,n){return n||=(e=>e),t||=(e=>e),r=>(typeof r==`string`&&(r={url:r}),r=dE(r),r=t(r),n(e(r)))}var yE=e=>{let{baseDoc:t,url:n}=e,r=t??n??``;return typeof globalThis.document?.baseURI==`string`?String(new URL(r,globalThis.document.baseURI)):r},bE=e=>{let{fetch:t,http:n}=e;return t||n||_E};async function xE(e){let{spec:t,mode:n,allowMetaPatches:r=!0,pathDiscriminator:i,modelPropertyMacro:a,parameterMacro:o,requestInterceptor:s,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:d}=e,f=yE(e),p=bE(e),m=d.find(e=>e.match(t));return h(t);async function h(e){f&&(GT.refs.docCache[f]=e),GT.refs.fetchJSON=KT(p,{requestInterceptor:s,responseInterceptor:c});let t=[GT.refs];typeof o==`function`&&t.push(GT.parameters),typeof a==`function`&&t.push(GT.properties),n!==`strict`&&t.push(GT.allOf);let d=await WT({spec:e,context:{baseDoc:f},plugins:t,allowMetaPatches:r,pathDiscriminator:i,parameterMacro:o,modelPropertyMacro:a,useCircularStructures:u});return l||(d.spec=m.normalize(d.spec)),d}}var SE=e=>e.replace(/\W/gi,`_`),CE=new Set([`connect`,`delete`,`get`,`head`,`options`,`patch`,`post`,`put`,`query`,`trace`]);function wE(e,t,{v2OperationIdCompatibilityMode:n}={}){if(n){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,`_`);return n||=`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,`_`).replace(/^(_)*/g,``).replace(/([_])*$/g,``)}return`${CE.has(t.toLowerCase())?t.toLowerCase():t}${SE(e)}`}function TE(e,t,n=``,{v2OperationIdCompatibilityMode:r}={}){return!e||typeof e!=`object`?null:(e.operationId||``).replace(/\s/g,``).length?SE(e.operationId):wE(t,n,{v2OperationIdCompatibilityMode:r})}function EE(e){let{spec:t}=e,{paths:n}=t,r={};if(!n||t.$$normalized)return e;for(let e in n){var i;let o=n[e];if(o==null||!(0,Lw.default)(i=[`object`,`function`]).call(i,typeof o))continue;let s=o.parameters;for(let n in o){var a;let i=o[n];if(i==null||!(0,Lw.default)(a=[`object`,`function`]).call(a,typeof i))continue;let c=TE(i,e,n);if(c){r[c]?r[c].push(i):r[c]=[i];let e=r[c];if(e.length>1)e.forEach((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${c}${t+1}`});else if(i.operationId!==void 0){let t=e[0];t.__originalOperationId=t.__originalOperationId||i.operationId,t.operationId=c}}if(n!==`parameters`){let e=[],n={};for(let r in t)(r===`produces`||r===`consumes`||r===`security`)&&(n[r]=t[r],e.push(n));if(s&&(n.parameters=s,e.push(n)),e.length){for(let t of e)for(let e in t)if(!Array.isArray(i[e]))i[e]=t[e];else if(e===`parameters`)for(let n of t[e])i[e].some(e=>!lx(e)&&!lx(n)?!1:e===n||[`name`,`$ref`,`$$ref`].some(t=>typeof e[t]==`string`&&typeof n[t]==`string`&&e[t]===n[t]))||i[e].push(n)}}}}return t.$$normalized=!0,e}var DE={name:`generic`,match(){return!0},normalize(e){let{spec:t}=EE({spec:e});return t},async resolve(e){return xE(e)}};async function OE(e){return xE(e)}var kE=e=>{try{let{swagger:t}=e;return t===`2.0`}catch{return!1}},AE=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},jE=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ME=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},NE=e=>AE(e)||jE(e)||ME(e),PE={name:`openapi-2`,match(e){return kE(e)},normalize(e){let{spec:t}=EE({spec:e});return t},async resolve(e){return OE(e)}};async function FE(e){return xE(e)}var IE={name:`openapi-3-0`,match(e){return AE(e)},normalize(e){let{spec:t}=EE({spec:e});return t},async resolve(e){return FE(e)}},LE=e=>{try{let t=e.startsWith(`#`)?e.slice(1):e;return decodeURIComponent(t)}catch{return e}},RE=e=>{let t=e.indexOf(`#`);return LE(t===-1?`#`:e.substring(t))};function zE(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`json-pointer`,lower:`json-pointer`,index:0,isBkr:!1},this.rules[1]={name:`reference-token`,lower:`reference-token`,index:1,isBkr:!1},this.rules[2]={name:`unescaped`,lower:`unescaped`,index:2,isBkr:!1},this.rules[3]={name:`escaped`,lower:`escaped`,index:3,isBkr:!1},this.rules[4]={name:`array-location`,lower:`array-location`,index:4,isBkr:!1},this.rules[5]={name:`array-index`,lower:`array-index`,index:5,isBkr:!1},this.rules[6]={name:`array-dash`,lower:`array-dash`,index:6,isBkr:!1},this.rules[7]={name:`slash`,lower:`slash`,index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e=``;return e+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
|
|
40
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901
|
|
41
|
-
`,e+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
|
|
42
|
-
`,e+=`reference-token = *( unescaped / escaped )
|
|
43
|
-
`,e+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
|
|
44
|
-
`,e+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
|
|
45
|
-
`,e+=`escaped = "~" ( "0" / "1" )
|
|
46
|
-
`,e+=` ; representing '~' and '/', respectively
|
|
47
|
-
`,e+=`
|
|
48
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
|
|
49
|
-
`,e+=`array-location = array-index / array-dash
|
|
50
|
-
`,e+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
|
|
51
|
-
`,e+=` ; "0", or digits without a leading "0"
|
|
52
|
-
`,e+=`array-dash = "-"
|
|
53
|
-
`,e+=`
|
|
54
|
-
`,e+=`; Surrogate named rules
|
|
55
|
-
`,e+=`slash = "/"
|
|
56
|
-
`,e}}var BE=function(){let e=GE,t=WE,n=this,r=`parser.js: Parser(): `,i=function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let a=0,o=0,s=0,c=0,l=0,u,d,f,p,m=new i,h,g,_,v=()=>{a=0,o=0,s=0,c=0,l=0,u=void 0,d=void 0,f=void 0,p=void 0,m.refresh(),h=void 0,g=void 0,_=void 0},y=()=>{let e=`${r}initializeCallbacks(): `,t;for(h=[],g=[],t=0;t<u.length;t+=1)h[t]=void 0;for(t=0;t<d.length;t+=1)g[t]=void 0;let i,a=[];for(t=0;t<u.length;t+=1)a.push(u[t].lower);for(t=0;t<d.length;t+=1)a.push(d[t].lower);for(let r in n.callbacks)if(n.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw Error(`${e}syntax callback '${r}' not a rule or udt name`);if(i=n.callbacks[r]?n.callbacks[r]:void 0,typeof i==`function`||i===void 0)t<u.length?h[t]=i:g[t-u.length]=i;else throw Error(`${e}syntax callback[${r}] must be function reference or falsy)`)}};n.parse=(i,a,o,h)=>{let g=`${r}parse(): `;v(),p=t.stringToChars(o),u=i.rules,d=i.udts;let b=a.toLowerCase(),x;for(let e in u)if(u.hasOwnProperty(e)&&b===u[e].lower){x=u[e].index;break}if(x===void 0)throw Error(`${g}start rule name '${startRule}' not recognized`);y(),n.trace&&n.trace.init(u,d,p),n.stats&&n.stats.init(u,d),n.ast&&n.ast.init(u,d,p),_=h,f=[{type:e.RNM,index:x}],M(0,0),f=void 0;let S=!1;switch(m.state){case e.ACTIVE:throw Error(`${g}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=m.phraseLength===p.length;break;default:throw Error(`unrecognized state`)}return{success:S,state:m.state,stateName:e.idName(m.state),length:p.length,matched:m.phraseLength,maxMatched:l,maxTreeDepth:s,nodeHits:c}};let b=(t,n)=>{let r=f[t];for(let t=0;t<r.children.length&&(M(r.children[t],n),m.state===e.NOMATCH);t+=1);},x=(t,r)=>{let i,a,o,s,c=f[t];n.ast&&(a=n.ast.getLength()),i=!0,o=r,s=0;for(let t=0;t<c.children.length;t+=1){if(M(c.children[t],o),m.state===e.NOMATCH){i=!1;break}o+=m.phraseLength,s+=m.phraseLength}i?(m.state=s===0?e.EMPTY:e.MATCH,m.phraseLength=s):(m.state=e.NOMATCH,m.phraseLength=0,n.ast&&n.ast.setLength(a))},S=(t,r)=>{let i,a,o,s,c=f[t];if(c.max===0){m.state=e.EMPTY,m.phraseLength=0;return}for(a=r,o=0,s=0,n.ast&&(i=n.ast.getLength());!(a>=p.length||(M(t+1,a),m.state===e.NOMATCH)||m.state===e.EMPTY||(s+=1,o+=m.phraseLength,a+=m.phraseLength,s===c.max)););m.state===e.EMPTY||s>=c.min?(m.state=o===0?e.EMPTY:e.MATCH,m.phraseLength=o):(m.state=e.NOMATCH,m.phraseLength=0,n.ast&&n.ast.setLength(i))},C=(t,n,i,a)=>{if(n.phraseLength>i){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,Error(e)}switch(n.state){case e.ACTIVE:if(!a)throw Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:n.phraseLength===0&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},w=(t,r)=>{let i,o,s,c=f[t],l=u[c.index],d=h[l.index];if(a||(o=n.ast&&n.ast.ruleDefined(c.index),o&&(i=n.ast.getLength(),n.ast.down(c.index,u[c.index].name))),d){let t=p.length-r;d(m,p,r,_),C(l,m,t,!0),m.state===e.ACTIVE&&(s=f,f=l.opcodes,M(0,r),f=s,d(m,p,r,_),C(l,m,t,!1))}else s=f,f=l.opcodes,M(0,r,m),f=s;a||o&&(m.state===e.NOMATCH?n.ast.setLength(i):n.ast.up(c.index,l.name,r,m.phraseLength))},T=(t,n)=>{let r=f[t];m.state=e.NOMATCH,n<p.length&&r.min<=p[n]&&p[n]<=r.max&&(m.state=e.MATCH,m.phraseLength=1)},E=(t,n)=>{let r=f[t],i=r.string.length;if(m.state=e.NOMATCH,n+i<=p.length){for(let e=0;e<i;e+=1)if(p[n+e]!==r.string[e])return;m.state=e.MATCH,m.phraseLength=i}},D=(t,n)=>{let r,i=f[t];m.state=e.NOMATCH;let a=i.string.length;if(a===0){m.state=e.EMPTY;return}if(n+a<=p.length){for(let e=0;e<a;e+=1)if(r=p[n+e],r>=65&&r<=90&&(r+=32),r!==i.string[e])return;m.state=e.MATCH,m.phraseLength=a}},O=(t,n,i)=>{if(n.phraseLength>i){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,Error(e)}switch(n.state){case e.ACTIVE:throw Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(t.empty)n.phraseLength=0;else throw Error(`${r}opUDT(${t.name}) may not return EMPTY.`);break;case e.MATCH:if(n.phraseLength===0){if(t.empty)n.state=e.EMPTY;else throw Error(`${r}opUDT(${t.name}) may not return EMPTY.`)}break;case e.NOMATCH:n.phraseLength=0;break;default:throw Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},k=(t,r)=>{let i,o,s,c=f[t],l=d[c.index];m.UdtIndex=l.index,a||(s=n.ast&&n.ast.udtDefined(c.index),s&&(o=u.length+c.index,i=n.ast.getLength(),n.ast.down(o,l.name)));let h=p.length-r;g[c.index](m,p,r,_),O(l,m,h),a||s&&(m.state===e.NOMATCH?n.ast.setLength(i):n.ast.up(o,l.name,r,m.phraseLength))},A=(t,n)=>{switch(a+=1,M(t+1,n),--a,m.phraseLength=0,m.state){case e.EMPTY:m.state=e.EMPTY;break;case e.MATCH:m.state=e.EMPTY;break;case e.NOMATCH:m.state=e.NOMATCH;break;default:throw Error(`opAND: invalid state ${m.state}`)}},j=(t,n)=>{switch(a+=1,M(t+1,n),--a,m.phraseLength=0,m.state){case e.EMPTY:case e.MATCH:m.state=e.NOMATCH;break;case e.NOMATCH:m.state=e.EMPTY;break;default:throw Error(`opNOT: invalid state ${m.state}`)}},M=(t,i)=>{let u=`${r}opExecute(): `,d=f[t];switch(c+=1,o>s&&(s=o),o+=1,m.refresh(),n.trace&&n.trace.down(d,i),d.type){case e.ALT:b(t,i);break;case e.CAT:x(t,i);break;case e.REP:S(t,i);break;case e.RNM:w(t,i);break;case e.TRG:T(t,i);break;case e.TBS:E(t,i);break;case e.TLS:D(t,i);break;case e.UDT:k(t,i);break;case e.AND:A(t,i);break;case e.NOT:j(t,i);break;default:throw Error(`${u}unrecognized operator`)}a||i+m.phraseLength>l&&(l=i+m.phraseLength),n.stats&&n.stats.collect(d,m),n.trace&&n.trace.up(d,m.state,i,m.phraseLength),--o}},VE=function(){let e=GE,t=WE,n=this,r,i,a,o=0,s=[],c=[],l=[];n.callbacks=[],n.init=(e,t,u)=>{c.length=0,l.length=0,o=0,r=e,i=t,a=u;let d,f=[];for(d=0;d<r.length;d+=1)f.push(r[d].lower);for(d=0;d<i.length;d+=1)f.push(i[d].lower);for(o=r.length+i.length,d=0;d<o;d+=1)s[d]=void 0;for(let e in n.callbacks)if(n.callbacks.hasOwnProperty(e)){let t=e.toLowerCase();if(d=f.indexOf(t),d<0)throw Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);s[d]=n.callbacks[e]}},n.ruleDefined=e=>!!s[e],n.udtDefined=e=>!!s[r.length+e],n.down=(t,n)=>{let r=l.length;return c.push(r),l.push({name:n,thisIndex:r,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),r},n.up=(t,n,r,i)=>{let a=l.length,o=c.pop();return l.push({name:n,thisIndex:a,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:i,stack:c.length}),l[o].thatIndex=a,l[o].phraseIndex=r,l[o].phraseLength=i,a},n.translate=t=>{let n,r;for(let i=0;i<l.length;i+=1)r=l[i],n=s[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,a,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,a,r.phraseIndex,r.phraseLength,t))},n.setLength=e=>{l.length=e,e>0?c.length=l[e-1].stack:c.length=0},n.getLength=()=>l.length;function u(e){let t=``;for(;e-->0;)t+=` `;return t}n.toXml=()=>{let n=``,r=0;return n+=`<?xml version="1.0" encoding="utf-8"?>
|
|
57
|
-
`,n+=`<root nodes="${l.length/2}" characters="${a.length}">\n`,n+=`<!-- input string -->
|
|
58
|
-
`,n+=u(r+2),n+=t.charsToString(a),n+=`
|
|
59
|
-
`,l.forEach(i=>{i.state===e.SEM_PRE?(r+=1,n+=u(r),n+=`<node name="${i.name}" index="${i.phraseIndex}" length="${i.phraseLength}">\n`,n+=u(r+2),n+=t.charsToString(a,i.phraseIndex,i.phraseLength),n+=`
|
|
60
|
-
`):(n+=u(r),n+=`</node><!-- name="${i.name}" -->\n`,--r)}),n+=`</root>
|
|
61
|
-
`,n}},HE=function(){let e=GE,t=WE,n=`parser.js: Trace(): `,r,i,a,o=``,s=0,c=this,l=e=>{let t=``,n=0;if(e>=0)for(;e--;)n+=1,n===5?(t+=`|`,n=0):t+=`.`;return t};c.init=(e,t,n)=>{i=e,a=t,r=n};let u=r=>{let o;switch(r.type){case e.ALT:o=`ALT`;break;case e.CAT:o=`CAT`;break;case e.REP:o=r.max===1/0?`REP(${r.min},inf)`:`REP(${r.min},${r.max})`;break;case e.RNM:o=`RNM(${i[r.index].name})`;break;case e.TRG:o=`TRG(${r.min},${r.max})`;break;case e.TBS:o=r.string.length>6?`TBS(${t.charsToString(r.string,0,3)}...)`:`TBS(${t.charsToString(r.string,0,6)})`;break;case e.TLS:o=r.string.length>6?`TLS(${t.charsToString(r.string,0,3)}...)`:`TLS(${t.charsToString(r.string,0,6)})`;break;case e.UDT:o=`UDT(${a[r.index].name})`;break;case e.AND:o=`AND`;break;case e.NOT:o=`NOT`;break;default:throw Error(`${n}Trace: opName: unrecognized opcode`)}return o};c.down=(e,n)=>{let i=l(s),a=Math.min(100,r.length-n),c=t.charsToString(r,n,a);a<r.length-n&&(c+=`...`),c=`${i}|-|[${u(e)}]${c}\n`,o+=c,s+=1},c.up=(i,a,c,d)=>{let f=`${n}trace.up: `;--s;let p=l(s),m,h,g;switch(a){case e.EMPTY:g=`|E|`,h=`''`;break;case e.MATCH:g=`|M|`,m=Math.min(100,d),h=m<d?`'${t.charsToString(r,c,m)}...'`:`'${t.charsToString(r,c,m)}'`;break;case e.NOMATCH:g=`|N|`,h=``;break;default:throw Error(`${f} unrecognized state`)}h=`${p}${g}[${u(i)}]${h}\n`,o+=h},c.displayTrace=()=>o},UE=function(){let e=GE,t,n,r,i=[],a=[],o=[];this.init=(e,r)=>{t=e,n=r,f()},this.collect=(t,n)=>{p(r,n.state,n.phraseLength),p(i[t.type],n.state,n.phraseLength),t.type===e.RNM&&p(a[t.index],n.state,n.phraseLength),t.type===e.UDT&&p(o[t.index],n.state,n.phraseLength)},this.displayStats=()=>{let t=``,n={match:0,empty:0,nomatch:0,total:0},r=(e,t,r,i,a)=>(n.match+=t,n.empty+=r,n.nomatch+=i,n.total+=a,`${e} | ${s(t)} | ${s(r)} | ${s(i)} | ${s(a)} |\n`);return t+=` OPERATOR STATS
|
|
62
|
-
`,t+=` | MATCH | EMPTY | NOMATCH | TOTAL |
|
|
63
|
-
`,t+=r(` ALT`,i[e.ALT].match,i[e.ALT].empty,i[e.ALT].nomatch,i[e.ALT].total),t+=r(` CAT`,i[e.CAT].match,i[e.CAT].empty,i[e.CAT].nomatch,i[e.CAT].total),t+=r(` REP`,i[e.REP].match,i[e.REP].empty,i[e.REP].nomatch,i[e.REP].total),t+=r(` RNM`,i[e.RNM].match,i[e.RNM].empty,i[e.RNM].nomatch,i[e.RNM].total),t+=r(` TRG`,i[e.TRG].match,i[e.TRG].empty,i[e.TRG].nomatch,i[e.TRG].total),t+=r(` TBS`,i[e.TBS].match,i[e.TBS].empty,i[e.TBS].nomatch,i[e.TBS].total),t+=r(` TLS`,i[e.TLS].match,i[e.TLS].empty,i[e.TLS].nomatch,i[e.TLS].total),t+=r(` UDT`,i[e.UDT].match,i[e.UDT].empty,i[e.UDT].nomatch,i[e.UDT].total),t+=r(` AND`,i[e.AND].match,i[e.AND].empty,i[e.AND].nomatch,i[e.AND].total),t+=r(` NOT`,i[e.NOT].match,i[e.NOT].empty,i[e.NOT].nomatch,i[e.NOT].total),t+=r(`TOTAL`,n.match,n.empty,n.nomatch,n.total),t},this.displayHits=e=>{let t=``,n=(e,t,n,i,a)=>(r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=i,`| ${s(e)} | ${s(t)} | ${s(n)} | ${s(i)} | ${a}\n`);typeof e==`string`&&e.toLowerCase()[0]===`a`?(a.sort(c),o.sort(c),t+=` RULES/UDTS ALPHABETICALLY
|
|
64
|
-
`):typeof e==`string`&&e.toLowerCase()[0]===`i`?(a.sort(u),o.sort(u),t+=` RULES/UDTS BY INDEX
|
|
65
|
-
`):(a.sort(l),o.sort(l),t+=` RULES/UDTS BY HIT COUNT
|
|
66
|
-
`),t+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
|
|
67
|
-
`;for(let e=0;e<a.length;e+=1){let r=a[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}for(let e=0;e<o.length;e+=1){let r=o[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}return t};let s=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:+(e.lower>t.lower),l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),u=(e,t)=>e.index<t.index?-1:+(e.index>t.index),d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},f=()=>{i.length=0,r=new d,i[e.ALT]=new d,i[e.CAT]=new d,i[e.REP]=new d,i[e.RNM]=new d,i[e.TRG]=new d,i[e.TBS]=new d,i[e.TLS]=new d,i[e.UDT]=new d,i[e.AND]=new d,i[e.NOT]=new d,a.length=0;for(let e=0;e<t.length;e+=1)a.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(n.length>0){o.length=0;for(let e=0;e<n.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[e].name,lower:n[e].lower,index:n[e].index})}},p=(t,n)=>{switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${n}`)}}},WE={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,n)=>{let r=e;for(;!(t===void 0||t<0);){if(n===void 0){r=e.slice(t);break}if(n<=0)return``;r=e.slice(t,t+n);break}return String.fromCodePoint(...r)}},GE={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case GE.ALT:return`ALT`;case GE.CAT:return`CAT`;case GE.REP:return`REP`;case GE.RNM:return`RNM`;case GE.TRG:return`TRG`;case GE.TBS:return`TBS`;case GE.TLS:return`TLS`;case GE.UDT:return`UDT`;case GE.AND:return`AND`;case GE.NOT:return`NOT`;case GE.ACTIVE:return`ACTIVE`;case GE.EMPTY:return`EMPTY`;case GE.MATCH:return`MATCH`;case GE.NOMATCH:return`NOMATCH`;case GE.SEM_PRE:return`SEM_PRE`;case GE.SEM_POST:return`SEM_POST`;case GE.SEM_OK:return`SEM_OK`;default:return`UNRECOGNIZED STATE`}}},KE=class extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,typeof e==`string`&&(this.message=e),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack,typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(t,`cause`)&&!(`cause`in this)){let{cause:e}=t;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(typeof t==`object`&&t){let{cause:e,...n}=t;Object.assign(this,n)}}},qE=class extends KE{},JE=e=>(t,n,r,i,a)=>{if(!(typeof a==`object`&&a&&!Array.isArray(a)))throw new qE(`parser's user data must be an object`);if(t===GE.SEM_PRE){let t={type:e,text:WE.charsToString(n,r,i),start:r,length:i,children:[]};a.stack.length>0?a.stack[a.stack.length-1].children.push(t):a.root=t,a.stack.push(t)}t===GE.SEM_POST&&a.stack.pop()},YE=class extends VE{constructor(){super(),this.callbacks[`json-pointer`]=JE(`json-pointer`),this.callbacks[`reference-token`]=JE(`reference-token`),this.callbacks.slash=JE(`text`)}getTree(){let e={stack:[],root:null};return this.translate(e),delete e.stack,e}},XE=e=>{if(typeof e!=`string`)throw TypeError(`Reference token must be a string`);return e.replace(/~1/g,`/`).replace(/~0/g,`~`)},ZE=class extends YE{getTree(){let{root:e}=super.getTree();return e.children.filter(({type:e})=>e===`reference-token`).map(({text:e})=>XE(e))}},QE=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(`, `)}},$E=class extends HE{inferExpectations(){let e=this.displayTrace().split(`
|
|
68
|
-
`),t=new Set,n=-1;for(let r=0;r<e.length;r++){let i=e[r];if(i.includes(`M|`)){let e=i.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){let e=i.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new QE(...t)}},eD=new zE,tD=(e,{translator:t=new ZE,stats:n=!1,trace:r=!1}={})=>{if(typeof e!=`string`)throw TypeError(`JSON Pointer must be a string`);try{let i=new BE;t&&(i.ast=t),n&&(i.stats=new UE),r&&(i.trace=new $E);let a=i.parse(eD,`json-pointer`,e);return{result:a,tree:a.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(t){throw new qE(`Unexpected error during JSON Pointer parsing`,{cause:t,jsonPointer:e})}};new zE,new BE,new zE,new BE;var nD=new zE,rD=new BE,iD=e=>{if(typeof e!=`string`)return!1;try{return rD.parse(nD,`array-index`,e).success}catch{return!1}},aD=new zE,oD=new BE,sD=e=>{if(typeof e!=`string`)return!1;try{return oD.parse(aD,`array-dash`,e).success}catch{return!1}},cD=e=>{if(typeof e!=`string`&&typeof e!=`number`)throw TypeError(`Reference token must be a string or number`);return String(e).replace(/~/g,`~0`).replace(/\//g,`~1`)},lD=class extends KE{},uD=e=>{if(!Array.isArray(e))throw TypeError(`Reference tokens must be a list of strings or numbers`);try{return e.length===0?``:`/${e.map(e=>{if(typeof e!=`string`&&typeof e!=`number`)throw TypeError(`Reference token must be a string or number`);return cD(String(e))}).join(`/`)}`}catch(t){throw new lD(`Unexpected error during JSON Pointer compilation`,{cause:t,referenceTokens:e})}},dD=class{#e;#t;#n;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#n=t.realm}step({referenceToken:e,input:t,output:n,success:r=!0,reason:i}){let a=this.#t.length;this.#t.push(e);let o={referenceToken:e,referenceTokenPosition:a,input:t,inputType:this.#n.isObject(t)?`object`:this.#n.isArray(t)?`array`:`unrecognized`,output:n,success:r};i&&(o.reason=i),this.#e.steps.push(o),r||(this.#e.failed=!0,this.#e.failedAt=a,this.#e.message=i)}},fD=class{name=``;isArray(e){throw new KE(`Realm.isArray(node) must be implemented in a subclass`)}isObject(e){throw new KE(`Realm.isObject(node) must be implemented in a subclass`)}sizeOf(e){throw new KE(`Realm.sizeOf(node) must be implemented in a subclass`)}has(e,t){throw new KE(`Realm.has(node) must be implemented in a subclass`)}evaluate(e,t){throw new KE(`Realm.evaluate(node) must be implemented in a subclass`)}},pD=class extends KE{},mD=class extends pD{},hD=class extends fD{name=`json`;isArray(e){return Array.isArray(e)}isObject(e){return typeof e==`object`&&!!e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){let n=Number(t),r=n>>>0;if(n!==r)throw new mD(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,n)}return this.isObject(e)?Object.prototype.hasOwnProperty.call(e,t):!1}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}},gD=class extends pD{},_D=class extends pD{},vD=(e,t,{strictArrays:n=!0,strictObjects:r=!0,realm:i=new hD,trace:a=!0}={})=>{let{result:o,tree:s,trace:c}=tD(t,{trace:!!a}),l=typeof a==`object`&&a?new dD(a,{jsonPointer:t,referenceTokens:s,strictArrays:n,strictObjects:r,realm:i,value:e}):null;try{let a;if(!o.success){let n=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw n+=c?`, expected ${c.inferExpectations()}`:``,new pD(n,{jsonPointer:t,currentValue:e,realm:i.name})}return s.reduce((e,o,c)=>{if(i.isArray(e)){if(sD(o)){if(n)throw new mD(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,String(i.sizeOf(e))),l?.step({referenceToken:o,input:e,output:a}),a}if(!iD(o))throw new mD(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});let r=Number(o);if(!Number.isSafeInteger(r))throw new mD(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});if(!i.has(e,o)&&n)throw new mD(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,o),l?.step({referenceToken:o,input:e,output:a}),a}if(i.isObject(e)){if(!i.has(e,o)&&r)throw new _D(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,o),l?.step({referenceToken:o,input:e,output:a}),a}throw new gD(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name})},e)}catch(e){throw l?.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof pD?e:new pD(`Unexpected error during JSON Pointer evaluation`,{cause:e,jsonPointer:t,referenceTokens:s})}},yD=class extends fD{name=`apidom`;isArray(e){return YS(e)}isObject(e){return JS(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){let n=Number(t),r=n>>>0;if(n!==r)throw new mD(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)}if(this.isObject(e)){let n=e.keys(),r=new Set(n);if(n.length!==r.size)throw new _D(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},bD=(e,t,n={})=>vD(e,t,{...n,realm:new yD}),xD=class extends RC{filterByFormat(e=`generic`){let t=e===`generic`?`openapi;version`:e;return this.filter(e=>e.includes(t))}findBy(e=`3.1.0`,t=`generic`){let n=t===`generic`?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(n))||this.unknownMediaType}latest(e=`generic`){return Yy(this.filterByFormat(e))}},SD=new xD(`application/vnd.oai.openapi;version=3.1.0`,`application/vnd.oai.openapi+json;version=3.1.0`,`application/vnd.oai.openapi+yaml;version=3.1.0`),CD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`callback`}},wD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`components`}get schemas(){return this.get(`schemas`)}set schemas(e){this.set(`schemas`,e)}get responses(){return this.get(`responses`)}set responses(e){this.set(`responses`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get requestBodies(){return this.get(`requestBodies`)}set requestBodies(e){this.set(`requestBodies`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get securitySchemes(){return this.get(`securitySchemes`)}set securitySchemes(e){this.set(`securitySchemes`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}get callbacks(){return this.get(`callbacks`)}set callbacks(e){this.set(`callbacks`,e)}},TD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`contact`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}get email(){return this.get(`email`)}set email(e){this.set(`email`,e)}},ED=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`discriminator`}get propertyName(){return this.get(`propertyName`)}set propertyName(e){this.set(`propertyName`,e)}get mapping(){return this.get(`mapping`)}set mapping(e){this.set(`mapping`,e)}},DD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`encoding`}get contentType(){return this.get(`contentType`)}set contentType(e){this.set(`contentType`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowedReserved(){return this.get(`allowedReserved`)}set allowedReserved(e){this.set(`allowedReserved`,e)}},OD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`example`}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get value(){return this.get(`value`)}set value(e){this.set(`value`,e)}get externalValue(){return this.get(`externalValue`)}set externalValue(e){this.set(`externalValue`,e)}},kD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`externalDocumentation`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}},AD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`header`}get required(){return this.hasKey(`required`)?this.get(`required`):new W.BooleanElement(!1)}set required(e){this.set(`required`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new W.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get allowEmptyValue(){return this.get(`allowEmptyValue`)}set allowEmptyValue(e){this.set(`allowEmptyValue`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowReserved(){return this.get(`allowReserved`)}set allowReserved(e){this.set(`allowReserved`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}};Object.defineProperty(AD.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0});var jD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`info`,this.classes.push(`info`)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get termsOfService(){return this.get(`termsOfService`)}set termsOfService(e){this.set(`termsOfService`,e)}get contact(){return this.get(`contact`)}set contact(e){this.set(`contact`,e)}get license(){return this.get(`license`)}set license(e){this.set(`license`,e)}get version(){return this.get(`version`)}set version(e){this.set(`version`,e)}},MD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`license`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}},ND=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`link`}get operationRef(){return this.get(`operationRef`)}set operationRef(e){this.set(`operationRef`,e)}get operationId(){return this.get(`operationId`)}set operationId(e){this.set(`operationId`,e)}get operation(){if(WS(this.operationRef))return this.operationRef?.meta.get(`operation`);if(WS(this.operationId))return this.operationId?.meta.get(`operation`)}set operation(e){this.set(`operation`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get server(){return this.get(`server`)}set server(e){this.set(`server`,e)}},PD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`mediaType`}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get encoding(){return this.get(`encoding`)}set encoding(e){this.set(`encoding`,e)}},FD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`oAuthFlow`}get authorizationUrl(){return this.get(`authorizationUrl`)}set authorizationUrl(e){this.set(`authorizationUrl`,e)}get tokenUrl(){return this.get(`tokenUrl`)}set tokenUrl(e){this.set(`tokenUrl`,e)}get refreshUrl(){return this.get(`refreshUrl`)}set refreshUrl(e){this.set(`refreshUrl`,e)}get scopes(){return this.get(`scopes`)}set scopes(e){this.set(`scopes`,e)}},ID=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`oAuthFlows`}get implicit(){return this.get(`implicit`)}set implicit(e){this.set(`implicit`,e)}get password(){return this.get(`password`)}set password(e){this.set(`password`,e)}get clientCredentials(){return this.get(`clientCredentials`)}set clientCredentials(e){this.set(`clientCredentials`,e)}get authorizationCode(){return this.get(`authorizationCode`)}set authorizationCode(e){this.set(`authorizationCode`,e)}},LD=class extends W.StringElement{constructor(e,t,n){super(e,t,n),this.element=`openapi`,this.classes.push(`spec-version`),this.classes.push(`version`)}},RD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`openApi3_0`,this.classes.push(`api`)}get openapi(){return this.get(`openapi`)}set openapi(e){this.set(`openapi`,e)}get info(){return this.get(`info`)}set info(e){this.set(`info`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get paths(){return this.get(`paths`)}set paths(e){this.set(`paths`,e)}get components(){return this.get(`components`)}set components(e){this.set(`components`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}},zD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`operation`}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}set externalDocs(e){this.set(`externalDocs`,e)}get externalDocs(){return this.get(`externalDocs`)}get operationId(){return this.get(`operationId`)}set operationId(e){this.set(`operationId`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}get responses(){return this.get(`responses`)}set responses(e){this.set(`responses`,e)}get callbacks(){return this.get(`callbacks`)}set callbacks(e){this.set(`callbacks`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new W.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get servers(){return this.get(`severs`)}set servers(e){this.set(`servers`,e)}},BD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`parameter`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get in(){return this.get(`in`)}set in(e){this.set(`in`,e)}get required(){return this.hasKey(`required`)?this.get(`required`):new W.BooleanElement(!1)}set required(e){this.set(`required`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new W.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get allowEmptyValue(){return this.get(`allowEmptyValue`)}set allowEmptyValue(e){this.set(`allowEmptyValue`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowReserved(){return this.get(`allowReserved`)}set allowReserved(e){this.set(`allowReserved`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}};Object.defineProperty(BD.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0});var VD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`pathItem`}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get GET(){return this.get(`get`)}set GET(e){this.set(`GET`,e)}get PUT(){return this.get(`put`)}set PUT(e){this.set(`PUT`,e)}get POST(){return this.get(`post`)}set POST(e){this.set(`POST`,e)}get DELETE(){return this.get(`delete`)}set DELETE(e){this.set(`DELETE`,e)}get OPTIONS(){return this.get(`options`)}set OPTIONS(e){this.set(`OPTIONS`,e)}get HEAD(){return this.get(`head`)}set HEAD(e){this.set(`HEAD`,e)}get PATCH(){return this.get(`patch`)}set PATCH(e){this.set(`PATCH`,e)}get TRACE(){return this.get(`trace`)}set TRACE(e){this.set(`TRACE`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}},HD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`paths`}},UD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`reference`,this.classes.push(`openapi-reference`)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}},WD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`requestBody`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}get required(){return this.hasKey(`required`)?this.get(`required`):new W.BooleanElement(!1)}set required(e){this.set(`required`,e)}},GD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`response`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}},KD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`responses`}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}},qD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft4`}get idProp(){return this.get(`id`)}set idProp(e){this.set(`id`,e)}get $schema(){return this.get(`$schema`)}set $schema(e){this.set(`$schema`,e)}get multipleOf(){return this.get(`multipleOf`)}set multipleOf(e){this.set(`multipleOf`,e)}get maximum(){return this.get(`maximum`)}set maximum(e){this.set(`maximum`,e)}get exclusiveMaximum(){return this.get(`exclusiveMaximum`)}set exclusiveMaximum(e){this.set(`exclusiveMaximum`,e)}get minimum(){return this.get(`minimum`)}set minimum(e){this.set(`minimum`,e)}get exclusiveMinimum(){return this.get(`exclusiveMinimum`)}set exclusiveMinimum(e){this.set(`exclusiveMinimum`,e)}get maxLength(){return this.get(`maxLength`)}set maxLength(e){this.set(`maxLength`,e)}get minLength(){return this.get(`minLength`)}set minLength(e){this.set(`minLength`,e)}get pattern(){return this.get(`pattern`)}set pattern(e){this.set(`pattern`,e)}get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get maxItems(){return this.get(`maxItems`)}set maxItems(e){this.set(`maxItems`,e)}get minItems(){return this.get(`minItems`)}set minItems(e){this.set(`minItems`,e)}get uniqueItems(){return this.get(`uniqueItems`)}set uniqueItems(e){this.set(`uniqueItems`,e)}get maxProperties(){return this.get(`maxProperties`)}set maxProperties(e){this.set(`maxProperties`,e)}get minProperties(){return this.get(`minProperties`)}set minProperties(e){this.set(`minProperties`,e)}get required(){return this.get(`required`)}set required(e){this.set(`required`,e)}get properties(){return this.get(`properties`)}set properties(e){this.set(`properties`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get patternProperties(){return this.get(`patternProperties`)}set patternProperties(e){this.set(`patternProperties`,e)}get dependencies(){return this.get(`dependencies`)}set dependencies(e){this.set(`dependencies`,e)}get enum(){return this.get(`enum`)}set enum(e){this.set(`enum`,e)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get allOf(){return this.get(`allOf`)}set allOf(e){this.set(`allOf`,e)}get anyOf(){return this.get(`anyOf`)}set anyOf(e){this.set(`anyOf`,e)}get oneOf(){return this.get(`oneOf`)}set oneOf(e){this.set(`oneOf`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get definitions(){return this.get(`definitions`)}set definitions(e){this.set(`definitions`,e)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}get format(){return this.get(`format`)}set format(e){this.set(`format`,e)}get base(){return this.get(`base`)}set base(e){this.set(`base`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}get media(){return this.get(`media`)}set media(e){this.set(`media`,e)}get readOnly(){return this.get(`readOnly`)}set readOnly(e){this.set(`readOnly`,e)}},JD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`JSONReference`,this.classes.push(`json-reference`)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}},YD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`media`}get binaryEncoding(){return this.get(`binaryEncoding`)}set binaryEncoding(e){this.set(`binaryEncoding`,e)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}},XD=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`linkDescription`}get href(){return this.get(`href`)}set href(e){this.set(`href`,e)}get rel(){return this.get(`rel`)}set rel(e){this.set(`rel`,e)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get mediaType(){return this.get(`mediaType`)}set mediaType(e){this.set(`mediaType`,e)}get method(){return this.get(`method`)}set method(e){this.set(`method`,e)}get encType(){return this.get(`encType`)}set encType(e){this.set(`encType`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},ZD={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft4`,qD),t.register(`jSONReference`,JD),t.register(`media`,YD),t.register(`linkDescription`,XD),t}},QD=e=>{if(US(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$D={JSONSchemaDraft4Element:[`content`],JSONReferenceElement:[`content`],MediaElement:[`content`],LinkDescriptionElement:[`content`],...AC},eO=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=cw(t.meta,e.meta)),rC(e)&&xC(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=cw(t.attributes,e.attributes))}},tO=class extends eO{enter(e){return this.element=K(e),dC}},nO=(e,t,n=[])=>{let r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},rO=(e,t=[e])=>{let n=Object.getPrototypeOf(e);return n===null?t:rO(n,[...t,n])},iO=(...e)=>{if(e.length===0)return;let t,n=e.map(e=>rO(e));for(;n.every(e=>e.length>0);){let e=n.map(e=>e.pop()),r=e[0];if(e.every(e=>e===r))t=r;else break}return t},aO=(e,t,n=[])=>{let r=iO(...e)??Object.prototype,i=Object.create(r),a=rO(r);for(let t of e){let e=rO(t);for(let t=e.length-1;t>=0;t--){let r=e[t];a.indexOf(r)===-1&&(nO(i,r,[`constructor`,...n]),a.push(r))}}return i.constructor=t,i},oO=e=>e.filter((t,n)=>e.indexOf(t)==n),sO=(e,t)=>{let n=t.map(e=>rO(e)),r=0,i=!0;for(;i;){i=!1;for(let a=t.length-1;a>=0;a--){let t=n[a][r];if(t!=null&&(i=!0,Object.getOwnPropertyDescriptor(t,e)!=null))return n[a][0]}r++}},cO=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf(){return t},setPrototypeOf(){throw Error(`Cannot set prototype of Proxies created by ts-mixer`)},getOwnPropertyDescriptor(t,n){return Object.getOwnPropertyDescriptor(sO(n,e)||{},n)},defineProperty(){throw Error(`Cannot define new properties on Proxies created by ts-mixer`)},has(n,r){return sO(r,e)!==void 0||t[r]!==void 0},get(n,r){return(sO(r,e)||t)[r]},set(t,n,r){let i=sO(n,e);if(i===void 0)throw Error(`Cannot set new properties on Proxies created by ts-mixer`);return i[n]=r,!0},deleteProperty(){throw Error(`Cannot delete properties on Proxies created by ts-mixer`)},ownKeys(){return e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}}),lO=(e,t)=>cO([...e,{constructor:t}]),uO={initFunction:null,staticsStrategy:`copy`,prototypeStrategy:`copy`,decoratorInheritance:`deep`},dO=new WeakMap,fO=e=>dO.get(e),pO=(e,t)=>dO.set(e,t),mO=(e,t)=>{let n=oO([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),r={};for(let i of n)r[i]=oO([...e?.[i]??[],...t?.[i]??[]]);return r},hO=(e,t)=>({property:mO(e?.property??{},t?.property??{}),method:mO(e?.method??{},t?.method??{})}),gO=(e,t)=>({class:oO([...e?.class??[],...t?.class??[]]),static:hO(e?.static??{},t?.static??{}),instance:hO(e?.instance??{},t?.instance??{})}),_O=new Map,vO=(...e)=>{let t=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){let r=rO(e.prototype).map(e=>e.constructor),i=fO(e)??[],a=[...r,...i].filter(e=>!t.has(e));for(let e of a)n.add(e);t.add(e),n.delete(e)}return[...t]},yO=(...e)=>{let t=vO(...e).map(e=>_O.get(e)).filter(e=>!!e);return t.length==0?{}:t.length==1?t[0]:t.reduce((e,t)=>gO(e,t))},bO=(...e)=>{let t=e.map(e=>xO(e));return t.length===0?{}:t.length===1?t[0]:t.reduce((e,t)=>gO(e,t))},xO=e=>{let t=_O.get(e);return t||(t={},_O.set(e,t)),t};function J(...e){let t=e.map(e=>e.prototype),n=uO.initFunction;if(n!==null){let e=t.map(e=>e[n]).filter(e=>typeof e==`function`),r=function(...t){for(let n of e)n.apply(this,t)},i={[n]:r};t.push(i)}function r(...t){for(let n of e)nO(this,new n(...t));n!==null&&typeof this[n]==`function`&&this[n].apply(this,t)}r.prototype=uO.prototypeStrategy===`copy`?aO(t,r):lO(t,r),Object.setPrototypeOf(r,uO.staticsStrategy===`copy`?aO(e,null,[`prototype`]):cO(e,Function.prototype));let i=r;if(uO.decoratorInheritance!==`none`){let t=uO.decoratorInheritance===`deep`?yO(...e):bO(...e);for(let e of t?.class??[]){let t=e(i);t&&(i=t)}SO(t?.static??{},i),SO(t?.instance??{},i.prototype)}return pO(i,e),i}var SO=(e,t)=>{let n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))},CO=class extends eO{specObj;passingOptionsNames=[`specObj`,`parent`];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Ob(this.passingOptionsNames,this)}retrieveFixedFields(e){let t=Tb([`visitors`,...e,`fixedFields`],this.specObj);return typeof t==`object`&&t?Object.keys(t):[]}retrieveVisitor(e){return Db(Xb,[`visitors`,...e],this.specObj)?Tb([`visitors`,...e],this.specObj):Tb([`visitors`,...e,`$visitor`],this.specObj)}retrieveVisitorInstance(e,t={}){let n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){let r=this.retrieveVisitorInstance(e,n);return r instanceof tO&&r?.constructor===tO?K(t):(MC(t,r,n),r.element)}},wO=class extends CO{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){let t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,r,i)=>{if(WS(r)&&n.includes(q(r))&&!this.ignoredFields.includes(q(r))){let n=this.toRefractedElement([...t,`fixedFields`,q(r)],e),a=new W.MemberElement(K(r),n);this.copyMetaAndAttributes(i,a),a.classes.push(`fixed-field`),this.element.content.push(a)}else this.ignoredFields.includes(q(r))||this.element.content.push(K(i))}),this.copyMetaAndAttributes(e,this.element),dC}},TO=class{parent;constructor({parent:e}){this.parent=e}},EO=r({isJSONReferenceElement:()=>OO,isJSONSchemaElement:()=>DO,isLinkDescriptionElement:()=>AO,isMediaElement:()=>kO}),DO=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qD||e(r)&&t(`JSONSchemaDraft4`,r)&&n(`object`,r)),OO=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JD||e(r)&&t(`JSONReference`,r)&&n(`object`,r)),kO=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof YD||e(r)&&t(`media`,r)&&n(`object`,r)),AO=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof XD||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),jO=class extends J(wO,TO,tO){constructor(e){super(e),this.element=new qD,this.specPath=ty([`document`,`objects`,`JSONSchema`])}get defaultDialectIdentifier(){return`http://json-schema.org/draft-04/schema#`}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,wO.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Ub(this.parent)&&!WS(e.get(`$schema`)))this.element.setMetaProperty(`inheritedDialectIdentifier`,this.defaultDialectIdentifier);else if(DO(this.parent)&&!WS(e.get(`$schema`))){let e=Py(q(this.parent.meta.get(`inheritedDialectIdentifier`)),q(this.parent.$schema));this.element.setMetaProperty(`inheritedDialectIdentifier`,e)}}handleSchemaIdentifier(e,t=`id`){let n=this.parent===void 0?new W.ArrayElement:K(this.parent.getMetaProperty(`ancestorsSchemaIdentifiers`,[])),r=q(e.get(t));ix(r)&&n.push(r),this.element.setMetaProperty(`ancestorsSchemaIdentifiers`,n)}},MO=e=>JS(e)&&e.hasKey(`$ref`),NO=class extends J(CO,TO,tO){ObjectElement(e){let t=MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`];return this.element=this.toRefractedElement(t,e),dC}ArrayElement(e){return this.element=new W.ArrayElement,this.element.classes.push(`json-schema-items`),e.forEach(e=>{let t=MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},PO=class extends tO{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-required`),t}},FO=class extends CO{specPath;ignoredFields;fieldPatternPredicate=R_;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],typeof n==`function`&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach((e,t,n)=>{if(!this.ignoredFields.includes(q(t))&&this.fieldPatternPredicate(q(t))){let r=this.specPath(e),i=this.toRefractedElement(r,e),a=new W.MemberElement(K(t),i);this.copyMetaAndAttributes(n,a),a.classes.push(`patterned-field`),this.element.content.push(a)}else this.ignoredFields.includes(q(t))||this.element.content.push(K(n))}),this.copyMetaAndAttributes(e,this.element),dC}},IO=class extends FO{constructor(e){super(e),this.fieldPatternPredicate=ix}},LO=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-properties`),this.specPath=e=>MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},RO=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-patternProperties`),this.specPath=e=>MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},zO=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-dependencies`),this.specPath=e=>MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},BO=class extends tO{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-enum`),t}},VO=class extends tO{StringElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-type`),t}ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-type`),t}},HO=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-allOf`)}ArrayElement(e){return e.forEach(e=>{let t=MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},UO=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-anyOf`)}ArrayElement(e){return e.forEach(e=>{let t=MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},WO=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-oneOf`)}ArrayElement(e){return e.forEach(e=>{let t=MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},GO=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-definitions`),this.specPath=e=>MO(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},KO=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-links`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`LinkDescription`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}},qO=class extends J(wO,tO){constructor(e){super(e),this.element=new JD,this.specPath=ty([`document`,`objects`,`JSONReference`])}ObjectElement(e){let t=wO.prototype.ObjectElement.call(this,e);return WS(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},JO=class extends tO{StringElement(e){let t=this.enter(e);return this.element.classes.push(`reference-value`),t}},YO=class extends CO{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){let t=yx(this.alternator.map(({predicate:e,specPath:t})=>cb(e,ty(t),Hb)))(e);return this.element=this.toRefractedElement(t,e),dC}},XO=class extends YO{constructor(e){super(e),this.alternator=[{predicate:MO,specPath:[`document`,`objects`,`JSONReference`]},{predicate:z_,specPath:[`document`,`objects`,`JSONSchema`]}]}},ZO=class extends J(wO,tO){constructor(e){super(e),this.element=new YD,this.specPath=ty([`document`,`objects`,`Media`])}},QO=class extends J(wO,tO){constructor(e){super(e),this.element=new XD,this.specPath=ty([`document`,`objects`,`LinkDescription`])}},$O={visitors:{value:tO,JSONSchemaOrJSONReferenceVisitor:XO,document:{objects:{JSONSchema:{$visitor:jO,fixedFields:{id:{$ref:`#/visitors/value`},$schema:{$ref:`#/visitors/value`},multipleOf:{$ref:`#/visitors/value`},maximum:{$ref:`#/visitors/value`},exclusiveMaximum:{$ref:`#/visitors/value`},minimum:{$ref:`#/visitors/value`},exclusiveMinimum:{$ref:`#/visitors/value`},maxLength:{$ref:`#/visitors/value`},minLength:{$ref:`#/visitors/value`},pattern:{$ref:`#/visitors/value`},additionalItems:XO,items:NO,maxItems:{$ref:`#/visitors/value`},minItems:{$ref:`#/visitors/value`},uniqueItems:{$ref:`#/visitors/value`},maxProperties:{$ref:`#/visitors/value`},minProperties:{$ref:`#/visitors/value`},required:PO,properties:LO,additionalProperties:XO,patternProperties:RO,dependencies:zO,enum:BO,type:VO,allOf:HO,anyOf:UO,oneOf:WO,not:XO,definitions:GO,title:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},default:{$ref:`#/visitors/value`},format:{$ref:`#/visitors/value`},base:{$ref:`#/visitors/value`},links:KO,media:{$ref:`#/visitors/document/objects/Media`},readOnly:{$ref:`#/visitors/value`}}},JSONReference:{$visitor:qO,fixedFields:{$ref:JO}},Media:{$visitor:ZO,fixedFields:{binaryEncoding:{$ref:`#/visitors/value`},type:{$ref:`#/visitors/value`}}},LinkDescription:{$visitor:QO,fixedFields:{href:{$ref:`#/visitors/value`},rel:{$ref:`#/visitors/value`},title:{$ref:`#/visitors/value`},targetSchema:XO,mediaType:{$ref:`#/visitors/value`},method:{$ref:`#/visitors/value`},encType:{$ref:`#/visitors/value`},schema:XO}}}}}},ek=()=>{let e=cC(ZD);return{predicates:{...EO,isStringElement:WS},namespace:e}},tk=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=$O}={})=>{let i=(0,W.refract)(e),a=bC(r),o=new(Tb(t,a))({specObj:a});return MC(i,o),PC(o.element,n,{toolboxCreator:ek,visitorOptions:{keyMap:$D,nodeTypeGetter:QD}})},nk=e=>(t,n={})=>tk(t,{specPath:e,...n});qD.refract=nk([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),JD.refract=nk([`visitors`,`document`,`objects`,`JSONReference`,`$visitor`]),YD.refract=nk([`visitors`,`document`,`objects`,`Media`,`$visitor`]),XD.refract=nk([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var rk=class extends qD{constructor(e,t,n){super(e,t,n),this.element=`schema`,this.classes.push(`json-schema-draft-4`)}get idProp(){throw new I_(`idProp getter in Schema class is not not supported.`)}set idProp(e){throw new I_(`idProp setter in Schema class is not not supported.`)}get $schema(){throw new I_(`$schema getter in Schema class is not not supported.`)}set $schema(e){throw new I_(`$schema setter in Schema class is not not supported.`)}get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get patternProperties(){throw new I_(`patternProperties getter in Schema class is not not supported.`)}set patternProperties(e){throw new I_(`patternProperties setter in Schema class is not not supported.`)}get dependencies(){throw new I_(`dependencies getter in Schema class is not not supported.`)}set dependencies(e){throw new I_(`dependencies setter in Schema class is not not supported.`)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get definitions(){throw new I_(`definitions getter in Schema class is not not supported.`)}set definitions(e){throw new I_(`definitions setter in Schema class is not not supported.`)}get base(){throw new I_(`base getter in Schema class is not not supported.`)}set base(e){throw new I_(`base setter in Schema class is not not supported.`)}get links(){throw new I_(`links getter in Schema class is not not supported.`)}set links(e){throw new I_(`links setter in Schema class is not not supported.`)}get media(){throw new I_(`media getter in Schema class is not not supported.`)}set media(e){throw new I_(`media setter in Schema class is not not supported.`)}get nullable(){return this.get(`nullable`)}set nullable(e){this.set(`nullable`,e)}get discriminator(){return this.get(`discriminator`)}set discriminator(e){this.set(`discriminator`,e)}get writeOnly(){return this.get(`writeOnly`)}set writeOnly(e){this.set(`writeOnly`,e)}get xml(){return this.get(`xml`)}set xml(e){this.set(`xml`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get deprecated(){return this.get(`deprecated`)}set deprecated(e){this.set(`deprecated`,e)}},ik=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`securityRequirement`}},ak=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`securityScheme`}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get in(){return this.get(`in`)}set in(e){this.set(`in`,e)}get scheme(){return this.get(`scheme`)}set scheme(e){this.set(`scheme`,e)}get bearerFormat(){return this.get(`bearerFormat`)}set bearerFormat(e){this.set(`bearerFormat`,e)}get flows(){return this.get(`flows`)}set flows(e){this.set(`flows`,e)}get openIdConnectUrl(){return this.get(`openIdConnectUrl`)}set openIdConnectUrl(e){this.set(`openIdConnectUrl`,e)}},ok=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`server`}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get variables(){return this.get(`variables`)}set variables(e){this.set(`variables`,e)}},sk=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`serverVariable`}get enum(){return this.get(`enum`)}set enum(e){this.set(`enum`,e)}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}},ck=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`tag`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}},lk=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`xml`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get namespace(){return this.get(`namespace`)}set namespace(e){this.set(`namespace`,e)}get prefix(){return this.get(`prefix`)}set prefix(e){this.set(`prefix`,e)}get attribute(){return this.get(`attribute`)}set attribute(e){this.set(`attribute`,e)}get wrapped(){return this.get(`wrapped`)}set wrapped(e){this.set(`wrapped`,e)}},uk={namespace:e=>{let{base:t}=e;return t.register(`callback`,CD),t.register(`components`,wD),t.register(`contact`,TD),t.register(`discriminator`,ED),t.register(`encoding`,DD),t.register(`example`,OD),t.register(`externalDocumentation`,kD),t.register(`header`,AD),t.register(`info`,jD),t.register(`license`,MD),t.register(`link`,ND),t.register(`mediaType`,PD),t.register(`oAuthFlow`,FD),t.register(`oAuthFlows`,ID),t.register(`openapi`,LD),t.register(`openApi3_0`,RD),t.register(`operation`,zD),t.register(`parameter`,BD),t.register(`pathItem`,VD),t.register(`paths`,HD),t.register(`reference`,UD),t.register(`requestBody`,WD),t.register(`response`,GD),t.register(`responses`,KD),t.register(`schema`,rk),t.register(`securityRequirement`,ik),t.register(`securityScheme`,ak),t.register(`server`,ok),t.register(`serverVariable`,sk),t.register(`tag`,ck),t.register(`xml`,lk),t}},dk=class e extends W.ArrayElement{static primaryClass=`servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},fk=class e extends W.ArrayElement{static primaryClass=`security`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},pk=class e extends W.ArrayElement{static primaryClass=`tags`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},mk=class e extends W.ObjectElement{static primaryClass=`server-variables`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},hk=class e extends W.ObjectElement{static primaryClass=`components-schemas`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},gk=class e extends W.ObjectElement{static primaryClass=`components-responses`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},_k=class e extends W.ObjectElement{static primaryClass=`components-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},vk=class e extends W.ObjectElement{static primaryClass=`components-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},yk=class e extends W.ObjectElement{static primaryClass=`components-request-bodies`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},bk=class e extends W.ObjectElement{static primaryClass=`components-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},xk=class e extends W.ObjectElement{static primaryClass=`components-security-schemes`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Sk=class e extends W.ObjectElement{static primaryClass=`components-links`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Ck=class e extends W.ObjectElement{static primaryClass=`components-callbacks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},wk=class e extends W.ArrayElement{static primaryClass=`path-item-servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`servers`)}},Tk=class e extends W.ArrayElement{static primaryClass=`path-item-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},Ek=class e extends W.ArrayElement{static primaryClass=`operation-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},Dk=class e extends W.ObjectElement{static primaryClass=`parameter-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},Ok=class e extends W.ObjectElement{static primaryClass=`parameter-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},kk=class e extends W.ArrayElement{static primaryClass=`operation-tags`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Ak=class e extends W.ObjectElement{static primaryClass=`operation-callbacks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},jk=class e extends W.ArrayElement{static primaryClass=`operation-security`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`security`)}},Mk=class e extends W.ArrayElement{static primaryClass=`operation-servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`servers`)}},Nk=class e extends W.ObjectElement{static primaryClass=`request-body-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},Pk=class e extends W.ObjectElement{static primaryClass=`media-type-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},Fk=class e extends W.ObjectElement{static primaryClass=`media-type-encoding`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Ik=class e extends W.ObjectElement{static primaryClass=`encoding-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Lk=class e extends W.ObjectElement{static primaryClass=`response-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Rk=class e extends W.ObjectElement{static primaryClass=`response-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},zk=class e extends W.ObjectElement{static primaryClass=`response-links`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Bk=class e extends W.ObjectElement{static primaryClass=`discriminator-mapping`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Vk=class e extends W.ObjectElement{static primaryClass=`oauth-flow-scopes`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Hk=class e extends W.ObjectElement{static primaryClass=`link-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},Uk=class e extends W.ObjectElement{static primaryClass=`header-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},Wk=class e extends W.ObjectElement{static primaryClass=`header-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},Gk=e=>{if(US(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Kk={CallbackElement:[`content`],ComponentsElement:[`content`],ContactElement:[`content`],DiscriminatorElement:[`content`],Encoding:[`content`],Example:[`content`],ExternalDocumentationElement:[`content`],HeaderElement:[`content`],InfoElement:[`content`],LicenseElement:[`content`],MediaTypeElement:[`content`],OAuthFlowElement:[`content`],OAuthFlowsElement:[`content`],OpenApi3_0Element:[`content`],OperationElement:[`content`],ParameterElement:[`content`],PathItemElement:[`content`],PathsElement:[`content`],ReferenceElement:[`content`],RequestBodyElement:[`content`],ResponseElement:[`content`],ResponsesElement:[`content`],SchemaElement:[`content`],SecurityRequirementElement:[`content`],SecuritySchemeElement:[`content`],ServerElement:[`content`],ServerVariableElement:[`content`],TagElement:[`content`],...AC},qk=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=cw(t.meta,e.meta)),rC(e)&&xC(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=cw(t.attributes,e.attributes))}},Y=class extends qk{enter(e){return this.element=K(e),dC}},Jk=class extends qk{specObj;passingOptionsNames=[`specObj`,`openApiGenericElement`,`openApiSemanticElement`];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:n,openApiSemanticElement:r,...i}){super({...i}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Ob(this.passingOptionsNames,this)}retrieveFixedFields(e){let t=Tb([`visitors`,...e,`fixedFields`],this.specObj);return typeof t==`object`&&t?Object.keys(t):[]}retrieveVisitor(e){return Db(Xb,[`visitors`,...e],this.specObj)?Tb([`visitors`,...e],this.specObj):Tb([`visitors`,...e,`$visitor`],this.specObj)}retrieveVisitorInstance(e,t={}){let n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){let r=this.retrieveVisitorInstance(e,n);return r instanceof Y&&r?.constructor===Y?K(t):(MC(t,r,n),r.element)}},Yk=e=>JS(e)&&e.hasKey(`$ref`),Xk=JS,Zk=JS,Qk=e=>WS(e.key)&&Lb(`x-`,q(e.key)),$k=class extends Jk{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Qk;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],typeof n==`boolean`&&(this.canSupportSpecificationExtensions=n),typeof r==`function`&&(this.specificationExtensionPredicate=r)}ObjectElement(e){let t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,r,i)=>{if(WS(r)&&n.includes(q(r))&&!this.ignoredFields.includes(q(r))){let n=this.toRefractedElement([...t,`fixedFields`,q(r)],e),a=new W.MemberElement(K(r),n);this.copyMetaAndAttributes(i,a),a.classes.push(`fixed-field`),this.element.content.push(a)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){let e=this.toRefractedElement([`document`,`extension`],i);this.element.content.push(e)}else this.ignoredFields.includes(q(r))||this.element.content.push(K(i))}),this.copyMetaAndAttributes(e,this.element),dC}},eA=class extends J($k,Y){constructor(e){super(e),this.element=new RD,this.specPath=ty([`document`,`objects`,`OpenApi`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return $k.prototype.ObjectElement.call(this,e)}},tA=class extends J(Jk,Y){StringElement(e){let t=new LD(q(e));return this.copyMetaAndAttributes(e,t),this.element=t,dC}},nA=class extends Jk{MemberElement(e){return this.element=K(e),this.element.classes.push(`specification-extension`),dC}},rA=class extends J($k,Y){constructor(e){super(e),this.element=new jD,this.specPath=ty([`document`,`objects`,`Info`]),this.canSupportSpecificationExtensions=!0}},iA=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`api-version`),this.element.classes.push(`version`),t}},aA=class extends J($k,Y){constructor(e){super(e),this.element=new TD,this.specPath=ty([`document`,`objects`,`Contact`]),this.canSupportSpecificationExtensions=!0}},oA=class extends J($k,Y){constructor(e){super(e),this.element=new MD,this.specPath=ty([`document`,`objects`,`License`]),this.canSupportSpecificationExtensions=!0}},sA=class extends J($k,Y){constructor(e){super(e),this.element=new ND,this.specPath=ty([`document`,`objects`,`Link`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return(WS(this.element.operationId)||WS(this.element.operationRef))&&this.element.classes.push(`reference-element`),t}},cA=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},lA=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},uA=class extends Jk{specPath;ignoredFields;fieldPatternPredicate=R_;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Qk;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:i,...a}){super({...a}),this.specPath=e,this.ignoredFields=t||[],typeof n==`function`&&(this.fieldPatternPredicate=n),typeof r==`boolean`&&(this.canSupportSpecificationExtensions=r),typeof i==`function`&&(this.specificationExtensionPredicate=i)}ObjectElement(e){return e.forEach((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){let e=this.toRefractedElement([`document`,`extension`],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(q(t))&&this.fieldPatternPredicate(q(t))){let r=this.specPath(e),i=this.toRefractedElement(r,e),a=new W.MemberElement(K(t),i);this.copyMetaAndAttributes(n,a),a.classes.push(`patterned-field`),this.element.content.push(a)}else this.ignoredFields.includes(q(t))||this.element.content.push(K(n))}),this.copyMetaAndAttributes(e,this.element),dC}},dA=class extends uA{constructor(e){super(e),this.fieldPatternPredicate=ix}},fA=class extends J(dA,Y){constructor(e){super(e),this.element=new Hk,this.specPath=ty([`value`])}},pA=class extends J($k,Y){constructor(e){super(e),this.element=new ok,this.specPath=ty([`document`,`objects`,`Server`]),this.canSupportSpecificationExtensions=!0}},mA=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`server-url`),t}},hA=class extends J(Jk,Y){constructor(e){super(e),this.element=new dk}ArrayElement(e){return e.forEach(e=>{let t=Xk(e)?[`document`,`objects`,`Server`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},gA=class extends J($k,Y){constructor(e){super(e),this.element=new sk,this.specPath=ty([`document`,`objects`,`ServerVariable`]),this.canSupportSpecificationExtensions=!0}},_A=class extends J(dA,Y){constructor(e){super(e),this.element=new mk,this.specPath=ty([`document`,`objects`,`ServerVariable`])}},vA=class extends J($k,Y){constructor(e){super(e),this.element=new PD,this.specPath=ty([`document`,`objects`,`MediaType`]),this.canSupportSpecificationExtensions=!0}},yA=class extends Jk{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){let t=yx(this.alternator.map(({predicate:e,specPath:t})=>cb(e,ty(t),Hb)))(e);return this.element=this.toRefractedElement(t,e),dC}},bA=r({isBooleanJsonSchemaElement:()=>VA,isCallbackElement:()=>xA,isComponentsElement:()=>SA,isContactElement:()=>CA,isDiscriminatorElement:()=>JA,isExampleElement:()=>wA,isExternalDocumentationElement:()=>TA,isHeaderElement:()=>EA,isInfoElement:()=>DA,isLicenseElement:()=>OA,isLinkElement:()=>kA,isMediaTypeElement:()=>KA,isOpenApi3_0Element:()=>jA,isOpenapiElement:()=>AA,isOperationElement:()=>MA,isParameterElement:()=>NA,isPathItemElement:()=>PA,isPathsElement:()=>FA,isReferenceElement:()=>IA,isRequestBodyElement:()=>LA,isResponseElement:()=>RA,isResponsesElement:()=>zA,isSchemaElement:()=>BA,isSecurityRequirementElement:()=>HA,isSecuritySchemeElement:()=>UA,isServerElement:()=>WA,isServerVariableElement:()=>GA,isServersElement:()=>qA}),xA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof CD||e(r)&&t(`callback`,r)&&n(`object`,r)),SA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wD||e(r)&&t(`components`,r)&&n(`object`,r)),CA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof TD||e(r)&&t(`contact`,r)&&n(`object`,r)),wA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof OD||e(r)&&t(`example`,r)&&n(`object`,r)),TA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof kD||e(r)&&t(`externalDocumentation`,r)&&n(`object`,r)),EA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof AD||e(r)&&t(`header`,r)&&n(`object`,r)),DA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof jD||e(r)&&t(`info`,r)&&n(`object`,r)),OA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MD||e(r)&&t(`license`,r)&&n(`object`,r)),kA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ND||e(r)&&t(`link`,r)&&n(`object`,r)),AA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof LD||e(r)&&t(`openapi`,r)&&n(`string`,r)),jA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof RD||e(i)&&t(`openApi3_0`,i)&&n(`object`,i)&&r(`api`,i)),MA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zD||e(r)&&t(`operation`,r)&&n(`object`,r)),NA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof BD||e(r)&&t(`parameter`,r)&&n(`object`,r)),PA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof VD||e(r)&&t(`pathItem`,r)&&n(`object`,r)),FA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof HD||e(r)&&t(`paths`,r)&&n(`object`,r)),IA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof UD||e(r)&&t(`reference`,r)&&n(`object`,r)),LA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof WD||e(r)&&t(`requestBody`,r)&&n(`object`,r)),RA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof GD||e(r)&&t(`response`,r)&&n(`object`,r)),zA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof KD||e(r)&&t(`responses`,r)&&n(`object`,r)),BA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rk||e(r)&&t(`schema`,r)&&n(`object`,r)),VA=e=>qS(e)&&e.classes.includes(`boolean-json-schema`),HA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ik||e(r)&&t(`securityRequirement`,r)&&n(`object`,r)),UA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ak||e(r)&&t(`securityScheme`,r)&&n(`object`,r)),WA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ok||e(r)&&t(`server`,r)&&n(`object`,r)),GA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sk||e(r)&&t(`serverVariable`,r)&&n(`object`,r)),KA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PD||e(r)&&t(`mediaType`,r)&&n(`object`,r)),qA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof dk||e(i)&&t(`array`,i)&&n(`array`,i)&&r(`servers`,i)),JA=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ED||e(r)&&t(`discriminator`,r)&&n(`object`,r)),YA=class extends J(yA,Y){constructor(e){super(e),this.alternator=[{predicate:Yk,specPath:[`document`,`objects`,`Reference`]},{predicate:z_,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=yA.prototype.enter.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},XA=class extends J(dA,Y){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`examples`),this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Example`],this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`example`)}),t}},ZA=class extends XA{constructor(e){super(e),this.element=new Pk}},QA=class extends J(dA,Y){constructor(e){super(e),this.element=new Fk,this.specPath=ty([`document`,`objects`,`Encoding`])}},$A=class extends J(dA,Y){constructor(e){super(e),this.element=new ik,this.specPath=ty([`value`])}},ej=class extends J(Jk,Y){constructor(e){super(e),this.element=new fk}ArrayElement(e){return e.forEach(e=>{if(JS(e)){let t=this.toRefractedElement([`document`,`objects`,`SecurityRequirement`],e);this.element.push(t)}else this.element.push(K(e))}),this.copyMetaAndAttributes(e,this.element),dC}},tj=class extends J($k,Y){constructor(e){super(e),this.element=new wD,this.specPath=ty([`document`,`objects`,`Components`]),this.canSupportSpecificationExtensions=!0}},nj=class extends J($k,Y){constructor(e){super(e),this.element=new ck,this.specPath=ty([`document`,`objects`,`Tag`]),this.canSupportSpecificationExtensions=!0}},rj=class extends J($k,Y){constructor(e){super(e),this.element=new UD,this.specPath=ty([`document`,`objects`,`Reference`]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return WS(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},ij=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},aj=class extends J($k,Y){constructor(e){super(e),this.element=new BD,this.specPath=ty([`document`,`objects`,`Parameter`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return JS(this.element.contentProp)&&this.element.contentProp.filter(KA).forEach((e,t)=>{e.setMetaProperty(`media-type`,q(t))}),t}},oj=class extends J(yA,Y){constructor(e){super(e),this.alternator=[{predicate:Yk,specPath:[`document`,`objects`,`Reference`]},{predicate:z_,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=yA.prototype.enter.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},sj=class extends J($k,Y){constructor(e){super(e),this.element=new AD,this.specPath=ty([`document`,`objects`,`Header`]),this.canSupportSpecificationExtensions=!0}},cj=class extends J(yA,Y){constructor(e){super(e),this.alternator=[{predicate:Yk,specPath:[`document`,`objects`,`Reference`]},{predicate:z_,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=yA.prototype.enter.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},lj=class extends XA{constructor(e){super(e),this.element=new Uk}},uj=class extends J(dA,Y){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`content`),this.specPath=ty([`document`,`objects`,`MediaType`])}},dj=class extends uj{constructor(e){super(e),this.element=new Wk}},fj=class extends J($k,Y){constructor(e){super(e),this.element=new rk,this.specPath=ty([`document`,`objects`,`Schema`]),this.canSupportSpecificationExtensions=!0}},pj=$O.visitors.document.objects.JSONSchema.fixedFields.allOf,mj=class extends pj{ArrayElement(e){let t=pj.prototype.ArrayElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},hj=$O.visitors.document.objects.JSONSchema.fixedFields.anyOf,gj=class extends hj{ArrayElement(e){let t=hj.prototype.ArrayElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},_j=$O.visitors.document.objects.JSONSchema.fixedFields.oneOf,vj=class extends _j{ArrayElement(e){let t=_j.prototype.ArrayElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},yj=$O.visitors.document.objects.JSONSchema.fixedFields.items,bj=class extends yj{ObjectElement(e){let t=yj.prototype.ObjectElement.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}ArrayElement(e){return this.enter(e)}},xj=$O.visitors.document.objects.JSONSchema.fixedFields.properties,Sj=class extends xj{ObjectElement(e){let t=xj.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},Cj=$O.visitors.document.objects.JSONSchema.fixedFields.type,wj=class extends Cj{ArrayElement(e){return this.enter(e)}},Tj=$O.visitors.JSONSchemaOrJSONReferenceVisitor,Ej=class extends Tj{ObjectElement(e){let t=Tj.prototype.enter.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},Dj=class extends J($k,Y){constructor(e){super(e),this.element=new ED,this.specPath=ty([`document`,`objects`,`Discriminator`]),this.canSupportSpecificationExtensions=!1}},Oj=class extends J(dA,Y){constructor(e){super(e),this.element=new Bk,this.specPath=ty([`value`])}},kj=class extends J($k,Y){constructor(e){super(e),this.element=new lk,this.specPath=ty([`document`,`objects`,`XML`]),this.canSupportSpecificationExtensions=!0}},Aj=class extends XA{constructor(e){super(e),this.element=new Dk}},jj=class extends uj{constructor(e){super(e),this.element=new Ok}},Mj=class extends J(dA,Y){constructor(e){super(e),this.element=new hk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Schema`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},Nj=class extends J(dA,Y){constructor(e){super(e),this.element=new gk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Response`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`response`)}),this.element.filter(RA).forEach((e,t)=>{e.setMetaProperty(`http-status-code`,q(t))}),t}},Pj=class extends J(dA,Y){constructor(e){super(e),this.element=new _k,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Parameter`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`parameter`)}),t}},Fj=class extends J(dA,Y){constructor(e){super(e),this.element=new vk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Example`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`example`)}),t}},Ij=class extends J(dA,Y){constructor(e){super(e),this.element=new yk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`RequestBody`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`requestBody`)}),t}},Lj=class extends J(dA,Y){constructor(e){super(e),this.element=new bk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.filter(EA).forEach((e,t)=>{e.setMetaProperty(`header-name`,q(t))}),t}},Rj=class extends J(dA,Y){constructor(e){super(e),this.element=new xk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`SecurityScheme`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`securityScheme`)}),t}},zj=class extends J(dA,Y){constructor(e){super(e),this.element=new Sk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Link`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`link`)}),t}},Bj=class extends J(dA,Y){constructor(e){super(e),this.element=new Ck,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Callback`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`callback`)}),t}},Vj=class extends J($k,Y){constructor(e){super(e),this.element=new OD,this.specPath=ty([`document`,`objects`,`Example`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return WS(this.element.externalValue)&&this.element.classes.push(`reference-element`),t}},Hj=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},Uj=class extends J($k,Y){constructor(e){super(e),this.element=new kD,this.specPath=ty([`document`,`objects`,`ExternalDocumentation`]),this.canSupportSpecificationExtensions=!0}},Wj=class extends J($k,Y){constructor(e){super(e),this.element=new DD,this.specPath=ty([`document`,`objects`,`Encoding`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return JS(this.element.headers)&&this.element.headers.filter(EA).forEach((e,t)=>{e.setMetaProperty(`header-name`,q(t))}),t}},Gj=class extends J(dA,Y){constructor(e){super(e),this.element=new Ik,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.forEach((e,t)=>{if(!EA(e))return;let n=q(t);e.setMetaProperty(`headerName`,n)}),t}},Kj=class extends J(uA,Y){constructor(e){super(e),this.element=new HD,this.specPath=ty([`document`,`objects`,`PathItem`]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=z_}ObjectElement(e){let t=uA.prototype.ObjectElement.call(this,e);return this.element.filter(PA).forEach((e,t)=>{t.classes.push(`openapi-path-template`),t.classes.push(`path-template`),e.setMetaProperty(`path`,K(t))}),t}},qj=class extends J($k,Y){constructor(e){super(e),this.element=new WD,this.specPath=ty([`document`,`objects`,`RequestBody`])}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return JS(this.element.contentProp)&&this.element.contentProp.filter(KA).forEach((e,t)=>{e.setMetaProperty(`media-type`,q(t))}),t}},Jj=class extends uj{constructor(e){super(e),this.element=new Nk}},Yj=class extends J(uA,Y){constructor(e){super(e),this.element=new CD,this.specPath=ty([`document`,`objects`,`PathItem`]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(PA).forEach((e,t)=>{e.setMetaProperty(`runtime-expression`,q(t))}),t}},Xj=class extends J($k,Y){constructor(e){super(e),this.element=new GD,this.specPath=ty([`document`,`objects`,`Response`])}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return JS(this.element.contentProp)&&this.element.contentProp.filter(KA).forEach((e,t)=>{e.setMetaProperty(`media-type`,q(t))}),JS(this.element.headers)&&this.element.headers.filter(EA).forEach((e,t)=>{e.setMetaProperty(`header-name`,q(t))}),t}},Zj=class extends J(dA,Y){constructor(e){super(e),this.element=new Lk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.forEach((e,t)=>{if(!EA(e))return;let n=q(t);e.setMetaProperty(`header-name`,n)}),t}},Qj=class extends uj{constructor(e){super(e),this.element=new Rk}},$j=class extends J(dA,Y){constructor(e){super(e),this.element=new zk,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Link`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`link`)}),t}},eM=class extends J($k,uA){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){let{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;let t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...Ly(e.keys(),t)],$k.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,uA.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return dC}},tM=class extends J(eM,Y){constructor(e){super(e),this.element=new KD,this.specPathFixedFields=ty([`document`,`objects`,`Responses`]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Response`],this.fieldPatternPredicate=e=>RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Mb(100,600).join(`|`)})$`).test(String(e))}ObjectElement(e){let t=eM.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`response`)}),this.element.filter(RA).forEach((e,t)=>{let n=K(t);this.fieldPatternPredicate(q(n))&&e.setMetaProperty(`http-status-code`,n)}),t}},nM=class extends J(yA,Y){constructor(e){super(e),this.alternator=[{predicate:Yk,specPath:[`document`,`objects`,`Reference`]},{predicate:z_,specPath:[`document`,`objects`,`Response`]}]}ObjectElement(e){let t=yA.prototype.enter.call(this,e);return IA(this.element)?this.element.setMetaProperty(`referenced-element`,`response`):RA(this.element)&&this.element.setMetaProperty(`http-status-code`,`default`),t}},rM=class extends J($k,Y){constructor(e){super(e),this.element=new zD,this.specPath=ty([`document`,`objects`,`Operation`])}},iM=class extends Y{constructor(e){super(e),this.element=new kk}ArrayElement(e){return this.element=this.element.concat(K(e)),dC}},aM=class extends J(Jk,Y){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`parameters`)}ArrayElement(e){return e.forEach(e=>{let t=Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Parameter`],n=this.toRefractedElement(t,e);IA(n)&&n.setMetaProperty(`referenced-element`,`parameter`),this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},oM=class extends aM{constructor(e){super(e),this.element=new Ek}},sM=class extends yA{constructor(e){super(e),this.alternator=[{predicate:Yk,specPath:[`document`,`objects`,`Reference`]},{predicate:z_,specPath:[`document`,`objects`,`RequestBody`]}]}ObjectElement(e){let t=yA.prototype.enter.call(this,e);return IA(this.element)&&this.element.setMetaProperty(`referenced-element`,`requestBody`),t}},cM=class extends J(dA,Y){specPath;constructor(e){super(e),this.element=new Ak,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Callback`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(IA).forEach(e=>{e.setMetaProperty(`referenced-element`,`callback`)}),t}},lM=class extends J(Jk,Y){constructor(e){super(e),this.element=new jk}ArrayElement(e){return e.forEach(e=>{let t=JS(e)?[`document`,`objects`,`SecurityRequirement`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},uM=class extends hA{constructor(e){super(e),this.element=new Mk}},dM=class extends J($k,Y){constructor(e){super(e),this.element=new VD,this.specPath=ty([`document`,`objects`,`PathItem`])}ObjectElement(e){let t=$k.prototype.ObjectElement.call(this,e);return this.element.filter(MA).forEach((e,t)=>{let n=K(t);n.content=q(n).toUpperCase(),e.setMetaProperty(`http-method`,n)}),WS(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},fM=class extends Y{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},pM=class extends hA{constructor(e){super(e),this.element=new wk}},mM=class extends aM{constructor(e){super(e),this.element=new Tk}},hM=class extends J($k,Y){constructor(e){super(e),this.element=new ak,this.specPath=ty([`document`,`objects`,`SecurityScheme`]),this.canSupportSpecificationExtensions=!0}},gM=class extends J($k,Y){constructor(e){super(e),this.element=new ID,this.specPath=ty([`document`,`objects`,`OAuthFlows`]),this.canSupportSpecificationExtensions=!0}},_M=class extends J($k,Y){constructor(e){super(e),this.element=new FD,this.specPath=ty([`document`,`objects`,`OAuthFlow`]),this.canSupportSpecificationExtensions=!0}},vM=class extends J(dA,Y){constructor(e){super(e),this.element=new Vk,this.specPath=ty([`value`])}},yM=class extends J(Jk,Y){constructor(e){super(e),this.element=new pk}ArrayElement(e){return e.forEach(e=>{let t=Zk(e)?[`document`,`objects`,`Tag`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),dC}},{fixedFields:bM}=$O.visitors.document.objects.JSONSchema,X={visitors:{value:Y,document:{objects:{OpenApi:{$visitor:eA,fixedFields:{openapi:tA,info:{$ref:`#/visitors/document/objects/Info`},servers:hA,paths:{$ref:`#/visitors/document/objects/Paths`},components:{$ref:`#/visitors/document/objects/Components`},security:ej,tags:yM,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Info:{$visitor:rA,fixedFields:{title:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},termsOfService:{$ref:`#/visitors/value`},contact:{$ref:`#/visitors/document/objects/Contact`},license:{$ref:`#/visitors/document/objects/License`},version:iA}},Contact:{$visitor:aA,fixedFields:{name:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`},email:{$ref:`#/visitors/value`}}},License:{$visitor:oA,fixedFields:{name:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`}}},Server:{$visitor:pA,fixedFields:{url:mA,description:{$ref:`#/visitors/value`},variables:_A}},ServerVariable:{$visitor:gA,fixedFields:{enum:{$ref:`#/visitors/value`},default:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`}}},Components:{$visitor:tj,fixedFields:{schemas:Mj,responses:Nj,parameters:Pj,examples:Fj,requestBodies:Ij,headers:Lj,securitySchemes:Rj,links:zj,callbacks:Bj}},Paths:{$visitor:Kj},PathItem:{$visitor:dM,fixedFields:{$ref:fM,summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},get:{$ref:`#/visitors/document/objects/Operation`},put:{$ref:`#/visitors/document/objects/Operation`},post:{$ref:`#/visitors/document/objects/Operation`},delete:{$ref:`#/visitors/document/objects/Operation`},options:{$ref:`#/visitors/document/objects/Operation`},head:{$ref:`#/visitors/document/objects/Operation`},patch:{$ref:`#/visitors/document/objects/Operation`},trace:{$ref:`#/visitors/document/objects/Operation`},servers:pM,parameters:mM}},Operation:{$visitor:rM,fixedFields:{tags:iM,summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},operationId:{$ref:`#/visitors/value`},parameters:oM,requestBody:sM,responses:{$ref:`#/visitors/document/objects/Responses`},callbacks:cM,deprecated:{$ref:`#/visitors/value`},security:lM,servers:uM}},ExternalDocumentation:{$visitor:Uj,fixedFields:{description:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`}}},Parameter:{$visitor:aj,fixedFields:{name:{$ref:`#/visitors/value`},in:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},required:{$ref:`#/visitors/value`},deprecated:{$ref:`#/visitors/value`},allowEmptyValue:{$ref:`#/visitors/value`},style:{$ref:`#/visitors/value`},explode:{$ref:`#/visitors/value`},allowReserved:{$ref:`#/visitors/value`},schema:oj,example:{$ref:`#/visitors/value`},examples:Aj,content:jj}},RequestBody:{$visitor:qj,fixedFields:{description:{$ref:`#/visitors/value`},content:Jj,required:{$ref:`#/visitors/value`}}},MediaType:{$visitor:vA,fixedFields:{schema:YA,example:{$ref:`#/visitors/value`},examples:ZA,encoding:QA}},Encoding:{$visitor:Wj,fixedFields:{contentType:{$ref:`#/visitors/value`},headers:Gj,style:{$ref:`#/visitors/value`},explode:{$ref:`#/visitors/value`},allowReserved:{$ref:`#/visitors/value`}}},Responses:{$visitor:tM,fixedFields:{default:nM}},Response:{$visitor:Xj,fixedFields:{description:{$ref:`#/visitors/value`},headers:Zj,content:Qj,links:$j}},Callback:{$visitor:Yj},Example:{$visitor:Vj,fixedFields:{summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},value:{$ref:`#/visitors/value`},externalValue:Hj}},Link:{$visitor:sA,fixedFields:{operationRef:cA,operationId:lA,parameters:fA,requestBody:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},server:{$ref:`#/visitors/document/objects/Server`}}},Header:{$visitor:sj,fixedFields:{description:{$ref:`#/visitors/value`},required:{$ref:`#/visitors/value`},deprecated:{$ref:`#/visitors/value`},allowEmptyValue:{$ref:`#/visitors/value`},style:{$ref:`#/visitors/value`},explode:{$ref:`#/visitors/value`},allowReserved:{$ref:`#/visitors/value`},schema:cj,example:{$ref:`#/visitors/value`},examples:lj,content:dj}},Tag:{$visitor:nj,fixedFields:{name:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Reference:{$visitor:rj,fixedFields:{$ref:ij}},JSONSchema:{$ref:`#/visitors/document/objects/Schema`},JSONReference:{$ref:`#/visitors/document/objects/Reference`},Schema:{$visitor:fj,fixedFields:{title:bM.title,multipleOf:bM.multipleOf,maximum:bM.maximum,exclusiveMaximum:bM.exclusiveMaximum,minimum:bM.minimum,exclusiveMinimum:bM.exclusiveMinimum,maxLength:bM.maxLength,minLength:bM.minLength,pattern:bM.pattern,maxItems:bM.maxItems,minItems:bM.minItems,uniqueItems:bM.uniqueItems,maxProperties:bM.maxProperties,minProperties:bM.minProperties,required:bM.required,enum:bM.enum,type:wj,allOf:mj,anyOf:gj,oneOf:vj,not:Ej,items:bj,properties:Sj,additionalProperties:Ej,description:bM.description,format:bM.format,default:bM.default,nullable:{$ref:`#/visitors/value`},discriminator:{$ref:`#/visitors/document/objects/Discriminator`},writeOnly:{$ref:`#/visitors/value`},xml:{$ref:`#/visitors/document/objects/XML`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},example:{$ref:`#/visitors/value`},deprecated:{$ref:`#/visitors/value`}}},Discriminator:{$visitor:Dj,fixedFields:{propertyName:{$ref:`#/visitors/value`},mapping:Oj}},XML:{$visitor:kj,fixedFields:{name:{$ref:`#/visitors/value`},namespace:{$ref:`#/visitors/value`},prefix:{$ref:`#/visitors/value`},attribute:{$ref:`#/visitors/value`},wrapped:{$ref:`#/visitors/value`}}},SecurityScheme:{$visitor:hM,fixedFields:{type:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},name:{$ref:`#/visitors/value`},in:{$ref:`#/visitors/value`},scheme:{$ref:`#/visitors/value`},bearerFormat:{$ref:`#/visitors/value`},flows:{$ref:`#/visitors/document/objects/OAuthFlows`},openIdConnectUrl:{$ref:`#/visitors/value`}}},OAuthFlows:{$visitor:gM,fixedFields:{implicit:{$ref:`#/visitors/document/objects/OAuthFlow`},password:{$ref:`#/visitors/document/objects/OAuthFlow`},clientCredentials:{$ref:`#/visitors/document/objects/OAuthFlow`},authorizationCode:{$ref:`#/visitors/document/objects/OAuthFlow`}}},OAuthFlow:{$visitor:_M,fixedFields:{authorizationUrl:{$ref:`#/visitors/value`},tokenUrl:{$ref:`#/visitors/value`},refreshUrl:{$ref:`#/visitors/value`},scopes:vM}},SecurityRequirement:{$visitor:$A}},extension:{$visitor:nA}}}},xM=()=>{let e=cC(uk);return{predicates:{...bA,isElement:US,isStringElement:WS,isArrayElement:YS,isObjectElement:JS,isMemberElement:XS,includesClasses:aC,hasElementSourceMap:rC},namespace:e}},SM=(e,{specPath:t=[`visitors`,`document`,`objects`,`OpenApi`,`$visitor`],plugins:n=[]}={})=>{let r=(0,W.refract)(e),i=bC(X),a=new(Tb(t,i))({specObj:i});return MC(r,a),PC(a.element,n,{toolboxCreator:xM,visitorOptions:{keyMap:Kk,nodeTypeGetter:Gk}})},CM=e=>(t,n={})=>SM(t,{specPath:e,...n});CD.refract=CM([`visitors`,`document`,`objects`,`Callback`,`$visitor`]),wD.refract=CM([`visitors`,`document`,`objects`,`Components`,`$visitor`]),TD.refract=CM([`visitors`,`document`,`objects`,`Contact`,`$visitor`]),OD.refract=CM([`visitors`,`document`,`objects`,`Example`,`$visitor`]),ED.refract=CM([`visitors`,`document`,`objects`,`Discriminator`,`$visitor`]),DD.refract=CM([`visitors`,`document`,`objects`,`Encoding`,`$visitor`]),kD.refract=CM([`visitors`,`document`,`objects`,`ExternalDocumentation`,`$visitor`]),AD.refract=CM([`visitors`,`document`,`objects`,`Header`,`$visitor`]),jD.refract=CM([`visitors`,`document`,`objects`,`Info`,`$visitor`]),MD.refract=CM([`visitors`,`document`,`objects`,`License`,`$visitor`]),ND.refract=CM([`visitors`,`document`,`objects`,`Link`,`$visitor`]),PD.refract=CM([`visitors`,`document`,`objects`,`MediaType`,`$visitor`]),FD.refract=CM([`visitors`,`document`,`objects`,`OAuthFlow`,`$visitor`]),ID.refract=CM([`visitors`,`document`,`objects`,`OAuthFlows`,`$visitor`]),LD.refract=CM([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`openapi`]),RD.refract=CM([`visitors`,`document`,`objects`,`OpenApi`,`$visitor`]),zD.refract=CM([`visitors`,`document`,`objects`,`Operation`,`$visitor`]),BD.refract=CM([`visitors`,`document`,`objects`,`Parameter`,`$visitor`]),VD.refract=CM([`visitors`,`document`,`objects`,`PathItem`,`$visitor`]),HD.refract=CM([`visitors`,`document`,`objects`,`Paths`,`$visitor`]),UD.refract=CM([`visitors`,`document`,`objects`,`Reference`,`$visitor`]),WD.refract=CM([`visitors`,`document`,`objects`,`RequestBody`,`$visitor`]),GD.refract=CM([`visitors`,`document`,`objects`,`Response`,`$visitor`]),KD.refract=CM([`visitors`,`document`,`objects`,`Responses`,`$visitor`]),rk.refract=CM([`visitors`,`document`,`objects`,`Schema`,`$visitor`]),ik.refract=CM([`visitors`,`document`,`objects`,`SecurityRequirement`,`$visitor`]),ak.refract=CM([`visitors`,`document`,`objects`,`SecurityScheme`,`$visitor`]),ok.refract=CM([`visitors`,`document`,`objects`,`Server`,`$visitor`]),sk.refract=CM([`visitors`,`document`,`objects`,`ServerVariable`,`$visitor`]),ck.refract=CM([`visitors`,`document`,`objects`,`Tag`,`$visitor`]),lk.refract=CM([`visitors`,`document`,`objects`,`XML`,`$visitor`]);var wM=class extends CD{},TM=class extends wD{get pathItems(){return this.get(`pathItems`)}set pathItems(e){this.set(`pathItems`,e)}},EM=class extends TD{},DM=class extends ED{},OM=class extends DD{},kM=class extends OD{},AM=class extends kD{},jM=class extends AD{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},MM=class extends jD{get license(){return this.get(`license`)}set license(e){this.set(`license`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}},NM=class e extends W.StringElement{static default=new e(`https://spec.openapis.org/oas/3.1/dialect/base`);constructor(e,t,n){super(e,t,n),this.element=`jsonSchemaDialect`}},PM=class extends MD{get identifier(){return this.get(`identifier`)}set identifier(e){this.set(`identifier`,e)}},FM=class extends ND{},IM=class extends PD{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},LM=class extends FD{},RM=class extends ID{},zM=class extends LD{},BM=class extends W.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`openApi3_1`,this.classes.push(`api`)}get openapi(){return this.get(`openapi`)}set openapi(e){this.set(`openapi`,e)}get info(){return this.get(`info`)}set info(e){this.set(`info`,e)}get jsonSchemaDialect(){return this.get(`jsonSchemaDialect`)}set jsonSchemaDialect(e){this.set(`jsonSchemaDialect`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get paths(){return this.get(`paths`)}set paths(e){this.set(`paths`,e)}get components(){return this.get(`components`)}set components(e){this.set(`components`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get webhooks(){return this.get(`webhooks`)}set webhooks(e){this.set(`webhooks`,e)}},VM=class extends zD{get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}},HM=class extends BD{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},UM=class extends VD{get GET(){return this.get(`get`)}set GET(e){this.set(`GET`,e)}get PUT(){return this.get(`put`)}set PUT(e){this.set(`PUT`,e)}get POST(){return this.get(`post`)}set POST(e){this.set(`POST`,e)}get DELETE(){return this.get(`delete`)}set DELETE(e){this.set(`DELETE`,e)}get OPTIONS(){return this.get(`options`)}set OPTIONS(e){this.set(`OPTIONS`,e)}get HEAD(){return this.get(`head`)}set HEAD(e){this.set(`HEAD`,e)}get PATCH(){return this.get(`patch`)}set PATCH(e){this.set(`PATCH`,e)}get TRACE(){return this.get(`trace`)}set TRACE(e){this.set(`TRACE`,e)}},WM=class extends HD{},GM=class extends UD{};Object.defineProperty(GM.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0}),Object.defineProperty(GM.prototype,"summary",{get(){return this.get(`summary`)},set(e){this.set(`summary`,e)},enumerable:!0});var KM=class extends WD{},qM=class extends GD{},JM=class extends KD{},YM=class extends qD{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft6`}get idProp(){throw new I_(`id keyword from Core vocabulary has been renamed to $id.`)}set idProp(e){throw new I_(`id keyword from Core vocabulary has been renamed to $id.`)}get $id(){return this.get(`$id`)}set $id(e){this.set(`$id`,e)}get exclusiveMaximum(){return this.get(`exclusiveMaximum`)}set exclusiveMaximum(e){this.set(`exclusiveMaximum`,e)}get exclusiveMinimum(){return this.get(`exclusiveMinimum`)}set exclusiveMinimum(e){this.set(`exclusiveMinimum`,e)}get containsProp(){return this.get(`contains`)}set containsProp(e){this.set(`contains`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get propertyNames(){return this.get(`propertyNames`)}set propertyNames(e){this.set(`propertyNames`,e)}get const(){return this.get(`const`)}set const(e){this.set(`const`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}},XM=class extends XD{get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get schema(){throw new I_(`schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.`)}set schema(e){throw new I_(`schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.`)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}get method(){throw new I_(`method keyword from Hyper-Schema vocabulary has been removed.`)}set method(e){throw new I_(`method keyword from Hyper-Schema vocabulary has been removed.`)}get encType(){throw new I_(`encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.`)}set encType(e){throw new I_(`encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.`)}get submissionEncType(){return this.get(`submissionEncType`)}set submissionEncType(e){this.set(`submissionEncType`,e)}},ZM={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft6`,YM),t.register(`jSONReference`,JD),t.register(`media`,YD),t.register(`linkDescription`,XM),t}},QM={JSONSchemaDraft6Element:[`content`],JSONReferenceElement:[`content`],MediaElement:[`content`],LinkDescriptionElement:[`content`],...AC},$M=class extends jO{constructor(e){super(e),this.element=new YM}get defaultDialectIdentifier(){return`http://json-schema.org/draft-06/schema#`}BooleanElement(e){let t=this.enter(e);return this.element.classes.push(`boolean-json-schema`),t}handleSchemaIdentifier(e,t=`$id`){return super.handleSchemaIdentifier(e,t)}},eN=class extends NO{BooleanElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),dC}},tN=class extends tO{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-examples`),t}},nN=class extends QO{constructor(e){super(e),this.element=new XM}},rN=Dy(U([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],$M),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`id`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$id`],$O.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],$O.visitors.JSONSchemaOrJSONReferenceVisitor),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],eN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],$O.visitors.JSONSchemaOrJSONReferenceVisitor),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`const`],$O.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`examples`],tN),U([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],nN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],$O.visitors.JSONSchemaOrJSONReferenceVisitor),Vy([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`schema`]),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],$O.visitors.JSONSchemaOrJSONReferenceVisitor),Vy([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`method`]),Vy([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`encType`]),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionEncType`],$O.visitors.value))($O),iN=r({isJSONReferenceElement:()=>OO,isJSONSchemaElement:()=>aN,isLinkDescriptionElement:()=>oN,isMediaElement:()=>kO}),aN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof YM||e(r)&&t(`JSONSchemaDraft6`,r)&&n(`object`,r)),oN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof XM||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),sN=()=>{let e=cC(ZM);return{predicates:{...iN,isStringElement:WS},namespace:e}},cN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=rN}={})=>{let i=(0,W.refract)(e),a=bC(r),o=new(Tb(t,a))({specObj:a});return MC(i,o),PC(o.element,n,{toolboxCreator:sN,visitorOptions:{keyMap:QM,nodeTypeGetter:QD}})},lN=e=>(t,n={})=>cN(t,{specPath:e,...n});YM.refract=lN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),XM.refract=lN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var uN=class extends YM{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft7`}get $comment(){return this.get(`$comment`)}set $comment(e){this.set(`$comment`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get if(){return this.get(`if`)}set if(e){this.set(`if`,e)}get then(){return this.get(`then`)}set then(e){this.set(`then`,e)}get else(){return this.get(`else`)}set else(e){this.set(`else`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get contentEncoding(){return this.get(`contentEncoding`)}set contentEncoding(e){this.set(`contentEncoding`,e)}get contentMediaType(){return this.get(`contentMediaType`)}set contentMediaType(e){this.set(`contentMediaType`,e)}get media(){throw new I_(`media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"`)}set media(e){throw new I_(`media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"`)}get writeOnly(){return this.get(`writeOnly`)}set writeOnly(e){this.set(`writeOnly`,e)}},dN=class extends XM{get anchor(){return this.get(`anchor`)}set anchor(e){this.set(`anchor`,e)}get anchorPointer(){return this.get(`anchorPointer`)}set anchorPointer(e){this.set(`anchorPointer`,e)}get templatePointers(){return this.get(`templatePointers`)}set templatePointers(e){this.set(`templatePointers`,e)}get templateRequired(){return this.get(`templateRequired`)}set templateRequired(e){this.set(`templateRequired`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get mediaType(){throw new I_(`mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.`)}set mediaType(e){throw new I_(`mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.`)}get targetMediaType(){return this.get(`targetMediaType`)}set targetMediaType(e){this.set(`targetMediaType`,e)}get targetHints(){return this.get(`targetHints`)}set targetHints(e){this.set(`targetHints`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get $comment(){return this.get(`$comment`)}set $comment(e){this.set(`$comment`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}get submissionEncType(){throw new I_(`submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.`)}set submissionEncType(e){throw new I_(`submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.`)}get submissionMediaType(){return this.get(`submissionMediaType`)}set submissionMediaType(e){this.set(`submissionMediaType`,e)}},fN={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft7`,uN),t.register(`jSONReference`,JD),t.register(`linkDescription`,dN),t}},pN={JSONSchemaDraft7Element:[`content`],JSONReferenceElement:[`content`],LinkDescriptionElement:[`content`],...AC},mN=class extends $M{constructor(e){super(e),this.element=new uN}get defaultDialectIdentifier(){return`http://json-schema.org/draft-07/schema#`}},hN=class extends nN{constructor(e){super(e),this.element=new dN}},gN=Dy(U([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],mN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$comment`],rN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],rN.visitors.JSONSchemaOrJSONReferenceVisitor),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],rN.visitors.JSONSchemaOrJSONReferenceVisitor),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],rN.visitors.JSONSchemaOrJSONReferenceVisitor),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`media`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentEncoding`],rN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentMediaType`],rN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`writeOnly`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],hN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`anchor`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`anchorPointer`],rN.visitors.value),Vy([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`mediaType`]),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetMediaType`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetHints`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`description`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`$comment`],rN.visitors.value),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],rN.visitors.JSONSchemaOrJSONReferenceVisitor),Vy([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionEncType`]),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionMediaType`],rN.visitors.value))(rN),_N=r({isJSONReferenceElement:()=>OO,isJSONSchemaElement:()=>vN,isLinkDescriptionElement:()=>yN}),vN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof uN||e(r)&&t(`JSONSchemaDraft7`,r)&&n(`object`,r)),yN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof dN||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),bN=()=>{let e=cC(fN);return{predicates:{..._N,isStringElement:WS},namespace:e}},xN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=gN}={})=>{let i=(0,W.refract)(e),a=bC(r),o=new(Tb(t,a))({specObj:a});return MC(i,o),PC(o.element,n,{toolboxCreator:bN,visitorOptions:{keyMap:pN,nodeTypeGetter:QD}})},SN=e=>(t,n={})=>xN(t,{specPath:e,...n});uN.refract=SN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),dN.refract=SN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var CN=class extends uN{constructor(e,t,n){super(e,t,n),this.element=`JSONSchema201909`}get $vocabulary(){return this.get(`$vocabulary`)}set $vocabulary(e){this.set(`$vocabulary`,e)}get $anchor(){return this.get(`$anchor`)}set $anchor(e){this.set(`$anchor`,e)}get $recursiveAnchor(){return this.get(`$recursiveAnchor`)}set $recursiveAnchor(e){this.set(`$recursiveAnchor`,e)}get $recursiveRef(){return this.get(`$recursiveRef`)}set $recursiveRef(e){this.set(`$recursiveRef`,e)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}get $defs(){return this.get(`$defs`)}set $defs(e){this.set(`$defs`,e)}get definitions(){throw new I_(`definitions keyword from Validation vocabulary has been renamed to $defs.`)}set definitions(e){throw new I_(`definitions keyword from Validation vocabulary has been renamed to $defs.`)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get if(){return this.get(`if`)}set if(e){this.set(`if`,e)}get then(){return this.get(`then`)}set then(e){this.set(`then`,e)}get else(){return this.get(`else`)}set else(e){this.set(`else`,e)}get dependentSchemas(){return this.get(`dependentSchemas`)}set dependentSchemas(e){this.set(`dependentSchemas`,e)}get dependencies(){throw new I_(`dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.`)}set dependencies(e){throw new I_(`dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.`)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get containsProp(){return this.get(`contains`)}set containsProp(e){this.set(`contains`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get propertyNames(){return this.get(`propertyNames`)}set propertyNames(e){this.set(`propertyNames`,e)}get unevaluatedItems(){return this.get(`unevaluatedItems`)}set unevaluatedItems(e){this.set(`unevaluatedItems`,e)}get unevaluatedProperties(){return this.get(`unevaluatedProperties`)}set unevaluatedProperties(e){this.set(`unevaluatedProperties`,e)}get maxContains(){return this.get(`maxContains`)}set maxContains(e){this.set(`maxContains`,e)}get minContains(){return this.get(`minContains`)}set minContains(e){this.set(`minContains`,e)}get dependentRequired(){return this.get(`dependentRequired`)}set dependentRequired(e){this.set(`dependentRequired`,e)}get deprecated(){return this.get(`deprecated`)}set deprecated(e){this.set(`deprecated`,e)}get contentSchema(){return this.get(`contentSchema`)}set contentSchema(e){this.set(`contentSchema`,e)}},wN=class extends dN{get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}},TN={namespace:e=>{let{base:t}=e;return t.register(`jSONSchema201909`,CN),t.register(`linkDescription`,wN),t}},EN={JSONSchema201909Element:[`content`],LinkDescriptionElement:[`content`],...AC},DN=class extends mN{constructor(e){super(e),this.element=new CN}get defaultDialectIdentifier(){return`https://json-schema.org/draft/2019-09/schema`}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;let t=wO.prototype.ObjectElement.call(this,e);return WS(this.element.$ref)&&(this.element.classes.push(`reference-element`),this.element.setMetaProperty(`referenced-element`,`schema`)),t}},ON=class extends tO{ObjectElement(e){let t=super.enter(e);return this.element.classes.push(`json-schema-$vocabulary`),t}},kN=class extends tO{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},AN=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-$defs`),this.specPath=ty([`document`,`objects`,`JSONSchema`])}},jN=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-allOf`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}},MN=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-anyOf`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}},NN=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-oneOf`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}},PN=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-dependentSchemas`),this.specPath=ty([`document`,`objects`,`JSONSchema`])}},FN=class extends J(CO,TO,tO){ObjectElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),dC}ArrayElement(e){return this.element=new W.ArrayElement,this.element.classes.push(`json-schema-items`),e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}BooleanElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),dC}},IN=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-properties`),this.specPath=ty([`document`,`objects`,`JSONSchema`])}},LN=class extends J(IO,TO,tO){constructor(e){super(e),this.element=new W.ObjectElement,this.element.classes.push(`json-schema-patternProperties`),this.specPath=ty([`document`,`objects`,`JSONSchema`])}},RN=class extends tO{ObjectElement(e){let t=super.enter(e);return this.element.classes.push(`json-schema-dependentRequired`),t}},zN=class extends hN{constructor(e){super(e),this.element=new wN}},BN=Dy(U([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$vocabulary`],ON),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$anchor`],gN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveAnchor`],gN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveRef`],gN.visitors.value),Vy([`visitors`,`document`,`objects`,`JSONReference`,`$visitor`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$ref`],kN),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`definitions`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$defs`],AN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`allOf`],jN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`anyOf`],MN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`oneOf`],NN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`not`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],DN),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependencies`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependentSchemas`],PN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],FN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`properties`],IN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`patternProperties`],LN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalProperties`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalItems`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedItems`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedProperties`],DN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`maxContains`],gN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`minContains`],gN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependentRequired`],RN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`deprecated`],gN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentSchema`],DN),U([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],zN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetSchema`],DN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],DN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],DN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],DN))(gN),VN=r({isJSONSchemaElement:()=>HN,isLinkDescriptionElement:()=>UN}),HN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof CN||e(r)&&t(`JSONSchema201909`,r)&&n(`object`,r)),UN=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wN||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),WN=()=>{let e=cC(TN);return{predicates:{...VN,isStringElement:WS},namespace:e}},GN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=BN}={})=>{let i=(0,W.refract)(e),a=bC(r),o=new(Tb(t,a))({specObj:a});return MC(i,o),PC(o.element,n,{toolboxCreator:WN,visitorOptions:{keyMap:EN,nodeTypeGetter:QD}})},KN=e=>(t,n={})=>GN(t,{specPath:e,...n});CN.refract=KN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),wN.refract=KN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var qN=class extends CN{constructor(e,t,n){super(e,t,n),this.element=`JSONSchema202012`}get $dynamicAnchor(){return this.get(`$dynamicAnchor`)}set $dynamicAnchor(e){this.set(`$dynamicAnchor`,e)}get $recursiveAnchor(){throw new I_(`$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.`)}set $recursiveAnchor(e){throw new I_(`$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.`)}get $dynamicRef(){return this.get(`$dynamicRef`)}set $dynamicRef(e){this.set(`$dynamicRef`,e)}get $recursiveRef(){throw new I_(`$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.`)}set $recursiveRef(e){throw new I_(`$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.`)}get prefixItems(){return this.get(`prefixItems`)}set prefixItems(e){this.set(`prefixItems`,e)}},JN=class extends wN{get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}},YN={namespace:e=>{let{base:t}=e;return t.register(`jSONSchema202012`,qN),t.register(`linkDescription`,JN),t}},XN={JSONSchema202012Element:[`content`],LinkDescriptionElement:[`content`],...AC},ZN=class extends DN{constructor(e){super(e),this.element=new qN}get defaultDialectIdentifier(){return`https://json-schema.org/draft/2020-12/schema`}},QN=class extends J(CO,TO,tO){constructor(e){super(e),this.element=new W.ArrayElement,this.element.classes.push(`json-schema-prefixItems`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),dC}},$N=class extends zN{constructor(e){super(e),this.element=new JN}},eP=Dy(U([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],ZN),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveAnchor`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$dynamicAnchor`],BN.visitors.value),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveRef`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$dynamicRef`],BN.visitors.value),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`not`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`prefixItems`],QN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalProperties`],ZN),Vy([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalItems`]),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedItems`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedProperties`],ZN),U([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentSchema`],ZN),U([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],$N),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetSchema`],ZN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],ZN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],ZN),U([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],ZN))(BN),tP=r({isJSONSchemaElement:()=>nP,isLinkDescriptionElement:()=>rP}),nP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qN||e(r)&&t(`JSONSchema202012`,r)&&n(`object`,r)),rP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JN||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),iP=()=>{let e=cC(YN);return{predicates:{...tP,isStringElement:WS},namespace:e}},aP=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=eP}={})=>{let i=(0,W.refract)(e),a=bC(r),o=new(Tb(t,a))({specObj:a});return MC(i,o),PC(o.element,n,{toolboxCreator:iP,visitorOptions:{keyMap:XN,nodeTypeGetter:QD}})},oP=e=>(t,n={})=>aP(t,{specPath:e,...n});qN.refract=oP([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),JN.refract=oP([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var sP=class extends qN{constructor(e,t,n){super(e,t,n),this.element=`schema`}get discriminator(){return this.get(`discriminator`)}set discriminator(e){this.set(`discriminator`,e)}get xml(){return this.get(`xml`)}set xml(e){this.set(`xml`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}},cP=class extends ik{},lP=class extends ak{},uP=class extends ok{},dP=class extends sk{},fP=class extends ck{},pP=class extends lk{},mP={namespace:e=>{let{base:t}=e;return t.register(`callback`,wM),t.register(`components`,TM),t.register(`contact`,EM),t.register(`discriminator`,DM),t.register(`encoding`,OM),t.register(`example`,kM),t.register(`externalDocumentation`,AM),t.register(`header`,jM),t.register(`info`,MM),t.register(`jsonSchemaDialect`,NM),t.register(`license`,PM),t.register(`link`,FM),t.register(`mediaType`,IM),t.register(`oAuthFlow`,LM),t.register(`oAuthFlows`,RM),t.register(`openapi`,zM),t.register(`openApi3_1`,BM),t.register(`operation`,VM),t.register(`parameter`,HM),t.register(`pathItem`,UM),t.register(`paths`,WM),t.register(`reference`,GM),t.register(`requestBody`,KM),t.register(`response`,qM),t.register(`responses`,JM),t.register(`schema`,sP),t.register(`securityRequirement`,cP),t.register(`securityScheme`,lP),t.register(`server`,uP),t.register(`serverVariable`,dP),t.register(`tag`,fP),t.register(`xml`,pP),t}},hP=class e extends W.ObjectElement{static primaryClass=`components-path-items`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},gP=class e extends W.ObjectElement{static primaryClass=`webhooks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},_P=e=>{if(US(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},vP={CallbackElement:[`content`],ComponentsElement:[`content`],ContactElement:[`content`],DiscriminatorElement:[`content`],Encoding:[`content`],Example:[`content`],ExternalDocumentationElement:[`content`],HeaderElement:[`content`],InfoElement:[`content`],LicenseElement:[`content`],MediaTypeElement:[`content`],OAuthFlowElement:[`content`],OAuthFlowsElement:[`content`],OpenApi3_1Element:[`content`],OperationElement:[`content`],ParameterElement:[`content`],PathItemElement:[`content`],PathsElement:[`content`],ReferenceElement:[`content`],RequestBodyElement:[`content`],ResponseElement:[`content`],ResponsesElement:[`content`],SchemaElement:[`content`],SecurityRequirementElement:[`content`],SecuritySchemeElement:[`content`],ServerElement:[`content`],ServerVariableElement:[`content`],TagElement:[`content`],...AC},yP=class{internalStore;constructor(e,t,n){this.storageElement=e,this.storageField=t,this.storageSubField=n}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);JS(e)||(e=new W.ObjectElement,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);YS(t)||(t=new W.ArrayElement,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},bP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i=(e,t)=>!n.isParameterElement(e)||!n.isParameterElement(t)||!n.isStringElement(e.name)||!n.isStringElement(e.in)||!n.isStringElement(t.name)||!n.isStringElement(t.in)?!1:q(e.name)===q(t.name)&&q(e.in)===q(t.in),a=[],o;return{visitor:{OpenApi3_1Element:{enter(t){o=new yP(t,e,`parameters`)},leave(){o=void 0}},PathItemElement:{enter(e,t,r,i,o){if(o.some(n.isComponentsElement))return;let{parameters:s}=e;n.isArrayElement(s)?a.push([...s.content]):a.push([])},leave(){a.pop()}},OperationElement:{leave(e,t,n,s,c){let l=Yy(a);if(!Array.isArray(l)||l.length===0)return;let u=r([...c,n,e]);if(o.includes(u))return;let d=Eb([],[`parameters`,`content`],e);e.parameters=new Ek(Bb(i,[...d,...l])),o.append(u)}}}}},xP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i,a;return{visitor:{OpenApi3_1Element:{enter(t){a=new yP(t,e,`security-requirements`),n.isArrayElement(t.security)&&(i=t.security)},leave(){a=void 0,i=void 0}},OperationElement:{leave(e,t,o,s,c){if(c.some(n.isComponentsElement))return;let l=r([...c,o,e]);!a.includes(l)&&e.security===void 0&&i!==void 0&&(e.security=new jk(i?.content),a.append(l))}}}}},SP=e=>e.replace(/\s/g,``),CP=e=>e.replace(/\W/gi,`_`),wP=(e,t)=>`${CP(SP(t.toLowerCase()))}${CP(SP(e))}`,TP=(e,t,n)=>{let r=SP(e);return r.length>0?CP(r):wP(t,n)},EP=({storageField:e=`x-normalized`,operationIdNormalizer:t=TP}={})=>n=>{let{predicates:r,ancestorLineageToJSONPointer:i,namespace:a}=n,o=[],s=[],c=[],l;return{visitor:{OpenApi3_1Element:{enter(t){l=new yP(t,e,`operation-ids`)},leave(){let e=ib(e=>q(e.operationId),s);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,n)=>{let r=`${e}${n+1}`;t.operationId=new a.elements.String(r)}))}),c.forEach(e=>{if(e.operationId===void 0)return;let t=String(q(e.operationId)),n=s.find(e=>q(e.meta.get(`originalOperationId`))===t);n!==void 0&&(e.operationId=K.safe(n.operationId),e.meta.set(`originalOperationId`,t),e.set(`__originalOperationId`,t))}),s.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){let t=Py(`path`,q(e.meta.get(`path`)));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,n,r,c,u){if(e.operationId===void 0)return;let d=i([...u,r,e]);if(l.includes(d))return;let f=String(q(e.operationId)),p=t(f,Yy(o),Py(`method`,q(e.meta.get(`http-method`))));f!==p&&(e.operationId=new a.elements.String(p),e.set(`__originalOperationId`,f),e.meta.set(`originalOperationId`,f),s.push(e),l.append(d))}},LinkElement:{leave(e){r.isLinkElement(e)&&e.operationId!==void 0&&c.push(e)}}}}},DP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new yP(t,e,`parameter-examples`)},leave(){i=void 0}},ParameterElement:{leave(e,t,a,o,s){if(s.some(n.isComponentsElement)||e.schema===void 0||!n.isSchemaElement(e.schema)||e.schema?.example===void 0&&e.schema?.examples===void 0)return;let c=r([...s,a,e]);if(!i.includes(c)){if(e.examples!==void 0&&n.isObjectElement(e.examples)){let t=e.examples.map(e=>K.safe(e.value));e.schema.examples!==void 0&&(e.schema.set(`examples`,t),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,t[0]),i.append(c));return}e.example!==void 0&&(e.schema.examples!==void 0&&(e.schema.set(`examples`,[K(e.example)]),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,K(e.example)),i.append(c)))}}}}}},OP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new yP(t,e,`header-examples`)},leave(){i=void 0}},HeaderElement:{leave(e,t,a,o,s){if(s.some(n.isComponentsElement)||e.schema===void 0||!n.isSchemaElement(e.schema)||e.schema?.example===void 0&&e.schema?.examples===void 0)return;let c=r([...s,a,e]);if(!i.includes(c)){if(e.examples!==void 0&&n.isObjectElement(e.examples)){let t=e.examples.map(e=>K.safe(e.value));e.schema.examples!==void 0&&(e.schema.set(`examples`,t),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,t[0]),i.append(c));return}e.example!==void 0&&(e.schema.examples!==void 0&&(e.schema.set(`examples`,[K(e.example)]),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,K(e.example)),i.append(c)))}}}}}},kP=r({isBooleanJsonSchemaElement:()=>$P,isCallbackElement:()=>AP,isComponentsElement:()=>jP,isContactElement:()=>MP,isExampleElement:()=>NP,isExternalDocumentationElement:()=>PP,isHeaderElement:()=>FP,isInfoElement:()=>IP,isJsonSchemaDialectElement:()=>LP,isLicenseElement:()=>RP,isLinkElement:()=>zP,isMediaTypeElement:()=>iF,isOpenApi3_1Element:()=>VP,isOpenapiElement:()=>BP,isOperationElement:()=>HP,isParameterElement:()=>UP,isPathItemElement:()=>WP,isPathItemElementExternal:()=>GP,isPathsElement:()=>KP,isReferenceElement:()=>qP,isReferenceElementExternal:()=>JP,isRequestBodyElement:()=>YP,isResponseElement:()=>XP,isResponsesElement:()=>ZP,isSchemaElement:()=>QP,isSecurityRequirementElement:()=>eF,isSecuritySchemeElement:()=>tF,isServerElement:()=>nF,isServerVariableElement:()=>rF}),AP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wM||e(r)&&t(`callback`,r)&&n(`object`,r)),jP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof TM||e(r)&&t(`components`,r)&&n(`object`,r)),MP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof EM||e(r)&&t(`contact`,r)&&n(`object`,r)),NP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof kM||e(r)&&t(`example`,r)&&n(`object`,r)),PP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof AM||e(r)&&t(`externalDocumentation`,r)&&n(`object`,r)),FP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof jM||e(r)&&t(`header`,r)&&n(`object`,r)),IP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MM||e(r)&&t(`info`,r)&&n(`object`,r)),LP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof NM||e(r)&&t(`jsonSchemaDialect`,r)&&n(`string`,r)),RP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PM||e(r)&&t(`license`,r)&&n(`object`,r)),zP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof FM||e(r)&&t(`link`,r)&&n(`object`,r)),BP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zM||e(r)&&t(`openapi`,r)&&n(`string`,r)),VP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof BM||e(i)&&t(`openApi3_1`,i)&&n(`object`,i)&&r(`api`,i)),HP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof VM||e(r)&&t(`operation`,r)&&n(`object`,r)),UP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof HM||e(r)&&t(`parameter`,r)&&n(`object`,r)),WP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof UM||e(r)&&t(`pathItem`,r)&&n(`object`,r)),GP=e=>{if(!WP(e)||!WS(e.$ref))return!1;let t=q(e.$ref);return typeof t==`string`&&t.length>0&&!t.startsWith(`#`)},KP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof WM||e(r)&&t(`paths`,r)&&n(`object`,r)),qP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof GM||e(r)&&t(`reference`,r)&&n(`object`,r)),JP=e=>{if(!qP(e)||!WS(e.$ref))return!1;let t=q(e.$ref);return typeof t==`string`&&t.length>0&&!t.startsWith(`#`)},YP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof KM||e(r)&&t(`requestBody`,r)&&n(`object`,r)),XP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qM||e(r)&&t(`response`,r)&&n(`object`,r)),ZP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JM||e(r)&&t(`responses`,r)&&n(`object`,r)),QP=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sP||e(r)&&t(`schema`,r)&&n(`object`,r)),$P=e=>qS(e)&&e.classes.includes(`boolean-json-schema`),eF=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof cP||e(r)&&t(`securityRequirement`,r)&&n(`object`,r)),tF=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lP||e(r)&&t(`securityScheme`,r)&&n(`object`,r)),nF=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof uP||e(r)&&t(`server`,r)&&n(`object`,r)),rF=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof dP||e(r)&&t(`serverVariable`,r)&&n(`object`,r)),iF=G(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof IM||e(r)&&t(`mediaType`,r)&&n(`object`,r)),aF=e=>uD(e.reduce((t,n,r)=>{if(XS(n)){let e=String(q(n.key));t.push(e)}else if(YS(e[r-2])){let i=String(e[r-2].content.indexOf(n));t.push(i)}return t},[])),oF=()=>{let e=cC(mP);return{predicates:{...kP,isElement:US,isStringElement:WS,isArrayElement:YS,isObjectElement:JS,isMemberElement:XS,isServersElement:qA,includesClasses:aC,hasElementSourceMap:rC},ancestorLineageToJSONPointer:aF,namespace:e}},sF=class extends J($k,Y){constructor(e){super(e),this.element=new BM,this.specPath=ty([`document`,`objects`,`OpenApi`]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,$k.prototype.ObjectElement.call(this,e)}},cF=X.visitors.document.objects.Info.$visitor,lF=class extends cF{constructor(e){super(e),this.element=new MM}},uF=X.visitors.document.objects.Contact.$visitor,dF=class extends uF{constructor(e){super(e),this.element=new EM}},fF=X.visitors.document.objects.License.$visitor,pF=class extends fF{constructor(e){super(e),this.element=new PM}},mF=X.visitors.document.objects.Link.$visitor,hF=class extends mF{constructor(e){super(e),this.element=new FM}},gF=class extends J(Jk,Y){StringElement(e){let t=new NM(q(e));return this.copyMetaAndAttributes(e,t),this.element=t,dC}},_F=X.visitors.document.objects.Server.$visitor,vF=class extends _F{constructor(e){super(e),this.element=new uP}},yF=X.visitors.document.objects.ServerVariable.$visitor,bF=class extends yF{constructor(e){super(e),this.element=new dP}},xF=X.visitors.document.objects.MediaType.$visitor,SF=class extends xF{constructor(e){super(e),this.element=new IM}},CF=X.visitors.document.objects.SecurityRequirement.$visitor,wF=class extends CF{constructor(e){super(e),this.element=new cP}},TF=X.visitors.document.objects.Components.$visitor,EF=class extends TF{constructor(e){super(e),this.element=new TM}},DF=X.visitors.document.objects.Tag.$visitor,OF=class extends DF{constructor(e){super(e),this.element=new fP}},kF=X.visitors.document.objects.Reference.$visitor,AF=class extends kF{constructor(e){super(e),this.element=new GM}},jF=X.visitors.document.objects.Parameter.$visitor,MF=class extends jF{constructor(e){super(e),this.element=new HM}},NF=X.visitors.document.objects.Header.$visitor,PF=class extends NF{constructor(e){super(e),this.element=new jM}},FF=class extends J($k,TO,Y){constructor(e){super(e),this.element=new sP,this.specPath=ty([`document`,`objects`,`Schema`]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=NM.default,this.passingOptionsNames.push(`parent`)}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;let t=$k.prototype.ObjectElement.call(this,e);return WS(this.element.$ref)&&(this.element.classes.push(`reference-element`),this.element.setMetaProperty(`referenced-element`,`schema`)),t}BooleanElement(e){return ZN.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=this.openApiSemanticElement!==void 0&&LP(this.openApiSemanticElement.jsonSchemaDialect)?q(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&WS(this.openApiGenericElement.get(`jsonSchemaDialect`))?q(this.openApiGenericElement.get(`jsonSchemaDialect`)):q(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return ZN.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return ZN.prototype.handleSchemaIdentifier.call(this,e)}},IF=class extends AN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},LF=class extends jN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},RF=class extends MN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},zF=class extends NN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},BF=class extends PN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},VF=class extends QN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},HF=class extends IN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},UF=class extends LN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},WF=X.visitors.document.objects.Discriminator.$visitor,GF=class extends WF{constructor(e){super(e),this.element=new DM,this.canSupportSpecificationExtensions=!0}},KF=X.visitors.document.objects.XML.$visitor,qF=class extends KF{constructor(e){super(e),this.element=new pP}},JF=class extends J(dA,Y){constructor(e){super(e),this.element=new hk,this.specPath=ty([`document`,`objects`,`Schema`])}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(QP).forEach((e,t)=>{e.setMetaProperty(`schemaName`,q(t))}),t}},YF=class extends J(dA,Y){constructor(e){super(e),this.element=new hP,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(qP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),t}},XF=X.visitors.document.objects.Example.$visitor,ZF=class extends XF{constructor(e){super(e),this.element=new kM}},QF=X.visitors.document.objects.ExternalDocumentation.$visitor,$F=class extends QF{constructor(e){super(e),this.element=new AM}},eI=X.visitors.document.objects.Encoding.$visitor,tI=class extends eI{constructor(e){super(e),this.element=new OM}},nI=X.visitors.document.objects.Paths.$visitor,rI=class extends nI{constructor(e){super(e),this.element=new WM}},iI=X.visitors.document.objects.RequestBody.$visitor,aI=class extends iI{constructor(e){super(e),this.element=new KM}},oI=X.visitors.document.objects.Callback.$visitor,sI=class extends oI{constructor(e){super(e),this.element=new wM,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=oI.prototype.ObjectElement.call(this,e);return this.element.filter(qP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),t}},cI=X.visitors.document.objects.Response.$visitor,lI=class extends cI{constructor(e){super(e),this.element=new qM}},uI=X.visitors.document.objects.Responses.$visitor,dI=class extends uI{constructor(e){super(e),this.element=new JM}},fI=X.visitors.document.objects.Operation.$visitor,pI=class extends fI{constructor(e){super(e),this.element=new VM}},mI=X.visitors.document.objects.PathItem.$visitor,hI=class extends mI{constructor(e){super(e),this.element=new UM}},gI=X.visitors.document.objects.SecurityScheme.$visitor,_I=class extends gI{constructor(e){super(e),this.element=new lP}},vI=X.visitors.document.objects.OAuthFlows.$visitor,yI=class extends vI{constructor(e){super(e),this.element=new RM}},bI=X.visitors.document.objects.OAuthFlow.$visitor,xI=class extends bI{constructor(e){super(e),this.element=new LM}},SI=class extends J(dA,Y){constructor(e){super(e),this.element=new gP,this.specPath=e=>Yk(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=dA.prototype.ObjectElement.call(this,e);return this.element.filter(qP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),this.element.filter(WP).forEach((e,t)=>{e.setMetaProperty(`webhook-name`,q(t))}),t}},{JSONSchema:CI,LinkDescription:wI}=eP.visitors.document.objects,TI={visitors:{value:X.visitors.value,document:{objects:{OpenApi:{$visitor:sF,fixedFields:{openapi:X.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:`#/visitors/document/objects/Info`},jsonSchemaDialect:gF,servers:X.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:`#/visitors/document/objects/Paths`},webhooks:SI,components:{$ref:`#/visitors/document/objects/Components`},security:X.visitors.document.objects.OpenApi.fixedFields.security,tags:X.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Info:{$visitor:lF,fixedFields:{title:X.visitors.document.objects.Info.fixedFields.title,description:X.visitors.document.objects.Info.fixedFields.description,summary:{$ref:`#/visitors/value`},termsOfService:X.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:`#/visitors/document/objects/Contact`},license:{$ref:`#/visitors/document/objects/License`},version:X.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:dF,fixedFields:{name:X.visitors.document.objects.Contact.fixedFields.name,url:X.visitors.document.objects.Contact.fixedFields.url,email:X.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:pF,fixedFields:{name:X.visitors.document.objects.License.fixedFields.name,identifier:{$ref:`#/visitors/value`},url:X.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:vF,fixedFields:{url:X.visitors.document.objects.Server.fixedFields.url,description:X.visitors.document.objects.Server.fixedFields.description,variables:X.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:bF,fixedFields:{enum:X.visitors.document.objects.ServerVariable.fixedFields.enum,default:X.visitors.document.objects.ServerVariable.fixedFields.default,description:X.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:EF,fixedFields:{schemas:JF,responses:X.visitors.document.objects.Components.fixedFields.responses,parameters:X.visitors.document.objects.Components.fixedFields.parameters,examples:X.visitors.document.objects.Components.fixedFields.examples,requestBodies:X.visitors.document.objects.Components.fixedFields.requestBodies,headers:X.visitors.document.objects.Components.fixedFields.headers,securitySchemes:X.visitors.document.objects.Components.fixedFields.securitySchemes,links:X.visitors.document.objects.Components.fixedFields.links,callbacks:X.visitors.document.objects.Components.fixedFields.callbacks,pathItems:YF}},Paths:{$visitor:rI},PathItem:{$visitor:hI,fixedFields:{$ref:X.visitors.document.objects.PathItem.fixedFields.$ref,summary:X.visitors.document.objects.PathItem.fixedFields.summary,description:X.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:`#/visitors/document/objects/Operation`},put:{$ref:`#/visitors/document/objects/Operation`},post:{$ref:`#/visitors/document/objects/Operation`},delete:{$ref:`#/visitors/document/objects/Operation`},options:{$ref:`#/visitors/document/objects/Operation`},head:{$ref:`#/visitors/document/objects/Operation`},patch:{$ref:`#/visitors/document/objects/Operation`},trace:{$ref:`#/visitors/document/objects/Operation`},servers:X.visitors.document.objects.PathItem.fixedFields.servers,parameters:X.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:pI,fixedFields:{tags:X.visitors.document.objects.Operation.fixedFields.tags,summary:X.visitors.document.objects.Operation.fixedFields.summary,description:X.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},operationId:X.visitors.document.objects.Operation.fixedFields.operationId,parameters:X.visitors.document.objects.Operation.fixedFields.parameters,requestBody:X.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:`#/visitors/document/objects/Responses`},callbacks:X.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:X.visitors.document.objects.Operation.fixedFields.deprecated,security:X.visitors.document.objects.Operation.fixedFields.security,servers:X.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:$F,fixedFields:{description:X.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:X.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:MF,fixedFields:{name:X.visitors.document.objects.Parameter.fixedFields.name,in:X.visitors.document.objects.Parameter.fixedFields.in,description:X.visitors.document.objects.Parameter.fixedFields.description,required:X.visitors.document.objects.Parameter.fixedFields.required,deprecated:X.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:X.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:X.visitors.document.objects.Parameter.fixedFields.style,explode:X.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:X.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:`#/visitors/document/objects/Schema`},example:X.visitors.document.objects.Parameter.fixedFields.example,examples:X.visitors.document.objects.Parameter.fixedFields.examples,content:X.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:aI,fixedFields:{description:X.visitors.document.objects.RequestBody.fixedFields.description,content:X.visitors.document.objects.RequestBody.fixedFields.content,required:X.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:SF,fixedFields:{schema:{$ref:`#/visitors/document/objects/Schema`},example:X.visitors.document.objects.MediaType.fixedFields.example,examples:X.visitors.document.objects.MediaType.fixedFields.examples,encoding:X.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:tI,fixedFields:{contentType:X.visitors.document.objects.Encoding.fixedFields.contentType,headers:X.visitors.document.objects.Encoding.fixedFields.headers,style:X.visitors.document.objects.Encoding.fixedFields.style,explode:X.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:X.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:dI,fixedFields:{default:X.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:lI,fixedFields:{description:X.visitors.document.objects.Response.fixedFields.description,headers:X.visitors.document.objects.Response.fixedFields.headers,content:X.visitors.document.objects.Response.fixedFields.content,links:X.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:sI},Example:{$visitor:ZF,fixedFields:{summary:X.visitors.document.objects.Example.fixedFields.summary,description:X.visitors.document.objects.Example.fixedFields.description,value:X.visitors.document.objects.Example.fixedFields.value,externalValue:X.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:hF,fixedFields:{operationRef:X.visitors.document.objects.Link.fixedFields.operationRef,operationId:X.visitors.document.objects.Link.fixedFields.operationId,parameters:X.visitors.document.objects.Link.fixedFields.parameters,requestBody:X.visitors.document.objects.Link.fixedFields.requestBody,description:X.visitors.document.objects.Link.fixedFields.description,server:{$ref:`#/visitors/document/objects/Server`}}},Header:{$visitor:PF,fixedFields:{description:X.visitors.document.objects.Header.fixedFields.description,required:X.visitors.document.objects.Header.fixedFields.required,deprecated:X.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:X.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:X.visitors.document.objects.Header.fixedFields.style,explode:X.visitors.document.objects.Header.fixedFields.explode,allowReserved:X.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:`#/visitors/document/objects/Schema`},example:X.visitors.document.objects.Header.fixedFields.example,examples:X.visitors.document.objects.Header.fixedFields.examples,content:X.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:OF,fixedFields:{name:X.visitors.document.objects.Tag.fixedFields.name,description:X.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Reference:{$visitor:AF,fixedFields:{$ref:X.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`}}},JSONSchema:{$ref:`#/visitors/document/objects/Schema`},LinkDescription:{...wI},Schema:{$visitor:FF,fixedFields:{...CI.fixedFields,$defs:IF,allOf:LF,anyOf:RF,oneOf:zF,not:{$ref:`#/visitors/document/objects/Schema`},if:{$ref:`#/visitors/document/objects/Schema`},then:{$ref:`#/visitors/document/objects/Schema`},else:{$ref:`#/visitors/document/objects/Schema`},dependentSchemas:BF,prefixItems:VF,items:{$ref:`#/visitors/document/objects/Schema`},contains:{$ref:`#/visitors/document/objects/Schema`},properties:HF,patternProperties:UF,additionalProperties:{$ref:`#/visitors/document/objects/Schema`},propertyNames:{$ref:`#/visitors/document/objects/Schema`},unevaluatedItems:{$ref:`#/visitors/document/objects/Schema`},unevaluatedProperties:{$ref:`#/visitors/document/objects/Schema`},contentSchema:{$ref:`#/visitors/document/objects/Schema`},discriminator:{$ref:`#/visitors/document/objects/Discriminator`},xml:{$ref:`#/visitors/document/objects/XML`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},example:{$ref:`#/visitors/value`}}},Discriminator:{$visitor:GF,fixedFields:{propertyName:X.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:X.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:qF,fixedFields:{name:X.visitors.document.objects.XML.fixedFields.name,namespace:X.visitors.document.objects.XML.fixedFields.namespace,prefix:X.visitors.document.objects.XML.fixedFields.prefix,attribute:X.visitors.document.objects.XML.fixedFields.attribute,wrapped:X.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:_I,fixedFields:{type:X.visitors.document.objects.SecurityScheme.fixedFields.type,description:X.visitors.document.objects.SecurityScheme.fixedFields.description,name:X.visitors.document.objects.SecurityScheme.fixedFields.name,in:X.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:X.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:X.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:`#/visitors/document/objects/OAuthFlows`},openIdConnectUrl:X.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:yI,fixedFields:{implicit:{$ref:`#/visitors/document/objects/OAuthFlow`},password:{$ref:`#/visitors/document/objects/OAuthFlow`},clientCredentials:{$ref:`#/visitors/document/objects/OAuthFlow`},authorizationCode:{$ref:`#/visitors/document/objects/OAuthFlow`}}},OAuthFlow:{$visitor:xI,fixedFields:{authorizationUrl:X.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:X.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:X.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:X.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:wF}},extension:{$visitor:X.visitors.document.extension.$visitor}}}},EI=(e,{specPath:t=[`visitors`,`document`,`objects`,`OpenApi`,`$visitor`],plugins:n=[]}={})=>{let r=(0,W.refract)(e),i=bC(TI),a=new(Tb(t,i))({specObj:i});return MC(r,a),PC(a.element,n,{toolboxCreator:oF,visitorOptions:{keyMap:vP,nodeTypeGetter:_P}})},DI=e=>(t,n={})=>EI(t,{specPath:e,...n});wM.refract=DI([`visitors`,`document`,`objects`,`Callback`,`$visitor`]),TM.refract=DI([`visitors`,`document`,`objects`,`Components`,`$visitor`]),EM.refract=DI([`visitors`,`document`,`objects`,`Contact`,`$visitor`]),kM.refract=DI([`visitors`,`document`,`objects`,`Example`,`$visitor`]),DM.refract=DI([`visitors`,`document`,`objects`,`Discriminator`,`$visitor`]),OM.refract=DI([`visitors`,`document`,`objects`,`Encoding`,`$visitor`]),AM.refract=DI([`visitors`,`document`,`objects`,`ExternalDocumentation`,`$visitor`]),jM.refract=DI([`visitors`,`document`,`objects`,`Header`,`$visitor`]),MM.refract=DI([`visitors`,`document`,`objects`,`Info`,`$visitor`]),NM.refract=DI([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`jsonSchemaDialect`]),PM.refract=DI([`visitors`,`document`,`objects`,`License`,`$visitor`]),FM.refract=DI([`visitors`,`document`,`objects`,`Link`,`$visitor`]),IM.refract=DI([`visitors`,`document`,`objects`,`MediaType`,`$visitor`]),LM.refract=DI([`visitors`,`document`,`objects`,`OAuthFlow`,`$visitor`]),RM.refract=DI([`visitors`,`document`,`objects`,`OAuthFlows`,`$visitor`]),zM.refract=DI([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`openapi`]),BM.refract=DI([`visitors`,`document`,`objects`,`OpenApi`,`$visitor`]),VM.refract=DI([`visitors`,`document`,`objects`,`Operation`,`$visitor`]),HM.refract=DI([`visitors`,`document`,`objects`,`Parameter`,`$visitor`]),UM.refract=DI([`visitors`,`document`,`objects`,`PathItem`,`$visitor`]),WM.refract=DI([`visitors`,`document`,`objects`,`Paths`,`$visitor`]),GM.refract=DI([`visitors`,`document`,`objects`,`Reference`,`$visitor`]),KM.refract=DI([`visitors`,`document`,`objects`,`RequestBody`,`$visitor`]),qM.refract=DI([`visitors`,`document`,`objects`,`Response`,`$visitor`]),JM.refract=DI([`visitors`,`document`,`objects`,`Responses`,`$visitor`]),sP.refract=DI([`visitors`,`document`,`objects`,`Schema`,`$visitor`]),cP.refract=DI([`visitors`,`document`,`objects`,`SecurityRequirement`,`$visitor`]),lP.refract=DI([`visitors`,`document`,`objects`,`SecurityScheme`,`$visitor`]),uP.refract=DI([`visitors`,`document`,`objects`,`Server`,`$visitor`]),dP.refract=DI([`visitors`,`document`,`objects`,`ServerVariable`,`$visitor`]),fP.refract=DI([`visitors`,`document`,`objects`,`Tag`,`$visitor`]),pP.refract=DI([`visitors`,`document`,`objects`,`XML`,`$visitor`]);var OI=class extends fw{constructor(e){super({...e??{},name:`binary`})}canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)}parse(e){try{let t=unescape(encodeURIComponent(e.toString())),n=btoa(t),r=new IS;if(n.length!==0){let e=new W.StringElement(n);e.classes.push(`result`),r.push(e)}return r}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}},kI=class extends hw{constructor(e){super({...e??{},name:`openapi-3-1`})}canResolve(e,t){let n=t.dereference.strategies.find(e=>e.name===`openapi-3-1`);return n!==void 0&&n.canDereference(e,t)}async resolve(e,t){let n=t.dereference.strategies.find(e=>e.name===`openapi-3-1`);if(n===void 0)throw new uw(`"openapi-3-1" dereference strategy is not available.`);let r=new Jx,i=Qx(t,{resolve:{internal:!1},dereference:{refSet:r}});return await n.dereference(e,i),r}},{AbortController:AI,AbortSignal:jI}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=AI),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=jI);var MI=class extends mw{swaggerHTTPClient=_E;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=_E,swaggerHTTPClientConfig:t={},...n}={}){super({...n,name:`http-swagger-client`}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){let t=this.getHttpClient(),n=new AbortController,{signal:r}=n,i=setTimeout(()=>{n.abort()},this.timeout),a=this.getHttpClient().withCredentials||this.withCredentials?`include`:`same-origin`,o=this.redirects===0?`error`:`follow`,s=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:r,userFetch:async(e,t)=>{let n=await fetch(e,t);try{n.headers.delete(`Content-Type`)}catch{n=new Response(n.body,{...n,headers:new Headers(n.headers)}),n.headers.delete(`Content-Type`)}return n},credentials:a,redirect:o,follow:s,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new iS(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(i)}}},NI=class extends fw{constructor(e={}){super({name:`json-swagger-client`,mediaTypes:[`application/json`],...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,Lw.default)(t=this.fileExtensions).call(t,e.extension),i=(0,Lw.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ew(`json-swagger-client parser plugin doesn't support sourceMaps option`);let t=new IS,n=e.toString();if(this.allowEmpty&&n.trim()===``)return t;try{let e=YC(JSON.parse(n));return e.classes.push(`result`),t.push(e),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}},PI=class extends fw{constructor(e={}){super({name:`yaml-1-2-swagger-client`,mediaTypes:[`text/yaml`,`application/yaml`],...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,Lw.default)(t=this.fileExtensions).call(t,e.extension),i=(0,Lw.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{return Ed.load(e.toString(),{schema:Ad}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ew(`yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option`);let t=new IS,n=e.toString();try{let e=Ed.load(n,{schema:Ad});if(this.allowEmpty&&e===void 0)return t;let r=YC(e);return r.classes.push(`result`),t.push(r),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}},FI=class extends fw{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:`openapi-json-3-1-swagger-client`,mediaTypes:new xD(...SD.filterByFormat(`generic`),...SD.filterByFormat(`json`)),...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,Lw.default)(t=this.fileExtensions).call(t,e.extension),i=(0,Lw.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{let t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ew(`openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option`);let t=new IS,n=e.toString();if(this.allowEmpty&&n.trim()===``)return t;try{let e=JSON.parse(n),r=BM.refract(e,this.refractorOpts);return r.classes.push(`result`),t.push(r),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}},II=class extends fw{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:`openapi-yaml-3-1-swagger-client`,mediaTypes:new xD(...SD.filterByFormat(`generic`),...SD.filterByFormat(`yaml`)),...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,Lw.default)(t=this.fileExtensions).call(t,e.extension),i=(0,Lw.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{let t=e.toString();return Ed.load(t),this.detectionRegExp.test(t)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ew(`openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option`);let t=new IS,n=e.toString();try{let e=Ed.load(n,{schema:Ad});if(this.allowEmpty&&e===void 0)return t;let r=BM.refract(e,this.refractorOpts);return r.classes.push(`result`),t.push(r),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}},LI=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),RI=e=>Ax(`#`,Vx(e)),zI=e=>{if(!LI(e))throw new Cw(e);return e},BI=(e,t)=>{let n=zI(e),r=HC(e=>QP(e)&&q(e.$anchor)===n,t);if(Ub(r))throw new bw(`Evaluation failed on token: "${n}"`);return r},VI=(e,t)=>{if(t.$ref===void 0)return;let n=Vx(q(t.$ref));return`${$v((e,t)=>Wx(e,Gx(Hx(t))),e,[...q(t.meta.get(`ancestorsSchemaIdentifiers`)),q(t.$ref)])}${n===`#`?``:n}`},HI=(e,t)=>t.$id===void 0?void 0:$v((e,t)=>Wx(e,Gx(Hx(t))),e,q(t.meta.get(`ancestorsSchemaIdentifiers`))),UI=e=>{if(UI.cache.has(e))return UI.cache.get(e);let t=sP.refract(e);return UI.cache.set(e,t),t};UI.cache=new WeakMap;var WI=e=>nC(e)?UI(e):e,GI=(e,t)=>{let{cache:n}=GI,r=Hx(e),i=e=>QP(e)&&e.$id!==void 0;if(!n.has(t)){let e=VC(i,t);n.set(t,Array.from(e))}let a=n.get(t).find(e=>HI(r,e)===r);if(Ub(a))throw new Sw(`Evaluation failed on URI: "${e}"`);return LI(RI(e))?BI(RI(e),a):bD(a,RE(e))};GI.cache=new WeakMap;var KI=MC[Symbol.for(`nodejs.util.promisify.custom`)],qI=new LC,JI=(e,t,n,r)=>{XS(r)?r.value=e:Array.isArray(r)&&(r[n]=e)},YI=class e{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:n,indirections:r=[],ancestors:i=new _w,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map,errorContext:s=[],errorPropagationCache:c=new Map,pendingPropagations:l=[]}){this.indirections=r,this.namespace=t,this.reference=e,this.options=n,this.ancestors=new _w(...i),this.refractCache=a,this.allOfDiscriminatorMapping=o,this.errorContext=s,this.errorPropagationCache=c,this.pendingPropagations=l}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;--t)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:n})=>{let r=this.errorPropagationCache.get(n);Array.isArray(r)&&r.length>0&&r.forEach(n=>{let r=this.errorPropagationCache.get(t);if(!(r!=null&&r.includes(n))){var i;(i=this.options.dereference.dereferenceOpts)==null||i.errors.push({error:n,refEl:t}),r?r.push(n):this.errorPropagationCache.set(t,[n]),e=!0}})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,n){var r;if((r=this.options.dereference.dereferenceOpts)!=null&&r.continueOnError){var i;let{directAncestors:r,isExternalReference:s=!1}=n??{},c=this.options.dereference.dereferenceOpts?.skipNestedExternal??!1,l=s&&c;if(r&&!l){for(let t of r){let n=this.errorPropagationCache.get(t);n?n.push(e):this.errorPropagationCache.set(t,[e])}let t=[...r].find(e=>JS(e)&&e.getMetaProperty(`ref-referencing-element`));if(t){var a;(a=this.options.dereference.dereferenceOpts)==null||a.errors.push({error:e,refEl:t.getMetaProperty(`ref-referencing-element`)})}}if((i=this.options.dereference.dereferenceOpts)==null||i.errors.push({error:e,refEl:t}),!l){let n=new Set(this.errorContext);n.delete(t),this.popErrorContext(t);for(let t of n){var o;(o=this.options.dereference.dereferenceOpts)==null||o.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t;return{...this.options,resolve:{...this.options.resolve,external:(t=this.options.dereference)!=null&&(t=t.dereferenceOpts)!=null&&t.skipNestedExternal&&q(e.get(`$ref`)).startsWith(`#`)?!1:this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...this.options.dereference?.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Wx(this.reference.uri,Gx(Hx(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Tw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);let t=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(t))return n.find(kb(t,`uri`));let r=await dS(Kx(t),{...this.options,parse:{...this.options.parse,mediaType:`text/plain`}}),i=new vw({uri:t,value:K(r),depth:this.reference.depth+1});if(n.add(i),this.options.dereference.immutable){let e=new vw({uri:`immutable://${t}`,value:r,depth:this.reference.depth+1});n.add(e)}return i}toAncestorLineage(e){let t=new Set(e.filter(US));return[new _w(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,n,r,i,a)=>{var o,s;if((o=this.options.dereference.dereferenceOpts)!=null&&o.continueOnError&&this.propagateErrors(),!((s=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&s.dereferenceDiscriminatorMapping))return;let c=EC(e);return c.setMetaProperty(`allOfDiscriminatorMapping`,Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(c,JI),n?void 0:c}};async ReferenceElement(t,n,r,i,a,o){var s,c;if(this.indirections.includes(t))return!1;let[l,u]=this.toAncestorLineage([...a,r]),d=this.toBaseURI(q(t.$ref)),f=Hx(this.reference.uri)===d,p=!f;if(!this.options.resolve.internal&&f||!this.options.resolve.external&&p)return!1;let m;try{m=await this.toReference(q(t.$ref))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}let h=Wx(d,q(t.$ref));this.indirections.push(t);let g=RE(h),_;try{_=bD(m.value.result,g)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(_.id=qI.identify(_),nC(_)){let e=q(t.meta.get(`referenced-element`)),n=`${e}-${q(qI.identify(_))}`;this.refractCache.has(n)?_=this.refractCache.get(n):Yk(_)?(_=GM.refract(_),_.setMetaProperty(`referenced-element`,e),this.refractCache.set(n,_)):(_=this.namespace.getElementClass(e).refract(_),this.refractCache.set(n,_))}if(t===_){let e=new P_(`Recursive Reference Object detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(l.includes(_)){if(m.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new P_(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(this.options.dereference.circular===`replace`){let e=new W.RefElement(_.id,{type:`reference`,uri:m.uri,$ref:q(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,JI),!r&&n}}let v=Hx(m.refSet.rootRef.uri)!==m.uri,y=[`error`,`replace`].includes(this.options.dereference.circular);if((p||v||qP(_)||y)&&!l.includesCycle(_)){u.add(t),this.errorContext.push(t);let n=new e({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{_=await KI(_,n,{keyMap:vP,nodeTypeGetter:_P})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}u.delete(t),this.popErrorContext(t)}(s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:_}),this.indirections.pop();let b=EC(_);return b.setMetaProperty(`id`,qI.generateId()),b.setMetaProperty(`ref-fields`,{$ref:q(t.$ref),description:q(t.description),summary:q(t.summary)}),b.setMetaProperty(`ref-origin`,m.uri),b.setMetaProperty(`ref-referencing-element-id`,K(qI.identify(t))),(c=this.options.dereference.dereferenceOpts)!=null&&c.continueOnError&&b.setMetaProperty(`ref-referencing-element`,t),JS(_)&&JS(b)&&(t.hasKey(`description`)&&`description`in _&&(b.remove(`description`),b.set(`description`,t.get(`description`))),t.hasKey(`summary`)&&`summary`in _&&(b.remove(`summary`),b.set(`summary`,t.get(`summary`)))),o.replaceWith(b,JI),!r&&b}async PathItemElement(t,n,r,i,a,o){var s;if(!WS(t.$ref))return;if(this.indirections.includes(t))return!1;let[c,l]=this.toAncestorLineage([...a,r]),u=this.toBaseURI(q(t.$ref)),d=Hx(this.reference.uri)===u,f=!d;if(!this.options.resolve.internal&&d||!this.options.resolve.external&&f)return;let p;try{p=await this.toReference(q(t.$ref))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}let m=Wx(u,q(t.$ref));this.indirections.push(t);let h=RE(m),g;try{g=bD(p.value.result,h)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(g.id=qI.identify(g),nC(g)){let e=`path-item-${q(qI.identify(g))}`;this.refractCache.has(e)?g=this.refractCache.get(e):(g=UM.refract(g),this.refractCache.set(e,g))}if(t===g){let e=new P_(`Recursive Path Item Object reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(c.includes(g)){if(p.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new P_(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(this.options.dereference.circular===`replace`){let e=new W.RefElement(g.id,{type:`path-item`,uri:p.uri,$ref:q(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,JI),!r&&n}}let _=Hx(p.refSet.rootRef.uri)!==p.uri,v=[`error`,`replace`].includes(this.options.dereference.circular);if((f||_||WP(g)&&WS(g.$ref)||v)&&!c.includesCycle(g)){l.add(t),this.errorContext.push(t);let n=new e({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{g=await KI(g,n,{keyMap:vP,nodeTypeGetter:_P})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}l.delete(t),this.popErrorContext(t)}if((s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:g}),this.indirections.pop(),WP(g)){var y;let e=new UM([...g.content],K(g.meta),K(g.attributes));e.setMetaProperty(`id`,qI.generateId()),t.forEach((t,n,r)=>{e.remove(q(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref)}),e.setMetaProperty(`ref-origin`,p.uri),e.setMetaProperty(`ref-referencing-element-id`,K(qI.identify(t))),(y=this.options.dereference.dereferenceOpts)!=null&&y.continueOnError&&e.setMetaProperty(`ref-referencing-element`,t),g=e}return o.replaceWith(g,JI),r?void 0:g}async LinkElement(e,t,n,r,i,a){if(!WS(e.operationRef)&&!WS(e.operationId))return;if(WS(e.operationRef)&&WS(e.operationId)){let t=new P_(`LinkElement operationRef and operationId fields are mutually exclusive.`);return this.handleDereferenceError(t,e)}let o;if(WS(e.operationRef)){var s;let t=RE(q(e.operationRef)),r=this.toBaseURI(q(e.operationRef)),i=Hx(this.reference.uri)===r,c=!i;if(!this.options.resolve.internal&&i||!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(q(e.operationRef)),o=bD(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:c})}if(nC(o)){let e=`operation-${q(qI.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=VM.refract(o),this.refractCache.set(e,o))}o=EC(o),o.setMetaProperty(`ref-origin`,l.uri);let u=EC(e);return(s=u.operationRef)==null||s.meta.set(`operation`,o),a.replaceWith(u,JI),n?void 0:u}if(WS(e.operationId)){var c;let t=q(e.operationId),r;try{r=await this.toReference(Kx(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=HC(e=>HP(e)&&US(e.operationId)&&e.operationId.equals(t),r.value.result),Ub(o)){let n=new P_(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(n,e)}let i=EC(e);return(c=i.operationId)==null||c.meta.set(`operation`,o),a.replaceWith(i,JI),n?void 0:i}}async ExampleElement(e,t,n,r,i,a){if(!WS(e.externalValue))return;if(e.hasKey(`value`)&&WS(e.externalValue)){let t=new P_(`ExampleElement value and externalValue fields are mutually exclusive.`);return this.handleDereferenceError(t,e)}let o=this.toBaseURI(q(e.externalValue)),s=Hx(this.reference.uri)===o,c=!s;if(!this.options.resolve.internal&&s||!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(q(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:c})}let u=EC(l.value.result);u.setMetaProperty(`ref-origin`,l.uri);let d=EC(e);return d.value=u,a.replaceWith(d,JI),n?void 0:d}async MemberElement(t,n,r,i,a,o){var s;let c=a[a.length-1];if(!JS(c)||!c.classes.contains(`discriminator-mapping`))return;if(!((s=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&s.dereferenceDiscriminatorMapping)||!WS(t.key)||!WS(t.value)||this.indirections.includes(t))return!1;this.indirections.push(t);let[l,u]=this.toAncestorLineage([...a,r]),d=K([...u].findLast(QP).getMetaProperty(`ancestorsSchemaIdentifiers`)),f=q(t.value),p=/^[a-zA-Z0-9\\.\\-_]+$/.test(f)?`#/components/schemas/${f}`:f,m=new sP({$ref:p});m.setMetaProperty(`ancestorsSchemaIdentifiers`,d),u.add(m);let h=new e({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),g;try{g=await KI(m,h,{keyMap:vP,nodeTypeGetter:_P})}catch(e){let t=!p.startsWith(`#`);return this.handleDereferenceError(e,m,{directAncestors:u,isExternalReference:t})}u.delete(m),this.indirections.pop();let _=EC(t);return _.value.setMetaProperty(`ref-schema`,g),o.replaceWith(_,JI),r?void 0:_}async SchemaElement(t,n,r,i,a,o){var s;if(!WS(t.$ref))return;if(this.indirections.includes(t))return!1;let[c,l]=this.toAncestorLineage([...a,r]),u;try{u=await this.toReference(Kx(this.reference.uri))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:l})}let{uri:d}=u,f=VI(d,t),p=new qx({uri:Hx(f)}),m=Sb(e=>e.canRead(p),this.options.resolve.resolvers),h=!m,g=Hx(this.reference.uri)===f,_=!g;this.indirections.push(t);let v;try{if(m||h){if(d=this.toBaseURI(f),v=GI(f,WI(u.value.result)),v=WI(v),v.id=qI.identify(v),!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return}else{if(d=this.toBaseURI(f),g=Hx(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;u=await this.toReference(Kx(f));let e=RE(f);v=bD(WI(u.value.result),e),v=WI(v),v.id=qI.identify(v)}}catch(e){if(h&&e instanceof Sw){if(LI(RI(f))){if(g=Hx(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;try{u=await this.toReference(Kx(f))}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}let e=RI(f),n=WI(u.value.result);try{v=BI(e,n)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}v=WI(v),v.id=qI.identify(v)}else{if(d=this.toBaseURI(f),g=Hx(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;try{u=await this.toReference(Kx(f))}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}let e=RE(f),n=WI(u.value.result);try{v=bD(n,e)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}v=WI(v),v.id=qI.identify(v)}}else return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(t===v){let e=new P_(`Recursive Schema Object reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(c.includes(v)){if(u.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new P_(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(this.options.dereference.circular===`replace`){let e=new W.RefElement(v.id,{type:`json-schema`,uri:u.uri,$ref:q(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,JI),!r&&n}}let y=Hx(u.refSet.rootRef.uri)!==u.uri,b=[`error`,`replace`].includes(this.options.dereference.circular);if((_||y||QP(v)&&WS(v.$ref)||b)&&!c.includesCycle(v)){l.add(t),this.errorContext.push(t);let n=new e({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{v=await KI(v,n,{keyMap:vP,nodeTypeGetter:_P})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}l.delete(t),this.popErrorContext(t)}if((s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:v}),this.indirections.pop(),$P(v)){let e=K(v);return e.setMetaProperty(`id`,qI.generateId()),e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref),$refBaseURI:f}),e.setMetaProperty(`ref-origin`,u.uri),e.setMetaProperty(`ref-referencing-element-id`,K(qI.identify(t))),o.replaceWith(e,JI),!r&&e}if(QP(v)){var x,S;let e=new sP([...v.content],K(v.meta),K(v.attributes));if(e.setMetaProperty(`id`,qI.generateId()),t.forEach((t,n,r)=>{e.remove(q(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref),$refBaseURI:f}),e.setMetaProperty(`ref-origin`,u.uri),e.setMetaProperty(`ref-referencing-element-id`,K(qI.identify(t))),(x=this.options.dereference.dereferenceOpts)!=null&&x.continueOnError&&e.setMetaProperty(`ref-referencing-element`,t),(S=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&S.dereferenceDiscriminatorMapping){var C;let t=a[a.length-1],n=[...l].findLast(QP),r=n?.getMetaProperty(`schemaName`),i=q(e.getMetaProperty(`schemaName`));if(i&&r&&t!=null&&(C=t.classes)!=null&&C.contains(`json-schema-allOf`)){let e=this.allOfDiscriminatorMapping.get(i)??[];e.push(n),this.allOfDiscriminatorMapping.set(i,e)}}v=e}return o.replaceWith(v,JI),r?void 0:v}},XI=MC[Symbol.for(`nodejs.util.promisify.custom`)],ZI=class extends gw{constructor(e){super({...e??{},name:`openapi-3-1`})}canDereference(e){return e.mediaType===`text/plain`?VP(e.parseResult?.result):SD.includes(e.mediaType)}async dereference(e,t){let n=cC(mP),r=t.dereference.refSet??new Jx,i=new Jx,a=r,o;r.has(e.uri)?o=r.find(kb(e.uri,`uri`)):(o=new vw({uri:e.uri,value:e.parseResult}),r.add(o)),t.dereference.immutable&&(r.refs.map(e=>new vw({...e,value:K(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),a=i);let s=new YI({reference:o,namespace:n,options:t}),c=await XI(a.rootRef.value,s,{keyMap:vP,nodeTypeGetter:_P});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith(`immutable://`)).map(e=>new vw({...e,uri:e.uri.replace(/^immutable:\/\//,``)})).forEach(e=>r.add(e)),t.dereference.refSet===null&&r.clean(),i.clean(),c}},QI=e=>e.slice(2),$I=e=>{let t=QI(e);return t.reduce((e,n,r)=>{if(XS(n)){let t=String(q(n.key));e.push(t)}else if(YS(t[r-2])){let i=t[r-2].content.indexOf(n);e.push(i)}return e},[])},eL=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,n,r,i)=>{e.properties!==void 0&&JS(e.properties)&&e.properties.forEach(t=>{if(JS(t))try{let e=this.modelPropertyMacro(q(t));t.set(`default`,e)}catch(t){let r=Error(t,{cause:t});r.fullPath=[...$I([...i,n,e]),`properties`],this.options.dereference.dereferenceOpts?.errors?.push?.(r)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}},tL=class{options;SchemaElement={leave(e,t,n,r,i){if(e.allOf!==void 0){if(!YS(e.allOf)){let t=TypeError(`allOf must be an array`);t.fullPath=[...$I([...i,n,e]),`allOf`],this.options.dereference.dereferenceOpts?.errors?.push?.(t);return}if(e.allOf.isEmpty){e.remove(`allOf`);return}if(!e.allOf.content.every(QP)){let t=TypeError(`Elements in allOf must be objects`);t.fullPath=[...$I([...i,n,e]),`allOf`],this.options.dereference.dereferenceOpts?.errors?.push?.(t);return}for(;e.hasKey(`allOf`);){let{allOf:t}=e;e.remove(`allOf`);let n=cw.all([...t.content,e],{customMerge:e=>q(e)===`enum`?(e,t)=>{if(aC([`json-schema-enum`],e)&&aC([`json-schema-enum`],t)){let n=(e,t)=>YS(e)||YS(t)||JS(e)||JS(t)?!1:e.equals(q(t)),r=EC(e);return r.content=Bb(n)([...e.content,...t.content]),r}return cw(e,t)}:cw});if(e.hasKey(`$$ref`)||n.remove(`$$ref`),e.hasKey(`example`)){let t=n.getMember(`example`);t&&(t.value=e.get(`example`))}if(e.hasKey(`examples`)){let t=n.getMember(`examples`);t&&(t.value=e.get(`examples`))}e.content=n.content}}}};constructor({options:e}){this.options=e}},nL=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,n,r,i)=>{let a=this.#e?q(this.#e):null,o=q(e);try{let t=this.parameterMacro(a,o);e.set(`default`,t)}catch(e){let t=Error(e,{cause:e});t.fullPath=$I([...i,n]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},rL=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},iL=class extends F_{},{wrapError:aL}=vT,oL=MC[Symbol.for(`nodejs.util.promisify.custom`)],sL=new LC,cL=(e,t,n,r)=>{XS(r)?r.value=e:Array.isArray(r)&&(r[n]=e)},lL=class e extends YI{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:n=null,...r}){super(r),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=n}async ReferenceElement(t,n,r,i,a,o){try{var s,c;if((0,Lw.default)(s=this.indirections).call(s,t))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=this.toBaseURI(q(t.$ref)),u=Hx(this.reference.uri)===l,d=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&d)return!1;let f=await this.toReference(q(t.$ref)),p=Wx(l,q(t.$ref));this.indirections.push(t);let m=RE(p),h=bD(f.value.result,m);if(h.id=sL.identify(h),nC(h)){let e=q(t.meta.get(`referenced-element`)),n=`${e}-${q(sL.identify(h))}`;this.refractCache.has(n)?h=this.refractCache.get(n):Yk(h)?(h=GM.refract(h),h.setMetaProperty(`referenced-element`,e),this.refractCache.set(n,h)):(h=this.namespace.getElementClass(e).refract(h),this.refractCache.set(n,h))}if(t===h)throw new P_(`Recursive Reference Object detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,Lw.default)(n).call(n,h)){if(f.refSet.circular=!0,this.options.dereference.circular===`error`)throw new P_(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new W.RefElement(h.id,{type:`reference`,uri:f.uri,$ref:q(t.$ref),baseURI:p,referencingElement:t}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(e,cL),!r&&n}}let g=Hx(f.refSet.rootRef.uri)!==f.uri,_=(0,Lw.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((d||g||qP(h)||_)&&!n.includesCycle(h)){i.add(t);let o=new e({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...$I([...a,r,t]),`$ref`]});h=await oL(h,o,{keyMap:vP,nodeTypeGetter:_P}),i.delete(t)}this.indirections.pop();let v=EC(h);if(v.setMetaProperty(`ref-fields`,{$ref:q(t.$ref),description:q(t.description),summary:q(t.summary)}),v.setMetaProperty(`ref-origin`,f.uri),v.setMetaProperty(`ref-referencing-element-id`,K(sL.identify(t))),JS(h)&&(t.hasKey(`description`)&&`description`in h&&(v.remove(`description`),v.set(`description`,t.get(`description`))),t.hasKey(`summary`)&&`summary`in h&&(v.remove(`summary`),v.set(`summary`,t.get(`summary`)))),this.allowMetaPatches&&JS(v)&&!v.hasKey(`$$ref`)){let e=Wx(l,p);v.set(`$$ref`,e)}return o.replaceWith(v,cL),!r&&v}catch(e){let n=aL(rL(e),{baseDoc:this.reference.uri,$ref:q(t.$ref),pointer:RE(q(t.$ref)),fullPath:this.basePath??[...$I([...a,r,t]),`$ref`]});this.options.dereference.dereferenceOpts?.errors?.push?.(n);return}}async PathItemElement(t,n,r,i,a,o){try{var s,c;if(!WS(t.$ref))return;if((0,Lw.default)(s=this.indirections).call(s,t)||aC([`cycle`],t.$ref))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=this.toBaseURI(q(t.$ref)),u=Hx(this.reference.uri)===l,d=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&d)return;let f=await this.toReference(q(t.$ref)),p=Wx(l,q(t.$ref));this.indirections.push(t);let m=RE(p),h=bD(f.value.result,m);if(h.id=sL.identify(h),nC(h)){let e=`path-item-${q(sL.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=UM.refract(h),this.refractCache.set(e,h))}if(t===h)throw new P_(`Recursive Path Item Object reference detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,Lw.default)(n).call(n,h)){if(f.refSet.circular=!0,this.options.dereference.circular===`error`)throw new P_(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new W.RefElement(h.id,{type:`path-item`,uri:f.uri,$ref:q(t.$ref),baseURI:p,referencingElement:t}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(e,cL),!r&&n}}let g=Hx(f.refSet.rootRef.uri)!==f.uri,_=(0,Lw.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((d||g||WP(h)&&WS(h.$ref)||_)&&!n.includesCycle(h)){i.add(t);let o=new e({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...$I([...a,r,t]),`$ref`]});h=await oL(h,o,{keyMap:vP,nodeTypeGetter:_P}),i.delete(t)}if(this.indirections.pop(),WP(h)){let e=new UM([...h.content],K(h.meta),K(h.attributes));if(t.forEach((t,n,r)=>{e.remove(q(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref)}),e.setMetaProperty(`ref-origin`,f.uri),e.setMetaProperty(`ref-referencing-element-id`,K(sL.identify(t))),this.allowMetaPatches&&e.get(`$$ref`)===void 0){let t=Wx(l,p);e.set(`$$ref`,t)}h=e}return o.replaceWith(h,cL),r?void 0:h}catch(e){let n=aL(rL(e),{baseDoc:this.reference.uri,$ref:q(t.$ref),pointer:RE(q(t.$ref)),fullPath:this.basePath??[...$I([...a,r,t]),`$ref`]});this.options.dereference.dereferenceOpts?.errors?.push?.(n);return}}async SchemaElement(t,n,r,i,a,o){try{var s,c;if(!WS(t.$ref))return;if((0,Lw.default)(s=this.indirections).call(s,t))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=await this.toReference(Kx(this.reference.uri)),{uri:u}=l,d=VI(u,t),f=new qx({uri:Hx(d)}),p=!this.options.resolve.resolvers.some(e=>e.canRead(f)),m=!p,h=Hx(this.reference.uri)===d,g=!h;this.indirections.push(t);let _;try{if(p||m){if(u=this.toBaseURI(d),_=GI(d,WI(l.value.result)),_=WI(_),_.id=sL.identify(_),!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(d),h=Hx(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(Kx(d));let e=RE(d);_=bD(WI(l.value.result),e),_=WI(_),_.id=sL.identify(_)}}catch(e){if(m&&e instanceof Sw){if(LI(RI(d))){if(h=Hx(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(Kx(d)),_=BI(RI(d),WI(l.value.result)),_=WI(_),_.id=sL.identify(_)}else{if(u=this.toBaseURI(q(d)),h=Hx(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(Kx(d));let e=RE(d);_=bD(WI(l.value.result),e),_=WI(_),_.id=sL.identify(_)}}else throw e}if(t===_)throw new P_(`Recursive Schema Object reference detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ww(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,Lw.default)(n).call(n,_)){if(l.refSet.circular=!0,this.options.dereference.circular===`error`)throw new P_(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new W.RefElement(_.id,{type:`json-schema`,uri:l.uri,$ref:q(t.$ref),baseURI:Wx(u,d),referencingElement:t}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,cL),!r&&n}}let v=Hx(l.refSet.rootRef.uri)!==l.uri,y=(0,Lw.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((g||v||QP(_)&&WS(_.$ref)||y)&&!n.includesCycle(_)){i.add(t);let o=new e({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...$I([...a,r,t]),`$ref`]});_=await oL(_,o,{keyMap:vP,nodeTypeGetter:_P}),i.delete(t)}if(this.indirections.pop(),$P(_)){let e=K(_);return e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref)}),e.setMetaProperty(`ref-origin`,l.uri),e.setMetaProperty(`ref-referencing-element-id`,K(sL.identify(t))),o.replaceWith(e,cL),!r&&e}if(QP(_)){let e=new sP([..._.content],K(_.meta),K(_.attributes));if(t.forEach((t,n,r)=>{e.remove(q(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:q(t.$ref)}),e.setMetaProperty(`ref-origin`,l.uri),e.setMetaProperty(`ref-referencing-element-id`,K(sL.identify(t))),this.allowMetaPatches&&e.get(`$$ref`)===void 0){let t=Wx(u,d);e.set(`$$ref`,t)}_=e}return o.replaceWith(_,cL),r?void 0:_}catch(e){let n=rL(e),i=new iL(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:q(t.$ref),fullPath:this.basePath??[...$I([...a,r,t]),`$ref`],cause:n});this.options.dereference.dereferenceOpts?.errors?.push?.(i);return}}async LinkElement(){}async ExampleElement(e,t,n,r,i,a){try{return await super.ExampleElement(e,t,n,r,i,a)}catch(t){let r=aL(rL(t),{baseDoc:this.reference.uri,externalValue:q(e.externalValue),fullPath:this.basePath??[...$I([...i,n,e]),`externalValue`]});this.options.dereference.dereferenceOpts?.errors?.push?.(r);return}}},uL=hC[Symbol.for(`nodejs.util.promisify.custom`)],dL=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:n,options:r,...i}){let a=[];a.push(new lL({...i,options:r})),typeof t==`function`&&a.push(new eL({modelPropertyMacro:t,options:r})),n!==`strict`&&a.push(new tL({options:r})),typeof e==`function`&&a.push(new nL({parameterMacro:e,options:r}));let o=uL(a,{nodeTypeGetter:_P});Object.assign(this,o)}},fL=MC[Symbol.for(`nodejs.util.promisify.custom`)],pL=class extends ZI{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:n=null,mode:r=`non-strict`,ancestors:i=[],...a}={}){super({...a}),this.name=`openapi-3-1-swagger-client`,this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=n,this.mode=r,this.ancestors=[...i]}async dereference(e,t){let n=cC(mP),r=t.dereference.refSet??new Jx,i=new Jx,a=r,o;r.has(e.uri)?o=r.find(t=>t.uri===e.uri):(o=new vw({uri:e.uri,value:e.parseResult}),r.add(o)),t.dereference.immutable&&(r.refs.map(e=>new vw({...e,value:K(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),a=i);let s=new dL({reference:o,namespace:n,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await fL(a.rootRef.value,s,{keyMap:vP,nodeTypeGetter:_P});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith(`immutable://`)).map(e=>new vw({...e,uri:e.uri.replace(/^immutable:\/\//,``)})).forEach(e=>r.add(e)),t.dereference.refSet===null&&r.clean(),i.clean(),c}},mL=e=>{let t=q(e.meta.get(`baseURI`)),n=e.meta.get(`referencingElement`);return new W.ObjectElement({$ref:t},K(n.meta),K(n.attributes))},hL=async e=>{let{spec:t,timeout:n,redirects:r,requestInterceptor:i,responseInterceptor:a,pathDiscriminator:o=[],allowMetaPatches:s=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:d=null,mode:f=`non-strict`,strategies:p}=e;try{let{cache:m}=hL,h=p.find(e=>e.match(t)),g=Wx(Lx(Ux())?Ux():rT,yE(e)),_;m.has(t)?_=m.get(t):(_=BM.refract(t),_.classes.push(`result`),m.set(t,_));let v=new IS([_]),y=uD(o),b=y===``?``:`#${y}`,x=bD(_,y),S=new Jx({refs:[new vw({uri:g,value:v})]});y!==``&&(S.rootRef=void 0);let C=[new Set([x])],w=[],T=JC(x,await Dw(x,{resolve:{baseURI:`${g}${b}`,resolvers:[new MI({timeout:n||1e4,redirects:r||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:a}},strategies:[new kI]},parse:{mediaType:SD.latest(),parsers:[new FI({allowEmpty:!1,sourceMap:!1}),new II({allowEmpty:!1,sourceMap:!1}),new NI({allowEmpty:!1,sourceMap:!1}),new PI({allowEmpty:!1,sourceMap:!1}),new OI({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new pL({allowMetaPatches:s,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:d,mode:f,ancestors:C})],refSet:S,dereferenceOpts:{errors:w},immutable:!1,circular:c?`ignore`:`replace`,circularReplacer:c?Yx.dereference.circularReplacer:mL}}),_);return{spec:q(l?T:h.normalize(T)),errors:w}}catch(e){if(e instanceof pD)return{spec:t,errors:[]};throw e}};hL.cache=new WeakMap;var gL=e=>JS(e)?PC(e,[EP({operationIdNormalizer:(e,t,n)=>TE({operationId:e},t,n,{v2OperationIdCompatibilityMode:!1})}),bP(),xP(),DP(),OP()],{toolboxCreator:oF,visitorOptions:{keyMap:vP,nodeTypeGetter:_P}}):e,_L=e=>t=>{let n=BM.refract(t);n.classes.push(`result`);let r=e(n),i=q(r);return hL.cache.set(i,r),q(r)},vL={name:`openapi-3-1-apidom`,match(e){return jE(e)},normalize(e){if(!US(e)&&lx(e)&&!e.$$normalized){let t=_L(gL)(e);return t.$$normalized=!0,t}return US(e)?gL(e):e},async resolve(e){return hL(e)}},yL=async e=>{let{spec:t,requestInterceptor:n,responseInterceptor:r}=e,i=yE(e),a=bE(e),o=t||await KT(a,{requestInterceptor:n,responseInterceptor:r})(i),s={...e,spec:o};return e.strategies.find(e=>e.match(o)).resolve(s)},bL=e=>async t=>yL({...e,...t}),xL=bL({strategies:[IE,PE,DE]});function SL(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`server-url-template`,lower:`server-url-template`,index:0,isBkr:!1},this.rules[1]={name:`server-variable`,lower:`server-variable`,index:1,isBkr:!1},this.rules[2]={name:`server-variable-name`,lower:`server-variable-name`,index:2,isBkr:!1},this.rules[3]={name:`literals`,lower:`literals`,index:3,isBkr:!1},this.rules[4]={name:`DIGIT`,lower:`digit`,index:4,isBkr:!1},this.rules[5]={name:`HEXDIG`,lower:`hexdig`,index:5,isBkr:!1},this.rules[6]={name:`pct-encoded`,lower:`pct-encoded`,index:6,isBkr:!1},this.rules[7]={name:`ucschar`,lower:`ucschar`,index:7,isBkr:!1},this.rules[8]={name:`iprivate`,lower:`iprivate`,index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e=``;return e+=`; OpenAPI Server URL templating ABNF syntax
|
|
69
|
-
`,e+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
|
|
70
|
-
`,e+=`server-variable = "{" server-variable-name "}"
|
|
71
|
-
`,e+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
72
|
-
`,e+=`
|
|
73
|
-
`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
|
|
74
|
-
`,e+=`; https://www.rfc-editor.org/errata/eid6937
|
|
75
|
-
`,e+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
|
|
76
|
-
`,e+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
|
|
77
|
-
`,e+=` / pct-encoded)
|
|
78
|
-
`,e+=` ; any Unicode character except: CTL, SP,
|
|
79
|
-
`,e+=` ; DQUOTE, "%" (aside from pct-encoded),
|
|
80
|
-
`,e+=` ; "<", ">", "\\", "^", "\`", "{", "|", "}"
|
|
81
|
-
`,e+=`
|
|
82
|
-
`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
|
|
83
|
-
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
84
|
-
`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
|
|
85
|
-
`,e+=`
|
|
86
|
-
`,e+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
87
|
-
`,e+=`
|
|
88
|
-
`,e+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
|
|
89
|
-
`,e+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
|
|
90
|
-
`,e+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
|
|
91
|
-
`,e+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
|
|
92
|
-
`,e+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
|
|
93
|
-
`,e+=` / %xD0000-DFFFD / %xE1000-EFFFD
|
|
94
|
-
`,e+=`
|
|
95
|
-
`,e+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
|
|
96
|
-
`,e}}var CL=(e,t,n,r,i)=>{if(e===GE.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-url-template`,WE.charsToString(t,n,r)])}return GE.SEM_OK},wL=(e,t,n,r,i)=>{if(e===GE.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-variable`,WE.charsToString(t,n,r)])}return GE.SEM_OK},TL=(e,t,n,r,i)=>{if(e===GE.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-variable-name`,WE.charsToString(t,n,r)])}return GE.SEM_OK},EL=(e,t,n,r,i)=>{if(e===GE.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`literals`,WE.charsToString(t,n,r)])}return GE.SEM_OK},DL=new SL,OL=e=>{let t=new BE;return t.ast=new VE,t.ast.callbacks[`server-url-template`]=CL,t.ast.callbacks[`server-variable`]=wL,t.ast.callbacks[`server-variable-name`]=TL,t.ast.callbacks.literals=EL,{result:t.parse(DL,`server-url-template`,e),ast:t.ast}},kL=(e,{strict:t=!1}={})=>{try{let n=OL(e);if(!n.result.success)return!1;let r=[];n.ast.translate(r);let i=r.some(([e])=>e===`server-variable`);if(!t&&!i)try{return new URL(e,`https://vladimirgorej.com`),!0}catch{return!1}return!t||i}catch{return!1}},AL=e=>{try{return typeof e==`string`&&decodeURIComponent(e)!==e}catch{return!1}},jL=e=>AL(e)?e:encodeURIComponent(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`),ML=[`literals`,`server-variable-name`],NL=(e,t,n={})=>{let r={encoder:jL,...n},i=OL(e);if(!i.result.success)return e;let a=[];return i.ast.translate(a),a.filter(([e])=>ML.includes(e)).map(([e,n])=>e===`server-variable-name`?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n).join(``)};function PL(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`path-template`,lower:`path-template`,index:0,isBkr:!1},this.rules[1]={name:`path-segment`,lower:`path-segment`,index:1,isBkr:!1},this.rules[2]={name:`slash`,lower:`slash`,index:2,isBkr:!1},this.rules[3]={name:`path-literal`,lower:`path-literal`,index:3,isBkr:!1},this.rules[4]={name:`template-expression`,lower:`template-expression`,index:4,isBkr:!1},this.rules[5]={name:`template-expression-param-name`,lower:`template-expression-param-name`,index:5,isBkr:!1},this.rules[6]={name:`pchar`,lower:`pchar`,index:6,isBkr:!1},this.rules[7]={name:`unreserved`,lower:`unreserved`,index:7,isBkr:!1},this.rules[8]={name:`pct-encoded`,lower:`pct-encoded`,index:8,isBkr:!1},this.rules[9]={name:`sub-delims`,lower:`sub-delims`,index:9,isBkr:!1},this.rules[10]={name:`ALPHA`,lower:`alpha`,index:10,isBkr:!1},this.rules[11]={name:`DIGIT`,lower:`digit`,index:11,isBkr:!1},this.rules[12]={name:`HEXDIG`,lower:`hexdig`,index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e=``;return e+=`; OpenAPI Path Templating ABNF syntax
|
|
97
|
-
`,e+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
98
|
-
`,e+=`path-template = slash *( path-segment slash ) [ path-segment ]
|
|
99
|
-
`,e+=`path-segment = 1*( path-literal / template-expression )
|
|
100
|
-
`,e+=`slash = "/"
|
|
101
|
-
`,e+=`path-literal = 1*pchar
|
|
102
|
-
`,e+=`template-expression = "{" template-expression-param-name "}"
|
|
103
|
-
`,e+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
104
|
-
`,e+=`
|
|
105
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
106
|
-
`,e+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
107
|
-
`,e+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
108
|
-
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
|
|
109
|
-
`,e+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
110
|
-
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
|
|
111
|
-
`,e+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
|
|
112
|
-
`,e+=` / "*" / "+" / "," / ";" / "="
|
|
113
|
-
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
|
|
114
|
-
`,e+=`
|
|
115
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
116
|
-
`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
117
|
-
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
118
|
-
`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
|
|
119
|
-
`,e}}var FL=(e,t,n,r,i)=>(e===GE.SEM_PRE?i.push([`slash`,WE.charsToString(t,n,r)]):GE.SEM_POST,GE.SEM_OK),IL=(e,t,n,r,i)=>{if(e===GE.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`path-template`,WE.charsToString(t,n,r)])}return GE.SEM_OK},LL=(e,t,n,r,i)=>(e===GE.SEM_PRE?i.push([`path-literal`,WE.charsToString(t,n,r)]):GE.SEM_POST,GE.SEM_OK),RL=(e,t,n,r,i)=>(e===GE.SEM_PRE?i.push([`template-expression`,WE.charsToString(t,n,r)]):GE.SEM_POST,GE.SEM_OK),zL=(e,t,n,r,i)=>(e===GE.SEM_PRE?i.push([`template-expression-param-name`,WE.charsToString(t,n,r)]):GE.SEM_POST,GE.SEM_OK),BL=new PL,VL=e=>{let t=new BE;return t.ast=new VE,t.ast.callbacks[`path-template`]=IL,t.ast.callbacks.slash=FL,t.ast.callbacks[`path-literal`]=LL,t.ast.callbacks[`template-expression`]=RL,t.ast.callbacks[`template-expression-param-name`]=zL,{result:t.parse(BL,`path-template`,e),ast:t.ast}},HL=e=>{try{return typeof e==`string`&&decodeURIComponent(e)!==e}catch{return!1}},UL=e=>HL(e)?e:encodeURIComponent(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`),WL=[`slash`,`path-literal`,`template-expression-param-name`],GL=(e,t,n={})=>{let r={encoder:UL,...n},i=VL(e);if(!i.result.success)return e;let a=[];return i.ast.translate(a),a.filter(([e])=>WL.includes(e)).map(([e,n])=>e===`template-expression-param-name`?Object.prototype.hasOwnProperty.call(t,n)?r.encoder(t[n],n):`{${n}}`:n).join(``)};new PL,new BE;var KL={body:qL,header:YL,query:ZL,path:XL,formData:JL};function qL({req:e,value:t}){t!==void 0&&(e.body=t)}function JL({req:e,value:t,parameter:n}){if(t===!1&&n.type===`boolean`&&(t=`false`),t===0&&[`number`,`integer`].indexOf(n.type)>-1&&(t=`0`),t)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&t!==void 0){e.form=e.form||{};let t=n.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}function YL({req:e,parameter:t,value:n}){e.headers=e.headers||{},n!==void 0&&(e.headers[t.name]=n)}function XL({req:e,value:t,parameter:n,baseURL:r}){t!==void 0&&(e.url=r+GL(e.url.replace(r,``),{[n.name]:t}))}function ZL({req:e,value:t,parameter:n}){if(e.query=e.query||{},t===!1&&n.type===`boolean`&&(t=`false`),t===0&&[`number`,`integer`].indexOf(n.type)>-1&&(t=`0`),t)e.query[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&t!==void 0){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}function QL(e,t){return(0,Lw.default)(t).call(t,`application/json`)?typeof e==`string`?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch{return e}})),JSON.stringify(e)):String(e)}function $L(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`lenient-cookie-string`,lower:`lenient-cookie-string`,index:0,isBkr:!1},this.rules[1]={name:`lenient-cookie-entry`,lower:`lenient-cookie-entry`,index:1,isBkr:!1},this.rules[2]={name:`lenient-cookie-pair`,lower:`lenient-cookie-pair`,index:2,isBkr:!1},this.rules[3]={name:`lenient-cookie-pair-invalid`,lower:`lenient-cookie-pair-invalid`,index:3,isBkr:!1},this.rules[4]={name:`lenient-cookie-name`,lower:`lenient-cookie-name`,index:4,isBkr:!1},this.rules[5]={name:`lenient-cookie-value`,lower:`lenient-cookie-value`,index:5,isBkr:!1},this.rules[6]={name:`lenient-quoted-value`,lower:`lenient-quoted-value`,index:6,isBkr:!1},this.rules[7]={name:`lenient-quoted-char`,lower:`lenient-quoted-char`,index:7,isBkr:!1},this.rules[8]={name:`lenient-cookie-octet`,lower:`lenient-cookie-octet`,index:8,isBkr:!1},this.rules[9]={name:`cookie-string`,lower:`cookie-string`,index:9,isBkr:!1},this.rules[10]={name:`cookie-pair`,lower:`cookie-pair`,index:10,isBkr:!1},this.rules[11]={name:`cookie-name`,lower:`cookie-name`,index:11,isBkr:!1},this.rules[12]={name:`cookie-value`,lower:`cookie-value`,index:12,isBkr:!1},this.rules[13]={name:`cookie-octet`,lower:`cookie-octet`,index:13,isBkr:!1},this.rules[14]={name:`OWS`,lower:`ows`,index:14,isBkr:!1},this.rules[15]={name:`token`,lower:`token`,index:15,isBkr:!1},this.rules[16]={name:`tchar`,lower:`tchar`,index:16,isBkr:!1},this.rules[17]={name:`CHAR`,lower:`char`,index:17,isBkr:!1},this.rules[18]={name:`CTL`,lower:`ctl`,index:18,isBkr:!1},this.rules[19]={name:`separators`,lower:`separators`,index:19,isBkr:!1},this.rules[20]={name:`SP`,lower:`sp`,index:20,isBkr:!1},this.rules[21]={name:`HT`,lower:`ht`,index:21,isBkr:!1},this.rules[22]={name:`ALPHA`,lower:`alpha`,index:22,isBkr:!1},this.rules[23]={name:`DIGIT`,lower:`digit`,index:23,isBkr:!1},this.rules[24]={name:`DQUOTE`,lower:`dquote`,index:24,isBkr:!1},this.rules[25]={name:`WSP`,lower:`wsp`,index:25,isBkr:!1},this.rules[26]={name:`HTAB`,lower:`htab`,index:26,isBkr:!1},this.rules[27]={name:`CRLF`,lower:`crlf`,index:27,isBkr:!1},this.rules[28]={name:`CR`,lower:`cr`,index:28,isBkr:!1},this.rules[29]={name:`LF`,lower:`lf`,index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e=``;return e+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
120
|
-
`,e+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
|
|
121
|
-
`,e+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
|
|
122
|
-
`,e+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
|
|
123
|
-
`,e+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
|
|
124
|
-
`,e+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
|
|
125
|
-
`,e+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
|
|
126
|
-
`,e+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
|
|
127
|
-
`,e+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
|
|
128
|
-
`,e+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
|
|
129
|
-
`,e+=` ; Allow all printable characters except CTLs, semicolon and SP
|
|
130
|
-
`,e+=`
|
|
131
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
132
|
-
`,e+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
|
|
133
|
-
`,e+=`
|
|
134
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
|
|
135
|
-
`,e+=`; https://www.rfc-editor.org/errata/eid5518
|
|
136
|
-
`,e+=`cookie-pair = cookie-name "=" cookie-value
|
|
137
|
-
`,e+=`cookie-name = token
|
|
138
|
-
`,e+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
|
|
139
|
-
`,e+=` ; https://www.rfc-editor.org/errata/eid8242
|
|
140
|
-
`,e+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
141
|
-
`,e+=` ; US-ASCII characters excluding CTLs,
|
|
142
|
-
`,e+=` ; whitespace, DQUOTE, comma, semicolon,
|
|
143
|
-
`,e+=` ; and backslash
|
|
144
|
-
`,e+=`
|
|
145
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
|
|
146
|
-
`,e+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
|
|
147
|
-
`,e+=`
|
|
148
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
|
|
149
|
-
`,e+=`token = 1*(tchar)
|
|
150
|
-
`,e+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
151
|
-
`,e+=` / "+" / "-" / "." / "^" / "_" / "\`" / "|" / "~"
|
|
152
|
-
`,e+=` / DIGIT / ALPHA
|
|
153
|
-
`,e+=` ; any VCHAR, except delimiters
|
|
154
|
-
`,e+=`
|
|
155
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
|
|
156
|
-
`,e+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
|
|
157
|
-
`,e+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
|
|
158
|
-
`,e+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
|
|
159
|
-
`,e+=`SP = %x20 ; US-ASCII SP, space (32)
|
|
160
|
-
`,e+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
|
|
161
|
-
`,e+=`
|
|
162
|
-
`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
163
|
-
`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
164
|
-
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
165
|
-
`,e+=`DQUOTE = %x22 ; " (Double Quote)
|
|
166
|
-
`,e+=`WSP = SP / HTAB ; white space
|
|
167
|
-
`,e+=`HTAB = %x09 ; horizontal tab
|
|
168
|
-
`,e+=`CRLF = CR LF ; Internet standard newline
|
|
169
|
-
`,e+=`CR = %x0D ; carriage return
|
|
170
|
-
`,e+=`LF = %x0A ; linefeed
|
|
171
|
-
`,e}}new $L;var eR=e=>{if(typeof e!=`string`||[...e].length!==1)throw TypeError(`Input must be a single character string.`);let t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,`0`)}`:encodeURIComponent(e)},tR=e=>e.replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``),nR=e=>e.length>=2&&e.startsWith(`"`)&&e.endsWith(`"`),rR=e=>nR(e)?e.slice(1,-1):e,iR=e=>`"${e}"`,aR=e=>e,oR=new BE,sR=new $L,cR=(e,{strict:t=!0,quoted:n=null}={})=>{try{let r=t?`cookie-value`:`lenient-cookie-value`,i=oR.parse(sR,r,e);return typeof n==`boolean`?i.success&&n===nR(e):i.success}catch{return!1}},lR=e=>{let t=new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``);return btoa(t)},uR=(e,t=lR)=>{let n=String(e);if(cR(n))return n;let r=nR(n),i=t(r?rR(n):n);return r?iR(i):i},dR=e=>tR(lR(e)),fR=e=>uR(e,dR),pR=new BE,mR=new $L,hR=(e,{strict:t=!0}={})=>{try{let n=t?`cookie-name`:`lenient-cookie-name`;return pR.parse(mR,n,e).success}catch{return!1}},gR=e=>{if(!hR(e))throw TypeError(`Invalid cookie name: ${e}`)},_R=e=>{if(!cR(e))throw TypeError(`Invalid cookie value: ${e}`)},vR={encoders:{name:aR,value:fR},validators:{name:gR,value:_R}},yR=(e,t,n={})=>{let r={...vR,...n,encoders:{...vR.encoders,...n.encoders},validators:{...vR.validators,...n.validators}},i=r.encoders.name(e),a=r.encoders.value(t);return r.validators.name(i),r.validators.value(a),`${i}=${a}`},bR=(e,t={})=>(Array.isArray(e)?e:typeof e==`object`&&e?Object.entries(e):[]).map(([e,n])=>yR(e,n,t)).join(`; `),xR=new BE,SR=new $L,CR=e=>{let t=String(e);if(cR(t))return t;let n=nR(t),r=n?rR(t):t,i=``;for(let e of r)i+=xR.parse(SR,`cookie-octet`,e).success?e:eR(e);return n?iR(i):i};new BE,new $L;var wR=e=>{if(!hR(e,{strict:!1}))throw TypeError(`Invalid cookie name: ${e}`)},TR=`%3D`,ER=`%26`,DR=e=>CR(e).replace(/[=&]/gu,e=>e===`=`?TR:ER),OR=(e,t={})=>bR(e,xb({encoders:{name:aR,value:DR},validators:{name:wR,value:_R}},t)),kR=r({cookie:()=>PR,header:()=>NR,path:()=>AR,query:()=>jR});function AR({req:e,value:t,parameter:n,baseURL:r}){let{name:i,style:a,explode:o,content:s}=n;if(t===void 0)return;let c=e.url.replace(r,``),l;if(s){let e=Object.keys(s)[0];l=GL(c,{[i]:t},{encoder:t=>QT(QL(t,e))})}else l=GL(c,{[i]:t},{encoder:e=>$T({key:n.name,value:e,style:a||`simple`,explode:o??!1,escape:`reserved`})});e.url=r+l}function jR({req:e,value:t,parameter:n}){if(e.query=e.query||{},t!==void 0&&n.content){let r=Object.keys(n.content)[0],i=QL(t,r);if(i)e.query[n.name]=i;else if(n.allowEmptyValue){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(t===!1&&(t=`false`),t===0&&(t=`0`),t){let{style:r,explode:i,allowReserved:a}=n;e.query[n.name]={value:t,serializationOption:{style:r,explode:i,allowReserved:a}}}else if(n.allowEmptyValue&&t!==void 0){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}var MR=[`accept`,`authorization`,`content-type`];function NR({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!(MR.indexOf(t.name.toLowerCase())>-1)){if(n!==void 0&&t.content){let r=Object.keys(t.content)[0];e.headers[t.name]=QL(n,r);return}n!==void 0&&!(Array.isArray(n)&&n.length===0)&&(e.headers[t.name]=$T({key:t.name,value:n,style:t.style||`simple`,explode:t.explode!==void 0&&t.explode,escape:!1}))}}function PR({req:e,parameter:t,value:n}){let{name:r}=t;if(e.headers=e.headers||{},n!==void 0&&t.content){let i=Object.keys(t.content)[0],a=QL(n,i);e.headers.Cookie=OR({[r]:a});return}if(n!==void 0&&!(Array.isArray(n)&&n.length===0)){let i=$T({key:t.name,value:n,escape:!1,style:t.style||`form`,explode:t.explode??!1}),a=Array.isArray(n)&&t.explode?`${r}=${i}`:i;e.headers.Cookie=OR({[r]:a})}}var{btoa:FR}=typeof globalThis<`u`?globalThis:typeof self<`u`?self:window;function IR(e,t){let{operation:n,requestBody:r,securities:i,spec:a,attachContentTypeForEmptyPayload:o}=e,{requestContentType:s}=e;t=LR({request:t,securities:i,operation:n,spec:a});let c=n.requestBody||{},l=Object.keys(c.content||{}),u=s&&l.indexOf(s)>-1;if(r||o){if(s&&u)t.headers[`Content-Type`]=s;else if(!s){let e=l[0];e&&(t.headers[`Content-Type`]=e,s=e)}}else s&&u&&(t.headers[`Content-Type`]=s);if(!e.responseContentType&&n.responses){let e=Object.entries(n.responses).filter(([e,t])=>{let n=parseInt(e,10);return n>=200&&n<300&&lx(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(`, `))}if(r){if(s){if(l.indexOf(s)>-1){if(s===`application/x-www-form-urlencoded`||s===`multipart/form-data`){if(typeof r==`object`){let e=c.content[s]?.encoding??{};t.form={},Object.keys(r).forEach(n=>{let i;try{i=JSON.parse(r[n])}catch{i=r[n]}t.form[n]={value:i,encoding:e[n]||{}}})}else if(typeof r==`string`){let e=c.content[s]?.encoding??{};try{t.form={};let n=JSON.parse(r);Object.entries(n).forEach(([n,r])=>{t.form[n]={value:r,encoding:e[n]||{}}})}catch{t.form=r}}else t.form=r}else t.body=r}}else t.body=r}return t}function LR({request:e,securities:t={},operation:n={},spec:r}){let i={...e},{authorized:a={}}=t,o=n.security||r.security||[],s=a&&!!Object.keys(a).length,c=r?.components?.securitySchemes||{};return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!s||!o||Array.isArray(n.security)&&!n.security.length?e:(o.forEach(e=>{Object.keys(e).forEach(e=>{let t=a[e],n=c[e];if(!t)return;let r=t.value||t,{type:o}=n;if(t){if(o===`apiKey`)n.in===`query`&&(i.query[n.name]=r),n.in===`header`&&(i.headers[n.name]=r),n.in===`cookie`&&(i.cookies[n.name]=r);else if(o===`http`){if(/^basic$/i.test(n.scheme)){let e=FR(`${r.username||``}:${r.password||``}`);i.headers.Authorization=`Basic ${e}`}/^bearer$/i.test(n.scheme)&&(i.headers.Authorization=`Bearer ${r}`)}else if(o===`oauth2`||o===`openIdConnect`){let e=t.token||{},r=e[n[`x-tokenName`]||`access_token`],a=e.token_type;(!a||a.toLowerCase()===`bearer`)&&(a=`Bearer`),i.headers.Authorization=`${a} ${r}`}}})}),i)}function RR(e,t){let{spec:n,operation:r,securities:i,requestContentType:a,responseContentType:o,attachContentTypeForEmptyPayload:s}=e;if(t=zR({request:t,securities:i,operation:r,spec:n}),t.body||t.form||s)a?t.headers[`Content-Type`]=a:Array.isArray(r.consumes)?[t.headers[`Content-Type`]]=r.consumes:Array.isArray(n.consumes)?[t.headers[`Content-Type`]]=n.consumes:r.parameters&&r.parameters.filter(e=>e.type===`file`).length?t.headers[`Content-Type`]=`multipart/form-data`:r.parameters&&r.parameters.filter(e=>e.in===`formData`).length&&(t.headers[`Content-Type`]=`application/x-www-form-urlencoded`);else if(a){let e=r.parameters&&r.parameters.filter(e=>e.in===`body`).length>0,n=r.parameters&&r.parameters.filter(e=>e.in===`formData`).length>0;(e||n)&&(t.headers[`Content-Type`]=a)}return!o&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(`, `)),t}function zR({request:e,securities:t={},operation:n={},spec:r}){let i={...e},{authorized:a={},specSecurity:o=[]}=t,s=n.security||o,c=a&&!!Object.keys(a).length,l=r.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!c||!s||Array.isArray(n.security)&&!n.security.length?e:(s.forEach(e=>{Object.keys(e).forEach(e=>{let t=a[e];if(!t)return;let{token:n}=t,r=t.value||t,o=l[e],{type:s}=o,c=o[`x-tokenName`]||`access_token`,u=n&&n[c],d=n&&n.token_type;if(t){if(s===`apiKey`){let e=o.in===`query`?`query`:`headers`;i[e]=i[e]||{},i[e][o.name]=r}else s===`basic`?r.header?i.headers.authorization=r.header:(r.base64=FR(`${r.username||``}:${r.password||``}`),i.headers.authorization=`Basic ${r.base64}`):s===`oauth2`&&u&&(d=!d||d.toLowerCase()===`bearer`?`Bearer`:d,i.headers.authorization=`${d} ${u}`)}})}),i)}function BR(e,t,n){if(!e||typeof e!=`object`||!e.paths||typeof e.paths!=`object`)return null;let{paths:r}=e,i=ME(e);for(let a in r){for(let i in r[a]){if(i.toUpperCase()===`PARAMETERS`||i===`additionalOperations`)continue;let o=r[a][i];if(!o||typeof o!=`object`)continue;let s={spec:e,pathName:a,method:i.toUpperCase(),operation:o},c=t(s);if(n&&c)return s}let{additionalOperations:o}=r[a];if(i&&o&&typeof o==`object`)for(let r of Object.keys(o)){let i=o[r];if(!i||typeof i!=`object`)continue;let s={spec:e,pathName:a,method:r,operation:i},c=t(s);if(n&&c)return s}}}function VR(e,t){return BR(e,t,!0)||null}function HR(e,t){return`${t.toLowerCase()}-${e}`}function UR(e,t){return!e||!e.paths?null:VR(e,({pathName:e,method:n,operation:r})=>{if(!r||typeof r!=`object`)return!1;let i=r.operationId;return[TE(r,e,n),HR(e,n),i].some(e=>e&&e===t)})}var{isHttpUrl:WR}=jx,GR=e=>Array.isArray(e)?e:[],KR=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,qR=e=>typeof e==`string`&&KR.test(e),JR=(e,{recurse:t=!0,depth:n=1}={})=>{var r,i;if(lx(e)){if(e.type===`object`||e.type===`array`||Array.isArray(e.type)&&((0,Lw.default)(r=e.type).call(r,`object`)||(0,Lw.default)(i=e.type).call(i,`array`)))return e;if(!(n>3e3)&&t){let r=Array.isArray(e.oneOf)?e.oneOf.find(e=>JR(e,{recurse:t,depth:n+1})):void 0;if(r)return r;let i=Array.isArray(e.anyOf)?e.anyOf.find(e=>JR(e,{recurse:t,depth:n+1})):void 0;if(i)return i}}},YR=({value:e,silentFail:t=!1})=>{try{let n=JSON.parse(e);if(lx(n)||Array.isArray(n))return n;if(!t)throw Error(`Expected JSON serialized object or array`)}catch{if(!t)throw Error(`Could not parse parameter value string as JSON Object or JSON Array`)}return e},XR=e=>{try{return new URL(e)}catch{let t=new URL(e,rT),n=String(e).startsWith(`/`)?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:``,hostname:``,href:``,origin:``,password:``,pathname:n,port:``,protocol:``,search:t.search,searchParams:t.searchParams}}},ZR=class extends F_{},QR=(e,t)=>t.filter(t=>t.name===e),$R=e=>{let t={};e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});let n=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{n.push(t[e][r])})}),n},ez={buildRequest:nz};function tz({http:e,fetch:t,spec:n,operationId:r,pathName:i,method:a,parameters:o,securities:s,...c}){let l=e||t||_E;i&&a&&!r&&(r=HR(i,a));let u=ez.buildRequest({spec:n,operationId:r,parameters:o,securities:s,http:l,...c});return u.body&&(lx(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)}function nz(e){let{spec:t,operationId:n,responseContentType:r,scheme:i,requestInterceptor:a,responseInterceptor:o,contextUrl:s,userFetch:c,server:l,serverVariables:u,http:d,signal:f,serverVariableEncoder:p}=e,{parameters:m,parameterBuilders:h,baseURL:g}=e,_=NE(t);h||=_?kR:KL;let v={url:``,credentials:d&&d.withCredentials?`include`:`same-origin`,headers:{},cookies:{}};f&&(v.signal=f),a&&(v.requestInterceptor=a),o&&(v.responseInterceptor=o),c&&(v.userFetch=c);let y=UR(t,n);if(!y)throw new ZR(`Operation ${n} not found`);let{operation:b={},method:x,pathName:S}=y;if(!qR(x))throw Error(`Invalid HTTP method`);if(g??=iz({spec:t,scheme:i,contextUrl:s,server:l,serverVariables:u,pathName:S,method:x,operation:b,serverVariableEncoder:p}),v.url+=g,!n)return delete v.cookies,v;v.url+=S,v.method=x,m||={};let C=t.paths[S]||{};r&&(v.headers.accept=r);let w=$R([].concat(GR(b.parameters),GR(C.parameters)));w.forEach(e=>{let n=h[e.in],r;if(e.in===`body`&&e.schema&&e.schema.properties&&(r=m),r=e&&e.name&&m[e.name],r===void 0?r=e&&e.name&&m[`${e.in}.${e.name}`]:QR(e.name,w).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),r!==null){if(e.default!==void 0&&r===void 0&&(r=e.default),r===void 0&&e.required&&!e.allowEmptyValue)throw Error(`Required parameter ${e.name} is not provided`);_&&typeof r==`string`&&(ob(`type`,e.schema)&&typeof e.schema.type==`string`&&JR(e.schema,{recurse:!1})?r=YR({value:r,silentFail:!1}):(ob(`type`,e.schema)&&Array.isArray(e.schema.type)&&JR(e.schema,{recurse:!1})||!ob(`type`,e.schema)&&JR(e.schema,{recurse:!0}))&&(r=YR({value:r,silentFail:!0}))),n&&n({req:v,parameter:e,value:r,operation:b,spec:t,baseURL:g})}});let T={...e,operation:b};if(v=_?IR(T,v):RR(T,v),v.cookies&&Object.keys(v.cookies).length>0){let e=OR(v.cookies);ix(v.headers.Cookie)?v.headers.Cookie+=`; ${e}`:v.headers.Cookie=e}return v.cookies&&delete v.cookies,dE(v)}var rz=e=>e?e.replace(/\W/g,``):null;function iz(e){return NE(e.spec)?oz(e):cz(e)}var az=e=>Array.isArray(e)&&e.length>0;function oz({spec:e,pathName:t,method:n,operation:r,server:i,contextUrl:a,serverVariables:o={},serverVariableEncoder:s}){let c=[],l=``,u,d=r?.servers??e?.paths?.[t]?.[(n||``).toLowerCase()]?.servers,f=e?.paths?.[t]?.servers,p=e?.servers;if(c=az(d)?d:az(f)?f:az(p)?p:[iT],i&&(u=c.find(e=>e.url===i),u&&(l=i)),l||=([u]=c,u.url),kL(l,{strict:!0})){let e=Object.entries({...u.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});l=NL(l,{...e,...o},{encoder:typeof s==`function`?s:Ay})}return sz(l,a)}function sz(e=``,t=``){let n=XR(e&&t?Wx(t,e):e),r=XR(t),i=rz(n.protocol)||rz(r.protocol),a=n.host||r.host,o=n.pathname,s;return s=i&&a?`${i}://${a+o}`:o,s[s.length-1]===`/`?s.slice(0,-1):s}function cz({spec:e,scheme:t,contextUrl:n=``}){let r=XR(n),i=Array.isArray(e.schemes)?e.schemes[0]:null,a=t||i||rz(r.protocol)||`http`,o=e.host||r.host||``,s=e.basePath||``,c;return c=a&&o?`${a}://${o+s}`:s,c[c.length-1]===`/`?c.slice(0,-1):c}var lz=async(e,t,n={})=>{let{returnEntireTree:r,baseDoc:i,requestInterceptor:a,responseInterceptor:o,parameterMacro:s,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=n,d={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:a,responseInterceptor:o,parameterMacro:s,modelPropertyMacro:c,useCircularStructures:l,strategies:u},f=await xL({spec:u.find(t=>t.match(e)).normalize(e),...d,allowMetaPatches:!0,skipNormalization:!jE(e)});return!r&&Array.isArray(t)&&t.length&&(f.spec=t.reduce((e,t)=>e?.[t],f.spec)||null),f},uz=e=>async(t,n,r={})=>lz(t,n,{...e,...r}),dz=e(o()),fz=e(Es());function pz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mz(e,t){if(e==null)return{};var n,r,i=pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gz(e){if(Array.isArray(e))return hz(e)}function _z(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function vz(e,t){if(e){if(typeof e==`string`)return hz(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hz(e,t):void 0}}function yz(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
172
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bz(e){return gz(e)||_z(e)||vz(e)||yz()}function xz(e){"@babel/helpers - typeof";return xz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xz(e)}function Sz(e,t){if(xz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Cz(e){var t=Sz(e,`string`);return xz(t)==`symbol`?t:t+``}function wz(e,t,n){return(t=Cz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tz(){return Tz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tz.apply(null,arguments)}function Ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ez(Object(n),!0).forEach(function(t){wz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ez(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oz(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],`${e[0]}.${e[1]}`,`${e[1]}.${e[0]}`];if(t===3)return[e[0],e[1],e[2],`${e[0]}.${e[1]}`,`${e[0]}.${e[2]}`,`${e[1]}.${e[0]}`,`${e[1]}.${e[2]}`,`${e[2]}.${e[0]}`,`${e[2]}.${e[1]}`,`${e[0]}.${e[1]}.${e[2]}`,`${e[0]}.${e[2]}.${e[1]}`,`${e[1]}.${e[0]}.${e[2]}`,`${e[1]}.${e[2]}.${e[0]}`,`${e[2]}.${e[0]}.${e[1]}`,`${e[2]}.${e[1]}.${e[0]}`];if(t>=4)return[e[0],e[1],e[2],e[3],`${e[0]}.${e[1]}`,`${e[0]}.${e[2]}`,`${e[0]}.${e[3]}`,`${e[1]}.${e[0]}`,`${e[1]}.${e[2]}`,`${e[1]}.${e[3]}`,`${e[2]}.${e[0]}`,`${e[2]}.${e[1]}`,`${e[2]}.${e[3]}`,`${e[3]}.${e[0]}`,`${e[3]}.${e[1]}`,`${e[3]}.${e[2]}`,`${e[0]}.${e[1]}.${e[2]}`,`${e[0]}.${e[1]}.${e[3]}`,`${e[0]}.${e[2]}.${e[1]}`,`${e[0]}.${e[2]}.${e[3]}`,`${e[0]}.${e[3]}.${e[1]}`,`${e[0]}.${e[3]}.${e[2]}`,`${e[1]}.${e[0]}.${e[2]}`,`${e[1]}.${e[0]}.${e[3]}`,`${e[1]}.${e[2]}.${e[0]}`,`${e[1]}.${e[2]}.${e[3]}`,`${e[1]}.${e[3]}.${e[0]}`,`${e[1]}.${e[3]}.${e[2]}`,`${e[2]}.${e[0]}.${e[1]}`,`${e[2]}.${e[0]}.${e[3]}`,`${e[2]}.${e[1]}.${e[0]}`,`${e[2]}.${e[1]}.${e[3]}`,`${e[2]}.${e[3]}.${e[0]}`,`${e[2]}.${e[3]}.${e[1]}`,`${e[3]}.${e[0]}.${e[1]}`,`${e[3]}.${e[0]}.${e[2]}`,`${e[3]}.${e[1]}.${e[0]}`,`${e[3]}.${e[1]}.${e[2]}`,`${e[3]}.${e[2]}.${e[0]}`,`${e[3]}.${e[2]}.${e[1]}`,`${e[0]}.${e[1]}.${e[2]}.${e[3]}`,`${e[0]}.${e[1]}.${e[3]}.${e[2]}`,`${e[0]}.${e[2]}.${e[1]}.${e[3]}`,`${e[0]}.${e[2]}.${e[3]}.${e[1]}`,`${e[0]}.${e[3]}.${e[1]}.${e[2]}`,`${e[0]}.${e[3]}.${e[2]}.${e[1]}`,`${e[1]}.${e[0]}.${e[2]}.${e[3]}`,`${e[1]}.${e[0]}.${e[3]}.${e[2]}`,`${e[1]}.${e[2]}.${e[0]}.${e[3]}`,`${e[1]}.${e[2]}.${e[3]}.${e[0]}`,`${e[1]}.${e[3]}.${e[0]}.${e[2]}`,`${e[1]}.${e[3]}.${e[2]}.${e[0]}`,`${e[2]}.${e[0]}.${e[1]}.${e[3]}`,`${e[2]}.${e[0]}.${e[3]}.${e[1]}`,`${e[2]}.${e[1]}.${e[0]}.${e[3]}`,`${e[2]}.${e[1]}.${e[3]}.${e[0]}`,`${e[2]}.${e[3]}.${e[0]}.${e[1]}`,`${e[2]}.${e[3]}.${e[1]}.${e[0]}`,`${e[3]}.${e[0]}.${e[1]}.${e[2]}`,`${e[3]}.${e[0]}.${e[2]}.${e[1]}`,`${e[3]}.${e[1]}.${e[0]}.${e[2]}`,`${e[3]}.${e[1]}.${e[2]}.${e[0]}`,`${e[3]}.${e[2]}.${e[0]}.${e[1]}`,`${e[3]}.${e[2]}.${e[1]}.${e[0]}`]}var kz={};function Az(e){if(e.length===0||e.length===1)return e;var t=e.join(`.`);return kz[t]||(kz[t]=Oz(e)),kz[t]}function jz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Az(e.filter(function(e){return e!==`token`})).reduce(function(e,t){return Dz(Dz({},e),n[t])},t)}function Mz(e){return e.join(` `)}function Nz(e,t){var n=0;return function(r){return n+=1,r.map(function(r,i){return Pz({node:r,stylesheet:e,useInlineStyles:t,key:`code-segment-${n}-${i}`})})}}function Pz(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,a=e.useInlineStyles,o=e.key,s=t.properties,c=t.type,l=t.tagName,u=t.value;if(c===`text`)return u;if(l){var d=Nz(n,a),f;if(!a)f=Dz(Dz({},s),{},{className:Mz(s.className)});else{var p=Object.keys(n).reduce(function(e,t){return t.split(`.`).forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=s.className&&s.className.includes(`token`)?[`token`]:[],h=s.className&&m.concat(s.className.filter(function(e){return!p.includes(e)}));f=Dz(Dz({},s),{},{className:Mz(h)||void 0,style:jz(s.className,Object.assign({},s.style,i),n)})}var g=d(t.children);return H.createElement(l,Tz({key:o},f),g)}}var Fz=(function(e,t){return e.listLanguages().indexOf(t)!==-1}),Iz=[`language`,`children`,`style`,`customStyle`,`codeTagProps`,`useInlineStyles`,`showLineNumbers`,`showInlineLineNumbers`,`startingLineNumber`,`lineNumberContainerStyle`,`lineNumberStyle`,`wrapLines`,`wrapLongLines`,`lineProps`,`renderer`,`PreTag`,`CodeTag`,`code`,`astGenerator`];function Lz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lz(Object(n),!0).forEach(function(t){wz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zz=/\n/g;function Bz(e){return e.match(zz)}function Vz(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(e,t){var i=t+n;return H.createElement(`span`,{key:`line-${t}`,className:`react-syntax-highlighter-line-number`,style:typeof r==`function`?r(i):r},`${i}
|
|
173
|
-
`)})}function Hz(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:`left`,paddingRight:`10px`}:r,a=e.numberStyle,o=a===void 0?{}:a,s=e.startingLineNumber;return H.createElement(`code`,{style:Object.assign({},n,i)},Vz({lines:t.replace(/\n$/,``).split(`
|
|
174
|
-
`),style:o,startingLineNumber:s}))}function Uz(e){return`${e.toString().length}.25em`}function Wz(e,t){return{type:`element`,tagName:`span`,properties:{key:`line-number--${e}`,className:[`comment`,`linenumber`,`react-syntax-highlighter-line-number`],style:t},children:[{type:`text`,value:e}]}}function Gz(e,t,n){var r={display:`inline-block`,minWidth:Uz(n),paddingRight:`1em`,textAlign:`right`,userSelect:`none`},i=typeof e==`function`?e(t):e;return Rz(Rz({},r),i)}function Kz(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,c=e.className,l=c===void 0?[]:c,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,p=f!==void 0&&f?Rz({},typeof s==`function`?s(n):s):{};if(p.className=p.className?[].concat(bz(p.className.trim().split(/\s+/)),bz(l)):l,n&&a){var m=Gz(r,n,i);t.unshift(Wz(n,m))}return d&u&&(p.style=Rz({display:`flex`},p.style)),{type:`element`,tagName:`span`,properties:p,children:t}}function qz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if(i.type===`text`)n.push(Kz({children:[i],className:bz(new Set(t))}));else if(i.children){var a=t.concat(i.properties?.className||[]);qz(i.children,a).forEach(function(e){return n.push(e)})}}return n}function Jz(e,t,n,r,i,a,o,s,c){var l,u=qz(e.value),d=[],f=-1,p=0;function m(e,a){return Kz({children:e,lineNumber:a,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],showLineNumbers:r,wrapLongLines:c,wrapLines:t})}function h(e,t){if(r&&t&&i){var n=Gz(s,t,o);e.unshift(Wz(t,n))}return e}function g(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||r.length>0?m(e,n,r):h(e,n)}for(var _=function(){var e=u[p],t=e.children[0].value;if(Bz(t)){var n=t.split(`
|
|
175
|
-
`);n.forEach(function(t,i){var o=r&&d.length+a,s={type:`text`,value:`${t}
|
|
176
|
-
`};if(i===0){var c=g(u.slice(f+1,p).concat(Kz({children:[s],className:e.properties.className})),o);d.push(c)}else if(i===n.length-1){var l=u[p+1]&&u[p+1].children&&u[p+1].children[0],m={type:`text`,value:`${t}`};if(l){var h=Kz({children:[m],className:e.properties.className});u.splice(p+1,0,h)}else{var _=g([m],o,e.properties.className);d.push(_)}}else{var v=g([s],o,e.properties.className);d.push(v)}}),f=p}p++};p<u.length;)_();if(f!==u.length-1){var v=u.slice(f+1,u.length);if(v&&v.length){var y=g(v,r&&d.length+a);d.push(y)}}return t?d:(l=[]).concat.apply(l,d)}function Yz(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Pz({node:e,stylesheet:n,useInlineStyles:r,key:`code-segment-${t}`})})}function Xz(e){return e&&e.highlightAuto!==void 0}function Zz(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Xz(t)){var a=Fz(t,n);return n===`text`?{value:i,language:`text`}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!==`text`?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function Qz(e,t){return function(n){var r=n.language,i=n.children,a=n.style,o=a===void 0?t:a,s=n.customStyle,c=s===void 0?{}:s,l=n.codeTagProps,u=l===void 0?{className:r?`language-${r}`:void 0,style:Rz(Rz({},o[`code[class*="language-"]`]),o[`code[class*="language-${r}"]`])}:l,d=n.useInlineStyles,f=d===void 0||d,p=n.showLineNumbers,m=p!==void 0&&p,h=n.showInlineLineNumbers,g=h===void 0||h,_=n.startingLineNumber,v=_===void 0?1:_,y=n.lineNumberContainerStyle,b=n.lineNumberStyle,x=b===void 0?{}:b,S=n.wrapLines,C=n.wrapLongLines,w=C!==void 0&&C,T=n.lineProps,E=T===void 0?{}:T,D=n.renderer,O=n.PreTag,k=O===void 0?`pre`:O,A=n.CodeTag,j=A===void 0?`code`:A,M=n.code,N=M===void 0?(Array.isArray(i)?i[0]:i)||``:M,P=n.astGenerator,ee=mz(n,Iz);P||=e;var te=m?H.createElement(Hz,{containerStyle:y,codeStyle:u.style||{},numberStyle:x,startingLineNumber:v,codeString:N}):null,F=o.hljs||o[`pre[class*="language-"]`]||{backgroundColor:`#fff`},I=Xz(P)?`hljs`:`prismjs`,L=f?Object.assign({},ee,{style:Object.assign({},F,c)}):Object.assign({},ee,{className:ee.className?`${I} ${ee.className}`:I,style:Object.assign({},c)});if(u.style=Rz(w?{whiteSpace:`pre-wrap`}:{whiteSpace:`pre`},u.style),!P)return H.createElement(k,L,te,H.createElement(j,u,N));(S===void 0&&D||w)&&(S=!0),D||=Yz;var R=[{type:`text`,value:N}],ne=Zz({astGenerator:P,language:r,code:N,defaultCodeValue:R});ne.language===null&&(ne.value=R);var re=v+(N.match(/\n/g)?.length??0),ie=Jz(ne,S,E,m,g,v,re,x,w);return H.createElement(k,L,H.createElement(j,u,!g&&te,D({rows:ie,stylesheet:o,useInlineStyles:f})))}}var $z=i(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r==`object`&&!Object.isFrozen(r)&&n(r)}),e}var r=n;r.default=n;var i=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function a(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function o(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var s=`</span>`,c=e=>!!e.kind,l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=class e{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},d=class extends u{constructor(e){super(),this.options=e}addKeyword(e,t){e!==``&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){e!==``&&this.add(e)}addSublanguage(e,t){let n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}};function f(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function p(e){return e?typeof e==`string`?e:e.source:null}function m(...e){return e.map(e=>p(e)).join(``)}function h(...e){return`(`+e.map(e=>p(e)).join(`|`)+`)`}function g(e){return RegExp(e.toString()+`|`).exec(``).length-1}function _(e,t){let n=e&&e.exec(t);return n&&n.index===0}var v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(e,t=`|`){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=v.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var b=/\b\B/,x=`[a-zA-Z]\\w*`,S=`[a-zA-Z_]\\w*`,C=`\\b\\d+(\\.\\d+)?`,w=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,T=`\\b(0b[01]+)`,E=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,D=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),o({className:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},O={begin:`\\\\[\\s\\S]`,relevance:0},k={className:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[O]},A={className:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[O]},j={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},M=function(e,t,n={}){let r=o({className:`comment`,begin:e,end:t,contains:[]},n);return r.contains.push(j),r.contains.push({className:`doctag`,begin:`(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):`,relevance:0}),r},N=M(`//`,`$`),P=M(`/\\*`,`\\*/`),ee=M(`#`,`$`),te=Object.freeze({__proto__:null,MATCH_NOTHING_RE:b,IDENT_RE:x,UNDERSCORE_IDENT_RE:S,NUMBER_RE:C,C_NUMBER_RE:w,BINARY_NUMBER_RE:T,RE_STARTERS_RE:E,SHEBANG:D,BACKSLASH_ESCAPE:O,APOS_STRING_MODE:k,QUOTE_STRING_MODE:A,PHRASAL_WORDS_MODE:j,COMMENT:M,C_LINE_COMMENT_MODE:N,C_BLOCK_COMMENT_MODE:P,HASH_COMMENT_MODE:ee,NUMBER_MODE:{className:`number`,begin:C,relevance:0},C_NUMBER_MODE:{className:`number`,begin:w,relevance:0},BINARY_NUMBER_MODE:{className:`number`,begin:T,relevance:0},CSS_NUMBER_MODE:{className:`number`,begin:`\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:`regexp`,begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]}]},TITLE_MODE:{className:`title`,begin:x,relevance:0},UNDERSCORE_TITLE_MODE:{className:`title`,begin:S,relevance:0},METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function F(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function I(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function L(e,t){Array.isArray(e.illegal)&&(e.illegal=h(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function ne(e,t){e.relevance===void 0&&(e.relevance=1)}var re=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],ie=`keyword`;function ae(e,t,n=ie){let r={};return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ae(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,oe(n[0],n[1])]})}}function oe(e,t){return t?Number(t):+!se(e)}function se(e){return re.includes(e.toLowerCase())}function ce(e,{plugins:t}){function n(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(n?`g`:``))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=g(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=n(y(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function a(e){let t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function s(t,r){let i=t;if(t.isCompiled)return i;[R].forEach(e=>e(t,r)),e.compilerExtensions.forEach(e=>e(t,r)),t.__beforeBegin=null,[I,L,ne].forEach(e=>e(t,r)),t.isCompiled=!0;let o=null;if(typeof t.keywords==`object`&&(o=t.keywords.$pattern,delete t.keywords.$pattern),t.keywords&&=ae(t.keywords,e.case_insensitive),t.lexemes&&o)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return o=o||t.lexemes||/\w+/,i.keywordPatternRe=n(o,!0),r&&(t.begin||=/\B|\b/,i.beginRe=n(t.begin),t.endSameAsBegin&&(t.end=t.begin),!t.end&&!t.endsWithParent&&(t.end=/\B|\b/),t.end&&(i.endRe=n(t.end)),i.terminatorEnd=p(t.end)||``,t.endsWithParent&&r.terminatorEnd&&(i.terminatorEnd+=(t.end?`|`:``)+r.terminatorEnd)),t.illegal&&(i.illegalRe=n(t.illegal)),t.contains||=[],t.contains=[].concat(...t.contains.map(function(e){return ue(e===`self`?t:e)})),t.contains.forEach(function(e){s(e,i)}),t.starts&&s(t.starts,r),i.matcher=a(i),i}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=o(e.classNameAliases||{}),s(e)}function le(e){return e?e.endsWithParent||le(e.starts):!1}function ue(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return o(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:le(e)?o(e,{starts:e.starts?o(e.starts):null}):Object.isFrozen(e)?o(e):e}var de=`10.7.3`;function fe(e){return!!(e||e===``)}function pe(e){let t={props:[`language`,`code`,`autodetect`],data:function(){return{detectedLanguage:``,unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?``:`hljs `+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||fe(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e(`pre`,{},[e(`code`,{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component(`highlightjs`,t)}}}}var me={"after:highlightElement":({el:e,result:t,text:n})=>{let r=ge(e);if(!r.length)return;let i=document.createElement(`div`);i.innerHTML=t.value,t.value=_e(r,ge(i),n)}};function he(e){return e.nodeName.toLowerCase()}function ge(e){let t=[];return(function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)i.nodeType===3?r+=i.nodeValue.length:i.nodeType===1&&(t.push({event:`start`,offset:r,node:i}),r=e(i,r),he(i).match(/br|hr|img|input/)||t.push({event:`stop`,offset:r,node:i}));return r})(e,0),t}function _e(e,t,n){let r=0,i=``,o=[];function s(){return!e.length||!t.length?e.length?e:t:e[0].offset===t[0].offset?t[0].event===`start`?e:t:e[0].offset<t[0].offset?e:t}function c(e){function t(e){return` `+e.nodeName+`="`+a(e.value)+`"`}i+=`<`+he(e)+[].map.call(e.attributes,t).join(``)+`>`}function l(e){i+=`</`+he(e)+`>`}function u(e){(e.event===`start`?c:l)(e.node)}for(;e.length||t.length;){let t=s();if(i+=a(n.substring(r,t[0].offset)),r=t[0].offset,t===e){o.reverse().forEach(l);do u(t.splice(0,1)[0]),t=s();while(t===e&&t.length&&t[0].offset===r);o.reverse().forEach(c)}else t[0].event===`start`?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return i+a(n.substr(r))}var ve={},ye=e=>{console.error(e)},be=(e,...t)=>{console.log(`WARN: ${e}`,...t)},xe=(e,t)=>{ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ve[`${e}/${t}`]=!0)},Se=a,Ce=o,we=Symbol(`nomatch`);t.exports=function(e){let t=Object.create(null),n=Object.create(null),a=[],o=!0,s=/(^(<[^>]+>|\t|)+|\n)/gm,c=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,tabReplace:null,useBR:!1,languages:null,__emitter:d};function p(e){return u.noHighlightRe.test(e)}function m(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=F(n[1]);return t||(be(c.replace(`{}`,n[1])),be(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>p(e)||F(e))}function h(e,t,n,r){let i=``,a=``;typeof t==`object`?(i=e,n=t.ignoreIllegals,a=t.language,r=void 0):(xe(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),xe(`10.7.0`,`Please use highlight(code, options) instead.
|
|
177
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),a=e,i=t);let o={code:i,language:a};re(`before:highlight`,o);let s=o.result?o.result:g(o.language,o.code,n,r);return s.code=o.code,re(`after:highlight`,s),s}function g(e,n,r,s){function l(e,t){let n=E.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function d(){if(!k.keywords){j.addText(M);return}let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(M),n=``;for(;t;){n+=M.substring(e,t.index);let r=l(k,t);if(r){let[e,i]=r;if(j.addText(n),n=``,N+=i,e.startsWith(`_`))n+=t[0];else{let n=E.classNameAliases[e]||e;j.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(M)}n+=M.substr(e),j.addText(n)}function p(){if(M===``)return;let e=null;if(typeof k.subLanguage==`string`){if(!t[k.subLanguage]){j.addText(M);return}e=g(k.subLanguage,M,!0,A[k.subLanguage]),A[k.subLanguage]=e.top}else e=y(M,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(N+=e.relevance),j.addSublanguage(e.emitter,e.language)}function m(){k.subLanguage==null?d():p(),M=``}function h(e){return e.className&&j.openNode(E.classNameAliases[e.className]||e.className),k=Object.create(e,{parent:{value:k}}),k}function v(e,t,n){let r=_(e.endRe,n);if(r){if(e[`on:end`]){let n=new i(e);e[`on:end`](t,n),n.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return k.matcher.regexIndex===0?(M+=e[0],1):(te=!0,0)}function x(e){let t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,r),r.isMatchIgnored))return b(t);return n&&n.endSameAsBegin&&(n.endRe=f(t)),n.skip?M+=t:(n.excludeBegin&&(M+=t),m(),!n.returnBegin&&!n.excludeBegin&&(M=t)),h(n),n.returnBegin?0:t.length}function S(e){let t=e[0],r=n.substr(e.index),i=v(k,e,r);if(!i)return we;let a=k;a.skip?M+=t:(a.returnEnd||a.excludeEnd||(M+=t),m(),a.excludeEnd&&(M=t));do k.className&&j.closeNode(),!k.skip&&!k.subLanguage&&(N+=k.relevance),k=k.parent;while(k!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),h(i.starts)),a.returnEnd?0:t.length}function C(){let e=[];for(let t=k;t!==E;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>j.openNode(e))}let w={};function T(t,i){let a=i&&i[0];if(M+=t,a==null)return m(),0;if(w.type===`begin`&&i.type===`end`&&w.index===i.index&&a===``){if(M+=n.slice(i.index,i.index+1),!o){let t=Error(`0 width match regex`);throw t.languageName=e,t.badRule=w.rule,t}return 1}if(w=i,i.type===`begin`)return x(i);if(i.type===`illegal`&&!r){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(k.className||`<unnamed>`)+`"`);throw e.mode=k,e}if(i.type===`end`){let e=S(i);if(e!==we)return e}if(i.type===`illegal`&&a===``)return 1;if(ee>1e5&&ee>i.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return M+=a,a.length}let E=F(e);if(!E)throw ye(c.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let D=ce(E,{plugins:a}),O=``,k=s||D,A={},j=new u.__emitter(u);C();let M=``,N=0,P=0,ee=0,te=!1;try{for(k.matcher.considerAll();;){ee++,te?te=!1:k.matcher.considerAll(),k.matcher.lastIndex=P;let e=k.matcher.exec(n);if(!e)break;let t=T(n.substring(P,e.index),e);P=e.index+t}return T(n.substr(P)),j.closeAllNodes(),j.finalize(),O=j.toHTML(),{relevance:Math.floor(N),value:O,language:e,illegal:!1,emitter:j,top:k}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(P-100,P+100),mode:t.mode},sofar:O,relevance:0,value:Se(n),emitter:j};if(o)return{illegal:!1,relevance:0,value:Se(n),emitter:j,language:e,top:k,errorRaised:t};throw t}}function v(e){let t={relevance:0,emitter:new u.__emitter(u),value:Se(e),illegal:!1,top:l};return t.emitter.addText(e),t}function y(e,n){n=n||u.languages||Object.keys(t);let r=v(e),i=n.filter(F).filter(L).map(t=>g(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(F(e.language).supersetOf===t.language)return 1;if(F(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.second_best=o,s}function b(e){return u.tabReplace||u.useBR?e.replace(s,e=>e===`
|
|
178
|
-
`?u.useBR?`<br>`:e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e):e}function x(e,t,r){let i=t?n[t]:r;e.classList.add(`hljs`),i&&e.classList.add(i)}let S={"before:highlightElement":({el:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,``).replace(/<br[ /]*>/g,`
|
|
179
|
-
`))},"after:highlightElement":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,`<br>`))}},C=/^(<[^>]+>|\t)+/gm,w={"after:highlightElement":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(C,e=>e.replace(/\t/g,u.tabReplace)))}};function T(e){let t=null,n=m(e);if(p(n))return;re(`before:highlightElement`,{el:e,language:n}),t=e;let r=t.textContent,i=n?h(r,{language:n,ignoreIllegals:!0}):y(r);re(`after:highlightElement`,{el:e,result:i,text:r}),e.innerHTML=i.value,x(e,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}function E(e){e.useBR&&(xe(`10.3.0`,`'useBR' will be removed entirely in v11.0`),xe(`10.3.0`,`Please see https://github.com/highlightjs/highlight.js/issues/2559`)),u=Ce(u,e)}let D=()=>{D.called||(D.called=!0,xe(`10.6.0`,`initHighlighting() is deprecated. Use highlightAll() instead.`),document.querySelectorAll(`pre code`).forEach(T))};function O(){xe(`10.6.0`,`initHighlightingOnLoad() is deprecated. Use highlightAll() instead.`),k=!0}let k=!1;function A(){if(document.readyState===`loading`){k=!0;return}document.querySelectorAll(`pre code`).forEach(T)}function j(){k&&A()}typeof window<`u`&&window.addEventListener&&window.addEventListener(`DOMContentLoaded`,j,!1);function M(n,r){let i=null;try{i=r(e)}catch(e){if(ye(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)ye(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&I(i.aliases,{languageName:n})}function N(e){delete t[e];for(let t of Object.keys(n))n[t]===e&&delete n[t]}function P(){return Object.keys(t)}function ee(e){xe(`10.4.0`,`requireLanguage will be removed entirely in v11.`),xe(`10.4.0`,`Please see https://github.com/highlightjs/highlight.js/pull/2844`);let t=F(e);if(t)return t;throw Error(`The '{}' language is required, but not loaded.`.replace(`{}`,e))}function F(e){return e=(e||``).toLowerCase(),t[e]||t[n[e]]}function I(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function L(e){let t=F(e);return t&&!t.disableAutodetect}function R(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ne(e){R(e),a.push(e)}function re(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ie(e){return xe(`10.2.0`,`fixMarkup will be removed entirely in v11.0`),xe(`10.2.0`,`Please see https://github.com/highlightjs/highlight.js/issues/2534`),b(e)}function ae(e){return xe(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),xe(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:h,highlightAuto:y,highlightAll:A,fixMarkup:ie,highlightElement:T,highlightBlock:ae,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:M,unregisterLanguage:N,listLanguages:P,getLanguage:F,registerAliases:I,requireLanguage:ee,autoDetection:L,inherit:Ce,addPlugin:ne,vuePlugin:pe(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=de;for(let e in te)typeof te[e]==`object`&&r(te[e]);return Object.assign(e,te),e.addPlugin(S),e.addPlugin(me),e.addPlugin(w),e}({})})),eB=i(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o}else o===`%`?s=!0:a+=o;return a}})()})),tB=i(((e,t)=>{var n=eB(),r=i(Error);t.exports=r,r.eval=i(EvalError),r.range=i(RangeError),r.reference=i(ReferenceError),r.syntax=i(SyntaxError),r.type=i(TypeError),r.uri=i(URIError),r.create=i;function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&=n.apply(null,arguments),new e(t)}}})),nB=e(i((e=>{var t=$z(),n=tB();e.highlight=i,e.highlightAuto=a,e.registerLanguage=o,e.listLanguages=s,e.registerAlias=c,l.prototype.addText=f,l.prototype.addKeyword=u,l.prototype.addSublanguage=d,l.prototype.openNode=p,l.prototype.closeNode=m,l.prototype.closeAllNodes=g,l.prototype.finalize=g,l.prototype.toHTML=h;var r=`hljs-`;function i(e,i,a){var o=t.configure({}),s=(a||{}).prefix,c;if(typeof e!=`string`)throw n("Expected `string` for name, got `%s`",e);if(!t.getLanguage(e))throw n("Unknown language: `%s` is not registered",e);if(typeof i!=`string`)throw n("Expected `string` for value, got `%s`",i);if(s??=r,t.configure({__emitter:l,classPrefix:s}),c=t.highlight(i,{language:e,ignoreIllegals:!0}),t.configure(o||{}),c.errorRaised)throw c.errorRaised;return{relevance:c.relevance,language:c.language,value:c.emitter.rootNode.children}}function a(e,a){var o=a||{},s=o.subset||t.listLanguages(),c=o.prefix,l=s.length,u=-1,d,f,p,m;if(c??=r,typeof e!=`string`)throw n("Expected `string` for value, got `%s`",e);for(f={relevance:0,language:null,value:[]},d={relevance:0,language:null,value:[]};++u<l;)m=s[u],t.getLanguage(m)&&(p=i(m,e,a),p.language=m,p.relevance>f.relevance&&(f=p),p.relevance>d.relevance&&(f=d,d=p));return f.language&&(d.secondBest=f),d}function o(e,n){t.registerLanguage(e,n)}function s(){return t.listLanguages()}function c(e,n){var r=e,i;for(i in n&&(r={},r[e]=n),r)t.registerAliases(r[i],{languageName:i})}function l(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function u(e,t){this.openNode(t),this.addText(e),this.closeNode()}function d(e,t){var n=this.stack,r=n[n.length-1],i=e.rootNode.children,a=t?{type:`element`,tagName:`span`,properties:{className:[t]},children:i}:i;r.children=r.children.concat(a)}function f(e){var t=this.stack,n,r;e!==``&&(n=t[t.length-1],r=n.children[n.children.length-1],r&&r.type===`text`?r.value+=e:n.children.push({type:`text`,value:e}))}function p(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],i={type:`element`,tagName:`span`,properties:{className:[n]},children:[]};r.children.push(i),t.push(i)}function m(){this.stack.pop()}function h(){return``}function g(){}}))()),rB=Qz(nB.default,{});rB.registerLanguage=nB.registerLanguage;var iB=e(i(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`setInterval.setTimeout.clearInterval.clearTimeout.require.exports.eval.isFinite.isNaN.parseFloat.parseInt.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.unescape.arguments.this.super.console.window.document.localStorage.module.global`.split(`.`).concat(`Intl.DataView.Number.Math.Date.String.RegExp.Object.Function.Boolean.Error.Symbol.Set.Map.WeakSet.WeakMap.Proxy.Reflect.JSON.Promise.Float64Array.Int16Array.Int32Array.Int8Array.Uint16Array.Uint32Array.Float32Array.Array.Uint8Array.Uint8ClampedArray.ArrayBuffer.BigInt64Array.BigUint64Array.BigInt`.split(`.`),[`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function o(e){return e?typeof e==`string`?e:e.source:null}function s(e){return c(`(?=`,e,`)`)}function c(...e){return e.map(e=>o(e)).join(``)}function l(e){let t=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},o=n,l={begin:`<>`,end:`</>`},u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`){n.ignoreMatch();return}i===`>`&&(t(e,{after:r})||n.ignoreMatch())}},d={$pattern:n,keyword:r,literal:i,built_in:a},f=`[0-9](_?[0-9])*`,p=`\\.(${f})`,m=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,h={className:`number`,variants:[{begin:`(\\b(${m})((${p})|\\.)?|(${p}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},g={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:d,contains:[]},_={begin:"html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:`xml`}},v={begin:"css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:`css`}},y={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,g]},b={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`,contains:[{className:`type`,begin:`\\{`,end:`\\}`,relevance:0},{className:`variable`,begin:`[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,y,h,e.REGEXP_MODE];g.contains=x.concat({begin:/\{/,end:/\}/,keywords:d,contains:[`self`].concat(x)});let S=[].concat(b,g.contains),C=S.concat([{begin:/\(/,end:/\)/,keywords:d,contains:[`self`].concat(S)}]),w={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:C};return{name:`Javascript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:d,exports:{PARAMS_CONTAINS:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),{label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,y,b,h,{begin:c(/[{,\n]\s*/,s(c(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,`[A-Za-z$_][0-9A-Za-z$_]*\\s*:`))),relevance:0,contains:[{className:`attr`,begin:o+s(`\\s*:`),relevance:0}]},{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,contains:[b,e.REGEXP_MODE,{className:`function`,begin:`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:C}]}]},{begin:/,/,relevance:0},{className:``,begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:l.begin,end:l.end},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:`xml`,contains:[{begin:u.begin,end:u.end,skip:!0,contains:[`self`]}]}],relevance:0},{className:`function`,beginKeywords:`function`,end:/[{;]/,excludeEnd:!0,keywords:d,contains:[`self`,e.inherit(e.TITLE_MODE,{begin:o}),w],illegal:/%/},{beginKeywords:`while if switch catch for`},{className:`function`,begin:e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,contains:[w,e.inherit(e.TITLE_MODE,{begin:o})]},{variants:[{begin:`\\.[A-Za-z$_][0-9A-Za-z$_]*`},{begin:`\\$[A-Za-z$_][0-9A-Za-z$_]*`}],relevance:0},{className:`class`,beginKeywords:`class`,end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:`extends`},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:o}),`self`,w]},{begin:`(get|set)\\s+(?=[A-Za-z$_][0-9A-Za-z$_]*\\()`,end:/\{/,keywords:`get set`,contains:[e.inherit(e.TITLE_MODE,{begin:o}),{begin:/\(\)/},w]},{begin:/\$[(.]/}]}}t.exports=l}))()).default,aB=e(i(((e,t)=>{function n(e){let t={literal:`true false null`},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],r=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:`,`,endsWithParent:!0,excludeEnd:!0,contains:r,keywords:t},a={begin:/\{/,end:/\}/,contains:[{className:`attr`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:`\\n`},e.inherit(i,{begin:/:/})].concat(n),illegal:`\\S`},o={begin:`\\[`,end:`\\]`,contains:[e.inherit(i)],illegal:`\\S`};return r.push(a,o),n.forEach(function(e){r.push(e)}),{name:`JSON`,contains:r,keywords:t,illegal:`\\S`}}t.exports=n}))()).default,oB=e(i(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return a(`(?=`,e,`)`)}function i(e){return a(`(`,e,`)?`)}function a(...e){return e.map(e=>n(e)).join(``)}function o(...e){return`(`+e.map(e=>n(e)).join(`|`)+`)`}function s(e){let t=a(/[A-Z_]/,i(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),n=/[A-Za-z0-9._:-]+/,s={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:`meta-keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(c,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:`meta-string`}),d=e.inherit(e.QUOTE_STRING_MODE,{className:`meta-string`}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,d,u,l,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[c,l,d,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:`meta`,begin:/<\?xml/,end:/\?>/,relevance:10},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:a(/</,r(a(t,o(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:t,relevance:0,starts:f}]},{className:`tag`,begin:a(/<\//,r(a(t,/>/))),contains:[{className:`name`,begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=s}))()).default,sB=e(i(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(...e){return e.map(e=>n(e)).join(``)}function i(e){let t={},n={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[t]}]};Object.assign(t,{className:`variable`,variants:[{begin:r(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},n]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},o={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(o);let s={className:``,begin:/\\"/},c={className:`string`,begin:/'/,end:/'/},l={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,t]},u=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),d={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:`if then else elif fi for while in do done case esac function`,literal:`true false`,built_in:`break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp`},contains:[u,e.SHEBANG(),d,l,e.HASH_COMMENT_MODE,a,o,s,c,t]}}t.exports=i}))()).default,cB=e(i(((e,t)=>{function n(e){var t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:`\\w[\\w :\\/.-]*:(?=[ ]|$)`},{begin:`"\\w[\\w :\\/.-]*":(?=[ ]|$)`},{begin:`'\\w[\\w :\\/.-]*':(?=[ ]|$)`}]},i={className:`string`,relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},a=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},s={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},c={begin:/\{/,end:/\}/,contains:[s],illegal:`\\n`,relevance:0},l={begin:`\\[`,end:`\\]`,contains:[s],illegal:`\\n`,relevance:0},u=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},o,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},c,l,i],d=[...u];return d.pop(),d.push(a),s.contains=d,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:u}}t.exports=n}))()).default,lB=e(i(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(...e){return e.map(e=>n(e)).join(``)}function i(e){let t=`HTTP/(2|1\\.[01])`,n={className:`attribute`,begin:r(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[n,{begin:`\\n\\n`,starts:{subLanguage:[],endsWithParent:!0}}];return{name:`HTTP`,aliases:[`https`],illegal:/\S/,contains:[{begin:`^(?=HTTP/(2|1\\.[01]) \\d{3})`,end:/$/,contains:[{className:`meta`,begin:t},{className:`number`,begin:`\\b\\d{3}\\b`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:`(?=^[A-Z]+ (.*?) HTTP/(2|1\\.[01])$)`,end:/$/,contains:[{className:`string`,begin:` `,end:` `,excludeBegin:!0,excludeEnd:!0},{className:`meta`,begin:t},{className:`keyword`,begin:`[A-Z]+`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(n,{relevance:0})]}}t.exports=i}))()).default,uB=e(i(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$pattern:/-?[A-z\.\-]+\b/,keyword:`if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter`,built_in:`ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},c={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},l=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),u={className:`built_in`,variants:[{begin:`(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+`}]},d={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},f={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},p={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,c,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},m={variants:[{className:`operator`,begin:`(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b`},{className:`literal`,begin:/(-)[\w\d]+/,relevance:0}]},h={className:`selector-tag`,begin:/@\B/,relevance:0},g={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[g,l,i,e.NUMBER_MODE,s,c,u,a,o,h],v={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(_,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return g.contains.unshift(v),{name:`PowerShell`,aliases:[`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:_.concat(d,f,p,m,v)}}t.exports=n}))()).default,dB={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,background:`#333`,color:`white`},"hljs-name":{fontWeight:`bold`},"hljs-strong":{fontWeight:`bold`},"hljs-code":{fontStyle:`italic`,color:`#888`},"hljs-emphasis":{fontStyle:`italic`},"hljs-tag":{color:`#62c8f3`},"hljs-variable":{color:`#ade5fc`},"hljs-template-variable":{color:`#ade5fc`},"hljs-selector-id":{color:`#ade5fc`},"hljs-selector-class":{color:`#ade5fc`},"hljs-string":{color:`#a2fca2`},"hljs-bullet":{color:`#d36363`},"hljs-type":{color:`#ffa`},"hljs-title":{color:`#ffa`},"hljs-section":{color:`#ffa`},"hljs-attribute":{color:`#ffa`},"hljs-quote":{color:`#ffa`},"hljs-built_in":{color:`#ffa`},"hljs-builtin-name":{color:`#ffa`},"hljs-number":{color:`#d36363`},"hljs-symbol":{color:`#d36363`},"hljs-keyword":{color:`#fcc28c`},"hljs-selector-tag":{color:`#fcc28c`},"hljs-literal":{color:`#fcc28c`},"hljs-comment":{color:`#888`},"hljs-deletion":{color:`#333`,backgroundColor:`#fc9b9b`},"hljs-regexp":{color:`#c6b4f0`},"hljs-link":{color:`#c6b4f0`},"hljs-meta":{color:`#fc9b9b`},"hljs-addition":{backgroundColor:`#a2fca2`,color:`#333`}},fB={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,background:`#222`,color:`#aaa`},"hljs-subst":{color:`#aaa`},"hljs-section":{color:`#fff`,fontWeight:`bold`},"hljs-comment":{color:`#444`},"hljs-quote":{color:`#444`},"hljs-meta":{color:`#444`},"hljs-string":{color:`#ffcc33`},"hljs-symbol":{color:`#ffcc33`},"hljs-bullet":{color:`#ffcc33`},"hljs-regexp":{color:`#ffcc33`},"hljs-number":{color:`#00cc66`},"hljs-addition":{color:`#00cc66`},"hljs-built_in":{color:`#32aaee`},"hljs-builtin-name":{color:`#32aaee`},"hljs-literal":{color:`#32aaee`},"hljs-type":{color:`#32aaee`},"hljs-template-variable":{color:`#32aaee`},"hljs-attribute":{color:`#32aaee`},"hljs-link":{color:`#32aaee`},"hljs-keyword":{color:`#6644aa`},"hljs-selector-tag":{color:`#6644aa`},"hljs-name":{color:`#6644aa`},"hljs-selector-id":{color:`#6644aa`},"hljs-selector-class":{color:`#6644aa`},"hljs-title":{color:`#bb1166`},"hljs-variable":{color:`#bb1166`},"hljs-deletion":{color:`#bb1166`},"hljs-template-tag":{color:`#bb1166`},"hljs-doctag":{fontWeight:`bold`},"hljs-strong":{fontWeight:`bold`},"hljs-emphasis":{fontStyle:`italic`}},pB={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,background:`#272822`,color:`#ddd`},"hljs-tag":{color:`#f92672`},"hljs-keyword":{color:`#f92672`,fontWeight:`bold`},"hljs-selector-tag":{color:`#f92672`,fontWeight:`bold`},"hljs-literal":{color:`#f92672`,fontWeight:`bold`},"hljs-strong":{color:`#f92672`},"hljs-name":{color:`#f92672`},"hljs-code":{color:`#66d9ef`},"hljs-class .hljs-title":{color:`white`},"hljs-attribute":{color:`#bf79db`},"hljs-symbol":{color:`#bf79db`},"hljs-regexp":{color:`#bf79db`},"hljs-link":{color:`#bf79db`},"hljs-string":{color:`#a6e22e`},"hljs-bullet":{color:`#a6e22e`},"hljs-subst":{color:`#a6e22e`},"hljs-title":{color:`#a6e22e`,fontWeight:`bold`},"hljs-section":{color:`#a6e22e`,fontWeight:`bold`},"hljs-emphasis":{color:`#a6e22e`},"hljs-type":{color:`#a6e22e`,fontWeight:`bold`},"hljs-built_in":{color:`#a6e22e`},"hljs-builtin-name":{color:`#a6e22e`},"hljs-selector-attr":{color:`#a6e22e`},"hljs-selector-pseudo":{color:`#a6e22e`},"hljs-addition":{color:`#a6e22e`},"hljs-variable":{color:`#a6e22e`},"hljs-template-tag":{color:`#a6e22e`},"hljs-template-variable":{color:`#a6e22e`},"hljs-comment":{color:`#75715e`},"hljs-quote":{color:`#75715e`},"hljs-deletion":{color:`#75715e`},"hljs-meta":{color:`#75715e`},"hljs-doctag":{fontWeight:`bold`},"hljs-selector-id":{fontWeight:`bold`}},mB={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,background:`#2E3440`,color:`#D8DEE9`},"hljs-subst":{color:`#D8DEE9`},"hljs-selector-tag":{color:`#81A1C1`},"hljs-selector-id":{color:`#8FBCBB`,fontWeight:`bold`},"hljs-selector-class":{color:`#8FBCBB`},"hljs-selector-attr":{color:`#8FBCBB`},"hljs-selector-pseudo":{color:`#88C0D0`},"hljs-addition":{backgroundColor:`rgba(163, 190, 140, 0.5)`},"hljs-deletion":{backgroundColor:`rgba(191, 97, 106, 0.5)`},"hljs-built_in":{color:`#8FBCBB`},"hljs-type":{color:`#8FBCBB`},"hljs-class":{color:`#8FBCBB`},"hljs-function":{color:`#88C0D0`},"hljs-function > .hljs-title":{color:`#88C0D0`},"hljs-keyword":{color:`#81A1C1`},"hljs-literal":{color:`#81A1C1`},"hljs-symbol":{color:`#81A1C1`},"hljs-number":{color:`#B48EAD`},"hljs-regexp":{color:`#EBCB8B`},"hljs-string":{color:`#A3BE8C`},"hljs-title":{color:`#8FBCBB`},"hljs-params":{color:`#D8DEE9`},"hljs-bullet":{color:`#81A1C1`},"hljs-code":{color:`#8FBCBB`},"hljs-emphasis":{fontStyle:`italic`},"hljs-formula":{color:`#8FBCBB`},"hljs-strong":{fontWeight:`bold`},"hljs-link:hover":{textDecoration:`underline`},"hljs-quote":{color:`#4C566A`},"hljs-comment":{color:`#4C566A`},"hljs-doctag":{color:`#8FBCBB`},"hljs-meta":{color:`#5E81AC`},"hljs-meta-keyword":{color:`#5E81AC`},"hljs-meta-string":{color:`#A3BE8C`},"hljs-attr":{color:`#8FBCBB`},"hljs-attribute":{color:`#D8DEE9`},"hljs-builtin-name":{color:`#81A1C1`},"hljs-name":{color:`#81A1C1`},"hljs-section":{color:`#88C0D0`},"hljs-tag":{color:`#81A1C1`},"hljs-variable":{color:`#D8DEE9`},"hljs-template-variable":{color:`#D8DEE9`},"hljs-template-tag":{color:`#5E81AC`},"abnf .hljs-attribute":{color:`#88C0D0`},"abnf .hljs-symbol":{color:`#EBCB8B`},"apache .hljs-attribute":{color:`#88C0D0`},"apache .hljs-section":{color:`#81A1C1`},"arduino .hljs-built_in":{color:`#88C0D0`},"aspectj .hljs-meta":{color:`#D08770`},"aspectj > .hljs-title":{color:`#88C0D0`},"bnf .hljs-attribute":{color:`#8FBCBB`},"clojure .hljs-name":{color:`#88C0D0`},"clojure .hljs-symbol":{color:`#EBCB8B`},"coq .hljs-built_in":{color:`#88C0D0`},"cpp .hljs-meta-string":{color:`#8FBCBB`},"css .hljs-built_in":{color:`#88C0D0`},"css .hljs-keyword":{color:`#D08770`},"diff .hljs-meta":{color:`#8FBCBB`},"ebnf .hljs-attribute":{color:`#8FBCBB`},"glsl .hljs-built_in":{color:`#88C0D0`},"groovy .hljs-meta:not(:first-child)":{color:`#D08770`},"haxe .hljs-meta":{color:`#D08770`},"java .hljs-meta":{color:`#D08770`},"ldif .hljs-attribute":{color:`#8FBCBB`},"lisp .hljs-name":{color:`#88C0D0`},"lua .hljs-built_in":{color:`#88C0D0`},"moonscript .hljs-built_in":{color:`#88C0D0`},"nginx .hljs-attribute":{color:`#88C0D0`},"nginx .hljs-section":{color:`#5E81AC`},"pf .hljs-built_in":{color:`#88C0D0`},"processing .hljs-built_in":{color:`#88C0D0`},"scss .hljs-keyword":{color:`#81A1C1`},"stylus .hljs-keyword":{color:`#81A1C1`},"swift .hljs-meta":{color:`#D08770`},"vim .hljs-built_in":{color:`#88C0D0`,fontStyle:`italic`},"yaml .hljs-meta":{color:`#D08770`}},hB={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,background:`#282b2e`,color:`#e0e2e4`},"hljs-keyword":{color:`#93c763`,fontWeight:`bold`},"hljs-selector-tag":{color:`#93c763`,fontWeight:`bold`},"hljs-literal":{color:`#93c763`,fontWeight:`bold`},"hljs-selector-id":{color:`#93c763`},"hljs-number":{color:`#ffcd22`},"hljs-attribute":{color:`#668bb0`},"hljs-code":{color:`white`},"hljs-class .hljs-title":{color:`white`},"hljs-section":{color:`white`,fontWeight:`bold`},"hljs-regexp":{color:`#d39745`},"hljs-link":{color:`#d39745`},"hljs-meta":{color:`#557182`},"hljs-tag":{color:`#8cbbad`},"hljs-name":{color:`#8cbbad`,fontWeight:`bold`},"hljs-bullet":{color:`#8cbbad`},"hljs-subst":{color:`#8cbbad`},"hljs-emphasis":{color:`#8cbbad`},"hljs-type":{color:`#8cbbad`,fontWeight:`bold`},"hljs-built_in":{color:`#8cbbad`},"hljs-selector-attr":{color:`#8cbbad`},"hljs-selector-pseudo":{color:`#8cbbad`},"hljs-addition":{color:`#8cbbad`},"hljs-variable":{color:`#8cbbad`},"hljs-template-tag":{color:`#8cbbad`},"hljs-template-variable":{color:`#8cbbad`},"hljs-string":{color:`#ec7600`},"hljs-symbol":{color:`#ec7600`},"hljs-comment":{color:`#818e96`},"hljs-quote":{color:`#818e96`},"hljs-deletion":{color:`#818e96`},"hljs-selector-class":{color:`#A082BD`},"hljs-doctag":{fontWeight:`bold`},"hljs-title":{fontWeight:`bold`},"hljs-strong":{fontWeight:`bold`}},gB={"hljs-comment":{color:`#969896`},"hljs-quote":{color:`#969896`},"hljs-variable":{color:`#cc6666`},"hljs-template-variable":{color:`#cc6666`},"hljs-tag":{color:`#cc6666`},"hljs-name":{color:`#cc6666`},"hljs-selector-id":{color:`#cc6666`},"hljs-selector-class":{color:`#cc6666`},"hljs-regexp":{color:`#cc6666`},"hljs-deletion":{color:`#cc6666`},"hljs-number":{color:`#de935f`},"hljs-built_in":{color:`#de935f`},"hljs-builtin-name":{color:`#de935f`},"hljs-literal":{color:`#de935f`},"hljs-type":{color:`#de935f`},"hljs-params":{color:`#de935f`},"hljs-meta":{color:`#de935f`},"hljs-link":{color:`#de935f`},"hljs-attribute":{color:`#f0c674`},"hljs-string":{color:`#b5bd68`},"hljs-symbol":{color:`#b5bd68`},"hljs-bullet":{color:`#b5bd68`},"hljs-addition":{color:`#b5bd68`},"hljs-title":{color:`#81a2be`},"hljs-section":{color:`#81a2be`},"hljs-keyword":{color:`#b294bb`},"hljs-selector-tag":{color:`#b294bb`},hljs:{display:`block`,overflowX:`auto`,background:`#1d1f21`,color:`#c5c8c6`,padding:`0.5em`},"hljs-emphasis":{fontStyle:`italic`},"hljs-strong":{fontWeight:`bold`}},_B={hljs:{display:`block`,overflowX:`auto`,padding:`0.5em`,color:`#000`,background:`#fff`},"hljs-subst":{fontWeight:`normal`,color:`#000`},"hljs-title":{fontWeight:`normal`,color:`#000`},"hljs-comment":{color:`#808080`,fontStyle:`italic`},"hljs-quote":{color:`#808080`,fontStyle:`italic`},"hljs-meta":{color:`#808000`},"hljs-tag":{background:`#efefef`},"hljs-section":{fontWeight:`bold`,color:`#000080`},"hljs-name":{fontWeight:`bold`,color:`#000080`},"hljs-literal":{fontWeight:`bold`,color:`#000080`},"hljs-keyword":{fontWeight:`bold`,color:`#000080`},"hljs-selector-tag":{fontWeight:`bold`,color:`#000080`},"hljs-type":{fontWeight:`bold`,color:`#000080`},"hljs-selector-id":{fontWeight:`bold`,color:`#000080`},"hljs-selector-class":{fontWeight:`bold`,color:`#000080`},"hljs-attribute":{fontWeight:`bold`,color:`#0000ff`},"hljs-number":{fontWeight:`normal`,color:`#0000ff`},"hljs-regexp":{fontWeight:`normal`,color:`#0000ff`},"hljs-link":{fontWeight:`normal`,color:`#0000ff`},"hljs-string":{color:`#008000`,fontWeight:`bold`},"hljs-symbol":{color:`#000`,background:`#d0eded`,fontStyle:`italic`},"hljs-bullet":{color:`#000`,background:`#d0eded`,fontStyle:`italic`},"hljs-formula":{color:`#000`,background:`#d0eded`,fontStyle:`italic`},"hljs-doctag":{textDecoration:`underline`},"hljs-variable":{color:`#660e7a`},"hljs-template-variable":{color:`#660e7a`},"hljs-addition":{background:`#baeeba`},"hljs-deletion":{background:`#ffc8bd`},"hljs-emphasis":{fontStyle:`italic`},"hljs-strong":{fontWeight:`bold`}},vB=i(((e,t)=>{t.exports=function(e,t,n,r){var i=new Blob(r===void 0?[e]:[r,e],{type:n||`application/octet-stream`});if(window.navigator.msSaveBlob!==void 0)window.navigator.msSaveBlob(i,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement(`a`);o.style.display=`none`,o.href=a,o.setAttribute(`download`,t),o.download===void 0&&o.setAttribute(`target`,`_blank`),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}})),yB=i(((e,t)=>{function n(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}t.exports=n})),bB=i(((e,t)=>{var n=hs(),r=yB();function i(e,t){return r(e||[],t||[],n)}t.exports=i})),xB=i(((e,t)=>{var n=``,r;t.exports=i;function i(e,t){if(typeof e!=`string`)throw TypeError(`expected a string`);if(t===1)return e;if(t===2)return e+e;var i=e.length*t;if(r!==e||r===void 0)r=e,n=``;else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+=e,n=n.substr(0,i),n}})),SB=i(((e,t)=>{var n=xB(),r=function(e){return e.split(/(<\/?[^>]+>)/g).filter(function(e){return e.trim()!==``})},i=function(e){return/<[^>!]+>/.test(e)},a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},s=function(e){return i(e)&&!a(e)&&!o(e)};t.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.indentor,i=t.textNodesOnSameLine,a=0,o=[];r||=` `;var s=c(e).map(function(e,t,s){var c=e.value,l=e.type;l===`ClosingTag`&&a--;var u=n(r,a),d=u+c;if(l===`OpeningTag`&&a++,i){var f=s[t-1],p=s[t-2];l===`ClosingTag`&&f.type===`Text`&&p.type===`OpeningTag`&&(d=``+u+p.value+f.value+c,o.push(t-2,t-1))}return d});return o.forEach(function(e){return s[e]=null}),s.filter(function(e){return!!e}).join(`
|
|
180
|
-
`)};function c(e){return r(e).map(function(e){return{value:e,type:l(e)}})}function l(e){return a(e)?`ClosingTag`:s(e)?`OpeningTag`:o(e)?`SelfClosingTag`:`Text`}})),CB=i(((e,t)=>{var n=Bs();function r(e){return n(e).toLowerCase()}t.exports=r})),wB=e(Bs()),TB=e(vB()),EB=e(bB()),DB=e(SB()),OB=e(CB()),kB;function AB(e){return kB||=document.createElement(`textarea`),kB.innerHTML=`&`+e+`;`,kB.value}var jB=Object.prototype.hasOwnProperty;function MB(e,t){return e?jB.call(e,t):!1}function NB(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}var PB=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function FB(e){return e.indexOf(`\\`)<0?e:e.replace(PB,`$1`)}function IB(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function LB(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var RB=/&([a-z#][a-z0-9]{1,31});/gi,zB=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function BB(e,t){var n=0,r=AB(t);return t===r?t.charCodeAt(0)===35&&zB.test(t)&&(n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10),IB(n))?LB(n):e:r}function VB(e){return e.indexOf(`&`)<0?e:e.replace(RB,BB)}var HB=/[&<>"]/,UB=/[&<>"]/g,WB={"&":`&`,"<":`<`,">":`>`,'"':`"`};function GB(e){return WB[e]}function KB(e){return HB.test(e)?e.replace(UB,GB):e}var Z={};Z.blockquote_open=function(){return`<blockquote>
|
|
181
|
-
`},Z.blockquote_close=function(e,t){return`</blockquote>`+JB(e,t)},Z.code=function(e,t){return e[t].block?`<pre><code>`+KB(e[t].content)+`</code></pre>`+JB(e,t):`<code>`+KB(e[t].content)+`</code>`},Z.fence=function(e,t,n,r,i){var a=e[t],o=``,s=n.langPrefix,c=``,l,u,d;if(a.params){if(l=a.params.split(/\s+/g),u=l.join(` `),MB(i.rules.fence_custom,l[0]))return i.rules.fence_custom[l[0]](e,t,n,r,i);c=KB(VB(FB(u))),o=` class="`+s+c+`"`}return d=n.highlight&&n.highlight.apply(n.highlight,[a.content].concat(l))||KB(a.content),`<pre><code`+o+`>`+d+`</code></pre>`+JB(e,t)},Z.fence_custom={},Z.heading_open=function(e,t){return`<h`+e[t].hLevel+`>`},Z.heading_close=function(e,t){return`</h`+e[t].hLevel+`>
|
|
182
|
-
`},Z.hr=function(e,t,n){return(n.xhtmlOut?`<hr />`:`<hr>`)+JB(e,t)},Z.bullet_list_open=function(){return`<ul>
|
|
183
|
-
`},Z.bullet_list_close=function(e,t){return`</ul>`+JB(e,t)},Z.list_item_open=function(){return`<li>`},Z.list_item_close=function(){return`</li>
|
|
184
|
-
`},Z.ordered_list_open=function(e,t){var n=e[t];return`<ol`+(n.order>1?` start="`+n.order+`"`:``)+`>
|
|
185
|
-
`},Z.ordered_list_close=function(e,t){return`</ol>`+JB(e,t)},Z.paragraph_open=function(e,t){return e[t].tight?``:`<p>`},Z.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type===`inline`&&!e[t-1].content);return(e[t].tight?``:`</p>`)+(n?JB(e,t):``)},Z.link_open=function(e,t,n){var r=e[t].title?` title="`+KB(VB(e[t].title))+`"`:``,i=n.linkTarget?` target="`+n.linkTarget+`"`:``;return`<a href="`+KB(e[t].href)+`"`+r+i+`>`},Z.link_close=function(){return`</a>`},Z.image=function(e,t,n){var r=` src="`+KB(e[t].src)+`"`,i=e[t].title?` title="`+KB(VB(e[t].title))+`"`:``,a=` alt="`+(e[t].alt?KB(VB(FB(e[t].alt))):``)+`"`,o=n.xhtmlOut?` /`:``;return`<img`+r+a+i+o+`>`},Z.table_open=function(){return`<table>
|
|
186
|
-
`},Z.table_close=function(){return`</table>
|
|
187
|
-
`},Z.thead_open=function(){return`<thead>
|
|
188
|
-
`},Z.thead_close=function(){return`</thead>
|
|
189
|
-
`},Z.tbody_open=function(){return`<tbody>
|
|
190
|
-
`},Z.tbody_close=function(){return`</tbody>
|
|
191
|
-
`},Z.tr_open=function(){return`<tr>`},Z.tr_close=function(){return`</tr>
|
|
192
|
-
`},Z.th_open=function(e,t){var n=e[t];return`<th`+(n.align?` style="text-align:`+n.align+`"`:``)+`>`},Z.th_close=function(){return`</th>`},Z.td_open=function(e,t){var n=e[t];return`<td`+(n.align?` style="text-align:`+n.align+`"`:``)+`>`},Z.td_close=function(){return`</td>`},Z.strong_open=function(){return`<strong>`},Z.strong_close=function(){return`</strong>`},Z.em_open=function(){return`<em>`},Z.em_close=function(){return`</em>`},Z.del_open=function(){return`<del>`},Z.del_close=function(){return`</del>`},Z.ins_open=function(){return`<ins>`},Z.ins_close=function(){return`</ins>`},Z.mark_open=function(){return`<mark>`},Z.mark_close=function(){return`</mark>`},Z.sub=function(e,t){return`<sub>`+KB(e[t].content)+`</sub>`},Z.sup=function(e,t){return`<sup>`+KB(e[t].content)+`</sup>`},Z.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
193
|
-
`:`<br>
|
|
194
|
-
`},Z.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
195
|
-
`:`<br>
|
|
196
|
-
`:`
|
|
197
|
-
`},Z.text=function(e,t){return KB(e[t].content)},Z.htmlblock=function(e,t){return e[t].content},Z.htmltag=function(e,t){return e[t].content},Z.abbr_open=function(e,t){return`<abbr title="`+KB(VB(e[t].title))+`">`},Z.abbr_close=function(){return`</abbr>`},Z.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r=`fnref`+n;return e[t].subId>0&&(r+=`:`+e[t].subId),`<sup class="footnote-ref"><a href="#fn`+n+`" id="`+r+`">[`+n+`]</a></sup>`},Z.footnote_block_open=function(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
|
|
198
|
-
`:`<hr class="footnotes-sep">
|
|
199
|
-
`)+`<section class="footnotes">
|
|
200
|
-
<ol class="footnotes-list">
|
|
201
|
-
`},Z.footnote_block_close=function(){return`</ol>
|
|
202
|
-
</section>
|
|
203
|
-
`},Z.footnote_open=function(e,t){return`<li id="fn`+Number(e[t].id+1).toString()+`" class="footnote-item">`},Z.footnote_close=function(){return`</li>
|
|
204
|
-
`},Z.footnote_anchor=function(e,t){var n=`fnref`+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=`:`+e[t].subId),` <a href="#`+n+`" class="footnote-backref">↩</a>`},Z.dl_open=function(){return`<dl>
|
|
205
|
-
`},Z.dt_open=function(){return`<dt>`},Z.dd_open=function(){return`<dd>`},Z.dl_close=function(){return`</dl>
|
|
206
|
-
`},Z.dt_close=function(){return`</dt>
|
|
207
|
-
`},Z.dd_close=function(){return`</dd>
|
|
208
|
-
`};function qB(e,t){return++t>=e.length-2?t:e[t].type===`paragraph_open`&&e[t].tight&&e[t+1].type===`inline`&&e[t+1].content.length===0&&e[t+2].type===`paragraph_close`&&e[t+2].tight?qB(e,t+2):t}var JB=Z.getBreak=function(e,t){return t=qB(e,t),t<e.length&&e[t].type===`list_item_close`?``:`
|
|
209
|
-
`};function YB(){this.rules=NB({},Z),this.getBreak=Z.getBreak}YB.prototype.renderInline=function(e,t,n){for(var r=this.rules,i=e.length,a=0,o=``;i--;)o+=r[e[a].type](e,a++,t,n,this);return o},YB.prototype.render=function(e,t,n){for(var r=this.rules,i=e.length,a=-1,o=``;++a<i;)e[a].type===`inline`?o+=this.renderInline(e[a].children,t,n):o+=r[e[a].type](e,a,t,n,this);return o};function XB(){this.__rules__=[],this.__cache__=null}XB.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},XB.prototype.__compile__=function(){var e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},XB.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},XB.prototype.before=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},XB.prototype.after=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},XB.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},XB.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var t=this.__find__(e);if(t<0)throw Error(`Rules manager: invalid rule name `+e);this.__rules__[t].enabled=!0},this),this.__cache__=null},XB.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(e){var t=this.__find__(e);if(t<0)throw Error(`Rules manager: invalid rule name `+e);this.__rules__[t].enabled=!1},this),this.__cache__=null},XB.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ZB(e){e.inlineMode?e.tokens.push({type:`inline`,content:e.src.replace(/\n/g,` `).trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function QB(e,t,n,r,i){this.src=e,this.env=r,this.options=n,this.parser=t,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent=``,this.labelUnmatchedScopes=0}QB.prototype.pushPending=function(){this.tokens.push({type:`text`,content:this.pending,level:this.pendingLevel}),this.pending=``},QB.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},QB.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},QB.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function $B(e,t){var n,r,i,a=-1,o=e.posMax,s=e.pos,c=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===91)n++;else if(i===93&&(n--,n===0)){r=!0;break}e.parser.skipToken(e)}return r?(a=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=s,e.isInLabel=c,a}function eV(e,t,n,r){var i,a,o,s,c,l;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf(`]:`)===-1||(i=new QB(e,t,n,r,[]),a=$B(i,1),a<0||e.charCodeAt(a+1)!==58))return-1;for(s=i.posMax,o=a+2;o<s&&i.src.charCodeAt(o)!==10;o++);return c=e.slice(2,a),l=e.slice(a+2,o).trim(),l.length===0?-1:(r.abbreviations||={},r.abbreviations[`:`+c]===void 0&&(r.abbreviations[`:`+c]=l),o)}function tV(e){var t=e.tokens,n,r,i,a;if(!e.inlineMode){for(n=1,r=t.length-1;n<r;n++)if(t[n-1].type===`paragraph_open`&&t[n].type===`inline`&&t[n+1].type===`paragraph_close`){for(i=t[n].content;i.length&&(a=eV(i,e.inline,e.options,e.env),!(a<0));)i=i.slice(a).trim();t[n].content=i,i.length||(t[n-1].tight=!0,t[n+1].tight=!0)}}}function nV(e){var t=VB(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function rV(e,t){var n,r,i,a=t,o=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<o;){if(n=e.src.charCodeAt(t),n===10)return!1;if(n===62)return i=nV(FB(e.src.slice(a+1,t))),e.parser.validateLink(i)?(e.pos=t+1,e.linkContent=i,!0):!1;if(n===92&&t+1<o){t+=2;continue}t++}return!1}for(r=0;t<o&&(n=e.src.charCodeAt(t),!(n===32||n<32||n===127));){if(n===92&&t+1<o){t+=2;continue}if(n===40&&(r++,r>1)||n===41&&(r--,r<0))break;t++}return a===t||(i=FB(e.src.slice(a,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function iV(e,t){var n,r=t,i=e.posMax,a=e.src.charCodeAt(t);if(a!==34&&a!==39&&a!==40)return!1;for(t++,a===40&&(a=41);t<i;){if(n=e.src.charCodeAt(t),n===a)return e.pos=t+1,e.linkContent=FB(e.src.slice(r+1,t)),!0;if(n===92&&t+1<i){t+=2;continue}t++}return!1}function aV(e){return e.trim().replace(/\s+/g,` `).toUpperCase()}function oV(e,t,n,r){var i,a,o,s,c,l,u,d,f;if(e.charCodeAt(0)!==91||e.indexOf(`]:`)===-1||(i=new QB(e,t,n,r,[]),a=$B(i,0),a<0||e.charCodeAt(a+1)!==58))return-1;for(s=i.posMax,o=a+2;o<s&&(c=i.src.charCodeAt(o),c===32||c===10);o++);if(!rV(i,o))return-1;for(u=i.linkContent,o=i.pos,l=o,o+=1;o<s&&(c=i.src.charCodeAt(o),c===32||c===10);o++);for(o<s&&l!==o&&iV(i,o)?(d=i.linkContent,o=i.pos):(d=``,o=l);o<s&&i.src.charCodeAt(o)===32;)o++;return o<s&&i.src.charCodeAt(o)!==10?-1:(f=aV(e.slice(1,a)),r.references[f]===void 0&&(r.references[f]={title:d,href:u}),o)}function sV(e){var t=e.tokens,n,r,i,a;if(e.env.references=e.env.references||{},!e.inlineMode){for(n=1,r=t.length-1;n<r;n++)if(t[n].type===`inline`&&t[n-1].type===`paragraph_open`&&t[n+1].type===`paragraph_close`){for(i=t[n].content;i.length&&(a=oV(i,e.inline,e.options,e.env),!(a<0));)i=i.slice(a).trim();t[n].content=i,i.length||(t[n-1].tight=!0,t[n+1].tight=!0)}}}function cV(e){var t=e.tokens,n,r,i;for(r=0,i=t.length;r<i;r++)n=t[r],n.type===`inline`&&e.inline.parse(n.content,e.options,e.env,n.children)}function lV(e){var t,n,r,i,a,o,s,c,l,u=0,d=!1,f={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(d=!0,c=[],l=e.label,!1):e.type===`footnote_reference_close`?(d=!1,f[`:`+l]=c,!1):(d&&c.push(e),!d)}),e.env.footnotes.list)){for(o=e.env.footnotes.list,e.tokens.push({type:`footnote_block_open`,level:u++}),t=0,n=o.length;t<n;t++){for(e.tokens.push({type:`footnote_open`,id:t,level:u++}),o[t].tokens?(s=[],s.push({type:`paragraph_open`,tight:!1,level:u++}),s.push({type:`inline`,content:``,level:u,children:o[t].tokens}),s.push({type:`paragraph_close`,tight:!1,level:--u})):o[t].label&&(s=f[`:`+o[t].label]),e.tokens=e.tokens.concat(s),a=e.tokens[e.tokens.length-1].type===`paragraph_close`?e.tokens.pop():null,i=o[t].count>0?o[t].count:1,r=0;r<i;r++)e.tokens.push({type:`footnote_anchor`,id:t,subId:r,level:u});a&&e.tokens.push(a),e.tokens.push({type:`footnote_close`,level:--u})}e.tokens.push({type:`footnote_block_close`,level:--u})}}var uV=`
|
|
210
|
-
()[]'".,!?-`;function dV(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,`\\$1`)}function fV(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(f=`(^|[`+uV.split(``).map(dV).join(``)+`])(`+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,t){return t.length-e.length}).map(dV).join(`|`)+`)($|[`+uV.split(``).map(dV).join(``)+`])`,e.env.abbrRegExp=new RegExp(f,`g`)),u=e.env.abbrRegExp,n=0,r=p.length;n<r;n++)if(p[n].type===`inline`){for(i=p[n].children,t=i.length-1;t>=0;t--)if(a=i[t],a.type===`text`){for(c=0,o=a.content,u.lastIndex=0,l=a.level,s=[];d=u.exec(o);)u.lastIndex>c&&s.push({type:`text`,content:o.slice(c,d.index+d[1].length),level:l}),s.push({type:`abbr_open`,title:e.env.abbreviations[`:`+d[2]],level:l++}),s.push({type:`text`,content:d[2],level:l}),s.push({type:`abbr_close`,level:--l}),c=u.lastIndex-d[3].length;s.length&&(c<o.length&&s.push({type:`text`,content:o.slice(c),level:l}),p[n].children=i=[].concat(i.slice(0,t),s,i.slice(t+1)))}}}}var pV=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,mV=/\((c|tm|r|p)\)/gi,hV={c:`©`,r:`®`,p:`§`,tm:`™`};function gV(e){return e.indexOf(`(`)<0?e:e.replace(mV,function(e,t){return hV[t.toLowerCase()]})}function _V(e){var t,n,r,i,a;if(e.options.typographer){for(a=e.tokens.length-1;a>=0;a--)if(e.tokens[a].type===`inline`)for(i=e.tokens[a].children,t=i.length-1;t>=0;t--)n=i[t],n.type===`text`&&(r=n.content,r=gV(r),pV.test(r)&&(r=r.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---([^-]|$)/gm,`$1—$2`).replace(/(^|\s)--(\s|$)/gm,`$1–$2`).replace(/(^|[^-\s])--([^-\s]|$)/gm,`$1–$2`)),n.content=r)}}var vV=/['"]/,yV=/['"]/g,bV=/[-\s()\[\]]/,xV=`’`;function SV(e,t){return t<0||t>=e.length?!1:!bV.test(e[t])}function CV(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function wV(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;if(e.options.typographer){for(_=[],h=e.tokens.length-1;h>=0;h--)if(e.tokens[h].type===`inline`){for(g=e.tokens[h].children,_.length=0,t=0;t<g.length;t++)if(n=g[t],!(n.type!==`text`||vV.test(n.text))){for(s=g[t].level,p=_.length-1;p>=0&&!(_[p].level<=s);p--);_.length=p+1,r=n.content,a=0,o=r.length;OUTER:for(;a<o&&(yV.lastIndex=a,i=yV.exec(r),i);){if(c=!SV(r,i.index-1),a=i.index+1,m=i[0]===`'`,l=!SV(r,a),!l&&!c){m&&(n.content=CV(n.content,i.index,xV));continue}if(d=!l,f=!c,f){for(p=_.length-1;p>=0&&(u=_[p],!(_[p].level<s));p--)if(u.single===m&&_[p].level===s){u=_[p],m?(g[u.token].content=CV(g[u.token].content,u.pos,e.options.quotes[2]),n.content=CV(n.content,i.index,e.options.quotes[3])):(g[u.token].content=CV(g[u.token].content,u.pos,e.options.quotes[0]),n.content=CV(n.content,i.index,e.options.quotes[1])),_.length=p;continue OUTER}}d?_.push({token:t,pos:i.index,single:m,level:s}):f&&m&&(n.content=CV(n.content,i.index,xV))}}}}}var TV=[[`block`,ZB],[`abbr`,tV],[`references`,sV],[`inline`,cV],[`footnote_tail`,lV],[`abbr2`,fV],[`replacements`,_V],[`smartquotes`,wV]];function EV(){this.options={},this.ruler=new XB;for(var e=0;e<TV.length;e++)this.ruler.push(TV[e][0],TV[e][1])}EV.prototype.process=function(e){var t,n,r=this.ruler.getRules(``);for(t=0,n=r.length;t<n;t++)r[t](e)};function DV(e,t,n,r,i){var a,o,s,c,l,u,d;for(this.src=e,this.parser=t,this.options=n,this.env=r,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType=`root`,this.ddIndent=-1,this.level=0,this.result=``,o=this.src,u=0,d=!1,s=c=u=0,l=o.length;c<l;c++){if(a=o.charCodeAt(c),!d){if(a===32){u++;continue}d=!0}(a===10||c===l-1)&&(a!==10&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(u),d=!1,u=0,s=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}DV.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},DV.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},DV.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&this.src.charCodeAt(e)===32;e++);return e},DV.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},DV.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},DV.prototype.getLines=function(e,t,n,r){var i,a,o,s,c,l=e;if(e>=t)return``;if(l+1===t)return a=this.bMarks[l]+Math.min(this.tShift[l],n),o=r?this.eMarks[l]+1:this.eMarks[l],this.src.slice(a,o);for(s=Array(t-e),i=0;l<t;l++,i++)c=this.tShift[l],c>n&&(c=n),c<0&&(c=0),a=this.bMarks[l]+c,o=l+1<t||r?this.eMarks[l]+1:this.eMarks[l],s[i]=this.src.slice(a,o);return s.join(``)};function OV(e,t,n){var r,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.tShift[r]-e.blkIndent>=4){r++,i=r;continue}break}return e.line=r,e.tokens.push({type:`code`,content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function kV(e,t,n,r){var i,a,o,s,c,l=!1,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(u+3>d||(i=e.src.charCodeAt(u),i!==126&&i!==96)||(c=u,u=e.skipChars(u,i),a=u-c,a<3)||(o=e.src.slice(u,d).trim(),o.indexOf("`")>=0))return!1;if(r)return!0;for(s=t;s++,!(s>=n||(u=c=e.bMarks[s]+e.tShift[s],d=e.eMarks[s],u<d&&e.tShift[s]<e.blkIndent));)if(e.src.charCodeAt(u)===i&&!(e.tShift[s]-e.blkIndent>=4)&&(u=e.skipChars(u,i),!(u-c<a)&&(u=e.skipSpaces(u),!(u<d)))){l=!0;break}return a=e.tShift[t],e.line=s+ +!!l,e.tokens.push({type:`fence`,params:o,content:e.getLines(t+1,s,a,!0),lines:[t,e.line],level:e.level}),!0}function AV(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(h>g||e.src.charCodeAt(h++)!==62||e.level>=e.options.maxNesting)return!1;if(r)return!0;for(e.src.charCodeAt(h)===32&&h++,c=e.blkIndent,e.blkIndent=0,s=[e.bMarks[t]],e.bMarks[t]=h,h=h<g?e.skipSpaces(h):h,a=h>=g,o=[e.tShift[t]],e.tShift[t]=h-e.bMarks[t],d=e.parser.ruler.getRules(`blockquote`),i=t+1;i<n&&(h=e.bMarks[i]+e.tShift[i],g=e.eMarks[i],!(h>=g));i++){if(e.src.charCodeAt(h++)===62){e.src.charCodeAt(h)===32&&h++,s.push(e.bMarks[i]),e.bMarks[i]=h,h=h<g?e.skipSpaces(h):h,a=h>=g,o.push(e.tShift[i]),e.tShift[i]=h-e.bMarks[i];continue}if(a)break;for(m=!1,f=0,p=d.length;f<p;f++)if(d[f](e,i,n,!0)){m=!0;break}if(m)break;s.push(e.bMarks[i]),o.push(e.tShift[i]),e.tShift[i]=-1337}for(l=e.parentType,e.parentType=`blockquote`,e.tokens.push({type:`blockquote_open`,lines:u=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:`blockquote_close`,level:--e.level}),e.parentType=l,u[1]=e.line,f=0;f<o.length;f++)e.bMarks[f+t]=s[f],e.tShift[f+t]=o[f];return e.blkIndent=c,!0}function jV(e,t,n,r){var i,a,o,s=e.bMarks[t],c=e.eMarks[t];if(s+=e.tShift[t],s>c||(i=e.src.charCodeAt(s++),i!==42&&i!==45&&i!==95))return!1;for(a=1;s<c;){if(o=e.src.charCodeAt(s++),o!==i&&o!==32)return!1;o===i&&a++}return a<3?!1:r?!0:(e.line=t+1,e.tokens.push({type:`hr`,lines:[t,e.line],level:e.level}),!0)}function MV(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return r>=i||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r<i&&e.src.charCodeAt(r)!==32?-1:r}function NV(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(r+1>=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r<i&&e.src.charCodeAt(r)!==32?-1:r}function PV(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type===`paragraph_open`&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}function FV(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=!0,C,w,T,E;if((d=NV(e,t))>=0)g=!0;else if((d=MV(e,t))>=0)g=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(h=e.src.charCodeAt(d-1),r)return!0;for(v=e.tokens.length,g?(u=e.bMarks[t]+e.tShift[t],m=Number(e.src.substr(u,d-u-1)),e.tokens.push({type:`ordered_list_open`,order:m,lines:b=[t,0],level:e.level++})):e.tokens.push({type:`bullet_list_open`,lines:b=[t,0],level:e.level++}),i=t,y=!1,C=e.parser.ruler.getRules(`list`);i<n&&(_=e.skipSpaces(d),f=e.eMarks[i],p=_>=f?1:_-d,p>4&&(p=1),p<1&&(p=1),a=d-e.bMarks[i]+p,e.tokens.push({type:`list_item_open`,lines:x=[t,0],level:e.level++}),s=e.blkIndent,c=e.tight,o=e.tShift[t],l=e.parentType,e.tShift[t]=_-e.bMarks[t],e.blkIndent=a,e.tight=!0,e.parentType=`list`,e.parser.tokenize(e,t,n,!0),(!e.tight||y)&&(S=!1),y=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=s,e.tShift[t]=o,e.tight=c,e.parentType=l,e.tokens.push({type:`list_item_close`,level:--e.level}),i=t=e.line,x[1]=i,_=e.bMarks[t],!(i>=n||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(E=!1,w=0,T=C.length;w<T;w++)if(C[w](e,i,n,!0)){E=!0;break}if(E)break;if(g){if(d=NV(e,i),d<0)break}else if(d=MV(e,i),d<0)break;if(h!==e.src.charCodeAt(d-1))break}return e.tokens.push({type:g?`ordered_list_close`:`bullet_list_close`,level:--e.level}),b[1]=i,e.line=i,S&&PV(e,v),!0}function IV(e,t,n,r){var i,a,o,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(l+4>u||e.src.charCodeAt(l)!==91||e.src.charCodeAt(l+1)!==94||e.level>=e.options.maxNesting)return!1;for(s=l+2;s<u;s++){if(e.src.charCodeAt(s)===32)return!1;if(e.src.charCodeAt(s)===93)break}return s===l+2||s+1>=u||e.src.charCodeAt(++s)!==58?!1:r?!0:(s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(l+2,s-2),e.env.footnotes.refs[`:`+c]=-1,e.tokens.push({type:`footnote_reference_open`,label:c,level:e.level++}),i=e.bMarks[t],a=e.tShift[t],o=e.parentType,e.tShift[t]=e.skipSpaces(s)-s,e.bMarks[t]=s,e.blkIndent+=4,e.parentType=`footnote`,e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,n,!0),e.parentType=o,e.blkIndent-=4,e.tShift[t]=a,e.bMarks[t]=i,e.tokens.push({type:`footnote_reference_close`,level:--e.level}),!0)}function LV(e,t,n,r){var i,a,o,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(s>=c||(i=e.src.charCodeAt(s),i!==35||s>=c))return!1;for(a=1,i=e.src.charCodeAt(++s);i===35&&s<c&&a<=6;)a++,i=e.src.charCodeAt(++s);return a>6||s<c&&i!==32?!1:r?!0:(c=e.skipCharsBack(c,32,s),o=e.skipCharsBack(c,35,s),o>s&&e.src.charCodeAt(o-1)===32&&(c=o),e.line=t+1,e.tokens.push({type:`heading_open`,hLevel:a,lines:[t,e.line],level:e.level}),s<c&&e.tokens.push({type:`inline`,content:e.src.slice(s,c).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:`heading_close`,hLevel:a,level:e.level}),!0)}function RV(e,t,n){var r,i,a,o=t+1;return o>=n||e.tShift[o]<e.blkIndent||e.tShift[o]-e.blkIndent>3||(i=e.bMarks[o]+e.tShift[o],a=e.eMarks[o],i>=a)||(r=e.src.charCodeAt(i),r!==45&&r!==61)||(i=e.skipChars(i,r),i=e.skipSpaces(i),i<a)?!1:(i=e.bMarks[t]+e.tShift[t],e.line=o+1,e.tokens.push({type:`heading_open`,hLevel:r===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:`inline`,content:e.src.slice(i,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:`heading_close`,hLevel:r===61?1:2,level:e.level}),!0)}var zV={};`article.aside.button.blockquote.body.canvas.caption.col.colgroup.dd.div.dl.dt.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.iframe.li.map.object.ol.output.p.pre.progress.script.section.style.table.tbody.td.textarea.tfoot.th.tr.thead.ul.video`.split(`.`).forEach(function(e){zV[e]=!0});var BV=/^<([a-zA-Z]{1,15})[\s\/>]/,VV=/^<\/([a-zA-Z]{1,15})[\s>]/;function HV(e){var t=e|32;return t>=97&&t<=122}function UV(e,t,n,r){var i,a,o,s=e.bMarks[t],c=e.eMarks[t],l=e.tShift[t];if(s+=l,!e.options.html||l>3||s+2>=c||e.src.charCodeAt(s)!==60)return!1;if(i=e.src.charCodeAt(s+1),i===33||i===63){if(r)return!0}else if(i===47||HV(i)){if(i===47){if(a=e.src.slice(s,c).match(VV),!a)return!1}else if(a=e.src.slice(s,c).match(BV),!a)return!1;if(zV[a[1].toLowerCase()]!==!0)return!1;if(r)return!0}else return!1;for(o=t+1;o<e.lineMax&&!e.isEmpty(o);)o++;return e.line=o,e.tokens.push({type:`htmlblock`,level:e.level,lines:[t,e.line],content:e.getLines(t,o,0,!0)}),!0}function WV(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function GV(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m;if(t+2>n||(c=t+1,e.tShift[c]<e.blkIndent)||(o=e.bMarks[c]+e.tShift[c],o>=e.eMarks[c])||(i=e.src.charCodeAt(o),i!==124&&i!==45&&i!==58)||(a=WV(e,t+1),!/^[-:| ]+$/.test(a))||(l=a.split(`|`),l<=2))return!1;for(d=[],s=0;s<l.length;s++){if(f=l[s].trim(),!f){if(s===0||s===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(f))return!1;f.charCodeAt(f.length-1)===58?d.push(f.charCodeAt(0)===58?`center`:`right`):f.charCodeAt(0)===58?d.push(`left`):d.push(``)}if(a=WV(e,t).trim(),a.indexOf(`|`)===-1||(l=a.replace(/^\||\|$/g,``).split(`|`),d.length!==l.length))return!1;if(r)return!0;for(e.tokens.push({type:`table_open`,lines:p=[t,0],level:e.level++}),e.tokens.push({type:`thead_open`,lines:[t,t+1],level:e.level++}),e.tokens.push({type:`tr_open`,lines:[t,t+1],level:e.level++}),s=0;s<l.length;s++)e.tokens.push({type:`th_open`,align:d[s],lines:[t,t+1],level:e.level++}),e.tokens.push({type:`inline`,content:l[s].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:`th_close`,level:--e.level});for(e.tokens.push({type:`tr_close`,level:--e.level}),e.tokens.push({type:`thead_close`,level:--e.level}),e.tokens.push({type:`tbody_open`,lines:m=[t+2,0],level:e.level++}),c=t+2;c<n&&!(e.tShift[c]<e.blkIndent||(a=WV(e,c).trim(),a.indexOf(`|`)===-1));c++){for(l=a.replace(/^\||\|$/g,``).split(`|`),e.tokens.push({type:`tr_open`,level:e.level++}),s=0;s<l.length;s++)e.tokens.push({type:`td_open`,align:d[s],level:e.level++}),u=l[s].substring(+(l[s].charCodeAt(0)===124),l[s].charCodeAt(l[s].length-1)===124?l[s].length-1:l[s].length).trim(),e.tokens.push({type:`inline`,content:u,level:e.level,children:[]}),e.tokens.push({type:`td_close`,level:--e.level});e.tokens.push({type:`tr_close`,level:--e.level})}return e.tokens.push({type:`tbody_close`,level:--e.level}),e.tokens.push({type:`table_close`,level:--e.level}),p[1]=m[1]=c,e.line=c,!0}function KV(e,t){var n,r,i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return i>=a||(r=e.src.charCodeAt(i++),r!==126&&r!==58)||(n=e.skipSpaces(i),i===n)||n>=a?-1:n}function qV(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type===`paragraph_open`&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}function JV(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_;if(r)return e.ddIndent<0?!1:KV(e,t)>=0;if(u=t+1,e.isEmpty(u)&&++u>n||e.tShift[u]<e.blkIndent||(i=KV(e,u),i<0)||e.level>=e.options.maxNesting)return!1;l=e.tokens.length,e.tokens.push({type:`dl_open`,lines:c=[t,0],level:e.level++}),o=t,a=u;OUTER:for(;;){for(_=!0,g=!1,e.tokens.push({type:`dt_open`,lines:[o,o],level:e.level++}),e.tokens.push({type:`inline`,content:e.getLines(o,o+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[o,o],children:[]}),e.tokens.push({type:`dt_close`,level:--e.level});;){if(e.tokens.push({type:`dd_open`,lines:s=[u,0],level:e.level++}),h=e.tight,f=e.ddIndent,d=e.blkIndent,m=e.tShift[a],p=e.parentType,e.blkIndent=e.ddIndent=e.tShift[a]+2,e.tShift[a]=i-e.bMarks[a],e.tight=!0,e.parentType=`deflist`,e.parser.tokenize(e,a,n,!0),(!e.tight||g)&&(_=!1),g=e.line-a>1&&e.isEmpty(e.line-1),e.tShift[a]=m,e.tight=h,e.parentType=p,e.blkIndent=d,e.ddIndent=f,e.tokens.push({type:`dd_close`,level:--e.level}),s[1]=u=e.line,u>=n||e.tShift[u]<e.blkIndent)break OUTER;if(i=KV(e,u),i<0)break;a=u}if(u>=n||(o=u,e.isEmpty(o))||e.tShift[o]<e.blkIndent||(a=o+1,a>=n)||(e.isEmpty(a)&&a++,a>=n)||e.tShift[a]<e.blkIndent||(i=KV(e,a),i<0))break}return e.tokens.push({type:`dl_close`,level:--e.level}),c[1]=u,e.line=u,_&&qV(e,l),!0}function YV(e,t){var n,r,i,a,o,s=t+1,c;if(n=e.lineMax,s<n&&!e.isEmpty(s)){for(c=e.parser.ruler.getRules(`paragraph`);s<n&&!e.isEmpty(s);s++)if(!(e.tShift[s]-e.blkIndent>3)){for(i=!1,a=0,o=c.length;a<o;a++)if(c[a](e,s,n,!0)){i=!0;break}if(i)break}}return r=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,r.length&&(e.tokens.push({type:`paragraph_open`,tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:`inline`,content:r,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:`paragraph_close`,tight:!1,level:e.level})),!0}var XV=[[`code`,OV],[`fences`,kV,[`paragraph`,`blockquote`,`list`]],[`blockquote`,AV,[`paragraph`,`blockquote`,`list`]],[`hr`,jV,[`paragraph`,`blockquote`,`list`]],[`list`,FV,[`paragraph`,`blockquote`]],[`footnote`,IV,[`paragraph`]],[`heading`,LV,[`paragraph`,`blockquote`]],[`lheading`,RV],[`htmlblock`,UV,[`paragraph`,`blockquote`]],[`table`,GV,[`paragraph`]],[`deflist`,JV,[`paragraph`]],[`paragraph`,YV]];function ZV(){this.ruler=new XB;for(var e=0;e<XV.length;e++)this.ruler.push(XV[e][0],XV[e][1],{alt:(XV[e][2]||[]).slice()})}ZV.prototype.tokenize=function(e,t,n){for(var r=this.ruler.getRules(``),i=r.length,a=t,o=!1,s,c;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.tShift[a]<e.blkIndent));){for(c=0;c<i&&(s=r[c](e,a,n,!1),!s);c++);if(e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),a=e.line,a<n&&e.isEmpty(a)){if(o=!0,a++,a<n&&e.parentType===`list`&&e.isEmpty(a))break;e.line=a}}};var QV=/[\n\t]/g,$V=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,eH=/\u00a0/g;ZV.prototype.parse=function(e,t,n,r){var i,a=0,o=0;if(!e)return[];e=e.replace(eH,` `),e=e.replace($V,`
|
|
211
|
-
`),e.indexOf(` `)>=0&&(e=e.replace(QV,function(t,n){var r;return e.charCodeAt(n)===10?(a=n+1,o=0,t):(r=` `.slice((n-a-o)%4),o=n-a+1,r)})),i=new DV(e,this,t,n,r),this.tokenize(i,i.line,i.lineMax)};function tH(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function nH(e,t){for(var n=e.pos;n<e.posMax&&!tH(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function rH(e,t){var n,r,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(n=e.pending.length-1,r=e.posMax,!t){if(n>=0&&e.pending.charCodeAt(n)===32){if(n>=1&&e.pending.charCodeAt(n-1)===32){for(var a=n-2;a>=0;a--)if(e.pending.charCodeAt(a)!==32){e.pending=e.pending.substring(0,a+1);break}e.push({type:`hardbreak`,level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:`softbreak`,level:e.level})}else e.push({type:`softbreak`,level:e.level})}for(i++;i<r&&e.src.charCodeAt(i)===32;)i++;return e.pos=i,!0}for(var iH=[],aH=0;aH<256;aH++)iH.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){iH[e.charCodeAt(0)]=1});function oH(e,t){var n,r=e.pos,i=e.posMax;if(e.src.charCodeAt(r)!==92)return!1;if(r++,r<i){if(n=e.src.charCodeAt(r),n<256&&iH[n]!==0)return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(n===10){for(t||e.push({type:`hardbreak`,level:e.level}),r++;r<i&&e.src.charCodeAt(r)===32;)r++;return e.pos=r,!0}}return t||(e.pending+=`\\`),e.pos++,!0}function sH(e,t){var n,r,i,a,o,s=e.pos;if(e.src.charCodeAt(s)!==96)return!1;for(n=s,s++,r=e.posMax;s<r&&e.src.charCodeAt(s)===96;)s++;for(i=e.src.slice(n,s),a=o=s;(a=e.src.indexOf("`",o))!==-1;){for(o=a+1;o<r&&e.src.charCodeAt(o)===96;)o++;if(o-a===i.length)return t||e.push({type:`code`,content:e.src.slice(s,a).replace(/[ \n]+/g,` `).trim(),block:!1,level:e.level}),e.pos=o,!0}return t||(e.pending+=i),e.pos+=i.length,!0}function cH(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==126||t||o+4>=a||e.src.charCodeAt(o+1)!==126||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===126)||c===126||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===126;)r++;if(r>o+3)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==126&&s!==126&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+2,t||(e.push({type:`del_open`,level:e.level++}),e.parser.tokenize(e),e.push({type:`del_close`,level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=o,!1)}function lH(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==43||t||o+4>=a||e.src.charCodeAt(o+1)!==43||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===43)||c===43||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===43;)r++;if(r!==o+2)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==43&&s!==43&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+2,t||(e.push({type:`ins_open`,level:e.level++}),e.parser.tokenize(e),e.push({type:`ins_close`,level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=o,!1)}function uH(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==61||t||o+4>=a||e.src.charCodeAt(o+1)!==61||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===61)||c===61||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===61;)r++;if(r!==o+2)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==61&&s!==61&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+2,t||(e.push({type:`mark_open`,level:e.level++}),e.parser.tokenize(e),e.push({type:`mark_close`,level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=o,!1)}function dH(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function fH(e,t){var n=t,r,i,a,o=!0,s=!0,c=e.posMax,l=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n<c&&e.src.charCodeAt(n)===l;)n++;return n>=c&&(o=!1),a=n-t,a>=4?o=s=!1:(i=n<c?e.src.charCodeAt(n):-1,(i===32||i===10)&&(o=!1),(r===32||r===10)&&(s=!1),l===95&&(dH(r)&&(o=!1),dH(i)&&(s=!1))),{can_open:o,can_close:s,delims:a}}function pH(e,t){var n,r,i,a,o,s,c,l=e.posMax,u=e.pos,d=e.src.charCodeAt(u);if(d!==95&&d!==42||t)return!1;if(c=fH(e,u),n=c.delims,!c.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(u,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=u+n,s=[n];e.pos<l;){if(e.src.charCodeAt(e.pos)===d){if(c=fH(e,e.pos),r=c.delims,c.can_close){for(a=s.pop(),o=r;a!==o;){if(o<a){s.push(a-o);break}if(o-=a,s.length===0)break;e.pos+=a,a=s.pop()}if(s.length===0){n=a,i=!0;break}e.pos+=r;continue}c.can_open&&s.push(r),e.pos+=r;continue}e.parser.skipToken(e)}return i?(e.posMax=e.pos,e.pos=u+n,t||((n===2||n===3)&&e.push({type:`strong_open`,level:e.level++}),(n===1||n===3)&&e.push({type:`em_open`,level:e.level++}),e.parser.tokenize(e),(n===1||n===3)&&e.push({type:`em_close`,level:--e.level}),(n===2||n===3)&&e.push({type:`strong_close`,level:--e.level})),e.pos=e.posMax+n,e.posMax=l,!0):(e.pos=u,!1)}var mH=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function hH(e,t){var n,r,i=e.posMax,a=e.pos;if(e.src.charCodeAt(a)!==126||t||a+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===126){n=!0;break}e.parser.skipToken(e)}return!n||a+1===e.pos||(r=e.src.slice(a+1,e.pos),r.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=a,!1):(e.posMax=e.pos,e.pos=a+1,t||e.push({type:`sub`,level:e.level,content:r.replace(mH,`$1`)}),e.pos=e.posMax+1,e.posMax=i,!0)}var gH=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function _H(e,t){var n,r,i=e.posMax,a=e.pos;if(e.src.charCodeAt(a)!==94||t||a+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===94){n=!0;break}e.parser.skipToken(e)}return!n||a+1===e.pos||(r=e.src.slice(a+1,e.pos),r.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=a,!1):(e.posMax=e.pos,e.pos=a+1,t||e.push({type:`sup`,level:e.level,content:r.replace(gH,`$1`)}),e.pos=e.posMax+1,e.posMax=i,!0)}function vH(e,t){var n,r,i,a,o,s,c,l,u=!1,d=e.pos,f=e.posMax,p=e.pos,m=e.src.charCodeAt(p);if(m===33&&(u=!0,m=e.src.charCodeAt(++p)),m!==91||e.level>=e.options.maxNesting||(n=p+1,r=$B(e,p),r<0))return!1;if(s=r+1,s<f&&e.src.charCodeAt(s)===40){for(s++;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s>=f)return!1;for(p=s,rV(e,s)?(a=e.linkContent,s=e.pos):a=``,p=s;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s<f&&p!==s&&iV(e,s))for(o=e.linkContent,s=e.pos;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);else o=``;if(s>=f||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(e.linkLevel>0)return!1;for(;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s<f&&e.src.charCodeAt(s)===91&&(p=s+1,s=$B(e,s),s>=0?i=e.src.slice(p,s++):s=p-1),i||=(i===void 0&&(s=r+1),e.src.slice(n,r)),c=e.env.references[aV(i)],!c)return e.pos=d,!1;a=c.href,o=c.title}return t||(e.pos=n,e.posMax=r,u?e.push({type:`image`,src:a,title:o,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:`link_open`,href:a,title:o,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:`link_close`,level:--e.level}))),e.pos=s,e.posMax=f,!0}function yH(e,t){var n,r,i,a,o=e.posMax,s=e.pos;return s+2>=o||e.src.charCodeAt(s)!==94||e.src.charCodeAt(s+1)!==91||e.level>=e.options.maxNesting||(n=s+2,r=$B(e,s+1),r<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),i=e.env.footnotes.list.length,e.pos=n,e.posMax=r,e.push({type:`footnote_ref`,id:i,level:e.level}),e.linkLevel++,a=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(a)},e.linkLevel--),e.pos=r+1,e.posMax=o,!0)}function bH(e,t){var n,r,i,a,o=e.posMax,s=e.pos;if(s+3>o||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(s)!==91||e.src.charCodeAt(s+1)!==94||e.level>=e.options.maxNesting)return!1;for(r=s+2;r<o;r++){if(e.src.charCodeAt(r)===32||e.src.charCodeAt(r)===10)return!1;if(e.src.charCodeAt(r)===93)break}return r===s+2||r>=o||(r++,n=e.src.slice(s+2,r-1),e.env.footnotes.refs[`:`+n]===void 0)?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[`:`+n]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:n,count:0},e.env.footnotes.refs[`:`+n]=i):i=e.env.footnotes.refs[`:`+n],a=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:`footnote_ref`,id:i,subId:a,level:e.level})),e.pos=r,e.posMax=o,!0)}var xH=`coap,doi,javascript,aaa,aaas,about,acap,cap,cid,crid,data,dav,dict,dns,file,ftp,geo,go,gopher,h323,http,https,iax,icap,im,imap,info,ipp,iris,iris.beep,iris.xpc,iris.xpcs,iris.lwz,ldap,mailto,mid,msrp,msrps,mtqp,mupdate,news,nfs,ni,nih,nntp,opaquelocktoken,pop,pres,rtsp,service,session,shttp,sieve,sip,sips,sms,snmp,soap.beep,soap.beeps,tag,tel,telnet,tftp,thismessage,tn3270,tip,tv,urn,vemmi,ws,wss,xcon,xcon-userid,xmlrpc.beep,xmlrpc.beeps,xmpp,z39.50r,z39.50s,adiumxtra,afp,afs,aim,apt,attachment,aw,beshare,bitcoin,bolo,callto,chrome,chrome-extension,com-eventbrite-attendee,content,cvs,dlna-playsingle,dlna-playcontainer,dtn,dvb,ed2k,facetime,feed,finger,fish,gg,git,gizmoproject,gtalk,hcp,icon,ipn,irc,irc6,ircs,itms,jar,jms,keyparc,lastfm,ldaps,magnet,maps,market,message,mms,ms-help,msnim,mumble,mvn,notes,oid,palm,paparazzi,platform,proxy,psyc,query,res,resource,rmi,rsync,rtmp,secondlife,sftp,sgn,skype,smb,soldat,spotify,ssh,steam,svn,teamspeak,things,udp,unreal,ut2004,ventrilo,view-source,webcal,wtai,wyciwyg,xfire,xri,ymsgr`.split(`,`),SH=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,CH=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function wH(e,t){var n,r,i,a,o,s=e.pos;return e.src.charCodeAt(s)!==60||(n=e.src.slice(s),n.indexOf(`>`)<0)?!1:(r=n.match(CH),r?xH.indexOf(r[1].toLowerCase())<0||(a=r[0].slice(1,-1),o=nV(a),!e.parser.validateLink(a))?!1:(t||(e.push({type:`link_open`,href:o,level:e.level}),e.push({type:`text`,content:a,level:e.level+1}),e.push({type:`link_close`,level:e.level})),e.pos+=r[0].length,!0):(i=n.match(SH),i?(a=i[0].slice(1,-1),o=nV(`mailto:`+a),e.parser.validateLink(o)?(t||(e.push({type:`link_open`,href:o,level:e.level}),e.push({type:`text`,content:a,level:e.level+1}),e.push({type:`link_close`,level:e.level})),e.pos+=i[0].length,!0):!1):!1))}function TH(e,t){return e=e.source,t||=``,function n(r,i){return r?(i=i.source||i,e=e.replace(r,i),n):new RegExp(e,t)}}var EH=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,DH=TH(/(?:unquoted|single_quoted|double_quoted)/)(`unquoted`,/[^"'=<>`\x00-\x20]+/)(`single_quoted`,/'[^']*'/)(`double_quoted`,/"[^"]*"/)(),OH=TH(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)(`attr_name`,EH)(`attr_value`,DH)(),kH=TH(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)(`attribute`,OH)(),AH=TH(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)(`open_tag`,kH)(`close_tag`,/<\/[A-Za-z][A-Za-z0-9]*\s*>/)(`comment`,/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)(`processing`,/<[?].*?[?]>/)(`declaration`,/<![A-Z]+\s+[^>]*>/)(`cdata`,/<!\[CDATA\[[\s\S]*?\]\]>/)();function jH(e){var t=e|32;return t>=97&&t<=122}function MH(e,t){var n,r,i,a=e.pos;return!e.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!jH(n))||(r=e.src.slice(a).match(AH),!r)?!1:(t||e.push({type:`htmltag`,content:e.src.slice(a,a+r[0].length),level:e.level}),e.pos+=r[0].length,!0)}var NH=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,PH=/^&([a-z][a-z0-9]{1,31});/i;function FH(e,t){var n,r,i,a=e.pos,o=e.posMax;if(e.src.charCodeAt(a)!==38)return!1;if(a+1<o){if(n=e.src.charCodeAt(a+1),n===35){if(i=e.src.slice(a).match(NH),i)return t||(r=i[1][0].toLowerCase()===`x`?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=IB(r)?LB(r):LB(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(PH),i){var s=AB(i[1]);if(i[1]!==s)return t||(e.pending+=s),e.pos+=i[0].length,!0}}return t||(e.pending+=`&`),e.pos++,!0}var IH=[[`text`,nH],[`newline`,rH],[`escape`,oH],[`backticks`,sH],[`del`,cH],[`ins`,lH],[`mark`,uH],[`emphasis`,pH],[`sub`,hH],[`sup`,_H],[`links`,vH],[`footnote_inline`,yH],[`footnote_ref`,bH],[`autolink`,wH],[`htmltag`,MH],[`entity`,FH]];function LH(){this.ruler=new XB;for(var e=0;e<IH.length;e++)this.ruler.push(IH[e][0],IH[e][1]);this.validateLink=RH}LH.prototype.skipToken=function(e){var t=this.ruler.getRules(``),n=t.length,r=e.pos,i,a;if((a=e.cacheGet(r))>0){e.pos=a;return}for(i=0;i<n;i++)if(t[i](e,!0)){e.cacheSet(r,e.pos);return}e.pos++,e.cacheSet(r,e.pos)},LH.prototype.tokenize=function(e){for(var t=this.ruler.getRules(``),n=t.length,r=e.posMax,i,a;e.pos<r;){for(a=0;a<n&&(i=t[a](e,!1),!i);a++);if(i){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},LH.prototype.parse=function(e,t,n,r){var i=new QB(e,this,t,n,r);this.tokenize(i)};function RH(e){var t=[`vbscript`,`javascript`,`file`,`data`],n=e.trim().toLowerCase();return n=VB(n),n.indexOf(`:`)===-1||t.indexOf(n.split(`:`)[0])===-1}var zH={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkTarget:``,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`block`,`inline`,`references`,`replacements`,`smartquotes`,`references`,`abbr2`,`footnote_tail`]},block:{rules:[`blockquote`,`code`,`fences`,`footnote`,`heading`,`hr`,`htmlblock`,`lheading`,`list`,`paragraph`,`table`]},inline:{rules:[`autolink`,`backticks`,`del`,`emphasis`,`entity`,`escape`,`footnote_ref`,`htmltag`,`links`,`newline`,`text`]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkTarget:``,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkTarget:``,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`block`,`inline`,`references`,`abbr2`]},block:{rules:[`blockquote`,`code`,`fences`,`heading`,`hr`,`htmlblock`,`lheading`,`list`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`htmltag`,`links`,`newline`,`text`]}}}};function BH(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function VH(e,t){typeof e!=`string`&&(t=e,e=`default`),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
|
|
212
|
-
|
|
213
|
-
import Remarkable from 'remarkable';
|
|
214
|
-
import linkify from 'remarkable/linkify';
|
|
215
|
-
new Remarkable().use(linkify)
|
|
216
|
-
`),this.inline=new LH,this.block=new ZV,this.core=new EV,this.renderer=new YB,this.ruler=new XB,this.options={},this.configure(zH[e]),this.set(t||{})}VH.prototype.set=function(e){NB(this.options,e)},VH.prototype.configure=function(e){var t=this;if(!e)throw Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})},VH.prototype.use=function(e,t){return e(this,t),this},VH.prototype.parse=function(e,t){var n=new BH(this,e,t);return this.core.process(n),n.tokens},VH.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},VH.prototype.parseInline=function(e,t){var n=new BH(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},VH.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var HH=`3.16.2`;function UH(e,t){for(var n in t)t.hasOwnProperty(n)&&e[n]===void 0&&(e[n]=t[n]);return e}function WH(e,t,n){var r;return e.length>t&&(n==null?(n=`…`,r=3):r=n.length,e=e.substring(0,t-r)+n),e}function GH(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function KH(e,t){for(var n=e.length-1;n>=0;n--)t(e[n])===!0&&e.splice(n,1)}function qH(e,t){if(!t.global)throw Error("`splitRegex` must have the 'g' flag set");for(var n=[],r=0,i;i=t.exec(e);)n.push(e.substring(r,i.index)),n.push(i[0]),r=i.index+i[0].length;return n.push(e.substring(r)),n}function JH(e){throw Error(`Unhandled case for value: '${e}'`)}var YH=function(){function e(e){e===void 0&&(e={}),this.tagName=``,this.attrs={},this.innerHTML=``,this.whitespaceRegex=/\s+/,this.tagName=e.tagName||``,this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||``}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||``},e.prototype.setAttr=function(e,t){var n=this.getAttrs();return n[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||={}},e.prototype.setClass=function(e){return this.setAttr(`class`,e)},e.prototype.addClass=function(e){for(var t=this.getClass(),n=this.whitespaceRegex,r=t?t.split(n):[],i=e.split(n),a;a=i.shift();)GH(r,a)===-1&&r.push(a);return this.getAttrs().class=r.join(` `),this},e.prototype.removeClass=function(e){for(var t=this.getClass(),n=this.whitespaceRegex,r=t?t.split(n):[],i=e.split(n),a;r.length&&(a=i.shift());){var o=GH(r,a);o!==-1&&r.splice(o,1)}return this.getAttrs().class=r.join(` `),this},e.prototype.getClass=function(){return this.getAttrs().class||``},e.prototype.hasClass=function(e){return(` `+this.getClass()+` `).indexOf(` `+e+` `)!==-1},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||``},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?` `+t:``,[`<`,e,t,`>`,this.getInnerHtml(),`</`,e,`>`].join(``)},e.prototype.buildAttrsStr=function(){if(!this.attrs)return``;var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+`="`+e[n]+`"`);return t.join(` `)},e}();function XH(e,t,n){var r,i;n==null?(n=`…`,i=3,r=8):(i=n.length,r=n.length);var a=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),r=n.match(/^(.*?)(?=(\?|#|\/|$))/i),r&&(t.host=r[1],n=n.substr(r[0].length)),r=n.match(/^\/(.*?)(?=(\?|#|$))/i),r&&(t.path=r[1],n=n.substr(r[0].length)),r=n.match(/^\?(.*?)(?=(#|$))/i),r&&(t.query=r[1],n=n.substr(r[0].length)),r=n.match(/^#(.*?)$/i),r&&(t.fragment=r[1]),t},o=function(e){var t=``;return e.scheme&&e.host&&(t+=e.scheme+`://`),e.host&&(t+=e.host),e.path&&(t+=`/`+e.path),e.query&&(t+=`?`+e.query),e.fragment&&(t+=`#`+e.fragment),t},s=function(e,t){var r=t/2,i=Math.ceil(r),a=-1*Math.floor(r),o=``;return a<0&&(o=e.substr(a)),e.substr(0,i)+n+o};if(e.length<=t)return e;var c=t-i,l=a(e);if(l.query){var u=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(l.query=l.query.substr(0,u[1].length),e=o(l))}if(e.length<=t||(l.host&&(l.host=l.host.replace(/^www\./,``),e=o(l)),e.length<=t))return e;var d=``;if(l.host&&(d+=l.host),d.length>=c)return l.host.length==t?(l.host.substr(0,t-i)+n).substr(0,c+r):s(d,c).substr(0,c+r);var f=``;if(l.path&&(f+=`/`+l.path),l.query&&(f+=`?`+l.query),f){if((d+f).length>=c){if((d+f).length==t)return(d+f).substr(0,t);var p=c-d.length;return(d+s(f,p)).substr(0,c+r)}d+=f}if(l.fragment){var m=`#`+l.fragment;if((d+m).length>=c){if((d+m).length==t)return(d+m).substr(0,t);var h=c-d.length;return(d+s(m,h)).substr(0,c+r)}d+=m}if(l.scheme&&l.host){var g=l.scheme+`://`;if((d+g).length<c)return(g+d).substr(0,t)}if(d.length<=t)return d;var _=``;return c>0&&(_=d.substr(-1*Math.floor(c/2))),(d.substr(0,Math.ceil(c/2))+n+_).substr(0,c+r)}function ZH(e,t,n){if(e.length<=t)return e;var r,i;n==null?(n=`…`,r=8,i=3):(r=n.length,i=n.length);var a=t-i,o=``;return a>0&&(o=e.substr(-1*Math.floor(a/2))),(e.substr(0,Math.ceil(a/2))+n+o).substr(0,a+r)}function QH(e,t,n){return WH(e,t,n)}var $H=function(){function e(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className=``,this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||``}return e.prototype.build=function(e){return new YH({tagName:`a`,attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target=`_blank`,t.rel=`noopener noreferrer`),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),i=0,a=r.length;i<a;i++)n.push(t+`-`+r[i]);return n.join(` `)}return``},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,r=t.location;return r===`smart`?XH(e,n):r===`middle`?ZH(e,n):QH(e,n)},e}(),eU=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText=``,this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),tU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.email=``,n.email=t.email,n}return t.prototype.getType=function(){return`email`},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return`mailto:`+this.email},t.prototype.getAnchorText=function(){return this.email},t}(eU),nU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=``,n.hashtag=``,n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return t.prototype.getType=function(){return`hashtag`},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case`twitter`:return`https://twitter.com/hashtag/`+t;case`facebook`:return`https://www.facebook.com/hashtag/`+t;case`instagram`:return`https://instagram.com/explore/tags/`+t;case`tiktok`:return`https://www.tiktok.com/tag/`+t;default:throw Error(`Unknown service name to point hashtag to: `+e)}},t.prototype.getAnchorText=function(){return`#`+this.hashtag},t}(eU),rU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.mention=``,n.mention=t.mention,n.serviceName=t.serviceName,n}return t.prototype.getType=function(){return`mention`},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case`twitter`:return`https://twitter.com/`+this.mention;case`instagram`:return`https://instagram.com/`+this.mention;case`soundcloud`:return`https://soundcloud.com/`+this.mention;case`tiktok`:return`https://www.tiktok.com/@`+this.mention;default:throw Error(`Unknown service name to point mention to: `+this.serviceName)}},t.prototype.getAnchorText=function(){return`@`+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(eU),iU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.number=``,n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return t.prototype.getType=function(){return`phone`},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return`tel:`+(this.plusSign?`+`:``)+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(eU),aU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.url=``,n.urlMatchType=`scheme`,n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return t.prototype.getType=function(){return`url`},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(e=this.url=`http://`+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,`&`)},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,``)},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,`$1`)},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,``)},t.prototype.removeTrailingSlash=function(e){return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,`"`).replace(/%26/gi,`&`).replace(/%27/gi,`'`).replace(/%3C/gi,`<`).replace(/%3E/gi,`>`);try{return decodeURIComponent(t)}catch{return t}},t}(eU),oU=function(){function e(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}return e}(),sU=/[A-Za-z]/,cU=/[\d]/,lU=/[\D]/,uU=/\s/,dU=/['"]/,fU=/[\x00-\x1F\x7F]/,pU=`A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B4\\u08B6-\\u08BD\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FD5\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AE\\uA7B0-\\uA7B7\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC`,mU=pU+`\\u2700-\\u27bf\\udde6-\\uddff\\ud800-\\udbff\\udc00-\\udfff\\ufe0e\\ufe0f\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ud83c\\udffb-\\udfff\\u200d\\u3299\\u3297\\u303d\\u3030\\u24c2\\ud83c\\udd70-\\udd71\\udd7e-\\udd7f\\udd8e\\udd91-\\udd9a\\udde6-\\uddff\\ude01-\\ude02\\ude1a\\ude2f\\ude32-\\ude3a\\ude50-\\ude51\\u203c\\u2049\\u25aa-\\u25ab\\u25b6\\u25c0\\u25fb-\\u25fe\\u00a9\\u00ae\\u2122\\u2139\\udc04\\u2600-\\u26FF\\u2b05\\u2b06\\u2b07\\u2b1b\\u2b1c\\u2b50\\u2b55\\u231a\\u231b\\u2328\\u23cf\\u23e9-\\u23f3\\u23f8-\\u23fa\\udccf\\u2935\\u2934\\u2190-\\u21ff\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08D4-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0D01-\\u0D03\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D82\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ABE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF2-\\u1CF4\\u1CF8\\u1CF9\\u1DC0-\\u1DF5\\u1DFB-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F`,hU=`0-9\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19`,gU=mU+hU,_U=mU+hU,vU=RegExp(`[${_U}]`),yU=`(?:[`+hU+`]{1,3}\\.){3}[`+hU+`]{1,3}`,bU=`[`+_U+`](?:[`+_U+`\\-_]{0,61}[`+_U+`])?`,xU=function(e){return`(?=(`+bU+`))\\`+e},SU=function(e){return`(?:`+xU(e)+`(?:\\.`+xU(e+1)+`){0,126}|`+yU+`)`};RegExp(`[`+_U+`.\\-]*[`+_U+`\\-]`);var CU=vU,wU=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,TU=RegExp(`[${_U}!#\$%&'*+/=?^_\`{|}~-]`),EU=RegExp(`^${wU.source}\$`),DU=function(e){c(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.localPartCharRegex=TU,t.strictTldRegex=EU,t}return t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,r=this.strictTldRegex,i=[],a=e.length,o=new OU,c={m:`a`,a:`i`,i:`l`,l:`t`,t:`o`,o:`:`},l=0,u=0,d=o;l<a;){var f=e.charAt(l);switch(u){case 0:p(f);break;case 1:m(e.charAt(l-1),f);break;case 2:h(f);break;case 3:g(f);break;case 4:_(f);break;case 5:v(f);break;case 6:y(f);break;case 7:b(f);break;default:JH(u)}l++}return C(),i;function p(e){e===`m`?x(1):n.test(e)&&x()}function m(e,t){e===`:`?n.test(t)?(u=2,d=new OU(s(s({},d),{hasMailtoPrefix:!0}))):S():c[e]===t||(n.test(t)?u=2:t===`.`?u=3:t===`@`?u=4:S())}function h(e){e===`.`?u=3:e===`@`?u=4:n.test(e)||S()}function g(e){e===`.`||e===`@`?S():n.test(e)?u=2:S()}function _(e){CU.test(e)?u=5:S()}function v(e){e===`.`?u=7:e===`-`?u=6:CU.test(e)||C()}function y(e){e===`-`||e===`.`?C():CU.test(e)?u=5:C()}function b(e){e===`.`||e===`-`?C():CU.test(e)?(u=5,d=new OU(s(s({},d),{hasDomainDot:!0}))):C()}function x(e){e===void 0&&(e=2),u=e,d=new OU({idx:l})}function S(){u=0,d=o}function C(){if(d.hasDomainDot){var n=e.slice(d.idx,l);/[-.]$/.test(n)&&(n=n.slice(0,-1));var a=d.hasMailtoPrefix?n.slice(7):n;o(a)&&i.push(new tU({tagBuilder:t,matchedText:n,offset:d.idx,email:a}))}S();function o(e){var t=(e.split(`.`).pop()||``).toLowerCase();return r.test(t)}}},t}(oU),OU=function(){function e(e){e===void 0&&(e={}),this.idx=e.idx===void 0?-1:e.idx,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot}return e}(),kU=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return e.match(t)!==null},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split(`://`)[1]),t.split(`/`)[0].indexOf(`..`)>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return n!==`javascript:`&&n!==`vbscript:`},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!!e&&(!t||!this.hasFullProtocolRegex.test(t))&&e.indexOf(`.`)===-1},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return e&&t?!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=RegExp(`:[^\\s]*?[`+pU+`]`),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),AU=(function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,t=/(?:www\.)/,n=RegExp(`[/?#](?:[`+_U+`\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[`+_U+`\\-+&@#/%=~_()|'$*\\[\\]{}✓])?`);return new RegExp([`(?:`,`(`,e.source,SU(2),`)`,`|`,`(`,`(//)?`,t.source,SU(6),`)`,`|`,`(`,`(//)?`,SU(10)+`\\.`,wU.source,`(?![-`+gU+`])`,`)`,`)`,`(?::[0-9]+)?`,`(?:`+n.source+`)?`].join(``),`gi`)})(),jU=RegExp(`[`+_U+`]`),MU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=AU,n.wordCharRegExp=jU,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return t.prototype.parseMatches=function(e){for(var t=this.matcherRegex,n=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,o=[],s,c=function(){var t=s[0],c=s[1],u=s[4],d=s[5],f=s[9],p=s.index,m=d||f,h=e.charAt(p-1);if(!kU.isValid(t,c)||p>0&&h===`@`||p>0&&m&&l.wordCharRegExp.test(h))return`continue`;if(/\?$/.test(t)&&(t=t.substr(0,t.length-1)),l.matchHasUnbalancedClosingParen(t))t=t.substr(0,t.length-1);else{var g=l.matchHasInvalidCharAfterTld(t,c);g>-1&&(t=t.substr(0,g))}var _=[`http://`,`https://`].find(function(e){return!!c&&c.indexOf(e)!==-1});if(_){var v=t.indexOf(_);t=t.substr(v),c=c.substr(v),p+=v}var y=c?`scheme`:u?`www`:`tld`,b=!!c;o.push(new aU({tagBuilder:a,matchedText:t,offset:p,urlMatchType:y,url:t,protocolUrlMatch:b,protocolRelativeMatch:!!m,stripPrefix:n,stripTrailingSlash:r,decodePercentEncoding:i}))},l=this;(s=t.exec(e))!==null;)c();return o},t.prototype.matchHasUnbalancedClosingParen=function(e){var t=e.charAt(e.length-1),n;if(t===`)`)n=`(`;else if(t===`]`)n=`[`;else if(t===`}`)n=`{`;else return!1;for(var r=0,i=0,a=e.length-1;i<a;i++){var o=e.charAt(i);o===n?r++:o===t&&(r=Math.max(r-1,0))}return r===0},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(`:`),e=e.slice(n));var r=RegExp(`^((.?//)?[-.`+_U+`]*[-`+_U+`]\\.[-`+_U+`]+)`).exec(e);return r===null?-1:(n+=r[1].length,e=e.slice(r[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(oU),NU=RegExp(`[_${_U}]`),PU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.serviceName=t.serviceName,n}return t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.serviceName,r=[],i=e.length,a=0,o=-1,s=0;a<i;){var c=e.charAt(a);switch(s){case 0:l(c);break;case 1:u(c);break;case 2:d(c);break;case 3:f(c);break;default:JH(s)}a++}return p(),r;function l(e){e===`#`?(s=2,o=a):vU.test(e)&&(s=1)}function u(e){vU.test(e)||(s=0)}function d(e){s=NU.test(e)?3:+!!vU.test(e)}function f(e){NU.test(e)||(p(),o=-1,s=+!!vU.test(e))}function p(){if(o>-1&&a-o<=140){var i=e.slice(o,a),s=new nU({tagBuilder:t,matchedText:i,offset:o,serviceName:n,hashtag:i.slice(1)});r.push(s)}}},t}(oU),FU=[`twitter`,`facebook`,`instagram`,`tiktok`],IU=RegExp(`(?:(?:(?:(\\+)?\\d{1,3}[-\\040.]?)?\\(?\\d{3}\\)?[-\\040.]?\\d{3}[-\\040.]?\\d{4})|(?:(\\+)(?:9[976]\\d|8[987530]\\d|6[987]\\d|5[90]\\d|42\\d|3[875]\\d|2[98654321]\\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\\040.]?(?:\\d[-\\040.]?){6,12}\\d+))([,;]+[0-9]+#?)*|(0([1-9]{1}-?[1-9]\\d{3}|[1-9]{2}-?\\d{3}|[1-9]{2}\\d{1}-?\\d{2}|[1-9]{2}\\d{2}-?\\d{1})-?\\d{4}|0[789]0-?\\d{4}-?\\d{4}|050-?\\d{4}-?\\d{4})`,`g`),LU=function(e){c(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.matcherRegex=IU,t}return t.prototype.parseMatches=function(e){for(var t=this.matcherRegex,n=this.tagBuilder,r=[],i;(i=t.exec(e))!==null;){var a=i[0],o=a.replace(/[^0-9,;#]/g,``),s=!!(i[1]||i[2]),c=i.index==0?``:e.substr(i.index-1,1),l=e.substr(i.index+a.length,1),u=!c.match(/\d/)&&!l.match(/\d/);this.testMatch(i[3])&&this.testMatch(a)&&u&&r.push(new iU({tagBuilder:n,matchedText:a,offset:i.index,number:o,plusSign:s}))}return r},t.prototype.testMatch=function(e){return lU.test(e)},t}(oU),RU=RegExp(`@[_${_U}]{1,50}(?![_${_U}])`,`g`),zU=RegExp(`@[_.${_U}]{1,30}(?![_${_U}])`,`g`),BU=RegExp(`@[-_.${_U}]{1,50}(?![-_${_U}])`,`g`),VU=RegExp(`@[_.${_U}]{1,23}[_${_U}](?![_${_U}])`,`g`),HU=RegExp(`[^`+_U+`]`),UU=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.matcherRegexes={twitter:RU,instagram:zU,soundcloud:BU,tiktok:VU},n.nonWordCharRegex=HU,n.serviceName=t.serviceName,n}return t.prototype.parseMatches=function(e){var t=this.serviceName,n=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,i=this.tagBuilder,a=[],o;if(!n)return a;for(;(o=n.exec(e))!==null;){var s=o.index,c=e.charAt(s-1);if(s===0||r.test(c)){var l=o[0].replace(/\.+$/g,``),u=l.slice(1);a.push(new rU({tagBuilder:i,matchedText:l,offset:s,serviceName:t,mention:u}))}}return a},t}(oU);function WU(e,t){for(var n=t.onOpenTag,r=t.onCloseTag,i=t.onText,a=t.onComment,o=t.onDoctype,c=new GU,l=0,u=e.length,d=0,f=0,p=c;l<u;){var m=e.charAt(l);switch(d){case 0:h(m);break;case 1:g(m);break;case 2:v(m);break;case 3:_(m);break;case 4:y(m);break;case 5:b(m);break;case 6:x(m);break;case 7:S(m);break;case 8:C(m);break;case 9:w(m);break;case 10:T(m);break;case 11:E(m);break;case 12:D(m);break;case 13:O(m);break;case 14:k(m);break;case 15:A(m);break;case 16:j(m);break;case 17:M(m);break;case 18:N(m);break;case 19:P(m);break;case 20:ee(m);break;default:JH(d)}l++}f<l&&L();function h(e){e===`<`&&F()}function g(e){e===`!`?d=13:e===`/`?(d=2,p=new GU(s(s({},p),{isClosing:!0}))):e===`<`?F():sU.test(e)?(d=3,p=new GU(s(s({},p),{isOpening:!0}))):(d=0,p=c)}function _(e){uU.test(e)?(p=new GU(s(s({},p),{name:R()})),d=4):e===`<`?F():e===`/`?(p=new GU(s(s({},p),{name:R()})),d=12):e===`>`?(p=new GU(s(s({},p),{name:R()})),I()):!sU.test(e)&&!cU.test(e)&&e!==`:`&&te()}function v(e){e===`>`?te():sU.test(e)?d=3:te()}function y(e){uU.test(e)||(e===`/`?d=12:e===`>`?I():e===`<`?F():e===`=`||dU.test(e)||fU.test(e)?te():d=5)}function b(e){uU.test(e)?d=6:e===`/`?d=12:e===`=`?d=7:e===`>`?I():e===`<`?F():dU.test(e)&&te()}function x(e){uU.test(e)||(e===`/`?d=12:e===`=`?d=7:e===`>`?I():e===`<`?F():dU.test(e)?te():d=5)}function S(e){uU.test(e)||(e===`"`?d=8:e===`'`?d=9:/[>=`]/.test(e)?te():e===`<`?F():d=10)}function C(e){e===`"`&&(d=11)}function w(e){e===`'`&&(d=11)}function T(e){uU.test(e)?d=4:e===`>`?I():e===`<`&&F()}function E(e){uU.test(e)?d=4:e===`/`?d=12:e===`>`?I():e===`<`?F():(d=4,ne())}function D(e){e===`>`?(p=new GU(s(s({},p),{isClosing:!0})),I()):d=4}function O(t){e.substr(l,2)===`--`?(l+=2,p=new GU(s(s({},p),{type:`comment`})),d=14):e.substr(l,7).toUpperCase()===`DOCTYPE`?(l+=7,p=new GU(s(s({},p),{type:`doctype`})),d=20):te()}function k(e){e===`-`?d=15:e===`>`?te():d=16}function A(e){e===`-`?d=18:e===`>`?te():d=16}function j(e){e===`-`&&(d=17)}function M(e){d=e===`-`?18:16}function N(e){e===`>`?I():e===`!`?d=19:e===`-`||(d=16)}function P(e){e===`-`?d=17:e===`>`?I():d=16}function ee(e){e===`>`?I():e===`<`&&F()}function te(){d=0,p=c}function F(){d=1,p=new GU({idx:l})}function I(){var t=e.slice(f,p.idx);t&&i(t,f),p.type===`comment`?a(p.idx):p.type===`doctype`?o(p.idx):(p.isOpening&&n(p.name,p.idx),p.isClosing&&r(p.name,p.idx)),te(),f=l+1}function L(){i(e.slice(f,l),f),f=l+1}function R(){var t=p.idx+(p.isClosing?2:1);return e.slice(t,l).toLowerCase()}function ne(){l--}}var GU=function(){function e(e){e===void 0&&(e={}),this.idx=e.idx===void 0?-1:e.idx,this.type=e.type||`tag`,this.name=e.name||``,this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return e}(),KU=function(){function e(t){t===void 0&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:`end`},this.className=``,this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email=typeof t.email==`boolean`?t.email:this.email,this.phone=typeof t.phone==`boolean`?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=typeof t.newWindow==`boolean`?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash=typeof t.stripTrailingSlash==`boolean`?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof t.decodePercentEncoding==`boolean`?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(n!==!1&&[`twitter`,`instagram`,`soundcloud`,`tiktok`].indexOf(n)===-1)throw Error(`invalid \`mention\` cfg '${n}' - see docs`);var r=this.hashtag;if(r!==!1&&FU.indexOf(r)===-1)throw Error(`invalid \`hashtag\` cfg '${r}' - see docs`);this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return e??=!0,typeof e==`boolean`?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches!=`boolean`||e.schemeMatches,wwwMatches:typeof e.wwwMatches!=`boolean`||e.wwwMatches,tldMatches:typeof e.tldMatches!=`boolean`||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return e??=!0,typeof e==`boolean`?{scheme:e,www:e}:{scheme:typeof e.scheme!=`boolean`||e.scheme,www:typeof e.www!=`boolean`||e.www}},e.prototype.normalizeTruncateCfg=function(e){return typeof e==`number`?{length:e,location:`end`}:UH(e||{},{length:1/0,location:`end`})},e.prototype.parse=function(e){var t=this,n=[`a`,`style`,`script`],r=0,i=[];return WU(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(r===0){var a=qH(e,/( | |<|<|>|>|"|"|')/gi),o=n;a.forEach(function(e,n){if(n%2==0){var r=t.parseText(e,o);i.push.apply(i,r)}o+=e.length})}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},e.prototype.compactMatches=function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;t<e.length-1;){var n=e[t],r=n.getOffset(),i=n.getMatchedText().length,a=r+i;if(t+1<e.length){if(e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>i?t:t+1;e.splice(o,1);continue}if(e[t+1].getOffset()<a){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||KH(e,function(e){return e.getType()===`hashtag`}),this.email||KH(e,function(e){return e.getType()===`email`}),this.phone||KH(e,function(e){return e.getType()===`phone`}),this.mention||KH(e,function(e){return e.getType()===`mention`}),this.urls.schemeMatches||KH(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`scheme`}),this.urls.wwwMatches||KH(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`www`}),this.urls.tldMatches||KH(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`tld`}),e},e.prototype.parseText=function(e,t){t===void 0&&(t=0),t||=0;for(var n=this.getMatchers(),r=[],i=0,a=n.length;i<a;i++){for(var o=n[i].parseMatches(e),s=0,c=o.length;s<c;s++)o[s].setOffset(t+o[s].getOffset());r.push.apply(r,o)}return r},e.prototype.link=function(e){if(!e)return``;this.sanitizeHtml&&(e=e.replace(/</g,`<`).replace(/>/g,`>`));for(var t=this.parse(e),n=[],r=0,i=0,a=t.length;i<a;i++){var o=t[i];n.push(e.substring(r,o.getOffset())),n.push(this.createMatchReturnVal(o)),r=o.getOffset()+o.getMatchedText().length}return n.push(e.substring(r)),n.join(``)},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),typeof t==`string`?t:t===!1?e.getMatchedText():t instanceof YH?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new PU({tagBuilder:e,serviceName:this.hashtag}),new DU({tagBuilder:e}),new LU({tagBuilder:e}),new UU({tagBuilder:e,serviceName:this.mention}),new MU({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||=this.tagBuilder=new $H({newWindow:this.newWindow,truncate:this.truncate,className:this.className}),e},e.version=HH,e.AnchorTagBuilder=$H,e.HtmlTag=YH,e.matcher={Email:DU,Hashtag:PU,Matcher:oU,Mention:UU,Phone:LU,Url:MU},e.match={Email:tU,Hashtag:nU,Match:eU,Mention:rU,Phone:iU,Url:aU},e}(),qU=/www|@|\:\/\//;function JU(e){return/^<a[>\s]/i.test(e)}function YU(e){return/^<\/a\s*>/i.test(e)}function XU(){var e=[];return{links:e,autolinker:new KU({stripPrefix:!1,url:!0,email:!0,replaceFn:function(t){switch(t.getType()){case`url`:e.push({text:t.matchedText,url:t.getUrl()});break;case`email`:e.push({text:t.matchedText,url:`mailto:`+t.getEmail().replace(/^mailto:/i,``)})}return!1}})}}function ZU(e){var t,n,r,i,a,o,s,c,l,u,d,f=e.tokens,p=null,m,h;for(n=0,r=f.length;n<r;n++)if(f[n].type===`inline`)for(i=f[n].children,d=0,t=i.length-1;t>=0;t--){if(a=i[t],a.type===`link_close`){for(t--;i[t].level!==a.level&&i[t].type!==`link_open`;)t--;continue}if(a.type===`htmltag`&&(JU(a.content)&&d>0&&d--,YU(a.content)&&d++),!(d>0)&&a.type===`text`&&qU.test(a.content)){if(p||(p=XU(),m=p.links,h=p.autolinker),o=a.content,m.length=0,h.link(o),!m.length)continue;for(s=[],u=a.level,c=0;c<m.length;c++)e.inline.validateLink(m[c].url)&&(l=o.indexOf(m[c].text),l&&s.push({type:`text`,content:o.slice(0,l),level:u}),s.push({type:`link_open`,href:m[c].url,title:``,level:u++}),s.push({type:`text`,content:m[c].text,level:u}),s.push({type:`link_close`,level:--u}),o=o.slice(l+m[c].text.length));o.length&&s.push({type:`text`,content:o,level:u}),f[n].children=i=[].concat(i.slice(0,t),s,i.slice(t+1))}}}function QU(e){e.core.ruler.push(`linkify`,ZU)}var $U=i(((e,t)=>{var n=Bs(),r=/[\\^$.*+?()[\]{}|]/g,i=RegExp(r.source);function a(e){return e=n(e),e&&i.test(e)?e.replace(r,`\\$&`):e}t.exports=a})),eW=i(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),tW=i(((e,t)=>{var n=eW(),r=Kc();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i}));Ba();var nW=e($U()),rW=e(tW()),iW=e(ah()),aW={287:function(e,t,n){let r=n(987),i=n(362),a=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;let o=2147483647;function s(e){if(e>o)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return l(e,t,n)}function l(e,t,n){if(typeof e==`string`)return function(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!c.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ue(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(ue(e,ArrayBuffer)||e&&ue(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(ue(e,SharedArrayBuffer)||e&&ue(e.buffer,SharedArrayBuffer)))return p(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return c.from(r,t,n);let i=function(e){if(c.isBuffer(e)){let t=0|m(e.length),n=s(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||de(e.length)?s(0):f(e);if(e.type===`Buffer`&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return c.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}function u(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function d(e){return u(e),s(e<0?0:0|m(e))}function f(e){let t=e.length<0?0:0|m(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function m(e){if(e>=o)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+o.toString(16)+` bytes`);return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ue(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return se(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return ce(e).length;default:if(i)return r?-1:se(e).length;t=(``+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return``;for(e||=`utf8`;;)switch(e){case`hex`:return A(this,t,n);case`utf8`:case`utf-8`:return E(this,t,n);case`ascii`:return O(this,t,n);case`latin1`:case`binary`:return k(this,t,n);case`base64`:return T(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return j(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}function _(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),de(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=c.from(t,r)),c.isBuffer(t))return t.length===0?-1:y(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function y(e,t,n,r,i){let a,o=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,r===-1?0:a-r)){if(r===-1&&(r=a),a-r+1===c)return r*o}else r!==-1&&(a-=a-r),r=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){let n=!0;for(let r=0;r<c;r++)if(l(e,a+r)!==l(t,r)){n=!1;break}if(n)return a}return-1}function b(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;let a=t.length,o;for(r>a/2&&(r=a/2),o=0;o<r;++o){let r=parseInt(t.substr(2*o,2),16);if(de(r))return o;e[n+o]=r}return o}function x(e,t,n,r){return le(se(t,e.length-n),e,n,r)}function S(e,t,n,r){return le(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return le(ce(t),e,n,r)}function w(e,t,n,r){return le(function(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return t===0&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(192&n)==128&&(c=(31&t)<<6|63&n,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return function(e){let t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}(r)}t.kMaxLength=o,c.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||typeof console>`u`||typeof console.error!=`function`||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0||t===void 0?s(e):typeof n==`string`?s(e).fill(t,n):s(e).fill(t)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(ue(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),ue(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return c.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(ue(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw TypeError(`"list" argument must be an Array of Buffers`);t.copy(r,i)}i+=t.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?E(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||c.compare(this,e)===0},c.prototype.inspect=function(){let e=``,n=t.INSPECT_MAX_BYTES;return e=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(e+=` ... `),`<Buffer `+e+`>`},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(ue(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)},c.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return b(this,e,t,n);case`utf8`:case`utf-8`:return x(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return S(this,e,t,n);case`base64`:return C(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return w(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};let D=4096;function O(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=fe[e[r]];return i}function j(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}function N(e,t,n,r,i,a){if(!c.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}function P(e,t,n,r,i){re(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ee(e,t,n,r,i){re(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function F(e,t,n,r,a){return t=+t,n>>>=0,a||te(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,a){return t=+t,n>>>=0,a||te(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){let n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=pe((function(e){ie(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ae(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=pe((function(e){ie(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ae(e,this.length-8);let r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=pe((function(e){ie(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ae(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=pe((function(e){ie(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ae(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,!r&&N(this,e,t,n,2**(8*n)-1,0);let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,!r&&N(this,e,t,n,2**(8*n)-1,0);let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=pe((function(e,t=0){return P(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),c.prototype.writeBigUInt64BE=pe((function(e,t=0){return ee(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);N(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=pe((function(e,t=0){return P(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))})),c.prototype.writeBigInt64BE=pe((function(e,t=0){return ee(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))})),c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!c.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;let i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||=0,typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=c.isBuffer(e)?e:c.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let L={};function R(e,t,n){L[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function ne(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function re(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(a+1)}${r}`:`>= -(2${r} ** ${8*(a+1)-1}${r}) and < 2 ** ${8*(a+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new L.ERR_OUT_OF_RANGE(`value`,i,e)}(function(e,t,n){ie(t,`offset`),e[t]!==void 0&&e[t+n]!==void 0||ae(t,e.length-(n+1))})(r,i,a)}function ie(e,t){if(typeof e!=`number`)throw new L.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ae(e,t,n){throw Math.floor(e)===e?t<0?new L.ERR_BUFFER_OUT_OF_BOUNDS:new L.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ie(e,n),new L.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}R(`ERR_BUFFER_OUT_OF_BOUNDS`,(function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`}),RangeError),R(`ERR_INVALID_ARG_TYPE`,(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),R(`ERR_OUT_OF_RANGE`,(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ne(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ne(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r}),RangeError);let oe=/[^+/0-9A-Za-z-_]/g;function se(e,t){let n;t||=1/0;let r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ce(e){return r.toByteArray(function(e){if((e=(e=e.split(`=`)[0]).trim().replace(oe,``)).length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}(e))}function le(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ue(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function de(e){return e!=e}let fe=function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function pe(e){return typeof BigInt>`u`?me:e}function me(){throw Error(`BigInt not supported`)}},919:function(e,t,n){var r=n(287).Buffer;function i(e){return e instanceof r||e instanceof Date||e instanceof RegExp}function a(e){if(e instanceof r){var t=r.alloc?r.alloc(e.length):new r(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error(`Unexpected situation`)}function o(e){var t=[];return e.forEach((function(e,n){t[n]=typeof e==`object`&&e?Array.isArray(e)?o(e):i(e)?a(e):c({},e):e})),t}function s(e,t){return t===`__proto__`?void 0:e[t]}var c=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=`object`)return!1;if(arguments.length<2)return arguments[0];var e,t,n=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(r){typeof r!=`object`||!r||Array.isArray(r)||Object.keys(r).forEach((function(l){t=s(n,l),(e=s(r,l))===n||(n[l]=typeof e!=`object`||!e?e:Array.isArray(e)?o(e):i(e)?a(e):c(typeof t!=`object`||!t||Array.isArray(t)?{}:t,e))}))})),n}},7:function(e){var t,n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}h(e,t,a,{once:!0}),t!==`error`&&function(e,t,n){typeof e.on==`function`&&h(e,`error`,t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function c(e){return e._maxListeners===void 0?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o==`function`?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=Error(`Possible EventEmitter memory leak detected. `+o.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);l.name=`MaxListenersExceededWarning`,l.emitter=e,l.type=t,l.count=o.length,function(e){console&&console.warn&&console.warn(e)}(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function p(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}function m(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function h(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else{if(typeof e.addEventListener!=`function`)throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);o=e}}),a.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else{var l=c.length,u=m(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),(r=this._events)===void 0||(n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,a=Object.keys(n);for(r=0;r<a.length;++r)(i=a[r])!==`removeListener`&&this.removeAllListeners(i);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},698:function(e){e.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},606:function(e){var t,n,r=e.exports={};function i(){throw Error(`setTimeout has not been defined`)}function a(){throw Error(`clearTimeout has not been defined`)}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch{try{return t.call(null,e,0)}catch{return t.call(this,e,0)}}}(function(){try{t=typeof setTimeout==`function`?setTimeout:i}catch{t=i}try{n=typeof clearTimeout==`function`?clearTimeout:a}catch{n=a}})();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=o(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch{try{return n.call(null,e)}catch{return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),c.length!==1||l||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title=`browser`,r.browser=!0,r.env={},r.argv=[],r.version=``,r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw Error(`process.binding is not supported`)},r.cwd=function(){return`/`},r.chdir=function(e){throw Error(`process.chdir is not supported`)},r.umask=function(){return 0}},209:function(e,t,n){var r=n(606),i=65536,a=4294967295,o=n(861).Buffer,s=n.g.crypto||n.g.msCrypto;e.exports=s&&s.getRandomValues?function(e,t){if(e>a)throw RangeError(`requested too many random bytes`);var n=o.allocUnsafe(e);if(e>0){if(e>i)for(var c=0;c<e;c+=i)s.getRandomValues(n.slice(c,c+i));else s.getRandomValues(n)}return typeof t==`function`?r.nextTick((function(){t(null,n)})):n}:function(){throw Error(`Secure random number generation is not supported by this browser.
|
|
217
|
-
Use Chrome, Firefox or Internet Explorer 11`)}},48:function(e){var t={};function n(e,n,r){r||=Error;var i=function(e){function t(t,r,i){return e.call(this,function(e,t,r){return typeof n==`string`?n:n(e,t,r)}(t,r,i))||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n(`ERR_INVALID_OPT_VALUE`,(function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`}),TypeError),n(`ERR_INVALID_ARG_TYPE`,(function(e,t,n){var i,a;return typeof t==`string`&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,`not `)?(i=`must not be`,t=t.replace(/^not /,``)):i=`must be`,a=function(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e,` argument`)?`The ${e} ${i} ${r(t,`type`)}`:`The "${e}" ${function(e,t,n){return typeof n!=`number`&&(n=0),!(n+t.length>e.length)&&e.indexOf(t,n)!==-1}(e,`.`)?`property`:`argument`} ${i} ${r(t,`type`)}`,a+=`. Received type ${typeof n}`}),TypeError),n(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),n(`ERR_METHOD_NOT_IMPLEMENTED`,(function(e){return`The `+e+` method is not implemented`})),n(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),n(`ERR_STREAM_DESTROYED`,(function(e){return`Cannot call `+e+` after a stream was destroyed`})),n(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),n(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),n(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),n(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),n(`ERR_UNKNOWN_ENCODING`,(function(e){return`Unknown encoding: `+e}),TypeError),n(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),e.exports.F=t},382:function(e,t,n){var r=n(606),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(412),o=n(708);n(698)(u,a);for(var s=i(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(`end`,d)))}function d(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},600:function(e,t,n){e.exports=i;var r=n(610);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(698)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},412:function(e,t,n){var r,i=n(606);e.exports=T,T.ReadableState=w,n(7).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(345),s=n(287).Buffer,c=(n.g===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:n.g).Uint8Array||function(){},l,u=n(838);l=u&&u.debuglog?u.debuglog(`stream`):function(){};var d,f,p,m=n(726),h=n(896),g=n(291).getHighWaterMark,_=n(48).F,v=_.ERR_INVALID_ARG_TYPE,y=_.ERR_STREAM_PUSH_AFTER_EOF,b=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(698)(T,o);var S=h.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,i){r||=n(382),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,`readableHighWaterMark`,i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||=n(141).I,this.decoder=new d(e.encoding),this.encoding=e.encoding)}function T(e){if(r||=n(382),!(this instanceof T))return new T(e);var t=this instanceof r;this._readableState=new w(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),o.call(this)}function E(e,t,n,r,i){l(`readableAddChunk`,t);var a,o=e._readableState;if(t===null)o.reading=!1,function(e,t){if(l(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,o);else if(i||(a=function(e,t){var n;return(function(e){return s.isBuffer(e)||e instanceof c})(t)||typeof t==`string`||t===void 0||e.objectMode||(n=new v(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}(o,t)),a)S(e,a);else if(o.objectMode||t&&t.length>0){if(typeof t==`string`||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)o.endEmitted?S(e,new x):D(e,o,t,!0);else if(o.ended)S(e,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):M(e,o)):D(e,o,t,!1)}}else r||(o.reading=!1,M(e,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function D(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),M(e,t)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=h.destroy,T.prototype._undestroy=h.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:typeof e==`string`&&((t||=r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=``),n=!0),E(this,e,t,!1,n)},T.prototype.unshift=function(e){return E(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){d||=n(141).I;var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i=``;r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==``&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function k(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e==e?(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function A(e){var t=e._readableState;l(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l(`emitReadable`,t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;l(`emitReadable_`,t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(l(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function ee(e){l(`readable nexttick read 0`),e.read(0)}function te(e,t){l(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l(`flow`,t.flowing);t.flowing&&e.read()!==null;);}function I(e,t){return t.length===0?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;l(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(R,t,e))}function R(e,t){if(l(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function ne(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}T.prototype.read=function(e){l(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return l(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?L(this):A(this),null;if((e=k(e,t))===0&&t.ended)return t.length===0&&L(this),null;var r,i=t.needReadable;return l(`need readable`,i),(t.length===0||t.length-e<t.highWaterMark)&&l(`length less than watermark`,i=!0),t.ended||t.reading?l(`reading or ended`,i=!1):i&&(l(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),(r=e>0?I(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),r!==null&&this.emit(`data`,r),r},T.prototype._read=function(e){S(this,new b(`_read()`))},T.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,l(`pipe count=%d opts=%j`,r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function s(t,i){l(`onunpipe`),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,function(){l(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,u),e.removeListener(`error`,p),e.removeListener(`unpipe`,s),n.removeListener(`end`,c),n.removeListener(`end`,g),n.removeListener(`data`,f),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}())}function c(){l(`onend`),e.end()}r.endEmitted?i.nextTick(o):n.once(`end`,o),e.on(`unpipe`,s);var u=function(e){return function(){var t=e._readableState;l(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&a(e,`data`)&&(t.flowing=!0,F(e))}}(n);e.on(`drain`,u);var d=!1;function f(t){l(`ondata`);var i=e.write(t);l(`dest.write`,i),!1===i&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&ne(r.pipes,e)!==-1)&&!d&&(l(`false write response, pause`,r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){l(`onerror`,t),g(),e.removeListener(`error`,p),a(e,`error`)===0&&S(e,t)}function m(){e.removeListener(`finish`,h),g()}function h(){l(`onfinish`),e.removeListener(`close`,m),g()}function g(){l(`unpipe`),n.unpipe(e)}return n.on(`data`,f),function(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,`error`,p),e.once(`close`,m),e.once(`finish`,h),e.emit(`pipe`,n),r.flowing||(l(`pipe resume`),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=ne(t.pipes,e);return o===-1||(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n)),this},T.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,!1!==r.flowing&&this.resume()):e===`readable`&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,l(`on readable`,r.length,r.reading),r.length?A(this):r.reading||i.nextTick(ee,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return e===`readable`&&i.nextTick(P,this),n},T.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return e!==`readable`&&e!==void 0||i.nextTick(P,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(l(`resume`),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(te,e,t))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return l(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(l(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,(function(){if(l(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(`data`,(function(i){l(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&i==null||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){l(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(T.prototype[Symbol.asyncIterator]=function(){return f===void 0&&(f=n(955)),f(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=I,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==`function`&&(T.from=function(e,t){return p===void 0&&(p=n(157)),p(T,e,t)})},610:function(e,t,n){e.exports=u;var r=n(48).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(382);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new a);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,d)}function d(){var e=this;typeof this._flush!=`function`||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(698)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i(`_transform()`))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},708:function(e,t,n){var r,i=n(606);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=T,T.WritableState=w;var o={deprecate:n(643)},s=n(345),c=n(287).Buffer,l=(n.g===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:n.g).Uint8Array||function(){},u,d=n(896),f=n(291).getHighWaterMark,p=n(48).F,m=p.ERR_INVALID_ARG_TYPE,h=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,y=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function C(){}function w(e,t,o){r||=n(382),e||={},typeof o!=`boolean`&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,`writableHighWaterMark`,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(typeof a!=`function`)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)(function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,S(e,r)):(a(r),e._writableState.errorEmitted=!0,S(e,r),j(e,t))})(e,n,r,t,a);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(D,e,n,o,a):D(e,n,o,a)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function T(e){var t=this instanceof(r||=n(382));if(!t&&!u.call(T,this))return new T(e);this._writableState=new w(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),s.call(this)}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,n,r){n||function(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}(e,t),t.pendingcb--,r(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,E(e,t,!0,t.length,i,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit(`prefinish`),j(e,t)}))}function j(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||(typeof e._final!=`function`||t.destroyed?(t.prefinished=!0,e.emit(`prefinish`)):(t.pendingcb++,t.finalCalled=!0,i.nextTick(A,e,t)))}(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(698)(T,s),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}}(),typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===T&&e&&e._writableState instanceof w}})):u=function(e){return e instanceof this},T.prototype.pipe=function(){S(this,new _)},T.prototype.write=function(e,t,n){var r=this._writableState,a=!1,o=!r.objectMode&&function(e){return c.isBuffer(e)||e instanceof l}(e);return o&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),typeof t==`function`&&(n=t,t=null),o?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=C),r.ending?function(e,t){var n=new b;S(e,n),i.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var a;return n===null?a=new y:typeof n==`string`||t.objectMode||(a=new m(`chunk`,[`string`,`Buffer`],n)),!a||(S(e,a),i.nextTick(r,a),!1)}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||typeof t!=`string`||(t=c.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return l}(this,r,o,e,t,n)),a},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new h(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?i.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=d.destroy,T.prototype._undestroy=d.undestroy,T.prototype._destroy=function(e,t){t(e)}},955:function(e,t,n){var r,i=n(606);function a(e,t,n){return(t=function(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(238),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){i.nextTick(h,e)}var _=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(m(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(m(void 0,!0)):t[f](n,r)}),r)}}(r,this));else{var a=this[p].read();if(a!==null)return Promise.resolve(m(a,!1));n=new Promise(this[f])}return this[d]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,`return`,(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(m(void 0,!0))}))}))})),r),_);e.exports=function(e){var t,n=Object.create(v,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,(function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0})),e.on(`readable`,g.bind(null,n)),n}},726:function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}var c=n(287).Buffer,l=n(340).inspect,u=l&&l.custom||`inspect`;function d(e,t,n){c.prototype.copy.call(e,t,n)}e.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.head=null,this.tail=null,this.length=0}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),n=this.head,r=0;n;)d(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),(e-=a)===0){a===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),(e-=a)===0){a===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},896:function(e,t,n){var r=n(606);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function o(e,t){e.emit(`error`,t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}}},238:function(e,t,n){var r=n(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if(typeof n==`function`)return e(t,null,n);n||={},a=function(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,o||a.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,d=!0,s||a.call(t)},p=function(e){a.call(t,e)},m=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},h=function(){t.req.on(`finish`,u)};return function(e){return e.setHeader&&typeof e.abort==`function`}(t)?(t.on(`complete`,u),t.on(`abort`,m),t.req?h():t.on(`request`,h)):s&&!t._writableState&&(t.on(`end`,c),t.on(`close`,c)),t.on(`end`,f),t.on(`finish`,u),!1!==n.error&&t.on(`error`,p),t.on(`close`,m),function(){t.removeListener(`complete`,u),t.removeListener(`abort`,m),t.removeListener(`request`,h),t.req&&t.req.removeListener(`finish`,u),t.removeListener(`end`,c),t.removeListener(`close`,c),t.removeListener(`finish`,u),t.removeListener(`end`,f),t.removeListener(`error`,p),t.removeListener(`close`,m)}}},157:function(e){e.exports=function(){throw Error(`Readable.from is not available in the browser`)}},758:function(e,t,n){var r,i=n(48).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){var e=[...arguments],t,i=function(e){return e.length&&typeof e[e.length-1]==`function`?e.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var u=e.map((function(a,s){var l=s<e.length-1;return function(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on(`close`,(function(){s=!0})),r===void 0&&(r=n(238)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&typeof e.abort==`function`}(e)?e.abort():typeof e.destroy==`function`?e.destroy():void a(t||new o(`pipe`))}}(a,l,s>0,(function(e){t||=e,e&&u.forEach(c),l||(u.forEach(c),i(t))}))}));return e.reduce(l)}},291:function(e,t,n){var r=n(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}(t,i,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:`highWaterMark`,a);return Math.floor(a)}return e.objectMode?16:16384}}},345:function(e,t,n){e.exports=n(7).EventEmitter},861:function(e,t,n){var r=n(287),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}},392:function(e,t,n){var r=n(861).Buffer,i=n(496);function a(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){e=i(e,t||`utf8`);for(var n=this._block,r=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%r,l=Math.min(a-s,r-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%r==0&&this._update(n)}return this._len+=a,this},a.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},a.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},e.exports=a},802:function(e,t,n){e.exports=function(t){var n=t.toLowerCase(),r=e.exports[n];if(!r)throw Error(n+` is not supported (we accept pull requests)`);return new r},e.exports.sha=n(816),e.exports.sha1=n(737),e.exports.sha224=n(710),e.exports.sha256=n(107),e.exports.sha384=n(827),e.exports.sha512=n(890)},816:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var f=0;f<80;++f){var p=~~(f/20),m=0|((t=r)<<5|t>>>27)+u(p,i,a,s)+c+n[f]+o[p];c=s,s=a,a=l(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},737:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var p=0;p<80;++p){var m=~~(p/20),h=l(r)+d(m,i,a,s)+c+n[p]+o[m]|0;c=s,s=a,a=u(i),i=r,r=h}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},710:function(e,t,n){var r=n(698),i=n(107),a=n(392),o=n(861).Buffer,s=Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},107:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,m=0|this._f,h=0|this._g,g=0|this._h,_=0;_<16;++_)n[_]=e.readInt32BE(4*_);for(;_<64;++_)n[_]=0|(((t=n[_-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[_-7]+p(n[_-15])+n[_-16];for(var v=0;v<64;++v){var y=g+f(c)+l(c,m,h)+o[v]+n[v]|0,b=d(r)+u(r,i,a)|0;g=h,h=m,m=c,c=s+y|0,s=a,a=i,i=r,r=y+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=m+this._f|0,this._g=h+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},827:function(e,t,n){var r=n(698),i=n(890),a=n(392),o=n(861).Buffer,s=Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},890:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function _(e,t){return+(e>>>0<t>>>0)}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,y=0|this._hh,b=0|this._al,x=0|this._bl,S=0|this._cl,C=0|this._dl,w=0|this._el,T=0|this._fl,E=0|this._gl,D=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var k=t[O-30],A=t[O-30+1],j=p(k,A),M=m(A,k),N=h(k=t[O-4],A=t[O-4+1]),P=g(A,k),ee=t[O-14],te=t[O-14+1],F=t[O-32],I=t[O-32+1],L=M+te|0,R=j+ee+_(L,M)|0;R=(R=R+N+_(L=L+P|0,P)|0)+F+_(L=L+I|0,I)|0,t[O]=R,t[O+1]=L}for(var ne=0;ne<160;ne+=2){R=t[ne],L=t[ne+1];var re=u(n,r,i),ie=u(b,x,S),ae=d(n,b),oe=d(b,n),se=f(s,w),ce=f(w,s),le=o[ne],ue=o[ne+1],de=l(s,c,v),fe=l(w,T,E),pe=D+ce|0,me=y+se+_(pe,D)|0;me=(me=(me=me+de+_(pe=pe+fe|0,fe)|0)+le+_(pe=pe+ue|0,ue)|0)+R+_(pe=pe+L|0,L)|0;var he=oe+ie|0,ge=ae+re+_(he,oe)|0;y=v,D=E,v=c,E=T,c=s,T=w,s=a+me+_(w=C+pe|0,C)|0,a=i,C=S,i=r,S=x,r=n,x=b,n=me+ge+_(b=pe+he|0,pe)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+D|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+r+_(this._bl,x)|0,this._ch=this._ch+i+_(this._cl,S)|0,this._dh=this._dh+a+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,w)|0,this._fh=this._fh+c+_(this._fl,T)|0,this._gh=this._gh+v+_(this._gl,E)|0,this._hh=this._hh+y+_(this._hl,D)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},310:function(e,t,n){e.exports=i;var r=n(7).EventEmitter;function i(){r.call(this)}n(698)(i,r),i.Readable=n(412),i.Writable=n(708),i.Duplex=n(382),i.Transform=n(610),i.PassThrough=n(600),i.finished=n(238),i.pipeline=n(758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on(`data`,i),e.on(`drain`,a),e._isStdio||t&&!1===t.end||(n.on(`end`,s),n.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),r.listenerCount(this,`error`)===0)throw e}function u(){n.removeListener(`data`,i),e.removeListener(`drain`,a),n.removeListener(`end`,s),n.removeListener(`close`,c),n.removeListener(`error`,l),e.removeListener(`error`,l),n.removeListener(`end`,u),n.removeListener(`close`,u),e.removeListener(`close`,u)}return n.on(`error`,l),e.on(`error`,l),n.on(`end`,u),n.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,n),e}},141:function(e,t,n){var r=n(861).Buffer,i=r.isEncoding||function(e){switch((e=``+e)&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}(e);if(typeof t!=`string`&&(r.isEncoding===i||!i(e)))throw Error(`Unknown encoding: `+e);return t||e}(e),this.encoding){case`utf16le`:this.text=c,this.end=l,t=4;break;case`utf8`:this.fillLast=s,t=4;break;case`base64`:this.text=u,this.end=d,t=3;break;default:this.write=f,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,`�`}}(this,e);return n===void 0?this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):n}function c(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function u(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):``}t.I=a,a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=function(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},643:function(e,t,n){function r(e){try{if(!n.g.localStorage)return!1}catch{return!1}var t=n.g.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}e.exports=function(e,t){if(r(`noDeprecation`))return e;var n=!1;return function(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},499:function(e){var t={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,n){return t[n]})):e}},123:function(e,t,n){var r=n(606),i=n(499),a=n(310).Stream;function o(e,t,n){var r,a=function(e,t){return Array(t||0).join(e||``)}(t,n||=0),s=e;if(typeof e==`object`&&(s=e[r=Object.keys(e)[0]])&&s._elem)return s._elem.name=r,s._elem.icount=n,s._elem.indent=t,s._elem.indents=a,s._elem.interrupt=s,s._elem;var c,l=[],u=[];function d(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+`="`+i(t)+`"`}(t,e[t]))}))}switch(typeof s){case`object`:if(s===null)break;s._attr&&d(s._attr),s._cdata&&u.push((`<![CDATA[`+s._cdata).replace(/\]\]>/g,`]]]]><![CDATA[>`)+`]]>`),s.forEach&&(c=!1,u.push(``),s.forEach((function(e){typeof e==`object`?Object.keys(e)[0]==`_attr`?d(e._attr):u.push(o(e,t,n+1)):(u.pop(),c=!0,u.push(i(e)))})),c||u.push(``));break;default:u.push(i(s))}return{name:r,interrupt:!1,attributes:l,content:u,icount:n,indents:a,indent:t}}function s(e,t,n){if(typeof t!=`object`)return e(!1,t);var r=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var i=t.content.shift();if(i!==void 0){if(a(i))return;s(e,i)}}e(!1,(r>1?t.indents:``)+(t.name?`</`+t.name+`>`:``)+(t.indent&&!n?`
|
|
218
|
-
`:``)),n&&n()}function a(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?`<`+t.name:``)+(t.attributes.length?` `+t.attributes.join(` `):``)+(r?t.name?`>`:``:t.name?`/>`:``)+(t.indent&&r>1?`
|
|
219
|
-
`:``)),!r)return e(!1,t.indent?`
|
|
220
|
-
`:``);a(t)||i()}e.exports=function(e,t){typeof t!=`object`&&(t={indent:t});var n=t.stream?new a:null,i=``,c=!1,l=t.indent?!0===t.indent?` `:t.indent:``,u=!0;function d(e){u?r.nextTick(e):e()}function f(e,t){if(t!==void 0&&(i+=t),e&&!c&&(n||=new a,c=!0),e&&c){var r=i;d((function(){n.emit(`data`,r)})),i=``}}function p(e,t){s(f,o(e,l,+!!l),t)}function m(){if(n){var e=i;d((function(){n.emit(`data`,e),n.emit(`end`),n.readable=!1,n.emit(`close`)}))}}return d((function(){u=!1})),t.declaration&&function(e){var t={version:`1.0`,encoding:e.encoding||`UTF-8`};e.standalone&&(t.standalone=e.standalone),p({"?xml":{_attr:t}}),i=i.replace(`/>`,`?>`)}(t.declaration),e&&e.forEach?e.forEach((function(t,n){var r;n+1===e.length&&(r=m),p(t,r)})):p(e,m),n?(n.readable=!0,n):i},e.exports.element=e.exports.Element=function(){return{_elem:o(Array.prototype.slice.call(arguments)),push:function(e){if(!this.append)throw Error(`not assigned to a parent!`);var t=this,n=this._elem.indent;s(this.append,o(e,n,this._elem.icount+ +!!n),(function(){t.append(!0)}))},close:function(e){e!==void 0&&this.push(e),this.end&&this.end()}}}},987:function(e){e.exports=Wl},362:function(e){e.exports=Gl},496:function(e){e.exports=Kl},340:function(){},838:function(){}},oW={};function Q(e){var t=oW[e];if(t!==void 0)return t.exports;var n=oW[e]={exports:{}};return aW[e](n,n.exports,Q),n.exports}Q.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Q.d(t,{a:t}),t},Q.d=function(e,t){for(var n in t)Q.o(t,n)&&!Q.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Q.g=function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}}(),Q.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Q.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var sW={};Q.r(sW),Q.d(sW,{CLEAR:function(){return IW},CLEAR_BY:function(){return LW},NEW_AUTH_ERR:function(){return FW},NEW_SPEC_ERR:function(){return NW},NEW_SPEC_ERR_BATCH:function(){return PW},NEW_THROWN_ERR:function(){return jW},NEW_THROWN_ERR_BATCH:function(){return MW},clear:function(){return UW},clearBy:function(){return WW},newAuthErr:function(){return HW},newSpecErr:function(){return BW},newSpecErrBatch:function(){return VW},newThrownErr:function(){return RW},newThrownErrBatch:function(){return zW}});var cW={};Q.r(cW),Q.d(cW,{AUTHORIZE:function(){return BG},AUTHORIZE_OAUTH2:function(){return HG},CONFIGURE_AUTH:function(){return UG},LOGOUT:function(){return VG},RESTORE_AUTHORIZATION:function(){return WG},SHOW_AUTH_POPUP:function(){return zG},authPopup:function(){return sK},authorize:function(){return KG},authorizeAccessCodeWithBasicAuthentication:function(){return nK},authorizeAccessCodeWithFormParams:function(){return tK},authorizeApplication:function(){return eK},authorizeOauth2:function(){return ZG},authorizeOauth2WithPersistOption:function(){return QG},authorizePassword:function(){return $G},authorizeRequest:function(){return rK},authorizeWithPersistOption:function(){return qG},configureAuth:function(){return iK},logout:function(){return JG},logoutWithPersistOption:function(){return YG},persistAuthorizationIfNeeded:function(){return oK},preAuthorizeImplicit:function(){return XG},restoreAuthorization:function(){return aK},showDefinitions:function(){return GG}});var lW={};Q.r(lW),Q.d(lW,{authorized:function(){return hK},definitionsForRequirements:function(){return mK},definitionsToAuthorize:function(){return dK},getConfigs:function(){return _K},getDefinitionsByNames:function(){return pK},isAuthorized:function(){return gK},selectAuthPath:function(){return fK},shownDefinitions:function(){return uK}});var uW={};Q.r(uW),Q.d(uW,{TOGGLE_CONFIGS:function(){return OK},UPDATE_CONFIGS:function(){return DK},downloadConfig:function(){return MK},getConfigByUrl:function(){return NK},loaded:function(){return jK},toggle:function(){return AK},update:function(){return kK}});var dW={};Q.r(dW),Q.d(dW,{get:function(){return PK}});var fW={};Q.r(fW),Q.d(fW,{transform:function(){return WK}});var pW={};Q.r(pW),Q.d(pW,{transform:function(){return GK}});var mW={};Q.r(mW),Q.d(mW,{allErrors:function(){return YK},lastError:function(){return XK}});var hW={};Q.r(hW),Q.d(hW,{SHOW:function(){return dq},UPDATE_FILTER:function(){return lq},UPDATE_LAYOUT:function(){return cq},UPDATE_MODE:function(){return uq},changeMode:function(){return hq},show:function(){return mq},updateFilter:function(){return pq},updateLayout:function(){return fq}});var gW={};Q.r(gW),Q.d(gW,{current:function(){return _q},currentFilter:function(){return vq},isShown:function(){return yq},showSummary:function(){return xq},whatMode:function(){return bq}});var _W={};Q.r(_W),Q.d(_W,{taggedOperations:function(){return Sq}});var vW={};Q.r(vW),Q.d(vW,{getActiveLanguage:function(){return Rq},getDefaultExpanded:function(){return zq},getGenerators:function(){return Iq},getSnippetGenerators:function(){return Lq}});var yW={};Q.r(yW),Q.d(yW,{JsonSchemaArrayItemFile:function(){return gJ},JsonSchemaArrayItemText:function(){return hJ},JsonSchemaForm:function(){return fJ},JsonSchema_array:function(){return mJ},JsonSchema_boolean:function(){return _J},JsonSchema_object:function(){return yJ},JsonSchema_string:function(){return pJ}});var bW={};Q.r(bW),Q.d(bW,{allowTryItOutFor:function(){return HY},basePath:function(){return OY},canExecuteScheme:function(){return rX},consumes:function(){return SY},consumesOptionsFor:function(){return tX},contentTypeValues:function(){return QY},currentProducesFor:function(){return $Y},definitions:function(){return DY},externalDocs:function(){return gY},findDefinition:function(){return EY},getOAS3RequiredRequestBodyContentType:function(){return oX},getParameter:function(){return qY},hasHost:function(){return JY},host:function(){return kY},info:function(){return hY},isMediaTypeSchemaPropertiesEqual:function(){return sX},isOAS3:function(){return mY},lastError:function(){return rY},mutatedRequestFor:function(){return VY},mutatedRequests:function(){return RY},operationScheme:function(){return nX},operationWithMeta:function(){return KY},operations:function(){return xY},operationsWithRootInherited:function(){return jY},operationsWithTags:function(){return PY},parameterInclusionSettingFor:function(){return WY},parameterValues:function(){return YY},parameterWithMeta:function(){return GY},parameterWithMetaByIdentity:function(){return UY},parametersIncludeIn:function(){return XY},parametersIncludeType:function(){return ZY},paths:function(){return yY},produces:function(){return CY},producesOptionsFor:function(){return eX},requestFor:function(){return BY},requests:function(){return LY},responseFor:function(){return zY},responses:function(){return IY},schemes:function(){return AY},security:function(){return wY},securityDefinitions:function(){return TY},semver:function(){return vY},spec:function(){return pY},specJS:function(){return cY},specJson:function(){return sY},specJsonWithResolvedSubtrees:function(){return fY},specResolved:function(){return lY},specResolvedSubtree:function(){return uY},specSource:function(){return oY},specStr:function(){return aY},tagDetails:function(){return NY},taggedOperations:function(){return FY},tags:function(){return MY},url:function(){return iY},validOperationMethods:function(){return bY},validateBeforeExecute:function(){return aX},validationErrors:function(){return iX},version:function(){return _Y}});var xW={};Q.r(xW),Q.d(xW,{CLEAR_REQUEST:function(){return bX},CLEAR_RESPONSE:function(){return yX},CLEAR_VALIDATE_PARAMS:function(){return xX},LOG_REQUEST:function(){return vX},SET_MUTATED_REQUEST:function(){return _X},SET_REQUEST:function(){return gX},SET_RESPONSE:function(){return hX},SET_SCHEME:function(){return TX},UPDATE_EMPTY_PARAM_INCLUSION:function(){return pX},UPDATE_JSON:function(){return dX},UPDATE_OPERATION_META_VALUE:function(){return SX},UPDATE_PARAM:function(){return fX},UPDATE_RESOLVED:function(){return CX},UPDATE_RESOLVED_SUBTREE:function(){return wX},UPDATE_SPEC:function(){return lX},UPDATE_URL:function(){return uX},VALIDATE_PARAMS:function(){return mX},changeConsumesValue:function(){return WX},changeParam:function(){return LX},changeParamByIdentity:function(){return RX},changeProducesValue:function(){return GX},clearRequest:function(){return $X},clearResponse:function(){return QX},clearValidateParams:function(){return UX},execute:function(){return ZX},executeRequest:function(){return XX},invalidateResolvedSubtreeCache:function(){return BX},logRequest:function(){return YX},parseToJson:function(){return jX},requestResolvedSubtree:function(){return IX},resolveSpec:function(){return NX},setMutatedRequest:function(){return JX},setRequest:function(){return qX},setResponse:function(){return KX},setScheme:function(){return eZ},updateEmptyParamInclusion:function(){return HX},updateJsonSpec:function(){return AX},updateResolved:function(){return OX},updateResolvedSubtree:function(){return zX},updateSpec:function(){return DX},updateUrl:function(){return kX},validateParams:function(){return VX}});var SW={};Q.r(SW),Q.d(SW,{executeRequest:function(){return iZ},updateJsonSpec:function(){return rZ},updateSpec:function(){return nZ},validateParams:function(){return aZ}});var CW={};Q.r(CW),Q.d(CW,{Button:function(){return BQ},Col:function(){return RQ},Collapse:function(){return KQ},Container:function(){return IQ},Input:function(){return HQ},Link:function(){return WQ},Row:function(){return zQ},Select:function(){return UQ},TextArea:function(){return VQ}});var wW={};Q.r(wW),Q.d(wW,{basePath:function(){return j$},consumes:function(){return M$},definitions:function(){return E$},findDefinition:function(){return T$},hasHost:function(){return D$},host:function(){return A$},produces:function(){return N$},schemes:function(){return P$},securityDefinitions:function(){return O$},validOperationMethods:function(){return k$}});var TW={};Q.r(TW),Q.d(TW,{definitionsToAuthorize:function(){return F$}});var EW={};Q.r(EW),Q.d(EW,{callbacksOperations:function(){return W$},findSchema:function(){return U$},isOAS3:function(){return B$},isOAS30:function(){return z$},isSwagger2:function(){return R$},servers:function(){return H$}});var DW={};Q.r(DW),Q.d(DW,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return _1},CLEAR_REQUEST_BODY_VALUE:function(){return v1},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return g1},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return f1},UPDATE_REQUEST_BODY_INCLUSION:function(){return d1},UPDATE_REQUEST_BODY_VALUE:function(){return l1},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return u1},UPDATE_REQUEST_CONTENT_TYPE:function(){return p1},UPDATE_RESPONSE_CONTENT_TYPE:function(){return m1},UPDATE_SELECTED_SERVER:function(){return c1},UPDATE_SERVER_VARIABLE_VALUE:function(){return h1},clearRequestBodyValidateError:function(){return O1},clearRequestBodyValue:function(){return A1},initRequestBodyValidateError:function(){return k1},setActiveExamplesMember:function(){return C1},setRequestBodyInclusion:function(){return S1},setRequestBodyValidateError:function(){return D1},setRequestBodyValue:function(){return b1},setRequestContentType:function(){return w1},setResponseContentType:function(){return T1},setRetainRequestBodyValueFlag:function(){return x1},setSelectedServer:function(){return y1},setServerVariableValue:function(){return E1}});var OW={};Q.r(OW),Q.d(OW,{activeExamplesMember:function(){return z1},hasUserEditedBody:function(){return I1},requestBodyErrors:function(){return R1},requestBodyInclusionSetting:function(){return L1},requestBodyValue:function(){return N1},requestContentType:function(){return B1},responseContentType:function(){return V1},selectDefaultRequestBodyValue:function(){return F1},selectedServer:function(){return M1},serverEffectiveValue:function(){return W1},serverVariableValue:function(){return H1},serverVariables:function(){return U1},shouldRetainRequestBodyValue:function(){return P1},validOperationMethods:function(){return q1},validateBeforeExecute:function(){return G1},validateShallowRequired:function(){return K1}});var kW=Q(919),AW=Q.n(kW),jW=`err_new_thrown_err`,MW=`err_new_thrown_err_batch`,NW=`err_new_spec_err`,PW=`err_new_spec_err_batch`,FW=`err_new_auth_err`,IW=`err_clear`,LW=`err_clear_by`;function RW(e){return{type:jW,payload:(0,Jl.serializeError)(e)}}function zW(e){return{type:MW,payload:e}}function BW(e){return{type:NW,payload:e}}function VW(e){return{type:PW,payload:e}}function HW(e){return{type:FW,payload:e}}function UW(e={}){return{type:IW,payload:e}}function WW(e=()=>!0){return{type:LW,payload:e}}var GW=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>`u`)return e;try{e=window;for(var t of[`File`,`Blob`,`FormData`])t in window&&(e[t]=window[t])}catch(e){console.error(e)}return e}(),KW=Q(209),qW=Q.n(KW),JW=Q(802),YW=Q.n(JW),XW=Ra.Set.of(`type`,`format`,`items`,`default`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`);function ZW(e,{isOAS3:t}={}){if(!Ra.Map.isMap(e))return{schema:Ra.Map(),parameterContentMediaType:null};if(!t)return e.get(`in`)===`body`?{schema:e.get(`schema`,Ra.Map()),parameterContentMediaType:null}:{schema:e.filter(((e,t)=>XW.includes(t))),parameterContentMediaType:null};if(e.get(`content`)){let t=e.get(`content`,Ra.Map({})).keySeq().first();return{schema:e.getIn([`content`,t,`schema`],Ra.Map()),parameterContentMediaType:t}}return{schema:e.get(`schema`)?e.get(`schema`,Ra.Map()):Ra.Map(),parameterContentMediaType:null}}var QW=Q(287).Buffer,$W=`default`,eG=e=>Ra.Iterable.isIterable(e),tG=e=>eG(e)?e.toJS():e;function nG(e){return oG(e)?tG(e):{}}function rG(e){if(eG(e)||e instanceof GW.File||!oG(e))return e;if(Array.isArray(e))return Ra.Seq(e).map(rG).toList();if((0,Xl.default)(e.entries)){let t=function(e){if(!(0,Xl.default)(e.entries))return e;let t={},n=`_**[]`,r={};for(let i of e.entries())t[i[0]]||r[i[0]]&&r[i[0]].containsMultiple?(r[i[0]]||(r[i[0]]={containsMultiple:!0,length:1},t[`${i[0]}${n}${r[i[0]].length}`]=t[i[0]],delete t[i[0]]),r[i[0]].length+=1,t[`${i[0]}${n}${r[i[0]].length}`]=i[1]):t[i[0]]=i[1];return t}(e);return Ra.OrderedMap(t).map(rG)}return Ra.OrderedMap(e).map(rG)}function iG(e){return Array.isArray(e)?e:[e]}function aG(e){return typeof e==`function`}function oG(e){return!!e&&typeof e==`object`}function sG(e){return typeof e==`function`}function cG(e){return Array.isArray(e)}var lG=Ql.default;function uG(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r],r),n)),{})}function dG(e,t){return Object.keys(e).reduce(((n,r)=>{let i=t(e[r],r);return i&&typeof i==`object`&&Object.assign(n,i),n}),{})}function fG(e){return({dispatch:t,getState:n})=>t=>n=>typeof n==`function`?n(e()):t(n)}function pG(e,t,n,r,i,a){if(!t)return[];let o=[],s=t.get(`nullable`),c=t.get(`required`),l=t.get(`maximum`),u=t.get(`minimum`),d=t.get(`type`),f=t.get(`format`),p=t.get(`maxLength`),m=t.get(`minLength`),h=t.get(`uniqueItems`),g=t.get(`maxItems`),_=t.get(`minItems`),v=t.get(`pattern`),y=n||!0===c,b=e!=null,x=y||b&&d===`array`||!(!y&&!b),S=s&&e===null;if(y&&!b&&!S&&!r&&!d)return o.push(`Required field is not provided`),o;if(S||!d||!x)return[];let C=d===`string`&&e,w=d===`array`&&Array.isArray(e)&&e.length,T=d===`array`&&Ra.List.isList(e)&&e.count(),E=d===`array`&&typeof e==`string`&&e,D=[C,w,T,d===`file`&&e instanceof GW.File,d===`boolean`&&(e||!1===e),d===`number`&&(e||e===0),d===`integer`&&(e||e===0),d===`object`&&typeof e==`object`&&!!e,d===`object`&&typeof e==`string`&&e],O=(a?D:D.concat(E)).some((e=>!!e));if(y&&!O&&!r)return o.push(`Required field is not provided`),o;if(d===`object`&&(i===null||i===`application/json`)){let n=e;if(typeof e==`string`)try{n=JSON.parse(e)}catch{return o.push(`Parameter string value must be valid JSON`),o}t&&t.has(`required`)&&sG(c.isList)&&c.isList()&&c.forEach((e=>{n[e]===void 0&&o.push({propKey:e,error:`Required property not found`})})),t&&t.has(`properties`)&&t.get(`properties`).forEach(((e,t)=>{let s=pG(n[t],e,!1,r,i,a);o.push(...s.map((e=>({propKey:t,error:e}))))}))}if(v){let t=((e,t)=>{if(!new RegExp(t).test(e))return`Value must follow pattern `+t})(e,v);t&&o.push(t)}if(_&&d===`array`){let t=((e,t)=>{if(!e&&t>=1||e&&e.length<t)return`Array must contain at least ${t} item${t===1?``:`s`}`})(e,_);t&&o.push(t)}if(g&&d===`array`){let t=((e,t)=>{if(e&&e.length>t)return`Array must not contain more then ${t} item${t===1?``:`s`}`})(e,g);t&&o.push({needRemove:!0,error:t})}if(h&&d===`array`){let t=((e,t)=>{if(e&&(t===`true`||!0===t)){let t=z(e),n=t.toSet();if(e.length>n.size){let e=ba();if(t.forEach(((n,r)=>{t.filter((e=>sG(e.equals)?e.equals(n):e===n)).size>1&&(e=e.add(r))})),e.size!==0)return e.map((e=>({index:e,error:`No duplicates allowed.`}))).toArray()}}})(e,h);t&&o.push(...t)}if(p||p===0){let t=((e,t)=>{if(e.length>t)return`Value must be no longer than ${t} character${t===1?``:`s`}`})(e,p);t&&o.push(t)}if(m){let t=((e,t)=>{if(e.length<t)return`Value must be at least ${t} character${t===1?``:`s`}`})(e,m);t&&o.push(t)}if(l||l===0){let t=((e,t)=>{if(e>t)return`Value must be less than or equal to ${t}`})(e,l);t&&o.push(t)}if(u||u===0){let t=((e,t)=>{if(e<t)return`Value must be greater than or equal to ${t}`})(e,u);t&&o.push(t)}if(d===`string`){let t;if(t=f===`date-time`?(e=>{if(isNaN(Date.parse(e)))return`Value must be a DateTime`})(e):f===`uuid`?(e=>{if(e=e.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))return`Value must be a Guid`})(e):(e=>{if(e&&typeof e!=`string`)return`Value must be a string`})(e),!t)return o;o.push(t)}else if(d===`boolean`){let t=(e=>{if(e!==`true`&&e!==`false`&&!0!==e&&!1!==e)return`Value must be a boolean`})(e);if(!t)return o;o.push(t)}else if(d===`number`){let t=(e=>{if(!/^-?\d+(\.?\d+)?$/.test(e))return`Value must be a number`})(e);if(!t)return o;o.push(t)}else if(d===`integer`){let t=(e=>{if(!/^-?\d+$/.test(e))return`Value must be an integer`})(e);if(!t)return o;o.push(t)}else if(d===`array`){if(!w&&!T)return o;e&&e.forEach(((e,n)=>{let s=pG(e,t.get(`items`),!1,r,i,a);o.push(...s.map((e=>({index:n,error:e}))))}))}else if(d===`file`){let t=(e=>{if(e&&!(e instanceof GW.File))return`Value must be a file`})(e);if(!t)return o;o.push(t)}return o}var mG=e=>{let t;return t=e instanceof QW?e:QW.from(e.toString(),`utf-8`),t.toString(`base64`)},hG={operationsSorter:{alpha:(e,t)=>e.get(`path`).localeCompare(t.get(`path`)),method:(e,t)=>e.get(`method`).localeCompare(t.get(`method`))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},gG=e=>{let t=[];for(let n in e){let r=e[n];r!==void 0&&r!==``&&t.push([n,`=`,encodeURIComponent(r).replace(/%20/g,`+`)].join(``))}return t.join(`&`)},_G=(e,t,n)=>!!(0,$l.default)(n,(n=>(0,Yl.default)(e[n],t[n])));function vG(e){return!(!e||e.indexOf(`localhost`)>=0||e.indexOf(`127.0.0.1`)>=0||e===`none`)}var yG=e=>typeof e==`string`||e instanceof String?e.trim().replace(/\s/g,`%20`):``,bG=e=>(0,tu.default)(yG(e).replace(/%20/g,`_`)),xG=e=>/^x-/.test(e),SG=e=>B.isMap(e)?e.filter(((e,t)=>xG(t))):Object.keys(e).filter((e=>xG(e))),CG=e=>e.filter(((e,t)=>/^pattern|maxLength|minLength|maximum|minimum/.test(t)));function wG(e,t,n=()=>!0){if(typeof e!=`object`||Array.isArray(e)||e===null||!t)return e;let r=Object.assign({},e);return Object.keys(r).forEach((e=>{e===t&&n(r[e],e)?delete r[e]:r[e]=wG(r[e],t,n)})),r}function TG(e){if(typeof e==`string`)return e;if(e&&e.toJS&&(e=e.toJS()),typeof e==`object`&&e)try{return JSON.stringify(e,null,2)}catch{return String(e)}return e==null?``:e.toString()}function EG(e,{returnAll:t=!1,allowHashes:n=!0}={}){if(!Ra.Map.isMap(e))throw Error(`paramToIdentifier: received a non-Im.Map parameter as input`);let r=e.get(`name`),i=e.get(`in`),a=[];return e&&e.hashCode&&i&&r&&n&&a.push(`${i}.${r}.hash-${e.hashCode()}`),i&&r&&a.push(`${i}.${r}`),a.push(r),t?a:a[0]||``}function DG(e,t){return EG(e,{returnAll:!0}).map((e=>t[e])).filter((e=>e!==void 0))[0]}function OG(e){return e.replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}var kG=e=>!e||!(!eG(e)||!e.isEmpty()),AG=e=>e,jG=class{constructor(e={}){AW()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=function(e,t,n){return function(e,t,n){let r=[fG(n)],i=GW.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||f;return m(e,t,i(d(...r)))}(e,t,n)}(AG,z(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,t=!0){var n=MG(e,this.getSystem());PG(this.system,n),t&&this.buildSystem(),NG.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let t=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(t),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:Ra,React:H.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer(function(e,t){return function(e,t){let n=Object.keys(e).reduce(((n,r)=>(n[r]=function(e,t){return(n=new B,r)=>{if(!e)return n;let i=e[r.type];if(i){let e=FG(i,t)(n,r);return e===null?n:e}return n}}(e[r],t),n)),{});return Object.keys(n).length?(0,ql.combineReducers)(n):AG}(uG(e,(e=>e.reducers)),t)}(this.system.statePlugins,this.getSystem))}getType(e){let t=e[0].toUpperCase()+e.slice(1);return dG(this.system.statePlugins,((n,r)=>{let i=n[e];if(i)return{[r+t]:i}}))}getSelectors(){return this.getType(`selectors`)}getActions(){return uG(this.getType(`actions`),(e=>dG(e,((e,t)=>{if(aG(e))return{[t]:e}}))))}getWrappedAndBoundActions(e){return uG(this.getBoundActions(e),((e,t)=>{let n=this.system.statePlugins[t.slice(0,-7)].wrapActions;return n?uG(e,((e,t)=>{let r=n[t];return r?(Array.isArray(r)||(r=[r]),r.reduce(((e,t)=>{let n=(...n)=>t(e,this.getSystem())(...n);if(!aG(n))throw TypeError(`wrapActions needs to return a function that returns a new function (ie the wrapped action)`);return FG(n,this.getSystem)}),e||Function.prototype)):e})):e}))}getWrappedAndBoundSelectors(e,t){return uG(this.getBoundSelectors(e,t),((t,n)=>{let r=[n.slice(0,-9)],i=this.system.statePlugins[r].wrapSelectors;return i?uG(t,((t,n)=>{let a=i[n];return a?(Array.isArray(a)||(a=[a]),a.reduce(((t,n)=>{let i=(...i)=>n(t,this.getSystem())(e().getIn(r),...i);if(!aG(i))throw TypeError(`wrapSelector needs to return a function that returns a new function (ie the wrapped action)`);return i}),t||Function.prototype)):t})):t}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((t,n)=>(t[n]=e.get(n),t)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((t,n)=>(t[n]=()=>e().get(n),t)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){let t=this.system.components[e];return Array.isArray(t)?t.reduce(((e,t)=>t(e,this.getSystem()))):e===void 0?this.system.components:this.system.components[e]}getBoundSelectors(e,t){return uG(this.getSelectors(),((n,r)=>{let i=[r.slice(0,-9)];return uG(n,(n=>(...r)=>{let a=FG(n,this.getSystem).apply(null,[e().getIn(i),...r]);return typeof a==`function`&&(a=FG(a,this.getSystem)(t())),a}))}))}getBoundActions(e){e||=this.getStore().dispatch;let t=this.getActions(),n=e=>typeof e==`function`?(...t)=>{var n=null;try{n=e(...t)}catch(e){n={type:jW,error:!0,payload:(0,Jl.serializeError)(e)}}finally{return n}}:uG(e,(e=>n(e)));return uG(t,(t=>g(n(t),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return t=>AW()({},this.getWrappedAndBoundActions(t),this.getFn(),e)}};function MG(e,t){return oG(e)&&!cG(e)?(0,Zl.default)({},e):sG(e)?MG(e(t),t):cG(e)?e.map((e=>MG(e,t))).reduce(PG,{components:t.getComponents()}):{}}function NG(e,t,{hasLoaded:n}={}){let r=n;return oG(e)&&!cG(e)&&typeof e.afterLoad==`function`&&(r=!0,FG(e.afterLoad,t.getSystem).call(this,t)),sG(e)?NG.call(this,e(t),t,{hasLoaded:r}):cG(e)?e.map((e=>NG.call(this,e,t,{hasLoaded:r}))):r}function PG(e={},t={}){if(!oG(e))return{};if(!oG(t))return e;t.wrapComponents&&(uG(t.wrapComponents,((n,r)=>{let i=e.components&&e.components[r];i&&Array.isArray(i)?(e.components[r]=i.concat([n]),delete t.wrapComponents[r]):i&&(e.components[r]=[i,n],delete t.wrapComponents[r])})),Object.keys(t.wrapComponents).length||delete t.wrapComponents);let{statePlugins:n}=e;if(oG(n))for(let e in n){let r=n[e];if(!oG(r))continue;let{wrapActions:i,wrapSelectors:a}=r;if(oG(i))for(let n in i){let r=i[n];Array.isArray(r)||(r=[r],i[n]=r),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapActions&&t.statePlugins[e].wrapActions[n]&&(t.statePlugins[e].wrapActions[n]=i[n].concat(t.statePlugins[e].wrapActions[n]))}if(oG(a))for(let n in a){let r=a[n];Array.isArray(r)||(r=[r],a[n]=r),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapSelectors&&t.statePlugins[e].wrapSelectors[n]&&(t.statePlugins[e].wrapSelectors[n]=a[n].concat(t.statePlugins[e].wrapSelectors[n]))}}return AW()(e,t)}function FG(e,t,{logErrors:n=!0}={}){return typeof e==`function`?function(...r){try{return e.call(this,...r)}catch(e){if(n){let{uncaughtExceptionHandler:n}=t().getConfigs();typeof n==`function`?n(e):console.error(e)}return null}}:e}var IG=e=>{e.preventDefault();let t=e.currentTarget.closest(`.swagger-ui`)?.querySelector(`#operations`);t&&(t.focus(),t.scrollIntoView())},LG=()=>H.createElement(`a`,{href:`#operations`,className:`swagger-ui__skip-link`,onClick:IG},`Skip to operations`),RG=()=>({components:{SkipToOperations:LG}}),zG=`show_popup`,BG=`authorize`,VG=`logout`,HG=`authorize_oauth2`,UG=`configure_auth`,WG=`restore_authorization`;function GG(e){return{type:zG,payload:e}}function KG(e){return{type:BG,payload:e}}var qG=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function JG(e){return{type:VG,payload:e}}var YG=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},XG=e=>({authActions:t,errActions:n})=>{let{auth:r,token:i,isValid:a}=e,{schema:o,name:s}=r,c=o.get(`flow`);delete GW.swaggerUIRedirectOauth2,c===`accessCode`||a||n.newAuthErr({authId:s,source:`auth`,level:`warning`,message:`Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server`}),i.error?n.newAuthErr({authId:s,source:`auth`,level:`error`,message:JSON.stringify(i)}):t.authorizeOauth2WithPersistOption({auth:r,token:i})};function ZG(e){return{type:HG,payload:e}}var QG=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},$G=e=>({authActions:t})=>{let{schema:n,name:r,username:i,password:a,passwordType:o,clientId:s,clientSecret:c}=e,l={grant_type:`password`,scope:e.scopes.join(` `),username:i,password:a},u={};switch(o){case`request-body`:(function(e,t,n){t&&Object.assign(e,{client_id:t}),n&&Object.assign(e,{client_secret:n})})(l,s,c);break;case`basic`:u.Authorization=`Basic `+mG(s+`:`+c);break;default:console.warn(`Warning: invalid passwordType ${o} was passed, not including client id and secret`)}return t.authorizeRequest({body:gG(l),url:n.get(`tokenUrl`),name:r,headers:u,query:{},auth:e})},eK=e=>({authActions:t})=>{let{schema:n,scopes:r,name:i,clientId:a,clientSecret:o}=e,s={Authorization:`Basic `+mG(a+`:`+o)},c={grant_type:`client_credentials`,scope:r.join(` `)};return t.authorizeRequest({body:gG(c),name:i,url:n.get(`tokenUrl`),auth:e,headers:s})},tK=({auth:e,redirectUrl:t})=>({authActions:n})=>{let{schema:r,name:i,clientId:a,clientSecret:o,codeVerifier:s}=e,c={grant_type:`authorization_code`,code:e.code,client_id:a,client_secret:o,redirect_uri:t,code_verifier:s};return n.authorizeRequest({body:gG(c),name:i,url:r.get(`tokenUrl`),auth:e})},nK=({auth:e,redirectUrl:t})=>({authActions:n})=>{let{schema:r,name:i,clientId:a,clientSecret:o,codeVerifier:s}=e,c={Authorization:`Basic `+mG(a+`:`+o)},l={grant_type:`authorization_code`,code:e.code,client_id:a,redirect_uri:t,code_verifier:s};return n.authorizeRequest({body:gG(l),name:i,url:r.get(`tokenUrl`),auth:e,headers:c})},rK=e=>({fn:t,getConfigs:n,authActions:r,errActions:i,oas3Selectors:a,specSelectors:o,authSelectors:s})=>{let c,{body:l,query:u={},headers:d={},name:f,url:p,auth:m}=e,{additionalQueryStringParams:h}=s.getConfigs()||{};if(o.isOAS3()){let e=a.serverEffectiveValue(a.selectedServer());c=(0,nu.default)(p,e,!0)}else c=(0,nu.default)(p,o.url(),!0);typeof h==`object`&&(c.query=Object.assign({},c.query,h));let g=c.toString(),_=Object.assign({Accept:`application/json, text/plain, */*`,"Content-Type":`application/x-www-form-urlencoded`,"X-Requested-With":`XMLHttpRequest`},d);t.fetch({url:g,method:`post`,headers:_,query:u,body:l,requestInterceptor:n().requestInterceptor,responseInterceptor:n().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),n=t&&(t.error||``),a=t&&(t.parseError||``);e.ok?n||a?i.newAuthErr({authId:f,level:`error`,source:`auth`,message:JSON.stringify(t)}):r.authorizeOauth2WithPersistOption({auth:m,token:t}):i.newAuthErr({authId:f,level:`error`,source:`auth`,message:e.statusText})})).catch((e=>{let t=Error(e).message;if(e.response&&e.response.data){let n=e.response.data;try{let e=typeof n==`string`?JSON.parse(n):n;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch{}}i.newAuthErr({authId:f,level:`error`,source:`auth`,message:t})}))};function iK(e){return{type:UG,payload:e}}function aK(e){return{type:WG,payload:e}}var oK=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;let n=e.authorized().toJS();localStorage.setItem(`authorized`,JSON.stringify(n))},sK=(e,t)=>()=>{GW.swaggerUIRedirectOauth2=t,GW.open(e)},cK={[zG]:(e,{payload:t})=>e.set(`showDefinitions`,t),[BG]:(e,{payload:t})=>{let n=z(t),r=e.get(`authorized`)||B();return n.entrySeq().forEach((([t,n])=>{if(!sG(n.getIn))return e.set(`authorized`,r);let i=n.getIn([`schema`,`type`]);if(i===`apiKey`||i===`http`)r=r.set(t,n);else if(i===`basic`){let e=n.getIn([`value`,`username`]),i=n.getIn([`value`,`password`]);r=r.setIn([t,`value`],{username:e,header:`Basic `+mG(e+`:`+i)}),r=r.setIn([t,`schema`],n.get(`schema`))}})),e.set(`authorized`,r)},[HG]:(e,{payload:t})=>{let n,{auth:r,token:i}=t;r.token=Object.assign({},i),n=z(r);let a=e.get(`authorized`)||B();return a=a.set(n.get(`name`),n),e.set(`authorized`,a)},[VG]:(e,{payload:t})=>{let n=e.get(`authorized`).withMutations((e=>{t.forEach((t=>{e.delete(t)}))}));return e.set(`authorized`,n)},[UG]:(e,{payload:t})=>e.set(`configs`,t),[WG]:(e,{payload:t})=>e.set(`authorized`,z(t.authorized))},lK=e=>e,uK=p(lK,(e=>e.get(`showDefinitions`))),dK=p(lK,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||B({}),n=V();return t.entrySeq().forEach((([e,t])=>{let r=B();r=r.set(e,t),n=n.push(r)})),n})),fK=(e,t)=>({specSelectors:e})=>V(e.isOAS3()?[`components`,`securitySchemes`,t]:[`securityDefinitions`,t]),pK=(e,t)=>({specSelectors:e})=>{console.warn(`WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.`);let n=e.securityDefinitions(),r=V();return t.valueSeq().forEach((e=>{let t=B();e.entrySeq().forEach((([e,r])=>{let i,a=n.get(e);a.get(`type`)===`oauth2`&&r.size&&(i=a.get(`scopes`),i.keySeq().forEach((e=>{r.contains(e)||(i=i.delete(e))})),a=a.set(`allowedScopes`,i)),t=t.set(e,a)})),r=r.push(t)})),r},mK=(e,t=V())=>({authSelectors:e})=>{let n=e.definitionsToAuthorize()||V(),r=V();return n.forEach((e=>{let n=t.find((t=>t.get(e.keySeq().first())));n&&(e.forEach(((t,r)=>{if(t.get(`type`)===`oauth2`){let i=n.get(r),a=t.get(`scopes`);V.isList(i)&&B.isMap(a)&&(a.keySeq().forEach((e=>{i.contains(e)||(a=a.delete(e))})),e=e.set(r,t.set(`scopes`,a)))}})),r=r.push(e))})),r},hK=p(lK,(e=>e.get(`authorized`)||B())),gK=(e,t)=>({authSelectors:e})=>{let n=e.authorized();return V.isList(t)?!!t.toJS().filter((e=>Object.keys(e).map((e=>!!n.get(e))).indexOf(!1)===-1)).length:null},_K=p(lK,(e=>e.get(`configs`))),vK=(e,{authSelectors:t,specSelectors:n})=>({path:r,method:i,operation:a,extras:o})=>e({path:r,method:i,operation:a,securities:{authorized:t.authorized()&&t.authorized().toJS(),definitions:n.securityDefinitions()&&n.securityDefinitions().toJS(),specSecurity:n.security()&&n.security().toJS()},...o}),yK=(e,t)=>n=>{let{getConfigs:r,authActions:i}=t,a=r();if(e(n),a.persistAuthorization){let e=localStorage.getItem(`authorized`);e&&i.restoreAuthorization({authorized:JSON.parse(e)})}},bK=(e,t)=>n=>{if(e(n),t.getConfigs().persistAuthorization)try{let[{schema:e,value:t}]=Object.values(n),r=z(e),i=r.get(`type`)===`apiKey`,a=r.get(`in`)===`cookie`;i&&a&&(document.cookie=`${r.get(`name`)}=${t}; SameSite=None; Secure`)}catch(e){console.error(`Error persisting cookie based apiKey in document.cookie.`,e)}},xK=(e,t)=>n=>{let r=t.getConfigs(),i=t.authSelectors.authorized();try{r.persistAuthorization&&Array.isArray(n)&&n.forEach((e=>{let t=i.get(e,{}),n=t.getIn([`schema`,`type`])===`apiKey`,r=t.getIn([`schema`,`in`])===`cookie`;if(n&&r){let e=t.getIn([`schema`,`name`]);document.cookie=`${e}=; Max-Age=-99999999`}}))}catch(e){console.error(`Error deleting cookie based apiKey from document.cookie.`,e)}e(n)},SK=class extends H.Component{mapStateToProps(e,t){return{state:e,ownProps:(0,ru.default)(t,Object.keys(t.getSystem()))}}render(){let{getComponent:e,ownProps:t}=this.props,n=e(`LockIcon`);return H.createElement(n,t)}},CK=class extends H.Component{mapStateToProps(e,t){return{state:e,ownProps:(0,ru.default)(t,Object.keys(t.getSystem()))}}render(){let{getComponent:e,ownProps:t}=this.props,n=e(`UnlockIcon`);return H.createElement(n,t)}};function wK(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=EK.bind(null,e),this.rootInjects.preauthorizeBasic=TK.bind(null,e)},components:{LockAuthIcon:SK,UnlockAuthIcon:CK,LockAuthOperationIcon:SK,UnlockAuthOperationIcon:CK},statePlugins:{auth:{reducers:cK,actions:cW,selectors:lW,wrapActions:{authorize:bK,logout:xK}},configs:{wrapActions:{loaded:yK}},spec:{wrapActions:{execute:vK}}}}}function TK(e,t,n,r){let{authActions:{authorize:i},specSelectors:{specJson:a,isOAS3:o}}=e,s=o()?[`components`,`securitySchemes`]:[`securityDefinitions`],c=a().getIn([...s,t]);return c?i({[t]:{value:{username:n,password:r},schema:c.toJS()}}):null}function EK(e,t,n){let{authActions:{authorize:r},specSelectors:{specJson:i,isOAS3:a}}=e,o=a()?[`components`,`securitySchemes`]:[`securityDefinitions`],s=i().getIn([...o,t]);return s?r({[t]:{value:n,schema:s.toJS()}}):null}var DK=`configs_update`,OK=`configs_toggle`;function kK(e,t){return{type:DK,payload:{[e]:t}}}function AK(e){return{type:OK,payload:e}}var jK=()=>()=>{},MK=e=>t=>{let{fn:{fetch:n}}=t;return n(e)},NK=(e,t)=>n=>{let{specActions:r,configsActions:i}=n;if(e)return i.downloadConfig(e).then(a,a);function a(i){i instanceof Error||i.status>=400?(r.updateLoadingStatus(`failedConfig`),r.updateLoadingStatus(`failedConfig`),r.updateUrl(``),console.error(i.statusText+` `+e.url),t(null)):t(((e,t)=>{try{return Ed.load(e)}catch(e){return t&&t.errActions.newThrownErr(Error(e)),{}}})(i.text,n))}},PK=(e,t)=>e.getIn(Array.isArray(t)?t:[t]),FK={[DK]:(e,t)=>e.merge(z(t.payload)),[OK]:(e,t)=>{let n=t.payload,r=e.get(n);return e.set(n,!r)}};function IK(){return{statePlugins:{configs:{reducers:FK,actions:uW,selectors:dW}}}}var LK=e=>e?history.pushState(null,null,`#${e}`):window.location.hash=``,RK=`layout_scroll_to`,zK=`layout_clear_scroll`,BK={fn:{getScrollParent:function(e,t){let n=document.documentElement,r=getComputedStyle(e),i=r.position===`absolute`,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if(r.position===`fixed`)return n;for(let t=e;t=t.parentElement;)if(r=getComputedStyle(t),(!i||r.position!==`static`)&&a.test(r.overflow+r.overflowY+r.overflowX))return t;return n}},statePlugins:{layout:{actions:{scrollToElement:(e,t)=>n=>{try{t||=n.fn.getScrollParent(e),gp.default.createScroller(t).to(e)}catch(e){console.error(e)}},scrollTo:e=>({type:RK,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:zK}),readyToScroll:(e,t)=>n=>{let r=n.layoutSelectors.getScrollToKey();Ra.is(r,z(e))&&(n.layoutActions.scrollToElement(t),n.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:n,getConfigs:r})=>{if(r().deepLinking&&e){let r=e.slice(1);r[0]===`!`&&(r=r.slice(1)),r[0]===`/`&&(r=r.slice(1));let i=r.split(`/`).map((e=>e||``)),a=n.isShownKeyFromUrlHashArray(i),[o,s=``,c=``]=a;if(o===`operations`){let e=n.isShownKeyFromUrlHashArray([s]);s.indexOf(`_`)>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(e.map((e=>e.replace(/_/g,` `))),!0)),t.show(e,!0)}(s.indexOf(`_`)>-1||c.indexOf(`_`)>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(a.map((e=>e.replace(/_/g,` `))),!0)),t.show(a,!0),t.scrollTo(a)}}},selectors:{getScrollToKey:e=>e.get(`scrollToKey`),isShownKeyFromUrlHashArray(e,t){let[n,r]=t;return r?[`operations`,n,r]:n?[`operations-tag`,n]:[]},urlHashArrayFromIsShownKey(e,t){let[n,r,i]=t;return n==`operations`?[r,i]:n==`operations-tag`?[r]:[]}},reducers:{[RK]:(e,t)=>e.set(`scrollToKey`,Ra.fromJS(t.payload)),[zK]:e=>e.delete(`scrollToKey`)},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:n})=>(...r)=>{if(e(...r),t().deepLinking)try{let[e,t]=r;e=Array.isArray(e)?e:[e];let i=n.urlHashArrayFromIsShownKey(e);if(!i.length)return;let[a,o]=i;if(!t)return LK(`/`);i.length===2?LK(yG(`/${encodeURIComponent(a)}/${encodeURIComponent(o)}`)):i.length===1&&LK(yG(`/${encodeURIComponent(a)}`))}catch(e){console.error(e)}}}}}},VK=(e,t)=>class extends H.Component{onLoad=e=>{let{operation:n}=this.props,{tag:r,operationId:i}=n.toObject(),{isShownKey:a}=n.toObject();a||=[`operations`,r,i],t.layoutActions.readyToScroll(a,e)};render(){return H.createElement(`span`,{ref:this.onLoad},H.createElement(e,this.props))}},HK=(e,t)=>class extends H.Component{onLoad=e=>{let{tag:n}=this.props,r=[`operations-tag`,n];t.layoutActions.readyToScroll(r,e)};render(){return H.createElement(`span`,{ref:this.onLoad},H.createElement(e,this.props))}};function UK(){return[BK,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...n)=>{e(...n);let r=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(r)}}}},wrapComponents:{operation:VK,OperationTag:HK}}]}function WK(e){return e.map((e=>{let t=e.get(`message`).indexOf(`is not of a type(s)`);if(t>-1){let n=e.get(`message`).slice(t+19).split(`,`);return e.set(`message`,e.get(`message`).slice(0,t)+function(e){return e.reduce(((e,t,n,r)=>n===r.length-1&&r.length>1?e+`or `+t:r[n+1]&&r.length>2?e+t+`, `:r[n+1]?e+t+` `:e+t),`should be a`)}(n))}return e}))}function GK(e,{jsSpec:t}){return e}var KK=[fW,pW];function qK(e){let t={jsSpec:{}};return(0,vp.default)(KK,((e,n)=>{try{return n.transform(e,t).filter((e=>!!e))}catch(t){return console.error(`Transformer error:`,t),e}}),e).filter((e=>!!e)).map((e=>(!e.get(`line`)&&e.get(`path`),e)))}var JK={line:0,level:`error`,message:`Unknown error`},YK=p((e=>e),(e=>e.get(`errors`,V()))),XK=p(YK,(e=>e.last()));function ZK(e){return{statePlugins:{err:{reducers:{[jW]:(e,{payload:t})=>{let n=Object.assign(JK,t,{type:`thrown`});return e.update(`errors`,(e=>(e||V()).push(z(n)))).update(`errors`,(e=>qK(e)))},[MW]:(e,{payload:t})=>(t=t.map((e=>z(Object.assign(JK,e,{type:`thrown`})))),e.update(`errors`,(e=>(e||V()).concat(z(t)))).update(`errors`,(e=>qK(e)))),[NW]:(e,{payload:t})=>{let n=z(t);return n=n.set(`type`,`spec`),e.update(`errors`,(e=>(e||V()).push(z(n)).sortBy((e=>e.get(`line`))))).update(`errors`,(e=>qK(e)))},[PW]:(e,{payload:t})=>(t=t.map((e=>z(Object.assign(JK,e,{type:`spec`})))),e.update(`errors`,(e=>(e||V()).concat(z(t)))).update(`errors`,(e=>qK(e)))),[FW]:(e,{payload:t})=>{let n=z(Object.assign({},t));return n=n.set(`type`,`auth`),e.update(`errors`,(e=>(e||V()).push(z(n)))).update(`errors`,(e=>qK(e)))},[IW]:(e,{payload:t})=>{if(!t||!e.get(`errors`))return e;let n=e.get(`errors`).filter((e=>e.keySeq().every((n=>{let r=e.get(n),i=t[n];return!i||r!==i}))));return e.merge({errors:n})},[LW]:(e,{payload:t})=>{if(!t||typeof t!=`function`)return e;let n=e.get(`errors`).filter((e=>t(e)));return e.merge({errors:n})}},actions:sW,selectors:mW}}}}function QK(e,t){return e.filter(((e,n)=>n.indexOf(t)!==-1))}function $K(){return{fn:{opsFilter:QK}}}var eq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z`})),tq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z`})),nq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z`})),rq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z`})),iq=({className:e=null,width:t=15,height:n=16,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 15 16`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`g`,{transform:`translate(2, -1)`},H.createElement(`path`,{fill:`#ffffff`,fillRule:`evenodd`,d:`M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z`}))),aq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z`})),oq=({className:e=null,width:t=20,height:n=20,...r})=>H.createElement(`svg`,xp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),H.createElement(`path`,{fill:`currentColor`,d:`M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z`})),sq=()=>({components:{ArrowUpIcon:eq,ArrowDownIcon:tq,ArrowIcon:nq,CloseIcon:rq,CopyIcon:iq,LockIcon:aq,UnlockIcon:oq}}),cq=`layout_update_layout`,lq=`layout_update_filter`,uq=`layout_update_mode`,dq=`layout_show`;function fq(e){return{type:cq,payload:e}}function pq(e){return{type:lq,payload:e}}function mq(e,t=!0){return e=iG(e),{type:dq,payload:{thing:e,shown:t}}}function hq(e,t=``){return e=iG(e),{type:uq,payload:{thing:e,mode:t}}}var gq={[cq]:(e,t)=>e.set(`layout`,t.payload),[lq]:(e,t)=>e.set(`filter`,t.payload),[dq]:(e,t)=>{let n=t.payload.shown,r=z(t.payload.thing);return e.update(`shown`,z({}),(e=>e.set(r,n)))},[uq]:(e,t)=>{let n=t.payload.thing,r=t.payload.mode;return e.setIn([`modes`].concat(n),(r||``)+``)}},_q=e=>e.get(`layout`),vq=e=>e.get(`filter`),yq=(e,t,n)=>(t=iG(t),e.get(`shown`,z({})).get(z(t),n)),bq=(e,t,n=``)=>(t=iG(t),e.getIn([`modes`,...t],n)),xq=p((e=>e),(e=>!yq(e,`editor`))),Sq=(e,t)=>(n,...r)=>{let i=e(n,...r),{fn:a,layoutSelectors:o,getConfigs:s}=t.getSystem(),{maxDisplayedTags:c}=s(),l=o.currentFilter();return l&&!0!==l&&(i=a.opsFilter(i,l)),c>=0&&(i=i.slice(0,c)),i};function Cq(){return{statePlugins:{layout:{reducers:gq,actions:hW,selectors:gW},spec:{wrapSelectors:_W}}}}function wq({configs:e}){let t={debug:0,info:1,log:2,warn:3,error:4},n=e=>t[e]||-1,{logLevel:r}=e,i=n(r);function a(e,...t){n(e)>=i&&console[e](...t)}return a.warn=a.bind(null,`warn`),a.error=a.bind(null,`error`),a.info=a.bind(null,`info`),a.debug=a.bind(null,`debug`),{rootInjects:{log:a}}}var Tq=!1;function Eq(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(Tq=!0,e(...t)),updateJsonSpec:(e,t)=>(...n)=>{let r=t.getConfigs().onComplete;return Tq&&typeof r==`function`&&(setTimeout(r,0),Tq=!1),e(...n)}}}}}}var Dq=e=>{let t=`_**[]`;return e.indexOf(t)<0?e:e.split(t)[0].trim()},Oq=e=>e===`-d `||/^[_\/-]/g.test(e)?e:`'`+e.replace(/'/g,`'\\''`)+`'`,kq=e=>(e=e.replace(/\^/g,`^^`).replace(/\\"/g,`\\\\"`).replace(/"/g,`""`).replace(/\n/g,`^
|
|
221
|
-
`))===`-d `?e.replace(/-d /g,`-d ^
|
|
222
|
-
`):/^[_\/-]/g.test(e)?e:`"`+e+`"`,Aq=e=>e===`-d `?e:/\n/.test(e)?`@"\n${e.replace(/`/g,"``").replace(/\$/g,"`$")}\n"@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,`''`)}'`,jq=(e,t,n,r=``)=>{let i=!1,a=``,o=(...e)=>a+=` `+e.map(t).join(` `),s=(...e)=>a+=e.map(t).join(` `),c=()=>a+=` ${n}`,l=(e=1)=>a+=` `.repeat(e),u=e.get(`headers`);a+=`curl`+r;let d=e.get(`curlOptions`);if(V.isList(d)&&!d.isEmpty()&&o(...e.get(`curlOptions`)),o(`-X`,e.get(`method`)),c(),l(),s(`${e.get(`url`)}`),u&&u.size)for(let t of e.get(`headers`).entries()){c(),l();let[e,n]=t;s(`-H`,`${e}: ${n}`),i||=/^content-type$/i.test(e)&&/^multipart\/form-data$/i.test(n)}let f=e.get(`body`);if(f){if(i&&[`POST`,`PUT`,`PATCH`].includes(e.get(`method`)))for(let[e,t]of f.entrySeq()){let n=Dq(e);c(),l(),s(`-F`),t instanceof GW.File&&typeof t.valueOf()==`string`?o(`${n}=${t.data}${t.type?`;type=${t.type}`:``}`):t instanceof GW.File?o(`${n}=@${t.name}${t.type?`;type=${t.type}`:``}`):o(`${n}=${t}`)}else if(f instanceof GW.File)c(),l(),s(`--data-binary '@${f.name}'`);else{c(),l(),s(`-d `);let t=f;B.isMap(t)?s(function(e){let t=[];for(let[n,r]of e.get(`body`).entrySeq()){let e=Dq(n);r instanceof GW.File?t.push(` "${e}": {\n "name": "${r.name}"${r.type?`,\n "type": "${r.type}"`:``}\n }`):t.push(` "${e}": ${JSON.stringify(r,null,2).replace(/(\r\n|\r|\n)/g,`
|
|
223
|
-
`)}`)}return`{\n${t.join(`,
|
|
224
|
-
`)}\n}`}(e)):(typeof t!=`string`&&(t=JSON.stringify(t)),s(t))}}else f||e.get(`method`)!==`POST`||(c(),l(),s(`-d ''`));return a},Mq=e=>jq(e,Aq,`\`
|
|
225
|
-
`,`.exe`),Nq=e=>jq(e,Oq,`\\
|
|
226
|
-
`),Pq=e=>jq(e,kq,`^
|
|
227
|
-
`),Fq=e=>e||B(),Iq=p(Fq,(e=>{let t=e.get(`languages`),n=e.get(`generators`,B());return!t||t.isEmpty()?n:n.filter(((e,n)=>t.includes(n)))})),Lq=e=>({fn:t})=>Iq(e).map(((e,n)=>{let r=(e=>t[`requestSnippetGenerator_${e}`])(n);return typeof r==`function`?e.set(`fn`,r):null})).filter((e=>e)),Rq=p(Fq,(e=>e.get(`activeLanguage`))),zq=p(Fq,(e=>e.get(`defaultExpanded`))),Bq={cursor:`pointer`,lineHeight:1,display:`inline-flex`,backgroundColor:`rgb(250, 250, 250)`,paddingBottom:`0`,paddingTop:`0`,border:`1px solid rgb(51, 51, 51)`,borderRadius:`4px 4px 0 0`,boxShadow:`none`,borderBottom:`none`},Vq={cursor:`pointer`,lineHeight:1,display:`inline-flex`,backgroundColor:`rgb(51, 51, 51)`,boxShadow:`none`,border:`1px solid rgb(51, 51, 51)`,paddingBottom:`0`,paddingTop:`0`,borderRadius:`4px 4px 0 0`,marginTop:`-5px`,marginRight:`-5px`,marginLeft:`-5px`,zIndex:`9999`,borderBottom:`none`},Hq=({request:e,requestSnippetsSelectors:t,getComponent:n})=>{let r=(0,H.useRef)(null),i=n(`ArrowUpIcon`),a=n(`ArrowDownIcon`),o=n(`SyntaxHighlighter`,!0),[s,c]=(0,H.useState)(t.getSnippetGenerators()?.keySeq().first()),[l,u]=(0,H.useState)(t?.getDefaultExpanded()),d=t.getSnippetGenerators(),f=d.get(s),p=f.get(`fn`)(e),m=()=>{u(!l)},h=e=>e===s?Vq:Bq,g=e=>{let{target:t,deltaY:n}=e,{scrollHeight:r,offsetHeight:i,scrollTop:a}=t;r>i&&(a===0&&n<0||i+a>=r&&n>0)&&e.preventDefault()};return(0,H.useEffect)((()=>{}),[]),(0,H.useEffect)((()=>{let e=Array.from(r.current.childNodes).filter((e=>!!e.nodeType&&e.classList?.contains(`curl-command`)));return e.forEach((e=>e.addEventListener(`mousewheel`,g,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener(`mousewheel`,g)))}}),[e]),H.createElement(`div`,{className:`request-snippets`,ref:r},H.createElement(`div`,{style:{width:`100%`,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,marginBottom:`15px`}},H.createElement(`h4`,{onClick:()=>m(),style:{cursor:`pointer`}},`Snippets`),H.createElement(`button`,{onClick:()=>m(),style:{border:`none`,background:`none`},title:l?`Collapse operation`:`Expand operation`},l?H.createElement(a,{className:`arrow`,width:`10`,height:`10`}):H.createElement(i,{className:`arrow`,width:`10`,height:`10`}))),l&&H.createElement(`div`,{className:`curl-command`},H.createElement(`div`,{style:{paddingLeft:`15px`,paddingRight:`10px`,width:`100%`,display:`flex`}},d.entrySeq().map((([e,t])=>H.createElement(`div`,{className:(0,Dp.default)(`btn`,{active:e===s}),style:h(e),key:e,onClick:()=>(e=>{s!==e&&c(e)})(e)},H.createElement(`h4`,{style:e===s?{color:`white`}:{}},t.get(`title`)))))),H.createElement(`div`,{className:`copy-to-clipboard`},H.createElement(Op.CopyToClipboard,{text:p},H.createElement(`button`,{"aria-label":`Copy code snippet to clipboard`}))),H.createElement(`div`,null,H.createElement(o,{language:f.get(`syntax`),className:`curl microlight`,renderPlainText:({children:e,PlainTextViewer:t})=>H.createElement(t,{className:`curl`},e)},p))))},Uq=()=>({components:{RequestSnippets:Hq},fn:{requestSnippetGenerator_curl_bash:Nq,requestSnippetGenerator_curl_cmd:Pq,requestSnippetGenerator_curl_powershell:Mq},statePlugins:{requestSnippets:{selectors:vW}}}),Wq=class e extends H.Component{static defaultProps={collapsedContent:`{...}`,expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:Ra.List([])};constructor(t,n){super(t,n);let{expanded:r,collapsedContent:i}=this.props;this.state={expanded:r,collapsedContent:i||e.defaultProps.collapsedContent}}componentDidMount(){let{hideSelfOnExpand:e,expanded:t,modelName:n}=this.props;e&&t&&this.props.onToggle(n,t)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){let t=this.props.layoutSelectors.getScrollToKey();Ra.is(t,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){let{title:e,classes:t}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?H.createElement(`span`,{className:t||``},this.props.children):H.createElement(`span`,{className:t||``,ref:this.onLoad},H.createElement(`button`,{"aria-expanded":this.state.expanded,className:`model-box-control`,onClick:this.toggleCollapsed},e&&H.createElement(`span`,{className:`pointer`},e),H.createElement(`span`,{className:`model-toggle`+(this.state.expanded?``:` collapsed`)}),!this.state.expanded&&H.createElement(`span`,null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}},Gq=({initialTab:e,isExecute:t,schema:n,example:r})=>{let i=(0,H.useMemo)((()=>({example:`example`,model:`model`})),[]),a=(0,H.useMemo)((()=>Object.keys(i)),[i]).includes(e)&&n&&!t?e:i.example,o=(e=>{let t=(0,H.useRef)();return(0,H.useEffect)((()=>{t.current=e})),t.current})(t),[s,c]=(0,H.useState)(a),l=(0,H.useCallback)((e=>{c(e.target.dataset.name)}),[]);return(0,H.useEffect)((()=>{o&&!t&&r&&c(i.example)}),[o,t,r]),{activeTab:s,onTabChange:l,tabs:i}},Kq,qq=({schema:e,example:t,isExecute:n=!1,specPath:r,includeWriteOnly:i=!1,includeReadOnly:a=!1,getComponent:o,getConfigs:s,specSelectors:c})=>{let{defaultModelRendering:l,defaultModelExpandDepth:u}=s(),d=o(`ModelWrapper`),f=o(`HighlightCode`,!0),p=qW()(5).toString(`base64`),m=qW()(5).toString(`base64`),h=qW()(5).toString(`base64`),g=qW()(5).toString(`base64`),_=c.isOAS3(),{activeTab:v,tabs:y,onTabChange:b}=Gq({initialTab:l,isExecute:n,schema:e,example:t});return H.createElement(`div`,{className:`model-example`},H.createElement(`ul`,{className:`tab`,role:`tablist`},H.createElement(`li`,{className:(0,Dp.default)(`tabitem`,{active:v===y.example}),role:`presentation`},H.createElement(`button`,{"aria-controls":m,"aria-selected":v===y.example,className:`tablinks`,"data-name":`example`,id:p,onClick:b,role:`tab`},n?`Edit Value`:`Example Value`)),e&&H.createElement(`li`,{className:(0,Dp.default)(`tabitem`,{active:v===y.model}),role:`presentation`},H.createElement(`button`,{"aria-controls":g,"aria-selected":v===y.model,className:(0,Dp.default)(`tablinks`,{inactive:n}),"data-name":`model`,id:h,onClick:b,role:`tab`},_?`Schema`:`Model`))),v===y.example&&H.createElement(`div`,{"aria-hidden":v!==y.example,"aria-labelledby":p,"data-name":`examplePanel`,id:m,role:`tabpanel`,tabIndex:`0`},t||H.createElement(f,null,`(no example available`)),v===y.model&&H.createElement(`div`,{className:`model-container`,"aria-hidden":v===y.example,"aria-labelledby":h,"data-name":`modelPanel`,id:g,role:`tabpanel`,tabIndex:`0`},H.createElement(d,{schema:e,getComponent:o,getConfigs:s,specSelectors:c,expandDepth:u,specPath:r,includeReadOnly:a,includeWriteOnly:i})))},Jq=class extends H.Component{onToggle=(e,t)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,t)};render(){let{getComponent:e,getConfigs:t}=this.props,n=e(`Model`),r;return this.props.layoutSelectors&&(r=this.props.layoutSelectors.isShown(this.props.fullPath)),H.createElement(`div`,{className:`model-box`},H.createElement(n,xp({},this.props,{getConfigs:t,expanded:r,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}};function Yq(){return Yq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yq.apply(null,arguments)}var Xq=e=>(0,H.createElement)(`svg`,Yq({xmlns:`http://www.w3.org/2000/svg`,width:200,height:200,className:`rolling-load_svg__lds-rolling`,preserveAspectRatio:`xMidYMid`,style:{backgroundImage:`none`,backgroundPosition:`initial initial`,backgroundRepeat:`initial initial`},viewBox:`0 0 100 100`},e),Kq||=(0,H.createElement)(`circle`,{cx:50,cy:50,r:35,fill:`none`,stroke:`#555`,strokeDasharray:`164.93361431346415 56.97787143782138`,strokeWidth:10},(0,H.createElement)(`animateTransform`,{attributeName:`transform`,begin:`0s`,calcMode:`linear`,dur:`1s`,keyTimes:`0;1`,repeatCount:`indefinite`,type:`rotate`,values:`0 50 50;360 50 50`}))),Zq=e=>{let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);try{return decodeURIComponent(t)}catch{return t}},Qq=class extends Jp{static propTypes={schema:_p.default.map.isRequired,getComponent:Ul.default.func.isRequired,getConfigs:Ul.default.func.isRequired,specSelectors:Ul.default.object.isRequired,name:Ul.default.string,displayName:Ul.default.string,isRef:Ul.default.bool,required:Ul.default.bool,expandDepth:Ul.default.number,depth:Ul.default.number,specPath:_p.default.list.isRequired,includeReadOnly:Ul.default.bool,includeWriteOnly:Ul.default.bool};getModelName=e=>e.indexOf(`#/definitions/`)===-1?e.indexOf(`#/components/schemas/`)===-1?void 0:Zq(e.replace(/^.*#\/components\/schemas\//,``)):Zq(e.replace(/^.*#\/definitions\//,``));getRefSchema=e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)};render(){let{getComponent:e,getConfigs:t,specSelectors:n,schema:r,required:i,name:a,isRef:o,specPath:s,displayName:c,includeReadOnly:l,includeWriteOnly:u}=this.props,d=e(`ObjectModel`),f=e(`ArrayModel`),p=e(`PrimitiveModel`),m=`object`,h=r&&r.get(`$$ref`),g=r&&r.get(`$ref`);if(!a&&h&&(a=this.getModelName(h)),g){let e=this.getModelName(g),t=this.getRefSchema(e);B.isMap(t)?(r=t.mergeDeep(r),h||=(r=r.set(`$$ref`,g),g)):B.isMap(r)&&r.size===1&&(r=null,a=g)}if(!r)return H.createElement(`strong`,{className:`model model-title`},H.createElement(`span`,{className:`model-title__text`},c||a),!g&&H.createElement(Xq,{height:`20px`,width:`20px`}));let _=n.isOAS3()&&r.get(`deprecated`);switch(o=o===void 0?!!h:o,m=r&&r.get(`type`)||m,m){case`object`:return H.createElement(d,xp({className:`object`},this.props,{specPath:s,getConfigs:t,schema:r,name:a,deprecated:_,isRef:o,includeReadOnly:l,includeWriteOnly:u}));case`array`:return H.createElement(f,xp({className:`array`},this.props,{getConfigs:t,schema:r,name:a,deprecated:_,required:i,includeReadOnly:l,includeWriteOnly:u}));default:return H.createElement(p,xp({},this.props,{getComponent:e,getConfigs:t,schema:r,name:a,deprecated:_,required:i}))}}},$q=class extends H.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?[`components`,`schemas`]:[`definitions`];getCollapsedContent=()=>` `;handleToggle=(e,t)=>{let{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],t),t&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){let t=e.getAttribute(`data-name`);this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),t],e)}};render(){let{specSelectors:e,getComponent:t,layoutSelectors:n,layoutActions:r,getConfigs:i}=this.props,a=e.definitions(),{docExpansion:o,defaultModelsExpandDepth:s}=i();if(!a.size||s<0)return null;let c=this.getSchemaBasePath(),l=n.isShown(c,s>0&&o!==`none`),u=e.isOAS3(),d=t(`ModelWrapper`),f=t(`Collapse`),p=t(`ModelCollapse`),m=t(`JumpToPath`,!0),h=t(`ArrowUpIcon`),g=t(`ArrowDownIcon`);return H.createElement(`section`,{className:l?`models is-open`:`models`,ref:this.onLoadModels},H.createElement(`h4`,null,H.createElement(`button`,{"aria-expanded":l,className:`models-control`,onClick:()=>r.show(c,!l)},H.createElement(`span`,null,u?`Schemas`:`Models`),l?H.createElement(h,null):H.createElement(g,null))),H.createElement(f,{isOpened:l},a.entrySeq().map((([a])=>{let o=[...c,a],l=Ra.List(o),u=e.specResolvedSubtree(o),f=e.specJson().getIn(o),h=B.isMap(u)?u:Ra.Map(),g=B.isMap(f)?f:Ra.Map(),_=h.get(`title`)||g.get(`title`)||a,v=n.isShown(o,!1);v&&h.size===0&&g.size>0&&this.props.specActions.requestResolvedSubtree(o);let y=H.createElement(d,{name:a,expandDepth:s,schema:h||Ra.Map(),displayName:_,fullPath:o,specPath:l,getComponent:t,specSelectors:e,getConfigs:i,layoutSelectors:n,layoutActions:r,includeReadOnly:!0,includeWriteOnly:!0}),b=H.createElement(`span`,{className:`model-box`},H.createElement(`strong`,{className:`model model-title`},_));return H.createElement(`div`,{id:`model-${a}`,className:`model-container`,key:`models-section-${a}`,"data-name":a,ref:this.onLoadModel},H.createElement(`span`,{className:`models-jump-to-path`},H.createElement(m,{path:l})),H.createElement(p,{classes:`model-box`,collapsedContent:this.getCollapsedContent(a),onToggle:this.handleToggle,title:b,displayName:_,modelName:a,specPath:l,layoutSelectors:n,layoutActions:r,hideSelfOnExpand:!0,expanded:s>0&&v},y))})).toArray()))}},eJ=({value:e,getComponent:t})=>{let n=t(`ModelCollapse`),r=H.createElement(`span`,null,`Array [ `,e.count(),` ]`);return H.createElement(`span`,{className:`prop-enum`},`Enum:`,H.createElement(`br`,null),H.createElement(n,{collapsedContent:r},`[ `,e.map(String).join(`, `),` ]`))};function tJ(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function nJ(e,t){return e?tJ(e)?function(e){return e.match(/^\/\//i)?`${window.location.protocol}${e}`:e}(e):new URL(e,t).href:t}function rJ(e,t,{selectedServer:n=``}={}){try{return function(e,t,{selectedServer:n=``}={}){if(!e)return;if(tJ(e))return e;let r=nJ(n,t);return tJ(r)?new URL(e,r).href:new URL(e,window.location.href).href}(e,t,{selectedServer:n})}catch{return}}function iJ(e){if(typeof e!=`string`||e.trim()===``)return``;let t=e.trim(),n=`about:blank`;try{let e=`https://base${String(Math.random()).slice(2)}`,r=new URL(t,e),i=r.protocol.slice(0,-1);return[`javascript`,`data`,`vbscript`].includes(i.toLowerCase())?n:r.origin===e?t.startsWith(`/`)?`${r.pathname}${r.search}${r.hash}`:t.startsWith(`./`)||t.startsWith(`../`)?`${t.match(/^(\.\.?\/)+/)[0]}${r.pathname.substring(1)}${r.search}${r.hash}`:`${r.pathname.substring(1)}${r.search}${r.hash}`:String(r)}catch{return n}}var aJ=class extends H.Component{render(){let{schema:e,name:t,displayName:n,isRef:r,getComponent:i,getConfigs:a,depth:o,onToggle:s,expanded:c,specPath:l,...u}=this.props,{specSelectors:d,expandDepth:f,includeReadOnly:p,includeWriteOnly:m}=u,{isOAS3:h}=d,g=o>2||o===2&&l.last()!==`items`;if(!e)return null;let{showExtensions:_}=a(),v=_?SG(e):V(),y=e.get(`description`),b=e.get(`properties`),x=e.get(`additionalProperties`),S=e.get(`title`)||n||t,C=e.get(`required`),w=e.filter(((e,t)=>[`maxProperties`,`minProperties`,`nullable`,`example`].indexOf(t)!==-1)),T=e.get(`deprecated`),E=e.getIn([`externalDocs`,`url`]),D=e.getIn([`externalDocs`,`description`]),O=i(`JumpToPath`,!0),k=i(`Markdown`,!0),A=i(`Model`),j=i(`ModelCollapse`),M=i(`Property`),N=i(`Link`),P=i(`ModelExtensions`),ee=()=>H.createElement(`span`,{className:`model-jump-to-path`},H.createElement(O,{path:l})),te=H.createElement(`span`,null,H.createElement(`span`,null,`{`),`...`,H.createElement(`span`,null,`}`),r?H.createElement(ee,null):``),F=d.isOAS3()?e.get(`allOf`):null,I=d.isOAS3()?e.get(`anyOf`):null,L=d.isOAS3()?e.get(`oneOf`):null,R=d.isOAS3()?e.get(`not`):null,ne=S&&H.createElement(`strong`,{className:`model-title`},r&&e.get(`$$ref`)&&H.createElement(`span`,{className:(0,Dp.default)(`model-hint`,{"model-hint--embedded":g})},e.get(`$$ref`)),H.createElement(`span`,{className:`model-title__text`},S));return H.createElement(`span`,{className:`model`},H.createElement(j,{modelName:t,title:ne,onToggle:s,expanded:!!c||o<=f,collapsedContent:te},H.createElement(`span`,{className:`brace-open object`},`{`),r?H.createElement(ee,null):null,H.createElement(`span`,{className:`inner-object`},H.createElement(`table`,{className:`model`},H.createElement(`tbody`,null,y?H.createElement(`tr`,{className:`description`},H.createElement(`td`,null,`description:`),H.createElement(`td`,null,H.createElement(k,{source:y}))):null,E&&H.createElement(`tr`,{className:`external-docs`},H.createElement(`td`,null,`externalDocs:`),H.createElement(`td`,null,H.createElement(N,{target:`_blank`,href:iJ(E)},D||E))),T?H.createElement(`tr`,{className:`property`},H.createElement(`td`,null,`deprecated:`),H.createElement(`td`,null,`true`)):null,b&&b.size?b.entrySeq().filter((([,e])=>(!e.get(`readOnly`)||p)&&(!e.get(`writeOnly`)||m))).map((([e,n])=>{let r=h()&&n.get(`deprecated`),s=V.isList(C)&&C.contains(e),c=[`property-row`];return r&&c.push(`deprecated`),s&&c.push(`required`),H.createElement(`tr`,{key:e,className:c.join(` `)},H.createElement(`td`,null,e,s&&H.createElement(`span`,{className:`star`},`*`)),H.createElement(`td`,null,H.createElement(A,xp({key:`object-${t}-${e}_${n}`},u,{required:s,getComponent:i,specPath:l.push(`properties`,e),getConfigs:a,schema:n,depth:o+1}))))})).toArray():null,v.size===0?null:H.createElement(H.Fragment,null,H.createElement(`tr`,null,H.createElement(`td`,null,`\xA0`)),H.createElement(P,{extensions:v,propClass:`extension`})),x&&x.size?H.createElement(`tr`,null,H.createElement(`td`,null,`< * >:`),H.createElement(`td`,null,H.createElement(A,xp({},u,{required:!1,getComponent:i,specPath:l.push(`additionalProperties`),getConfigs:a,schema:x,depth:o+1})))):null,F?H.createElement(`tr`,null,H.createElement(`td`,null,`allOf ->`),H.createElement(`td`,null,F.map(((e,t)=>H.createElement(`div`,{key:t},H.createElement(A,xp({},u,{required:!1,getComponent:i,specPath:l.push(`allOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,I?H.createElement(`tr`,null,H.createElement(`td`,null,`anyOf ->`),H.createElement(`td`,null,I.map(((e,t)=>H.createElement(`div`,{key:t},H.createElement(A,xp({},u,{required:!1,getComponent:i,specPath:l.push(`anyOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,L?H.createElement(`tr`,null,H.createElement(`td`,null,`oneOf ->`),H.createElement(`td`,null,L.map(((e,t)=>H.createElement(`div`,{key:t},H.createElement(A,xp({},u,{required:!1,getComponent:i,specPath:l.push(`oneOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,R?H.createElement(`tr`,null,H.createElement(`td`,null,`not ->`),H.createElement(`td`,null,H.createElement(`div`,null,H.createElement(A,xp({},u,{required:!1,getComponent:i,specPath:l.push(`not`),getConfigs:a,schema:R,depth:o+1}))))):null))),H.createElement(`span`,{className:`brace-close`},`}`)),w.size?w.entrySeq().map((([e,t])=>H.createElement(M,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:`property`}))):null)}},oJ=class extends H.Component{render(){let{getComponent:e,getConfigs:t,schema:n,depth:r,expandDepth:i,name:a,displayName:o,specPath:s}=this.props,c=n.get(`description`),l=n.get(`items`),u=n.get(`title`)||o||a,d=n.filter(((e,t)=>[`type`,`items`,`description`,`$$ref`,`externalDocs`].indexOf(t)===-1)),f=n.getIn([`externalDocs`,`url`]),p=n.getIn([`externalDocs`,`description`]),m=e(`Markdown`,!0),h=e(`ModelCollapse`),g=e(`Model`),_=e(`Property`),v=e(`Link`),y=u&&H.createElement(`strong`,{className:`model-title`},H.createElement(`span`,{className:`model-title__text`},u));return H.createElement(`span`,{className:`model`},H.createElement(h,{title:y,expanded:r<=i,collapsedContent:`[...]`},`[`,d.size?d.entrySeq().map((([e,t])=>H.createElement(_,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:`property`}))):null,c?H.createElement(m,{source:c}):d.size?H.createElement(`div`,{className:`markdown`}):null,f&&H.createElement(`div`,{className:`external-docs`},H.createElement(v,{target:`_blank`,href:iJ(f)},p||f)),H.createElement(`span`,null,H.createElement(g,xp({},this.props,{getConfigs:t,specPath:s.push(`items`),name:null,schema:l,required:!1,depth:r+1}))),`]`))}},sJ=`property primitive`,cJ=class extends H.Component{render(){let{schema:e,getComponent:t,getConfigs:n,name:r,displayName:i,depth:a,expandDepth:o}=this.props,{showExtensions:s}=n();if(!e||!e.get)return H.createElement(`div`,null);let c=e.get(`type`),l=e.get(`format`),u=e.get(`xml`),d=e.get(`enum`),f=e.get(`title`)||i||r,p=e.get(`description`),m=SG(e),h=e.filter(((e,t)=>[`enum`,`type`,`format`,`description`,`$$ref`,`externalDocs`].indexOf(t)===-1)).filterNot(((e,t)=>m.has(t))),g=e.getIn([`externalDocs`,`url`]),_=e.getIn([`externalDocs`,`description`]),v=t(`Markdown`,!0),y=t(`EnumModel`),b=t(`Property`),x=t(`ModelCollapse`),S=t(`Link`),C=t(`ModelExtensions`),w=f&&H.createElement(`strong`,{className:`model-title`},H.createElement(`span`,{className:`model-title__text`},f));return H.createElement(`span`,{className:`model`},H.createElement(x,{title:w,expanded:a<=o,collapsedContent:`[...]`},H.createElement(`span`,{className:`prop`},r&&a>1&&H.createElement(`span`,{className:`prop-name`},f),H.createElement(`span`,{className:`prop-type`},c),l&&H.createElement(`span`,{className:`prop-format`},`($`,l,`)`),h.size?h.entrySeq().map((([e,t])=>H.createElement(b,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:sJ}))):null,s&&m.size>0?H.createElement(C,{extensions:m,propClass:`${sJ} extension`}):null,p?H.createElement(v,{source:p}):null,g&&H.createElement(`div`,{className:`external-docs`},H.createElement(S,{target:`_blank`,href:iJ(g)},_||g)),u&&u.size?H.createElement(`span`,null,H.createElement(`br`,null),H.createElement(`span`,{className:sJ},`xml:`),u.entrySeq().map((([e,t])=>H.createElement(`span`,{key:`${e}-${t}`,className:sJ},H.createElement(`br`,null),`\xA0\xA0\xA0`,e,`: `,String(t)))).toArray()):null,d&&H.createElement(y,{value:d,getComponent:t}))))}},lJ=class extends H.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:t,method:n,specActions:r}=this.props;r.setScheme(e,t,n)};render(){let{schemes:e,currentScheme:t}=this.props;return H.createElement(`label`,{htmlFor:`schemes`},H.createElement(`span`,{className:`schemes-title`},`Schemes`),H.createElement(`select`,{onChange:this.onChange,value:t,id:`schemes`},e.valueSeq().map((e=>H.createElement(`option`,{value:e,key:e},e))).toArray()))}},uJ=class extends H.Component{render(){let{specActions:e,specSelectors:t,getComponent:n}=this.props,r=t.operationScheme(),i=t.schemes(),a=n(`schemes`);return i&&i.size?H.createElement(a,{currentScheme:r,schemes:i,specActions:e}):null}},dJ={value:``,onChange:()=>{},schema:{},keyName:``,required:!1,errors:V()},fJ=class extends H.Component{static defaultProps=dJ;componentDidMount(){let{dispatchInitialValue:e,value:t,onChange:n}=this.props;e?n(t):!1===e&&n(``)}render(){let{schema:e,errors:t,value:n,onChange:r,getComponent:i,fn:a,disabled:o}=this.props,s=e&&e.get?e.get(`format`):null,c=e&&e.get?e.get(`type`):null,l=a.getSchemaObjectType(e),u=a.isFileUploadIntended(e),d=c?(e=>i(e,!1,{failSilently:!0}))(s?`JsonSchema_${c}_${s}`:`JsonSchema_${c}`):i(`JsonSchema_string`);return u||!V.isList(c)||l!==`array`&&l!==`object`||(d=i(`JsonSchema_object`)),d||=i(`JsonSchema_string`),H.createElement(d,xp({},this.props,{errors:t,fn:a,getComponent:i,value:n,onChange:r,schema:e,disabled:o}))}},pJ=class extends H.Component{static defaultProps=dJ;onChange=e=>{let t=this.props.schema&&this.props.schema.get(`type`)===`file`?e.target.files[0]:e.target.value;this.props.onChange(t,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,schema:n,errors:r,required:i,description:a,disabled:o}=this.props,s=n&&n.get?n.get(`enum`):null,c=n&&n.get?n.get(`format`):null,l=n&&n.get?n.get(`type`):null,u=n&&n.get?n.get(`in`):null;if(t?(eG(t)||typeof t==`object`)&&(t=TG(t)):t=``,r=r.toJS?r.toJS():[],s){let n=e(`Select`);return H.createElement(n,{className:r.length?`invalid`:``,title:r.length?r:``,allowedValues:[...s],value:t,allowEmptyValue:!i,disabled:o,onChange:this.onEnumChange})}let d=o||u&&u===`formData`&&!(`FormData`in window),f=e(`Input`);return l&&l===`file`?H.createElement(f,{type:`file`,className:r.length?`invalid`:``,title:r.length?r:``,onChange:this.onChange,disabled:d}):H.createElement(lh.default,{type:c&&c===`password`?`password`:`text`,className:r.length?`invalid`:``,title:r.length?r:``,value:t,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:d})}},mJ=class extends H.PureComponent{static defaultProps=dJ;constructor(e,t){super(e,t),this.state={value:bJ(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){let t=bJ(e.value);t!==this.state.value&&this.setState({value:t}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,t)=>{this.setState((({value:n})=>({value:n.set(t,e)})),this.onChange)};removeItem=e=>{this.setState((({value:t})=>({value:t.delete(e)})),this.onChange)};addItem=()=>{let{fn:e}=this.props,t=bJ(this.state.value);this.setState((()=>({value:t.push(e.getSampleSchema(this.state.schema.get(`items`),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:t,schema:n,errors:r,fn:i,disabled:a}=this.props;r=r.toJS?r.toJS():Array.isArray(r)?r:[];let o=r.filter((e=>typeof e==`string`)),s=r.filter((e=>e.needRemove!==void 0)).map((e=>e.error)),c=this.state.value,l=!!(c&&c.count&&c.count()>0),u=n.getIn([`items`,`enum`]),d=n.get(`items`),f=i.getSchemaObjectType(d),p=i.getSchemaObjectTypeLabel(d),m=n.getIn([`items`,`format`]),h=n.get(`items`),g,_=!1,v=f===`file`||f===`string`&&m===`binary`;if(f&&m?g=e(`JsonSchema_${f}_${m}`):f!==`boolean`&&f!==`array`&&f!==`object`||(g=e(`JsonSchema_${f}`)),!V.isList(d?.get(`type`))||f!==`array`&&f!==`object`||(g=e(`JsonSchema_object`)),g||v||(_=!0),u){let n=e(`Select`);return H.createElement(n,{className:r.length?`invalid`:``,title:r.length?r:``,multiple:!0,value:c,disabled:a,allowedValues:u,allowEmptyValue:!t,onChange:this.onEnumChange})}let y=e(`Button`);return H.createElement(`div`,{className:`json-schema-array`},l?c.map(((t,n)=>{let o=z([...r.filter((e=>e.index===n)).map((e=>e.error))]);return H.createElement(`div`,{key:n,className:`json-schema-form-item`},v?H.createElement(gJ,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o,getComponent:e}):_?H.createElement(hJ,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o}):H.createElement(g,xp({},this.props,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o,schema:h,getComponent:e,fn:i})),a?null:H.createElement(y,{className:`btn btn-sm json-schema-form-item-remove ${s.length?`invalid`:null}`,title:s.length?s:``,onClick:()=>this.removeItem(n)},` - `))})):null,a?null:H.createElement(y,{className:`btn btn-sm json-schema-form-item-add ${o.length?`invalid`:null}`,title:o.length?o:``,onClick:this.addItem},`Add `,p,` item`))}},hJ=class extends H.Component{static defaultProps=dJ;onChange=e=>{let t=e.target.value;this.props.onChange(t,this.props.keyName)};render(){let{value:e,errors:t,description:n,disabled:r}=this.props;return e?(eG(e)||typeof e==`object`)&&(e=TG(e)):e=``,t=t.toJS?t.toJS():[],H.createElement(lh.default,{type:`text`,className:t.length?`invalid`:``,title:t.length?t:``,value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:r})}},gJ=class extends H.Component{static defaultProps=dJ;onFileChange=e=>{let t=e.target.files[0];this.props.onChange(t,this.props.keyName)};render(){let{getComponent:e,errors:t,disabled:n}=this.props,r=e(`Input`),i=n||!(`FormData`in window);return H.createElement(r,{type:`file`,className:t.length?`invalid`:``,title:t.length?t:``,onChange:this.onFileChange,disabled:i})}},_J=class extends H.Component{static defaultProps=dJ;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,errors:n,schema:r,required:i,disabled:a}=this.props;n=n.toJS?n.toJS():[];let o=r&&r.get?r.get(`enum`):null,s=!o||!i,c=!o&&[`true`,`false`],l=e(`Select`);return H.createElement(l,{className:n.length?`invalid`:``,title:n.length?n:``,value:String(t),disabled:a,allowedValues:o?[...o]:c,allowEmptyValue:s,onChange:this.onEnumChange})}},vJ=e=>e.map((e=>{let t=e.propKey===void 0?e.index:e.propKey,n=typeof e==`string`?e:typeof e.error==`string`?e.error:null;if(!t&&n)return n;let r=e.error,i=`/${e.propKey}`;for(;typeof r==`object`;){let e=r.propKey===void 0?r.index:r.propKey;if(e===void 0||(i+=`/${e}`,!r.error))break;r=r.error}return`${i}: ${r}`})),yJ=class extends H.PureComponent{constructor(){super()}static defaultProps=dJ;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{let t=e.target.value;this.onChange(t)};render(){let{getComponent:e,value:t,errors:n,disabled:r}=this.props,i=e(`TextArea`);return n=n.toJS?n.toJS():Array.isArray(n)?n:[],H.createElement(`div`,null,H.createElement(i,{className:(0,Dp.default)({invalid:n.length}),title:n.length?vJ(n).join(`, `):``,value:TG(t),disabled:r,onChange:this.handleOnChange}))}};function bJ(e){return V.isList(e)?e:Array.isArray(e)?z(e):V()}var xJ=({extensions:e,propClass:t=``})=>e.entrySeq().map((([e,n])=>{let r=tG(n)??null;return H.createElement(`tr`,{key:e,className:t},H.createElement(`td`,null,e),H.createElement(`td`,null,JSON.stringify(r)))})).toArray(),SJ=(e,t)=>{let n=B.isMap(e);if(!n&&!(0,sh.default)(e))return!1;let r=n?e.get(`type`):e.type;return t===r||Array.isArray(t)&&t.includes(r)},CJ=(e,t=new WeakSet)=>{if(e==null||t.has(e))return`any`;t.add(e);let{type:n,items:r}=e;return Object.hasOwn(e,`items`)?r?`array<${CJ(r,t)}>`:`array<any>`:n},wJ=e=>CJ(tG(e)),TJ=()=>({components:{modelExample:qq,ModelWrapper:Jq,ModelCollapse:Wq,Model:Qq,Models:$q,EnumModel:eJ,ObjectModel:aJ,ArrayModel:oJ,PrimitiveModel:cJ,ModelExtensions:xJ,schemes:lJ,SchemesContainer:uJ,...yW},fn:{hasSchemaType:SJ,getSchemaObjectTypeLabel:wJ}}),EJ=Q(123),DJ=Q.n(EJ),OJ=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>e===t[n])),kJ=(...e)=>e,AJ=class extends Map{delete(e){let t=Array.from(this.keys()).find(OJ(e));return super.delete(t)}get(e){let t=Array.from(this.keys()).find(OJ(e));return super.get(t)}has(e){return Array.from(this.keys()).findIndex(OJ(e))!==-1}},jJ=(e,t=kJ)=>{let{Cache:n}=Ql.default;Ql.default.Cache=AJ;let r=(0,Ql.default)(e,t);return Ql.default.Cache=n,r},MJ={string:e=>e.pattern?(e=>{try{let t=e.replace(/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,`100`),n=new uh.default(t);return n.max=100,n.gen()}catch{return`string`}})(e.pattern):`string`,string_email:()=>`user@example.com`,"string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>`3fa85f64-5717-4562-b3fc-2c963f66afa6`,string_hostname:()=>`example.com`,string_ipv4:()=>`198.51.100.42`,string_ipv6:()=>`2001:0db8:5b96:0000:0000:426f:8e17:642a`,number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>typeof e.default!=`boolean`||e.default},NJ=e=>{e=nG(e);let{type:t,format:n}=e,r=MJ[`${t}_${n}`]||MJ[t];return sG(r)?r(e):`Unknown Type: `+e.type},PJ=e=>wG(e,`$$ref`,(e=>typeof e==`string`&&e.indexOf(`#`)>-1)),FJ=[`maxProperties`,`minProperties`],IJ=[`minItems`,`maxItems`],LJ=[`minimum`,`maximum`,`exclusiveMinimum`,`exclusiveMaximum`],RJ=[`minLength`,`maxLength`],zJ=(e,t,n={})=>{let r={...e};if([`example`,`default`,`enum`,`xml`,`type`,...FJ,...IJ,...LJ,...RJ].forEach((e=>(e=>{r[e]===void 0&&t[e]!==void 0&&(r[e]=t[e])})(e))),t.required!==void 0&&Array.isArray(t.required)&&(r.required!==void 0&&r.required.length||(r.required=[]),t.required.forEach((e=>{r.required.includes(e)||r.required.push(e)}))),t.properties){r.properties||={};let e=nG(t.properties);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]&&e[i].deprecated||e[i]&&e[i].readOnly&&!n.includeReadOnly||e[i]&&e[i].writeOnly&&!n.includeWriteOnly||r.properties[i]||(r.properties[i]=e[i],!t.required&&Array.isArray(t.required)&&t.required.indexOf(i)!==-1&&(r.required?r.required.push(i):r.required=[i])))}return t.items&&(r.items||={},r.items=zJ(r.items,t.items,n)),r},BJ=(e,t={},n=void 0,r=!1)=>{e&&sG(e.toJS)&&(e=e.toJS());let i=n!==void 0||e&&e.example!==void 0||e&&e.default!==void 0,a=!i&&e&&e.oneOf&&e.oneOf.length>0,o=!i&&e&&e.anyOf&&e.anyOf.length>0;if(!i&&(a||o)){let n=nG(a?e.oneOf[0]:e.anyOf[0]);if(!(e=zJ(e,n,t)).xml&&n.xml&&(e.xml=n.xml),e.example!==void 0&&n.example!==void 0)i=!0;else if(n.properties){e.properties||(e.properties={});let r=nG(n.properties);for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(r[i]&&r[i].deprecated||r[i]&&r[i].readOnly&&!t.includeReadOnly||r[i]&&r[i].writeOnly&&!t.includeWriteOnly||e.properties[i]||(e.properties[i]=r[i],!n.required&&Array.isArray(n.required)&&n.required.indexOf(i)!==-1&&(e.required?e.required.push(i):e.required=[i])))}}let s={},{xml:c,type:l,example:u,properties:d,additionalProperties:f,items:p}=e||{},{includeReadOnly:m,includeWriteOnly:h}=t;c||={};let g,{name:_,prefix:v,namespace:y}=c,b={};r&&(_||=`notagname`,g=(v?v+`:`:``)+_,y)&&(s[v?`xmlns:`+v:`xmlns`]=y),r&&(b[g]=[]);let x=t=>t.some((t=>Object.prototype.hasOwnProperty.call(e,t)));e&&!l&&(d||f||x(FJ)?l=`object`:p||x(IJ)?l=`array`:x(LJ)?(l=`number`,e.type=`number`):i||e.enum||(l=`string`,e.type=`string`));let S=t=>{if(e?.maxItems!=null&&(t=t.slice(0,e?.maxItems)),e?.minItems!=null){let n=0;for(;t.length<e?.minItems;)t.push(t[n++%t.length])}return t},C=nG(d),w,T=0,E=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&T>=e.maxProperties,D=t=>!e||e.maxProperties===null||e.maxProperties===void 0||!E()&&(!(t=>!(e&&e.required&&e.required.length&&e.required.includes(t)))(t)||e.maxProperties-T-(()=>{if(!e||!e.required)return 0;let t=0;return r?e.required.forEach((e=>t+=b[e]===void 0?0:1)):e.required.forEach((e=>t+=b[g]?.find((t=>t[e]!==void 0))===void 0?0:1)),e.required.length-t})()>0);if(w=r?(n,i=void 0)=>{if(e&&C[n]){if(C[n].xml=C[n].xml||{},C[n].xml.attribute){let e=Array.isArray(C[n].enum)?C[n].enum[0]:void 0,t=C[n].example,r=C[n].default;s[C[n].xml.name||n]=t===void 0?r===void 0?e===void 0?NJ(C[n]):e:r:t;return}C[n].xml.name=C[n].xml.name||n}else C[n]||!1===f||(C[n]={xml:{name:n}});let a=BJ(e&&C[n]||void 0,t,i,r);D(n)&&(T++,Array.isArray(a)?b[g]=b[g].concat(a):b[g].push(a))}:(n,i)=>{if(D(n)){if(Object.prototype.hasOwnProperty.call(e,`discriminator`)&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,`mapping`)&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,`$$ref`)&&e.$$ref&&e.discriminator.propertyName===n){for(let t in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[t])!==-1){b[n]=t;break}}else b[n]=BJ(C[n],t,i,r);T++}},i){let i;if(i=PJ(n===void 0?u===void 0?e.default:u:n),!r){if(typeof i==`number`&&l===`string`)return`${i}`;if(typeof i!=`string`||l===`string`)return i;try{return JSON.parse(i)}catch{return i}}if(e||(l=Array.isArray(i)?`array`:typeof i),l===`array`){if(!Array.isArray(i)){if(typeof i==`string`)return i;i=[i]}let n=e?e.items:void 0;n&&(n.xml=n.xml||c||{},n.xml.name=n.xml.name||c.name);let a=i.map((e=>BJ(n,t,e,r)));return a=S(a),c.wrapped?(b[g]=a,(0,dh.default)(s)||b[g].push({_attr:s})):b=a,b}if(l===`object`){if(typeof i==`string`)return i;for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e&&C[t]&&C[t].readOnly&&!m||e&&C[t]&&C[t].writeOnly&&!h||(e&&C[t]&&C[t].xml&&C[t].xml.attribute?s[C[t].xml.name||t]=i[t]:w(t,i[t])));return(0,dh.default)(s)||b[g].push({_attr:s}),b}return b[g]=(0,dh.default)(s)?i:[{_attr:s},i],b}if(l===`object`){for(let e in C)Object.prototype.hasOwnProperty.call(C,e)&&(C[e]&&C[e].deprecated||C[e]&&C[e].readOnly&&!m||C[e]&&C[e].writeOnly&&!h||w(e));if(r&&s&&b[g].push({_attr:s}),E())return b;if(!0===f)r?b[g].push({additionalProp:`Anything can be here`}):b.additionalProp1={},T++;else if(f){let n=nG(f),i=BJ(n,t,void 0,r);if(r&&n.xml&&n.xml.name&&n.xml.name!==`notagname`)b[g].push(i);else{let t=n[`x-additionalPropertiesName`]||`additionalProp`,a=e.minProperties!==null&&e.minProperties!==void 0&&T<e.minProperties?e.minProperties-T:3;for(let e=1;e<=a;e++){if(E())return b;if(r){let n={};n[t+e]=i.notagname,b[g].push(n)}else b[t+e]=i;T++}}}return b}if(l===`array`){if(!p)return;let n;if(r&&(p.xml=p.xml||e?.xml||{},p.xml.name=p.xml.name||c.name),Array.isArray(p.anyOf))n=p.anyOf.map((e=>BJ(zJ(e,p,t),t,void 0,r)));else if(Array.isArray(p.oneOf))n=p.oneOf.map((e=>BJ(zJ(e,p,t),t,void 0,r)));else{if(!(!r||r&&c.wrapped))return BJ(p,t,void 0,r);n=[BJ(p,t,void 0,r)]}return n=S(n),r&&c.wrapped?(b[g]=n,(0,dh.default)(s)||b[g].push({_attr:s}),b):n}let O;if(e&&Array.isArray(e.enum))O=iG(e.enum)[0];else{if(!e)return;if(O=NJ(e),typeof O==`number`){let t=e.minimum;t!=null&&(e.exclusiveMinimum&&t++,O=t);let n=e.maximum;n!=null&&(e.exclusiveMaximum&&n--,O=n)}if(typeof O==`string`&&(e.maxLength!==null&&e.maxLength!==void 0&&(O=O.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let t=0;for(;O.length<e.minLength;)O+=O[t++%O.length]}}if(l!==`file`)return r?(b[g]=(0,dh.default)(s)?O:[{_attr:s},O],b):O},VJ=e=>(e.schema&&(e=e.schema),e.properties&&(e.type=`object`),e),HJ=(e,t,n)=>{let r=BJ(e,t,n,!0);if(r)return typeof r==`string`?r:DJ()(r,{declaration:!0,indent:` `})},UJ=(e,t,n)=>BJ(e,t,n,!1),WJ=(e,t,n)=>[e,JSON.stringify(t),JSON.stringify(n)],GJ=jJ(HJ,WJ),KJ=jJ(UJ,WJ),qJ=e=>tG(e)?.type??`string`,JJ=[{when:/json/,shouldStringifyTypes:[`string`]}],YJ=[`object`],XJ=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.memoizedSampleFromSchema(t,n,i),s=typeof o,c=JJ.reduce(((e,t)=>t.when.test(r)?[...e,...t.shouldStringifyTypes]:e),YJ);return(0,eu.default)(c,(e=>e===s))?JSON.stringify(o,null,2):o},ZJ=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.getJsonSampleSchema(t,n,r,i),s;try{s=Ed.dump(Ed.load(o),{lineWidth:-1},{schema:Ad}),s[s.length-1]===`
|
|
228
|
-
`&&(s=s.slice(0,s.length-1))}catch(e){return console.error(e),`error: could not generate yaml example`}return s.replace(/\t/g,` `)},QJ=e=>(t,n,r)=>{let{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
|
|
229
|
-
<!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return i.memoizedCreateXMLExample(t,n,r)},$J=e=>(t,n=``,r={},i=void 0)=>{let{fn:a}=e();return typeof i?.toJS==`function`&&(i=i.toJS()),/xml/.test(n)?(typeof t?.toJS==`function`&&(t=t.toJS()),a.getXmlSampleSchema(t,r,i)):/(yaml|yml)/.test(n)?a.getYamlSampleSchema(t,r,n,i):a.getJsonSampleSchema(t,r,n,i)},eY=({getSystem:e})=>{let t=XJ(e),n=ZJ(e),r=QJ(e),i=$J(e);return{fn:{jsonSchema5:{inferSchema:VJ,sampleFromSchema:UJ,sampleFromSchemaGeneric:BJ,createXMLExample:HJ,memoizedSampleFromSchema:KJ,memoizedCreateXMLExample:GJ,getJsonSampleSchema:t,getYamlSampleSchema:n,getXmlSampleSchema:r,getSampleSchema:i,mergeJsonSchema:zJ},inferSchema:VJ,sampleFromSchema:UJ,sampleFromSchemaGeneric:BJ,createXMLExample:HJ,memoizedSampleFromSchema:KJ,memoizedCreateXMLExample:GJ,getJsonSampleSchema:t,getYamlSampleSchema:n,getXmlSampleSchema:r,getSampleSchema:i,mergeJsonSchema:zJ,getSchemaObjectType:qJ}}},tY=[`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`,`query`],nY=e=>e||B(),rY=p(nY,(e=>e.get(`lastError`))),iY=p(nY,(e=>e.get(`url`))),aY=p(nY,(e=>e.get(`spec`)||``)),oY=p(nY,(e=>e.get(`specSource`)||`not-editor`)),sY=p(nY,(e=>e.get(`json`,B()))),cY=p(sY,(e=>e.toJS())),lY=p(nY,(e=>e.get(`resolved`,B()))),uY=(e,t)=>e.getIn([`resolvedSubtrees`,...t],void 0),dY=(e,t)=>B.isMap(e)&&B.isMap(t)?t.get(`$$ref`)?t:pa().mergeWith(dY,e,t):t,fY=p(nY,(e=>pa().mergeWith(dY,e.get(`json`),e.get(`resolvedSubtrees`)))),pY=e=>sY(e),mY=p(pY,(()=>!1)),hY=p(pY,(e=>cX(e&&e.get(`info`)))),gY=p(pY,(e=>cX(e&&e.get(`externalDocs`)))),_Y=p(hY,(e=>e&&e.get(`version`))),vY=p(_Y,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),yY=p(fY,(e=>e.get(`paths`))),bY=(0,ch.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`]),xY=p(yY,(e=>{let t=V();return!B.isMap(e)||e.isEmpty()||e.forEach(((e,n)=>{if(!e||!e.forEach)return{};e.forEach(((e,r)=>{tY.indexOf(r)<0||(t=t.push(z({path:n,method:r,operation:e,id:`${r}-${n}`,specPath:[`paths`,n,r]})))}))})),t})),SY=p(pY,(e=>ba(e.get(`consumes`)))),CY=p(pY,(e=>ba(e.get(`produces`)))),wY=p(pY,(e=>e.get(`security`,V()))),TY=p(pY,(e=>e.get(`securityDefinitions`))),EY=(e,t)=>{let n=e.getIn([`resolvedSubtrees`,`definitions`,t],null),r=e.getIn([`json`,`definitions`,t],null);return n||r||null},DY=p(pY,(e=>{let t=e.get(`definitions`);return B.isMap(t)?t:B()})),OY=p(pY,(e=>e.get(`basePath`))),kY=p(pY,(e=>e.get(`host`))),AY=p(pY,(e=>e.get(`schemes`,B()))),jY=p([xY,SY,CY],((e,t,n)=>e.map((e=>e.update(`operation`,(e=>B.isMap(e)?e.withMutations((e=>(e.get(`consumes`)||e.update(`consumes`,(e=>ba(e).merge(t))),e.get(`produces`)||e.update(`produces`,(e=>ba(e).merge(n))),e))):B())))))),MY=p(pY,(e=>{let t=e.get(`tags`,V());return V.isList(t)?t.filter((e=>B.isMap(e))):V()})),NY=(e,t)=>(MY(e)||V()).filter(B.isMap).find((e=>e.get(`name`)===t),B()),PY=p(jY,MY,((e,t)=>e.reduce(((e,t)=>{let n=ba(t.getIn([`operation`,`tags`]));return n.count()<1?e.update(`default`,V(),(e=>e.push(t))):n.reduce(((e,n)=>e.update(n,V(),(e=>e.push(t)))),e)}),t.reduce(((e,t)=>e.set(t.get(`name`),V())),pa())))),FY=e=>({getConfigs:t})=>{let{tagsSorter:n,operationsSorter:r}=t();return PY(e).sortBy(((e,t)=>t),((e,t)=>{let r=typeof n==`function`?n:hG.tagsSorter[n];return r?r(e,t):null})).map(((t,n)=>{let i=typeof r==`function`?r:hG.operationsSorter[r],a=i?t.sort(i):t;return B({tagDetails:NY(e,n),operations:a})}))},IY=p(nY,(e=>e.get(`responses`,B()))),LY=p(nY,(e=>e.get(`requests`,B()))),RY=p(nY,(e=>e.get(`mutatedRequests`,B()))),zY=(e,t,n)=>IY(e).getIn([t,n],null),BY=(e,t,n)=>LY(e).getIn([t,n],null),VY=(e,t,n)=>RY(e).getIn([t,n],null),HY=()=>!0,UY=(e,t,n)=>{let r=fY(e).getIn([`paths`,...t,`parameters`],pa()),i=e.getIn([`meta`,`paths`,...t,`parameters`],pa());return r.map((e=>{let t=i.get(`${n.get(`in`)}.${n.get(`name`)}`),r=i.get(`${n.get(`in`)}.${n.get(`name`)}.hash-${n.hashCode()}`);return pa().merge(e,t,r)})).find((e=>e.get(`in`)===n.get(`in`)&&e.get(`name`)===n.get(`name`)),pa())},WY=(e,t,n,r)=>{let i=`${r}.${n}`;return e.getIn([`meta`,`paths`,...t,`parameter_inclusions`,i],!1)},GY=(e,t,n,r)=>UY(e,t,fY(e).getIn([`paths`,...t,`parameters`],pa()).find((e=>e.get(`in`)===r&&e.get(`name`)===n),pa())),KY=(e,t,n)=>{let r=fY(e).getIn([`paths`,t,n],pa()),i=e.getIn([`meta`,`paths`,t,n],pa()),a=r.get(`parameters`,V()).map((r=>UY(e,[t,n],r)));return pa().merge(r,i).set(`parameters`,a)};function qY(e,t,n,r){return t||=[],e.getIn([`meta`,`paths`,...t,`parameters`],z([])).find((e=>B.isMap(e)&&e.get(`name`)===n&&e.get(`in`)===r))||B()}var JY=p(pY,(e=>{let t=e.get(`host`);return typeof t==`string`&&t.length>0&&t[0]!==`/`}));function YY(e,t,n){return t||=[],KY(e,...t).get(`parameters`,V()).reduce(((e,t)=>{let r=n&&t.get(`in`)===`body`?t.get(`value_xml`):t.get(`value`);return V.isList(r)&&(r=r.filter((e=>e!==``))),e.set(EG(t,{allowHashes:!1}),r)}),z({}))}function XY(e,t=``){if(V.isList(e))return e.some((e=>B.isMap(e)&&e.get(`in`)===t))}function ZY(e,t=``){if(V.isList(e))return e.some((e=>B.isMap(e)&&e.get(`type`)===t))}function QY(e,t){t||=[];let n=fY(e).getIn([`paths`,...t],z({})),r=e.getIn([`meta`,`paths`,...t],z({})),i=$Y(e,t),a=n.get(`parameters`)||new V;return z({requestContentType:r.get(`consumes_value`)?r.get(`consumes_value`):ZY(a,`file`)?`multipart/form-data`:ZY(a,`formData`)?`application/x-www-form-urlencoded`:void 0,responseContentType:i})}function $Y(e,t){t||=[];let n=fY(e).getIn([`paths`,...t],null);if(n===null)return;let r=e.getIn([`meta`,`paths`,...t,`produces_value`],null),i=n.getIn([`produces`,0],null);return r||i||`application/json`}function eX(e,t){t||=[];let n=fY(e),r=n.getIn([`paths`,...t],null);if(r===null)return;let[i]=t,a=r.get(`produces`,null),o=n.getIn([`paths`,i,`produces`],null),s=n.getIn([`produces`],null);return a||o||s}function tX(e,t){t||=[];let n=fY(e),r=n.getIn([`paths`,...t],null);if(r===null)return;let[i]=t,a=r.get(`consumes`,null),o=n.getIn([`paths`,i,`consumes`],null),s=n.getIn([`consumes`],null);return a||o||s}var nX=(e,t,n)=>{let r=e.get(`url`).match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(r)?r[1]:null;return e.getIn([`scheme`,t,n])||e.getIn([`scheme`,`_defaultScheme`])||i||``},rX=(e,t,n)=>[`http`,`https`].indexOf(nX(e,t,n))>-1,iX=(e,t)=>{t||=[];let n=e.getIn([`meta`,`paths`,...t,`parameters`],z([])),r=[];if(n.length===0)return r;let i=(e,t=[])=>{let n=(e,t)=>{let n=[...t,e.get(`propKey`)||e.get(`index`)];return B.isMap(e.get(`error`))?i(e.get(`error`),n):{error:e.get(`error`),path:n}};return V.isList(e)?e.map((e=>B.isMap(e)?n(e,t):{error:e,path:t})):n(e,t)};return n.forEach(((e,t)=>{let n=t.split(`.`).slice(1,-1).join(`.`),a=e.get(`errors`);a&&a.count()&&i(a).forEach((({error:e,path:t})=>{r.push(((e,t,n)=>`For '${n}'${(t=t.reduce(((e,t)=>typeof t==`number`?`${e}[${t}]`:e?`${e}.${t}`:t),``))?` at path '${t}'`:``}: ${e}.`)(e,t,n))}))})),r},aX=(e,t)=>iX(e,t).length===0,oX=(e,t)=>{let n={requestBody:!1,requestContentType:{}},r=e.getIn([`resolvedSubtrees`,`paths`,...t,`requestBody`],z([]));if(r.size<1)return n;r.getIn([`required`])&&(n.requestBody=r.getIn([`required`]));let i=r.getIn([`content`]);return i&&i.entrySeq().forEach((e=>{let t=e[0];if(e[1].getIn([`schema`,`required`])){let r=e[1].getIn([`schema`,`required`]).toJS();n.requestContentType[t]=r}})),n},sX=(e,t,n,r)=>{if((n||r)&&n===r)return!0;let i=e.getIn([`resolvedSubtrees`,`paths`,...t,`requestBody`,`content`],z([]));if(i.size<2||!n||!r)return!1;let a=i.getIn([n,`schema`,`properties`],z([])),o=i.getIn([r,`schema`,`properties`],z([]));return!!a.equals(o)};function cX(e){return B.isMap(e)?e:new B}var lX=`spec_update_spec`,uX=`spec_update_url`,dX=`spec_update_json`,fX=`spec_update_param`,pX=`spec_update_empty_param_inclusion`,mX=`spec_validate_param`,hX=`spec_set_response`,gX=`spec_set_request`,_X=`spec_set_mutated_request`,vX=`spec_log_request`,yX=`spec_clear_response`,bX=`spec_clear_request`,xX=`spec_clear_validate_param`,SX=`spec_update_operation_meta_value`,CX=`spec_update_resolved`,wX=`spec_update_resolved_subtree`,TX=`set_scheme`,EX=e=>(0,fh.default)(e)?e:``;function DX(e){let t=EX(e).replace(/\t/g,` `);if(typeof e==`string`)return{type:lX,payload:t}}function OX(e){return{type:CX,payload:e}}function kX(e){return{type:uX,payload:e}}function AX(e){return{type:dX,payload:e}}var jX=e=>({specActions:t,specSelectors:n,errActions:r})=>{let{specStr:i}=n,a=null;try{e||=i(),r.clear({source:`parser`}),a=Ed.load(e,{schema:Ad})}catch(e){return console.error(e),r.newSpecErr({source:`parser`,level:`error`,message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return a&&typeof a==`object`?t.updateJsonSpec(a):t.updateJsonSpec({})},MX=!1,NX=(e,t)=>({specActions:n,specSelectors:r,errActions:i,fn:{fetch:a,resolve:o,AST:s={}},getConfigs:c})=>{MX||=(console.warn(`specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!`),!0);let{modelPropertyMacro:l,parameterMacro:u,requestInterceptor:d,responseInterceptor:f}=c();e===void 0&&(e=r.specJson()),t===void 0&&(t=r.url());let p=s.getLineNumberForPath?s.getLineNumberForPath:()=>{},m=r.specStr();return o({fetch:a,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:l,parameterMacro:u,requestInterceptor:d,responseInterceptor:f}).then((({spec:e,errors:t})=>{if(i.clear({type:`thrown`}),Array.isArray(t)&&t.length>0){let e=t.map((e=>(console.error(e),e.line=e.fullPath?p(m,e.fullPath):null,e.path=e.fullPath?e.fullPath.join(`.`):null,e.level=`error`,e.type=`thrown`,e.source=`resolver`,Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));i.newThrownErrBatch(e)}return n.updateResolved(e)}))},PX=[],FX=(0,ph.default)((()=>{let e=PX.reduce(((e,{path:t,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(t),e)),new Map);PX=[],e.forEach((async(e,t)=>{if(!t)return void console.error(`debResolveSubtrees: don't have a system to operate on, aborting.`);if(!t.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");let{errActions:n,errSelectors:r,fn:{resolveSubtree:i,fetch:a,AST:o={}},specSelectors:s,specActions:c}=t,l=o.getLineNumberForPath??(0,ch.default)(void 0),u=s.specStr(),{modelPropertyMacro:d,parameterMacro:f,requestInterceptor:p,responseInterceptor:m}=t.getConfigs();try{let t=await e.reduce((async(e,t)=>{let{resultMap:o,specWithCurrentSubtrees:c}=await e,{errors:h,spec:g}=await i(c,t,{baseDoc:String(new URL(s.url(),document.baseURI)),modelPropertyMacro:d,parameterMacro:f,requestInterceptor:p,responseInterceptor:m});if(r.allErrors().size&&n.clearBy((e=>e.get(`type`)!==`thrown`||e.get(`source`)!==`resolver`||!e.get(`fullPath`)?.every(((e,n)=>e===t[n]||t[n]===void 0)))),Array.isArray(h)&&h.length>0){let e=h.map((e=>(e.line=e.fullPath?l(u,e.fullPath):null,e.path=e.fullPath?e.fullPath.join(`.`):null,e.level=`error`,e.type=`thrown`,e.source=`resolver`,Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));n.newThrownErrBatch(e)}return g&&s.isOAS3()&&t[0]===`components`&&t[1]===`securitySchemes`&&await Promise.all(Object.values(g).filter((e=>e?.type===`openIdConnect`)).map((async e=>{let t={url:e.openIdConnectUrl,requestInterceptor:p,responseInterceptor:m};try{let n=await a(t);n instanceof Error||n.status>=400?console.error(n.statusText+` `+t.url):e.openIdConnectData=JSON.parse(n.text)}catch(e){console.error(e)}}))),(0,mh.default)(o,t,g),c=(0,hh.default)(t,g,c),{resultMap:o,specWithCurrentSubtrees:c}}),Promise.resolve({resultMap:(s.specResolvedSubtree([])||B()).toJS(),specWithCurrentSubtrees:s.specJS()}));c.updateResolvedSubtree([],t.resultMap)}catch(e){console.error(e)}}))}),35),IX=e=>t=>{PX.find((({path:n,system:r})=>r===t&&n.toString()===e.toString()))||(PX.push({path:e,system:t}),FX())};function LX(e,t,n,r,i){return{type:fX,payload:{path:e,value:r,paramName:t,paramIn:n,isXml:i}}}function RX(e,t,n,r){return{type:fX,payload:{path:e,param:t,value:n,isXml:r}}}var zX=(e,t)=>({type:wX,payload:{path:e,value:t}}),BX=()=>({type:wX,payload:{path:[],value:B()}}),VX=(e,t)=>({type:mX,payload:{pathMethod:e,isOAS3:t}}),HX=(e,t,n,r)=>({type:pX,payload:{pathMethod:e,paramName:t,paramIn:n,includeEmptyValue:r}});function UX(e){return{type:xX,payload:{pathMethod:e}}}function WX(e,t){return{type:SX,payload:{path:e,value:t,key:`consumes_value`}}}function GX(e,t){return{type:SX,payload:{path:e,value:t,key:`produces_value`}}}var KX=(e,t,n)=>({payload:{path:e,method:t,res:n},type:hX}),qX=(e,t,n)=>({payload:{path:e,method:t,req:n},type:gX}),JX=(e,t,n)=>({payload:{path:e,method:t,req:n},type:_X}),YX=e=>({payload:e,type:vX}),XX=e=>({fn:t,specActions:n,specSelectors:r,getConfigs:i,oas3Selectors:a})=>{let{pathName:o,method:s,operation:c}=e,{requestInterceptor:l,responseInterceptor:u}=i(),d=c.toJS();if(c&&c.get(`parameters`)&&c.get(`parameters`).filter((e=>e&&!0===e.get(`allowEmptyValue`))).forEach((t=>{if(r.parameterInclusionSettingFor([o,s],t.get(`name`),t.get(`in`))){e.parameters=e.parameters||{};let n=DG(t,e.parameters);(!n||n&&n.size===0)&&(e.parameters[t.get(`name`)]=``)}})),e.contextUrl=(0,nu.default)(r.url()).toString(),d&&d.operationId?e.operationId=d.operationId:d&&o&&s&&(e.operationId=t.opId(d,o,s)),r.isOAS3()){let t=`${o}:${s}`;e.server=a.selectedServer(t)||a.selectedServer();let n=a.serverVariables({server:e.server,namespace:t}).toJS(),r=a.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(n).length?n:r,e.requestContentType=a.requestContentType(o,s),e.responseContentType=a.responseContentType(o,s)||`*/*`;let i=a.requestBodyValue(o,s),c=a.requestBodyInclusionSetting(o,s);e.requestBody=i&&i.toJS?i.map((e=>B.isMap(e)?e.get(`value`):e)).filter(((e,t)=>(Array.isArray(e)?e.length!==0:!kG(e))||c.get(t))).toJS():i}let f=Object.assign({},e);f=t.buildRequest(f),n.setRequest(e.pathName,e.method,f),e.requestInterceptor=async t=>{let r=await l.apply(void 0,[t]),i=Object.assign({},r);return n.setMutatedRequest(e.pathName,e.method,i),r},e.responseInterceptor=u;let p=Date.now();return t.execute(e).then((t=>{t.duration=Date.now()-p,n.setResponse(e.pathName,e.method,t)})).catch((t=>{t.message===`Failed to fetch`&&(t.name=``,t.message=`**Failed to fetch.**
|
|
230
|
-
**Possible Reasons:**
|
|
231
|
-
- CORS
|
|
232
|
-
- Network Failure
|
|
233
|
-
- URL scheme must be "http" or "https" for CORS request.`),n.setResponse(e.pathName,e.method,{error:!0,err:t})}))},ZX=({path:e,method:t,...n}={})=>r=>{let{fn:{fetch:i},specSelectors:a,specActions:o}=r,s=a.specJsonWithResolvedSubtrees().toJS(),c=a.operationScheme(e,t),{requestContentType:l,responseContentType:u}=a.contentTypeValues([e,t]).toJS(),d=/xml/i.test(l),f=a.parameterValues([e,t],d).toJS();return o.executeRequest({...n,fetch:i,spec:s,pathName:e,method:t,parameters:f,requestContentType:l,scheme:c,responseContentType:u})};function QX(e,t){return{type:yX,payload:{path:e,method:t}}}function $X(e,t){return{type:bX,payload:{path:e,method:t}}}function eZ(e,t,n){return{type:TX,payload:{scheme:e,path:t,method:n}}}var tZ={[lX]:(e,t)=>typeof t.payload==`string`?e.set(`spec`,t.payload):e,[uX]:(e,t)=>e.set(`url`,t.payload+``),[dX]:(e,t)=>e.set(`json`,rG(t.payload)),[CX]:(e,t)=>e.setIn([`resolved`],rG(t.payload)),[wX]:(e,t)=>{let{value:n,path:r}=t.payload;return e.setIn([`resolvedSubtrees`,...r],rG(n))},[fX]:(e,{payload:t})=>{let{path:n,paramName:r,paramIn:i,param:a,value:o,isXml:s}=t,c=a?EG(a):`${i}.${r}`,l=s?`value_xml`:`value`;return e.setIn([`meta`,`paths`,...n,`parameters`,c,l],z(o))},[pX]:(e,{payload:t})=>{let{pathMethod:n,paramName:r,paramIn:i,includeEmptyValue:a}=t;if(!r||!i)return console.warn(`Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.`),e;let o=`${i}.${r}`;return e.setIn([`meta`,`paths`,...n,`parameter_inclusions`,o],a)},[mX]:(e,{payload:{pathMethod:t,isOAS3:n}})=>{let r=fY(e).getIn([`paths`,...t]),i=YY(e,t).toJS();return e.updateIn([`meta`,`paths`,...t,`parameters`],z({}),(a=>r.get(`parameters`,V()).reduce(((r,a)=>{let o=((e,t,{isOAS3:n=!1,bypassRequiredCheck:r=!1}={})=>{let i=e.get(`required`),{schema:a,parameterContentMediaType:o}=ZW(e,{isOAS3:n});return pG(t,a,i,r,o,n)})(a,DG(a,i),{bypassRequiredCheck:WY(e,t,a.get(`name`),a.get(`in`)),isOAS3:n});return r.setIn([EG(a),`errors`],z(o))}),a)))},[xX]:(e,{payload:{pathMethod:t}})=>e.updateIn([`meta`,`paths`,...t,`parameters`],z([]),(e=>e.map((e=>e.set(`errors`,z([])))))),[hX]:(e,{payload:{res:t,path:n,method:r}})=>{let i;i=t.error?Object.assign({error:!0,name:t.err.name,message:t.err.message,statusCode:t.err.statusCode},t.err.response):t,i.headers=i.headers||{};let a=e.setIn([`responses`,n,r],rG(i));return GW.Blob&&i.data instanceof GW.Blob&&(a=a.setIn([`responses`,n,r,`text`],i.data)),a},[gX]:(e,{payload:{req:t,path:n,method:r}})=>e.setIn([`requests`,n,r],rG(t)),[_X]:(e,{payload:{req:t,path:n,method:r}})=>e.setIn([`mutatedRequests`,n,r],rG(t)),[SX]:(e,{payload:{path:t,value:n,key:r}})=>{let i=[`paths`,...t],a=[`meta`,`paths`,...t];return e.getIn([`json`,...i])||e.getIn([`resolved`,...i])||e.getIn([`resolvedSubtrees`,...i])?e.setIn([...a,r],z(n)):e},[yX]:(e,{payload:{path:t,method:n}})=>e.deleteIn([`responses`,t,n]),[bX]:(e,{payload:{path:t,method:n}})=>e.deleteIn([`requests`,t,n]),[TX]:(e,{payload:{scheme:t,path:n,method:r}})=>n&&r?e.setIn([`scheme`,n,r],t):n||r?void 0:e.setIn([`scheme`,`_defaultScheme`],t)},nZ=(e,{specActions:t})=>(...n)=>{e(...n),t.parseToJson(...n)},rZ=(e,{specActions:t})=>(...n)=>{e(...n),t.invalidateResolvedSubtreeCache();let[r]=n,i=(0,hp.default)(r,[`paths`])||{};Object.keys(i).forEach((e=>{let n=(0,hp.default)(i,[e]);(0,sh.default)(n)&&n.$ref&&t.requestResolvedSubtree([`paths`,e])})),t.requestResolvedSubtree([`components`,`securitySchemes`])},iZ=(e,{specActions:t})=>n=>(t.logRequest(n),e(n)),aZ=(e,{specSelectors:t})=>n=>e(n,t.isOAS3()),oZ=()=>({statePlugins:{spec:{wrapActions:{...SW},reducers:{...tZ},actions:{...xW},selectors:{...bW}}}}),sZ=(e,t)=>(...n)=>{e(...n);let r=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=r};function cZ({configs:e,getConfigs:t}){return{fn:{fetch:vE(_E,e.preFetch,e.postFetch),buildRequest:nz,execute:tz,resolve:bL({strategies:[vL,IE,PE,DE]}),resolveSubtree:async(e,n,r={})=>{let i=t();return uz({modelPropertyMacro:i.modelPropertyMacro,parameterMacro:i.parameterMacro,requestInterceptor:i.requestInterceptor,responseInterceptor:i.responseInterceptor,strategies:[vL,IE,PE,DE]})(e,n,r)},serializeRes:gE,opId:TE},statePlugins:{configs:{wrapActions:{loaded:sZ}}}}}function lZ(){return{fn:{shallowEqualKeys:_G,sanitizeUrl:iJ}}}var uZ=e=>t=>{let{fn:n}=e();class r extends H.Component{render(){return H.createElement(t,xp({},e(),this.props,this.context))}}return r.displayName=`WithSystem(${n.getDisplayName(t)})`,r},dZ=(e,t)=>n=>{let{fn:r}=e();class i extends H.Component{render(){return H.createElement(_,{store:t},H.createElement(n,xp({},this.props,this.context)))}}return i.displayName=`WithRoot(${r.getDisplayName(n)})`,i},fZ=(e,t,n)=>f(n?dZ(e,n):fz.default,h(((n,r)=>{let i={...r,...e()};return(t.prototype?.mapStateToProps||(e=>({state:e})))(n,i)})),uZ(e))(t),pZ=(e,t,n,r)=>{for(let i in t){let a=t[i];typeof a==`function`&&a(n[i],r[i],e())}},mZ=(e,t,n)=>(t,r)=>{let{fn:i}=e(),a=n(t,`root`);class o extends H.Component{constructor(t,n){super(t,n),pZ(e,r,t,{})}UNSAFE_componentWillReceiveProps(t){pZ(e,r,t,this.props)}render(){let e=(0,ru.default)(this.props,r?Object.keys(r):[]);return H.createElement(a,e)}}return o.displayName=`WithMappedContainer(${i.getDisplayName(a)})`,o},hZ=(e,t,n,r)=>i=>{let a=n(e,t,r)(`App`,`root`),{createRoot:o}=dz.default;o(i).render(H.createElement(a,null))},gZ=(e,t,n)=>(r,i,a={})=>{if(typeof r!=`string`)throw TypeError(`Need a string, to fetch a component. Was given a `+typeof r);let o=n(r);return o?i?i===`root`?fZ(e,o,t()):fZ(e,o):o:(a.failSilently||e().log.warn(`Could not find component:`,r),null)},_Z=e=>e.displayName||e.name||`Component`,vZ=({getComponents:e,getStore:t,getSystem:n})=>{let r=(i=gZ(n,t,e),lG(i,((...e)=>JSON.stringify(e))));var i;return{rootInjects:{getComponent:r,makeMappedContainer:(e=>jJ(e,((...e)=>e)))(mZ(n,0,r)),render:hZ(n,t,gZ,e)},fn:{getDisplayName:_Z}}},yZ=({React:e,getSystem:t,getStore:n,getComponents:r})=>{let i={},a=parseInt(e?.version,10);return a>=16&&a<18&&(i.render=((e,t,n,r)=>i=>{let a=n(e,t,r)(`App`,`root`);dz.default.render(H.createElement(a,null),i)})(t,n,gZ,r)),{rootInjects:i}};function bZ(e){let{fn:t}=e;return{statePlugins:{spec:{actions:{download:e=>({errActions:n,specSelectors:r,specActions:i,getConfigs:a})=>{let{fetch:o}=t,s=a();function c(t){if(t instanceof Error||t.status>=400)return i.updateLoadingStatus(`failed`),n.newThrownErr(Object.assign(Error((t.message||t.statusText)+` `+e),{source:`fetch`})),void(!t.status&&t instanceof Error&&function(){try{let t;if(`URL`in GW?t=new URL(e):(t=document.createElement(`a`),t.href=e),t.protocol!==`https:`&&GW.location.protocol===`https:`){let e=Object.assign(Error(`Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:`fetch`});n.newThrownErr(e);return}if(t.origin!==GW.location.origin){let e=Object.assign(Error(`Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${GW.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:`fetch`});n.newThrownErr(e)}}catch{return}}());i.updateLoadingStatus(`success`),i.updateSpec(t.text),r.url()!==e&&i.updateUrl(e)}e||=r.url(),i.updateLoadingStatus(`loading`),n.clear({source:`fetch`}),o({url:e,loadSpec:!0,requestInterceptor:s.requestInterceptor||(e=>e),responseInterceptor:s.responseInterceptor||(e=>e),credentials:`same-origin`,headers:{Accept:`application/json,*/*`}}).then(c,c)},updateLoadingStatus:e=>{let t=[null,`loading`,`failed`,`success`,`failedConfig`];return t.indexOf(e)===-1&&console.error(`Error: ${e} is not one of ${JSON.stringify(t)}`),{type:`spec_update_loading_status`,payload:e}}},reducers:{spec_update_loading_status:(e,t)=>typeof t.payload==`string`?e.set(`loadingStatus`,t.payload):e},selectors:{loadingStatus:p((e=>e||B()),(e=>e.get(`loadingStatus`)||null))}}}}}var xZ=()=>{rB.registerLanguage(`json`,aB),rB.registerLanguage(`js`,iB),rB.registerLanguage(`xml`,oB),rB.registerLanguage(`yaml`,cB),rB.registerLanguage(`http`,lB),rB.registerLanguage(`bash`,sB),rB.registerLanguage(`powershell`,uB),rB.registerLanguage(`javascript`,iB)},SZ={agate:dB,arta:fB,monokai:pB,nord:mB,obsidian:hB,"tomorrow-night":gB,idea:_B},CZ=dB,wZ=({language:e,className:t=``,getConfigs:n,syntaxHighlighting:r={},children:i=``})=>{let a=n().syntaxHighlight.theme,{styles:o,defaultStyle:s}=r,c=o?.[a]??s;return H.createElement(rB,{language:e,className:t,style:c},i)},TZ=({fileName:e=`response.txt`,className:t,downloadable:n,getComponent:r,canCopy:i,language:a,children:o})=>{let s=(0,H.useRef)(null),c=r(`SyntaxHighlighter`,!0),l=e=>{let{target:t,deltaY:n}=e,{scrollHeight:r,offsetHeight:i,scrollTop:a}=t;r>i&&(a===0&&n<0||i+a>=r&&n>0)&&e.preventDefault()};return(0,H.useEffect)((()=>{let e=Array.from(s.current.childNodes).filter((e=>!!e.nodeType&&e.classList.contains(`microlight`)));return e.forEach((e=>e.addEventListener(`mousewheel`,l,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener(`mousewheel`,l)))}}),[o,t,a]),H.createElement(`div`,{className:`highlight-code`,ref:s},i&&H.createElement(`div`,{className:`copy-to-clipboard`},H.createElement(Op.CopyToClipboard,{text:o},H.createElement(`button`,{"aria-label":`Copy to clipboard`}))),n?H.createElement(`button`,{className:`download-contents`,onClick:()=>{(0,TB.default)(o,e)}},`Download`):null,H.createElement(c,{language:a,className:(0,Dp.default)(t,`microlight`),renderPlainText:({children:e,PlainTextViewer:n})=>H.createElement(n,{className:t},e)},o))},EZ=({className:e=``,children:t})=>H.createElement(`pre`,{className:(0,Dp.default)(`microlight`,e)},t),DZ=(e,t)=>({renderPlainText:n,children:r,...i})=>{let a=t.getConfigs().syntaxHighlight.activated,o=t.getComponent(`PlainTextViewer`);return a||typeof n!=`function`?a?H.createElement(e,i,r):H.createElement(o,null,r):n({children:r,PlainTextViewer:o})},OZ=()=>({afterLoad:xZ,rootInjects:{syntaxHighlighting:{styles:SZ,defaultStyle:CZ}},components:{SyntaxHighlighter:wZ,HighlightCode:TZ,PlainTextViewer:EZ}}),kZ=()=>({wrapComponents:{SyntaxHighlighter:DZ}}),AZ=()=>[OZ,kZ],jZ=()=>{let{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:n,BUILD_TIME:r}={PACKAGE_VERSION:`5.32.13`,GIT_COMMIT:`g9b3eacb7`,GIT_DIRTY:!0,BUILD_TIME:`Tue, 11 Aug 2026 12:37:36 GMT`};GW.versions=GW.versions||{},GW.versions.swaggerUI={version:n,gitRevision:t,gitDirty:e,buildTimestamp:r}},MZ=()=>({afterLoad:jZ}),NZ=console.error,PZ=e=>t=>{let{getComponent:n,fn:r}=e(),i=n(`ErrorBoundary`),a=r.getDisplayName(t);class o extends H.Component{render(){return H.createElement(i,{targetName:a,getComponent:n,fn:r},H.createElement(t,xp({},this.props,this.context)))}}var s;return o.displayName=`WithErrorBoundary(${a})`,(s=t).prototype&&s.prototype.isReactComponent&&(o.prototype.mapStateToProps=t.prototype.mapStateToProps),o},FZ=({name:e})=>H.createElement(`div`,{className:`fallback`},`😱 `,H.createElement(`i`,null,`Could not render `,e===`t`?`this component`:e,`, see the console.`)),IZ=class extends H.Component{static defaultProps={targetName:`this component`,getComponent:()=>FZ,fn:{componentDidCatch:NZ},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,t){this.props.fn.componentDidCatch(e,t)}render(){let{getComponent:e,targetName:t,children:n}=this.props;if(this.state.hasError){let n=e(`Fallback`);return H.createElement(n,{name:t})}return n}},LZ=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:n})=>{let r=t?e:[`App`,`BaseLayout`,`VersionPragmaFilter`,`InfoContainer`,`ServersContainer`,`SchemesContainer`,`AuthorizeBtnContainer`,`FilterContainer`,`Operations`,`OperationContainer`,`parameters`,`responses`,`OperationServers`,`Models`,`ModelWrapper`,...e],i=(0,EB.default)(r,Array(r.length).fill(((e,{fn:t})=>t.withErrorBoundary(e))));return{fn:{componentDidCatch:NZ,withErrorBoundary:PZ(n)},components:{ErrorBoundary:IZ,Fallback:FZ},wrapComponents:i}},RZ=class extends H.Component{getLayout(){let{getComponent:e,layoutSelectors:t}=this.props,n=t.current();return e(n,!0)||(()=>H.createElement(`h1`,null,` No layout defined for "`,n,`" `))}render(){let e=this.getLayout();return H.createElement(e,null)}},zZ=class extends H.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};handleEscKeydown=e=>{e.key===`Escape`&&this.close()};componentDidMount(){document.addEventListener(`keydown`,this.handleEscKeydown)}componentWillUnmount(){document.removeEventListener(`keydown`,this.handleEscKeydown)}render(){let{authSelectors:e,authActions:t,getComponent:n,errSelectors:r,specSelectors:i,fn:{AST:a={}}}=this.props,o=e.shownDefinitions(),s=n(`auths`),c=n(`CloseIcon`);return H.createElement(`div`,{className:`dialog-ux`},H.createElement(`div`,{className:`backdrop-ux`,onClick:this.close}),H.createElement(`div`,{className:`modal-ux`},H.createElement(`div`,{className:`modal-dialog-ux`},H.createElement(`div`,{className:`modal-ux-inner`},H.createElement(`div`,{className:`modal-ux-header`},H.createElement(`h3`,null,`Available authorizations`),H.createElement(`button`,{type:`button`,className:`close-modal`,onClick:this.close},H.createElement(c,null))),H.createElement(`div`,{className:`modal-ux-content`},o.valueSeq().map(((o,c)=>H.createElement(s,{key:c,AST:a,definitions:o,getComponent:n,errSelectors:r,authSelectors:e,authActions:t,specSelectors:i}))))))))}},BZ=class extends H.Component{render(){let{isAuthorized:e,showPopup:t,onClick:n,getComponent:r}=this.props,i=r(`authorizationPopup`,!0),a=r(`LockAuthIcon`,!0),o=r(`UnlockAuthIcon`,!0);return H.createElement(`div`,{className:`auth-wrapper`},H.createElement(`button`,{className:e?`btn authorize locked`:`btn authorize unlocked`,onClick:n},H.createElement(`span`,null,`Authorize`),e?H.createElement(a,null):H.createElement(o,null)),t&&H.createElement(i,null))}},VZ=class extends H.Component{render(){let{authActions:e,authSelectors:t,specSelectors:n,getComponent:r}=this.props,i=n.securityDefinitions(),a=t.definitionsToAuthorize(),o=r(`authorizeBtn`);return i?H.createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!t.authorized().size,showPopup:!!t.shownDefinitions(),getComponent:r}):null}},HZ=class extends H.Component{onClick=e=>{e.stopPropagation();let{onClick:t}=this.props;t&&t()};render(){let{isAuthorized:e,getComponent:t}=this.props,n=t(`LockAuthOperationIcon`,!0),r=t(`UnlockAuthOperationIcon`,!0);return H.createElement(`button`,{className:`authorization__btn`,"aria-label":e?`authorization button locked`:`authorization button unlocked`,onClick:this.onClick},e?H.createElement(n,{className:`locked`}):H.createElement(r,{className:`unlocked`}))}},UZ=class extends H.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:n}=this.props,r=n.keySeq().toArray();this.setState(r.reduce(((e,t)=>(e[t]=``,e)),{})),t.logoutWithPersistOption(r)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:n,errSelectors:r}=this.props,i=t(`AuthItem`),a=t(`oauth2`,!0),o=t(`Button`),s=n.authorized(),c=e.filter(((e,t)=>!!s.get(t))),l=e.filter((e=>e.get(`type`)!==`oauth2`)),u=e.filter((e=>e.get(`type`)===`oauth2`));return H.createElement(`div`,{className:`auth-container`},!!l.size&&H.createElement(`form`,{onSubmit:this.submitAuth},l.map(((e,a)=>H.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray(),H.createElement(`div`,{className:`auth-btn-wrapper`},l.size===c.size?H.createElement(o,{className:`btn modal-btn auth`,onClick:this.logoutClick,"aria-label":`Remove authorization`},`Logout`):H.createElement(o,{type:`submit`,className:`btn modal-btn auth authorize`,"aria-label":`Apply credentials`},`Authorize`),H.createElement(o,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`))),u&&u.size?H.createElement(`div`,null,H.createElement(`div`,{className:`scope-def`},H.createElement(`p`,null,`Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.`),H.createElement(`p`,null,`API requires the following scopes. Select which ones you want to grant to Swagger UI.`)),e.filter((e=>e.get(`type`)===`oauth2`)).map(((e,t)=>H.createElement(`div`,{key:t},H.createElement(a,{authorized:s,schema:e,name:t})))).valueSeq().toArray()):null)}},WZ=class extends H.Component{render(){let{schema:e,name:t,getComponent:n,onAuthChange:r,authorized:i,errSelectors:a,authSelectors:o}=this.props,s=n(`apiKeyAuth`),c=n(`basicAuth`),l,u=e.get(`type`);switch(u){case`apiKey`:l=H.createElement(s,{key:t,schema:e,name:t,errSelectors:a,authorized:i,getComponent:n,onChange:r,authSelectors:o});break;case`basic`:l=H.createElement(c,{key:t,schema:e,name:t,errSelectors:a,authorized:i,getComponent:n,onChange:r,authSelectors:o});break;default:l=H.createElement(`div`,{key:t},`Unknown security definition type `,u)}return H.createElement(`div`,{key:`${t}-jump`},l)}},GZ=class extends H.Component{render(){let{error:e}=this.props,t=e.get(`level`),n=e.get(`message`),r=e.get(`source`);return H.createElement(`div`,{className:`errors`},H.createElement(`b`,null,r,` `,t),H.createElement(`span`,null,n))}},KZ=class extends H.Component{constructor(e,t){super(e,t);let{name:n,schema:r}=this.props,i=this.getValue();this.state={name:n,schema:r,value:i}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,`value`])}onChange=e=>{let{onChange:t}=this.props,n=e.target.value,r=Object.assign({},this.state,{value:n});this.setState(r),t(r)};render(){let{schema:e,getComponent:t,errSelectors:n,name:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`Markdown`,!0),u=t(`JumpToPath`,!0),d=i.selectAuthPath(r),f=this.getValue(),p=n.allErrors().filter((e=>e.get(`authId`)===r));return H.createElement(`div`,null,H.createElement(`h4`,null,H.createElement(`code`,null,r||e.get(`name`)),`\xA0(apiKey)`,H.createElement(u,{path:d})),f&&H.createElement(`h6`,null,`Authorized`),H.createElement(o,null,H.createElement(l,{source:e.get(`description`)})),H.createElement(o,null,H.createElement(`p`,null,`Name: `,H.createElement(`code`,null,e.get(`name`)))),H.createElement(o,null,H.createElement(`p`,null,`In: `,H.createElement(`code`,null,e.get(`in`)))),H.createElement(o,null,H.createElement(`label`,{htmlFor:`api_key_value`},`Value:`),f?H.createElement(`code`,null,` ****** `):H.createElement(s,null,H.createElement(a,{id:`api_key_value`,type:`text`,onChange:this.onChange,autoFocus:!0}))),p.valueSeq().map(((e,t)=>H.createElement(c,{error:e,key:t}))))}},qZ=class extends H.Component{constructor(e,t){super(e,t);let{schema:n,name:r}=this.props,i=this.getValue().username;this.state={name:r,schema:n,value:i?{username:i}:{}}}getValue(){let{authorized:e,name:t}=this.props;return e&&e.getIn([t,`value`])||{}}onChange=e=>{let{onChange:t}=this.props,{value:n,name:r}=e.target,i=this.state.value;i[r]=n,this.setState({value:i}),t(this.state)};render(){let{schema:e,getComponent:t,name:n,errSelectors:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`JumpToPath`,!0),u=t(`Markdown`,!0),d=i.selectAuthPath(n),f=this.getValue().username,p=r.allErrors().filter((e=>e.get(`authId`)===n));return H.createElement(`div`,null,H.createElement(`h4`,null,`Basic authorization`,H.createElement(l,{path:d})),f&&H.createElement(`h6`,null,`Authorized`),H.createElement(o,null,H.createElement(u,{source:e.get(`description`)})),H.createElement(o,null,H.createElement(`label`,{htmlFor:`auth_username`},`Username:`),f?H.createElement(`code`,null,` `,f,` `):H.createElement(s,null,H.createElement(a,{id:`auth_username`,type:`text`,required:`required`,name:`username`,onChange:this.onChange,autoFocus:!0}))),H.createElement(o,null,H.createElement(`label`,{htmlFor:`auth_password`},`Password:`),f?H.createElement(`code`,null,` ****** `):H.createElement(s,null,H.createElement(a,{id:`auth_password`,autoComplete:`new-password`,name:`password`,type:`password`,onChange:this.onChange}))),p.valueSeq().map(((e,t)=>H.createElement(c,{error:e,key:t}))))}};function JZ(e){let{example:t,showValue:n,getComponent:r}=e,i=r(`Markdown`,!0),a=r(`HighlightCode`,!0);return t&&B.isMap(t)?H.createElement(`div`,{className:`example`},t.get(`description`)?H.createElement(`section`,{className:`example__section`},H.createElement(`div`,{className:`example__section-header`},`Example Description`),H.createElement(`p`,null,H.createElement(i,{source:t.get(`description`)}))):null,n&&t.has(`value`)?H.createElement(`section`,{className:`example__section`},H.createElement(`div`,{className:`example__section-header`},`Example Value`),H.createElement(a,null,TG(t.get(`value`)))):null):null}var YZ=class extends H.PureComponent{static defaultProps={examples:B({}),onSelect:(...e)=>console.log(`DEBUG: ExamplesSelect was not given an onSelect callback`,...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:t=!1}={})=>{typeof this.props.onSelect==`function`&&this.props.onSelect(e,{isSyntheticChange:t})};_onDomSelect=e=>{if(typeof this.props.onSelect==`function`){let t=e.target.selectedOptions[0].getAttribute(`value`);this._onSelect(t,{isSyntheticChange:!1})}};getCurrentExample=()=>{let{examples:e,currentExampleKey:t}=this.props,n=e.get(t),r=e.keySeq().first(),i=e.get(r);return n||i||B({})};componentDidMount(){let{onSelect:e,examples:t}=this.props;if(typeof e==`function`){let e=t.first(),n=t.keyOf(e);this._onSelect(n,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){let{currentExampleKey:t,examples:n}=e;if(n!==this.props.examples&&!n.has(t)){let e=n.first(),t=n.keyOf(e);this._onSelect(t,{isSyntheticChange:!0})}}render(){let{examples:e,currentExampleKey:t,isValueModified:n,isModifiedValueAvailable:r,showLabels:i}=this.props;return H.createElement(`div`,{className:`examples-select`},i?H.createElement(`span`,{className:`examples-select__section-label`},`Examples: `):null,H.createElement(`select`,{className:`examples-select-element`,onChange:this._onDomSelect,value:r&&n?`__MODIFIED__VALUE__`:t||``},r?H.createElement(`option`,{value:`__MODIFIED__VALUE__`},`[Modified value]`):null,e.map(((e,t)=>H.createElement(`option`,{key:t,value:t},B.isMap(e)&&e.get(`summary`)||t))).valueSeq()))}},XZ=e=>V.isList(e)?e:TG(e),ZZ=class extends H.PureComponent{static defaultProps={userHasEditedBody:!1,examples:B({}),currentNamespace:`__DEFAULT__NAMESPACE__`,setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);let t=this._getCurrentExampleValue();this.state={[e.currentNamespace]:B({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:t,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==t})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{let{currentNamespace:e}=this.props;return(this.state[e]||B()).toObject()};_setStateForCurrentNamespace=e=>{let{currentNamespace:t}=this.props;return this._setStateForNamespace(t,e)};_setStateForNamespace=(e,t)=>{let n=(this.state[e]||B()).merge(t);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{let{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,t)=>{let{examples:n}=t||this.props;return XZ((n||B({})).getIn([e,`value`]))};_getCurrentExampleValue=e=>{let{currentKey:t}=e||this.props;return this._getValueForExample(t,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:t}={},...n)=>{let{onSelect:r,updateValue:i,currentUserInputValue:a,userHasEditedBody:o}=this.props,{lastUserEditedValue:s}=this._getStateForCurrentNamespace(),c=this._getValueForExample(e);if(e===`__MODIFIED__VALUE__`)return i(XZ(s)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof r==`function`&&r(e,{isSyntheticChange:t},...n),this._setStateForCurrentNamespace({lastDownstreamValue:c,isModifiedValueSelected:t&&o||!!a&&a!==c}),t||typeof i==`function`&&i(XZ(c))};UNSAFE_componentWillReceiveProps(e){let{currentUserInputValue:t,examples:n,onSelect:r,userHasEditedBody:i}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),s=this._getValueForExample(e.currentKey,e),c=n.filter((e=>B.isMap(e)&&(e.get(`value`)===t||TG(e.get(`value`))===t)));if(c.size){let t;t=c.has(e.currentKey)?e.currentKey:c.keySeq().first(),r(t,{isSyntheticChange:!0})}else t!==this.props.currentUserInputValue&&t!==a&&t!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:i||t!==s}))}render(){let{currentUserInputValue:e,examples:t,currentKey:n,getComponent:r,userHasEditedBody:i}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:s}=this._getStateForCurrentNamespace(),c=r(`ExamplesSelect`);return H.createElement(c,{examples:t,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:e!==void 0&&s&&e!==this._getCurrentExampleValue()||i})}};function QZ({auth:e,authActions:t,errActions:n,configs:r,authConfigs:i={},currentServer:a}){let{schema:o,scopes:s,name:c,clientId:l}=e,u=o.get(`flow`),d=[];switch(u){case`password`:t.authorizePassword(e);return;case`application`:case`clientCredentials`:case`client_credentials`:t.authorizeApplication(e);return;case`accessCode`:case`authorizationCode`:case`authorization_code`:d.push(`response_type=code`);break;case`implicit`:d.push(`response_type=token`)}typeof l==`string`&&d.push(`client_id=`+encodeURIComponent(l));let f=r.oauth2RedirectUrl;if(f===void 0)return void n.newAuthErr({authId:c,source:`validation`,level:`error`,message:`oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed.`});d.push(`redirect_uri=`+encodeURIComponent(f));let p=[];if(Array.isArray(s)?p=s:Ra.List.isList(s)&&(p=s.toArray()),p.length>0){let e=i.scopeSeparator||` `;d.push(`scope=`+encodeURIComponent(p.join(e)))}let m=mG(new Date);if(d.push(`state=`+encodeURIComponent(m)),i.realm!==void 0&&d.push(`realm=`+encodeURIComponent(i.realm)),(u===`authorizationCode`||u===`authorization_code`||u===`accessCode`)&&i.usePkceWithAuthorizationCodeGrant){let t=function(){return OG(qW()(32).toString(`base64`))}(),n=function(e){return OG(YW()(`sha256`).update(e).digest(`base64`))}(t);d.push(`code_challenge=`+n),d.push(`code_challenge_method=S256`),e.codeVerifier=t}let{additionalQueryStringParams:h}=i;for(let e in h)h[e]!==void 0&&d.push([e,h[e]].map(encodeURIComponent).join(`=`));let g=o.get(`authorizationUrl`),_;_=a?(0,nu.default)(iJ(g),a,!0).toString():iJ(g);let v,y=[_,d.join(`&`)].join(typeof g!=`string`||g.includes(`?`)?`&`:`?`);v=u===`implicit`?t.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(y,{auth:e,state:m,redirectUrl:f,callback:v,errCb:n.newAuthErr})}var $Z=class extends H.Component{constructor(e,t){super(e,t);let{name:n,schema:r,authorized:i,authSelectors:a}=this.props,o=i&&i.get(n),s=a.getConfigs()||{},c=o&&o.get(`username`)||``,l=o&&o.get(`clientId`)||s.clientId||``,u=o&&o.get(`clientSecret`)||s.clientSecret||``,d=o&&o.get(`passwordType`)||`basic`,f=o&&o.get(`scopes`)||s.scopes||[];typeof f==`string`&&(f=f.split(s.scopeSeparator||` `)),this.state={appName:s.appName,name:n,schema:r,scopes:f,clientId:l,clientSecret:u,username:c,password:``,passwordType:d}}close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:t,getConfigs:n,authSelectors:r,oas3Selectors:i}=this.props,a=n(),o=r.getConfigs();t.clear({authId:name,type:`auth`,source:`auth`}),QZ({auth:this.state,currentServer:i.serverEffectiveValue(i.selectedServer()),authActions:e,errActions:t,configs:a,authConfigs:o})};onScopeChange=e=>{let{target:t}=e,{checked:n}=t,r=t.dataset.value;if(n&&this.state.scopes.indexOf(r)===-1){let e=this.state.scopes.concat([r]);this.setState({scopes:e})}else!n&&this.state.scopes.indexOf(r)>-1&&this.setState({scopes:this.state.scopes.filter((e=>e!==r))})};onInputChange=e=>{let{target:{dataset:{name:t},value:n}}=e,r={[t]:n};this.setState(r)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get(`allowedScopes`)||this.props.schema.get(`scopes`)).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:t,errActions:n,name:r}=this.props;n.clear({authId:r,type:`auth`,source:`auth`}),t.logoutWithPersistOption([r])};render(){let{schema:e,getComponent:t,authSelectors:n,errSelectors:r,name:i,specSelectors:a}=this.props,o=t(`Input`),s=t(`Row`),c=t(`Col`),l=t(`Button`),u=t(`authError`),d=t(`JumpToPath`,!0),f=t(`Markdown`,!0),p=t(`InitializedInput`),{isOAS3:m}=a,h=m()?e.get(`openIdConnectUrl`):null,g=`implicit`,_=`password`,v=m()?h?`authorization_code`:`authorizationCode`:`accessCode`,y=m()?h?`client_credentials`:`clientCredentials`:`application`,b=n.selectAuthPath(i),x=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,S=e.get(`flow`),C=S===v&&x?S+` with PKCE`:S,w=e.get(`allowedScopes`)||e.get(`scopes`),T=!!n.authorized().get(i),E=r.allErrors().filter((e=>e.get(`authId`)===i)),D=!E.filter((e=>e.get(`source`)===`validation`)).size,O=e.get(`description`);return H.createElement(`div`,null,H.createElement(`h4`,null,i,` (OAuth2, `,C,`) `,H.createElement(d,{path:b})),this.state.appName?H.createElement(`h5`,null,`Application: `,this.state.appName,` `):null,O&&H.createElement(f,{source:e.get(`description`)}),T&&H.createElement(`h6`,null,`Authorized`),h&&H.createElement(`p`,null,`OpenID Connect URL: `,H.createElement(`code`,null,h)),(S===g||S===v)&&H.createElement(`p`,null,`Authorization URL: `,H.createElement(`code`,null,e.get(`authorizationUrl`))),(S===_||S===v||S===y)&&H.createElement(`p`,null,`Token URL:`,H.createElement(`code`,null,` `,e.get(`tokenUrl`))),H.createElement(`p`,{className:`flow`},`Flow: `,H.createElement(`code`,null,C)),S===_?H.createElement(s,null,H.createElement(s,null,H.createElement(`label`,{htmlFor:`oauth_username`},`username:`),T?H.createElement(`code`,null,` `,this.state.username,` `):H.createElement(c,{tablet:10,desktop:10},H.createElement(`input`,{id:`oauth_username`,type:`text`,"data-name":`username`,onChange:this.onInputChange,autoFocus:!0}))),H.createElement(s,null,H.createElement(`label`,{htmlFor:`oauth_password`},`password:`),T?H.createElement(`code`,null,` ****** `):H.createElement(c,{tablet:10,desktop:10},H.createElement(`input`,{id:`oauth_password`,type:`password`,"data-name":`password`,onChange:this.onInputChange}))),H.createElement(s,null,H.createElement(`label`,{htmlFor:`password_type`},`Client credentials location:`),T?H.createElement(`code`,null,` `,this.state.passwordType,` `):H.createElement(c,{tablet:10,desktop:10},H.createElement(`select`,{id:`password_type`,"data-name":`passwordType`,onChange:this.onInputChange},H.createElement(`option`,{value:`basic`},`Authorization header`),H.createElement(`option`,{value:`request-body`},`Request body`))))):null,(S===y||S===g||S===v||S===_)&&(!T||T&&this.state.clientId)&&H.createElement(s,null,H.createElement(`label`,{htmlFor:`client_id_${S}`},`client_id:`),T?H.createElement(`code`,null,` ****** `):H.createElement(c,{tablet:10,desktop:10},H.createElement(p,{id:`client_id_${S}`,type:`text`,required:S===_,initialValue:this.state.clientId,"data-name":`clientId`,onChange:this.onInputChange}))),(S===y||S===v||S===_)&&H.createElement(s,null,H.createElement(`label`,{htmlFor:`client_secret_${S}`},`client_secret:`),T?H.createElement(`code`,null,` ****** `):H.createElement(c,{tablet:10,desktop:10},H.createElement(p,{id:`client_secret_${S}`,initialValue:this.state.clientSecret,type:`password`,"data-name":`clientSecret`,onChange:this.onInputChange}))),!T&&w&&w.size?H.createElement(`div`,{className:`scopes`},H.createElement(`h2`,null,`Scopes:`,H.createElement(`a`,{onClick:this.selectScopes,"data-all":!0},`select all`),H.createElement(`a`,{onClick:this.selectScopes},`select none`)),w.map(((e,t)=>H.createElement(s,{key:t},H.createElement(`div`,{className:`checkbox`},H.createElement(o,{"data-value":t,id:`${t}-${S}-checkbox-${this.state.name}`,disabled:T,checked:this.state.scopes.includes(t),type:`checkbox`,onChange:this.onScopeChange}),H.createElement(`label`,{htmlFor:`${t}-${S}-checkbox-${this.state.name}`},H.createElement(`span`,{className:`item`}),H.createElement(`div`,{className:`text`},H.createElement(`p`,{className:`name`},t),H.createElement(`p`,{className:`description`},e))))))).valueSeq().toArray()):null,E.valueSeq().map(((e,t)=>H.createElement(u,{error:e,key:t}))),H.createElement(`div`,{className:`auth-btn-wrapper`},D&&(T?H.createElement(l,{className:`btn modal-btn auth authorize`,onClick:this.logout,"aria-label":`Remove authorization`},`Logout`):H.createElement(l,{className:`btn modal-btn auth authorize`,onClick:this.authorize,"aria-label":`Apply given OAuth2 credentials`},`Authorize`)),H.createElement(l,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`)))}},eQ=class extends H.Component{onClick=()=>{let{specActions:e,path:t,method:n}=this.props;e.clearResponse(t,n),e.clearRequest(t,n)};render(){return H.createElement(`button`,{className:`btn btn-clear opblock-control__btn`,onClick:this.onClick},`Clear`)}},tQ=({headers:e})=>H.createElement(`div`,null,H.createElement(`h5`,null,`Response headers`),H.createElement(`pre`,{className:`microlight`},e)),nQ=({duration:e})=>H.createElement(`div`,null,H.createElement(`h5`,null,`Request duration`),H.createElement(`pre`,{className:`microlight`},e,` ms`)),rQ=class extends H.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){let{response:e,getComponent:t,getConfigs:n,displayRequestDuration:r,specSelectors:i,path:a,method:o}=this.props,{showMutatedRequest:s,requestSnippetsEnabled:c}=n(),l=s?i.mutatedRequestFor(a,o):i.requestFor(a,o),u=e.get(`status`),d=l.get(`url`),f=e.get(`headers`).toJS(),p=e.get(`notDocumented`),m=e.get(`error`),h=e.get(`text`),g=e.get(`duration`),_=Object.keys(f),v=f[`content-type`]||f[`Content-Type`],y=t(`responseBody`),b=_.map((e=>{var t=Array.isArray(f[e])?f[e].join():f[e];return H.createElement(`span`,{className:`headerline`,key:e},` `,e,`: `,t,` `)})),x=b.length!==0,S=t(`Markdown`,!0),C=t(`RequestSnippets`,!0),w=t(`curl`,!0);return H.createElement(`div`,null,l&&c?H.createElement(C,{request:l}):H.createElement(w,{request:l}),d&&H.createElement(`div`,null,H.createElement(`div`,{className:`request-url`},H.createElement(`h4`,null,`Request URL`),H.createElement(`pre`,{className:`microlight`},d))),H.createElement(`h4`,null,`Server response`),H.createElement(`table`,{className:`responses-table live-responses-table`},H.createElement(`thead`,null,H.createElement(`tr`,{className:`responses-header`},H.createElement(`td`,{className:`col_header response-col_status`},`Code`),H.createElement(`td`,{className:`col_header response-col_description`},`Details`))),H.createElement(`tbody`,null,H.createElement(`tr`,{className:`response`},H.createElement(`td`,{className:`response-col_status`},u,p?H.createElement(`div`,{className:`response-undocumented`},H.createElement(`i`,null,` Undocumented `)):null),H.createElement(`td`,{className:`response-col_description`},m?H.createElement(S,{source:`${e.get(`name`)===``?``:`${e.get(`name`)}: `}${e.get(`message`)}`}):null,h?H.createElement(y,{content:h,contentType:v,url:d,headers:f,getConfigs:n,getComponent:t}):null,x?H.createElement(tQ,{headers:b}):null,r&&g?H.createElement(nQ,{duration:g}):null)))))}},iQ=class extends H.Component{constructor(e,t){super(e,t);let{getConfigs:n}=e,{validatorUrl:r}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:r===void 0?`https://validator.swagger.io/validator`:r}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new nu.default(e.url(),GW.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:n}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?`https://validator.swagger.io/validator`:n})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),n=iJ(this.state.validatorUrl);return typeof t==`object`&&Object.keys(t).length?null:this.state.url&&vG(this.state.validatorUrl)&&vG(this.state.url)?H.createElement(`span`,{className:`float-right`},H.createElement(`a`,{target:`_blank`,rel:`noopener noreferrer`,href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},H.createElement(aQ,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:`Online validator badge`}))):null}},aQ=class extends H.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){let e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){let t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?H.createElement(`img`,{alt:`Error`}):this.state.loaded?H.createElement(`img`,{src:this.props.src,alt:this.props.alt}):null}},oQ=class extends H.Component{render(){let{specSelectors:e}=this.props,t=e.taggedOperations();return t.size===0?H.createElement(`h3`,null,` No operations defined in spec!`):H.createElement(`div`,null,t.map(this.renderOperationTag).valueSeq().toArray(),t.size<1?H.createElement(`h3`,null,` No operations defined in spec! `):null)}renderOperationTag=(e,t)=>{let{specSelectors:n,getComponent:r,oas3Selectors:i,layoutSelectors:a,layoutActions:o,getConfigs:s}=this.props,c=n.validOperationMethods(),l=r(`OperationContainer`,!0),u=r(`OperationTag`),d=e.get(`operations`);return H.createElement(u,{key:`operation-`+t,tagObj:e,tag:t,oas3Selectors:i,layoutSelectors:a,layoutActions:o,getConfigs:s,getComponent:r,specUrl:n.url()},H.createElement(`div`,{className:`operation-tag-content`},d.map((e=>{let n=e.get(`path`),r=e.get(`method`),i=e.get(`specPath`);return c.indexOf(r)===-1?null:H.createElement(l,{key:`${n}-${r}`,specPath:i,op:e,path:n,method:r,tag:t})})).toArray()))}},sQ=class extends H.Component{static defaultProps={tagObj:Ra.fromJS({}),tag:``};render(){let{tagObj:e,tag:t,children:n,oas3Selectors:r,layoutSelectors:i,layoutActions:a,getConfigs:o,getComponent:s,specUrl:c}=this.props,{docExpansion:l,deepLinking:u}=o(),d=s(`Collapse`),f=s(`Markdown`,!0),p=s(`DeepLink`),m=s(`Link`),h=s(`ArrowUpIcon`),g=s(`ArrowDownIcon`),_,v=e.getIn([`tagDetails`,`description`],null),y=e.getIn([`tagDetails`,`externalDocs`,`description`]),b=e.getIn([`tagDetails`,`externalDocs`,`url`]);_=sG(r)&&sG(r.selectedServer)?rJ(b,c,{selectedServer:r.selectedServer()}):b;let x=[`operations-tag`,t],S=i.isShown(x,l===`full`||l===`list`);return H.createElement(`div`,{className:S?`opblock-tag-section is-open`:`opblock-tag-section`},H.createElement(`h3`,{onClick:()=>a.show(x,!S),className:v?`opblock-tag`:`opblock-tag no-desc`,id:x.map((e=>bG(e))).join(`-`),"data-tag":t,"data-is-open":S},H.createElement(p,{enabled:u,isShown:S,path:yG(t),text:t}),v?H.createElement(`small`,null,H.createElement(f,{source:v})):H.createElement(`small`,null),_?H.createElement(`div`,{className:`info__externaldocs`},H.createElement(`small`,null,H.createElement(m,{href:iJ(_),onClick:e=>e.stopPropagation(),target:`_blank`},y||_))):null,H.createElement(`button`,{"aria-expanded":S,className:`expand-operation`,title:S?`Collapse operation`:`Expand operation`,onClick:()=>a.show(x,!S)},S?H.createElement(h,{className:`arrow`}):H.createElement(g,{className:`arrow`}))),H.createElement(d,{isOpened:S},n))}},cQ=class extends H.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:V(),summary:``};render(){let{specPath:e,response:t,request:n,toggleShown:r,onTryoutClick:i,onResetClick:a,onCancelClick:o,onExecute:s,fn:c,getComponent:l,getConfigs:u,specActions:d,specSelectors:f,authActions:p,authSelectors:m,oas3Actions:h,oas3Selectors:g}=this.props,_=this.props.operation,{deprecated:v,isShown:y,path:b,method:x,op:S,tag:C,operationId:w,allowTryItOut:T,displayRequestDuration:E,tryItOutEnabled:D,executeInProgress:O}=_.toObject(),k=S.get(`description`),A=S.get(`externalDocs`)?.toJS(),j=S.get(`schemes`)?.toJS(),M=A?rJ(A.url,f.url(),{selectedServer:g.selectedServer()}):``,N=_.getIn([`op`]),P=N.get(`responses`),ee=function(e,t){if(!Ra.Iterable.isIterable(e))return Ra.List();let n=e.getIn(Array.isArray(t)?t:[t]);return Ra.List.isList(n)?n:Ra.List()}(N,[`parameters`]),te=f.operationScheme(b,x),F=[`operations`,C,w],I=SG(N),L=l(`responses`,!0),R=l(`parameters`,!0),ne=l(`execute`),re=l(`clear`),ie=l(`Collapse`),ae=l(`Markdown`,!0),oe=l(`schemes`),se=l(`OperationServers`),ce=l(`OperationExt`),le=l(`OperationSummary`),ue=l(`Link`),{showExtensions:de}=u();if(P&&t&&t.size>0){let e=!P.get(String(t.get(`status`)))&&!P.get(`default`);t=t.set(`notDocumented`,e)}let fe=[b,x],pe=f.validationErrors([b,x]);return H.createElement(`div`,{className:v?`opblock opblock-deprecated`:y?`opblock opblock-${x} is-open`:`opblock opblock-${x}`,id:bG(F.join(`-`))},H.createElement(le,{operationProps:_,isShown:y,toggleShown:r,getComponent:l,authActions:p,authSelectors:m,specPath:e}),H.createElement(ie,{isOpened:y},H.createElement(`div`,{className:`opblock-body`},N&&N.size||N===null?null:H.createElement(Xq,{height:`32px`,width:`32px`,className:`opblock-loading-animation`}),v&&H.createElement(`h4`,{className:`opblock-title_normal`},` Warning: Deprecated`),k&&H.createElement(`div`,{className:`opblock-description-wrapper`},H.createElement(`div`,{className:`opblock-description`},H.createElement(ae,{source:k}))),M?H.createElement(`div`,{className:`opblock-external-docs-wrapper`},H.createElement(`h4`,{className:`opblock-title_normal`},`Find more details`),H.createElement(`div`,{className:`opblock-external-docs`},A.description&&H.createElement(`span`,{className:`opblock-external-docs__description`},H.createElement(ae,{source:A.description})),H.createElement(ue,{target:`_blank`,className:`opblock-external-docs__link`,href:iJ(M)},M))):null,N&&N.size?H.createElement(R,{parameters:ee,specPath:e.push(`parameters`),operation:N,onChangeKey:fe,onTryoutClick:i,onResetClick:a,onCancelClick:o,tryItOutEnabled:D,allowTryItOut:T,fn:c,getComponent:l,specActions:d,specSelectors:f,pathMethod:[b,x],getConfigs:u,oas3Actions:h,oas3Selectors:g}):null,D?H.createElement(se,{getComponent:l,path:b,method:x,operationServers:N.get(`servers`),pathServers:f.paths().getIn([b,`servers`]),getSelectedServer:g.selectedServer,setSelectedServer:h.setSelectedServer,setServerVariableValue:h.setServerVariableValue,getServerVariable:g.serverVariableValue,getEffectiveServerValue:g.serverEffectiveValue}):null,D&&T&&j&&j.size?H.createElement(`div`,{className:`opblock-schemes`},H.createElement(oe,{schemes:j,path:b,method:x,specActions:d,currentScheme:te})):null,!D||!T||pe.length<=0?null:H.createElement(`div`,{className:`validation-errors errors-wrapper`},`Please correct the following validation errors and try again.`,H.createElement(`ul`,null,pe.map(((e,t)=>H.createElement(`li`,{key:t},` `,e,` `))))),H.createElement(`div`,{className:D&&t&&T?`btn-group`:`execute-wrapper`},D&&T?H.createElement(ne,{operation:N,specActions:d,specSelectors:f,oas3Selectors:g,oas3Actions:h,path:b,method:x,onExecute:s,disabled:O}):null,D&&t&&T?H.createElement(re,{specActions:d,path:b,method:x}):null),O?H.createElement(`div`,{className:`loading-container`},H.createElement(`div`,{className:`loading`})):null,P?H.createElement(L,{responses:P,request:n,tryItOutResponse:t,getComponent:l,getConfigs:u,specSelectors:f,oas3Actions:h,oas3Selectors:g,specActions:d,produces:f.producesOptionsFor([b,x]),producesValue:f.currentProducesFor([b,x]),specPath:e.push(`responses`),path:b,method:x,displayRequestDuration:E,fn:c}):null,de&&I.size?H.createElement(ce,{extensions:I,getComponent:l}):null)))}},lQ=class extends H.PureComponent{constructor(e,t){super(e,t);let{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,t){let{op:n,layoutSelectors:r,getConfigs:i}=t,{docExpansion:a,deepLinking:o,displayOperationId:s,displayRequestDuration:c,supportedSubmitMethods:l}=i(),u=r.showSummary(),d=n.getIn([`operation`,`__originalOperationId`])||n.getIn([`operation`,`operationId`])||TE(n.get(`operation`),t.path,t.method)||n.get(`id`),f=[`operations`,t.tag,d],p=l.indexOf(t.method)>=0&&(t.allowTryItOut===void 0?t.specSelectors.allowTryItOutFor(t.path,t.method):t.allowTryItOut),m=n.getIn([`operation`,`security`])||t.specSelectors.security();return{operationId:d,isDeepLinkingEnabled:o,showSummary:u,displayOperationId:s,displayRequestDuration:c,allowTryItOut:p,security:m,isAuthorized:t.authSelectors.isAuthorized(m),isShown:r.isShown(f,a===`full`),jumpToKey:`paths.${t.path}.${t.method}`,response:t.specSelectors.responseFor(t.path,t.method),request:t.specSelectors.requestFor(t.path,t.method)}}componentDidMount(){let{isShown:e}=this.props,t=this.getResolvedSubtree();e&&t===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){let{response:t,isShown:n}=this.props,r=this.getResolvedSubtree();t!==e.response&&this.setState({executeInProgress:!1}),n&&r===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:t,operationId:n,isShown:r}=this.props,i=this.getResolvedSubtree();r||i!==void 0||this.requestResolvedSubtree(),e.show([`operations`,t,n],!r)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{let t=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n===`application/x-www-form-urlencoded`||n===`multipart/form-data`){let n=JSON.parse(t);Object.entries(n).forEach((([e,t])=>{Array.isArray(t)?n[e]=n[e].map((e=>typeof e==`object`?JSON.stringify(e,null,2):e)):typeof t==`object`&&(n[e]=JSON.stringify(n[e],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:z(n),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:t,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{let{specSelectors:e,path:t,method:n,specPath:r}=this.props;return r?e.specResolvedSubtree(r.toJS()):e.specResolvedSubtree([`paths`,t,n])};requestResolvedSubtree=()=>{let{specActions:e,path:t,method:n,specPath:r}=this.props;return r?e.requestResolvedSubtree(r.toJS()):e.requestResolvedSubtree([`paths`,t,n])};render(){let{op:e,tag:t,path:n,method:r,security:i,isAuthorized:a,operationId:o,showSummary:s,isShown:c,jumpToKey:l,allowTryItOut:u,response:d,request:f,displayOperationId:p,displayRequestDuration:m,isDeepLinkingEnabled:h,specPath:g,specSelectors:_,specActions:v,getComponent:y,getConfigs:b,layoutSelectors:x,layoutActions:S,authActions:C,authSelectors:w,oas3Actions:T,oas3Selectors:E,fn:D}=this.props,O=y(`operation`),k=this.getResolvedSubtree()||B(),A=z({op:k,tag:t,path:n,summary:e.getIn([`operation`,`summary`])||``,deprecated:k.get(`deprecated`)||e.getIn([`operation`,`deprecated`])||!1,method:r,security:i,isAuthorized:a,operationId:o,originalOperationId:k.getIn([`operation`,`__originalOperationId`]),showSummary:s,isShown:c,jumpToKey:l,allowTryItOut:u,request:f,displayOperationId:p,displayRequestDuration:m,isDeepLinkingEnabled:h,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return H.createElement(O,{operation:A,response:d,request:f,isShown:c,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:g,specActions:v,specSelectors:_,oas3Actions:T,oas3Selectors:E,layoutActions:S,layoutSelectors:x,authActions:C,authSelectors:w,getComponent:y,getConfigs:b,fn:D})}},uQ=class extends H.PureComponent{static defaultProps={operationProps:null,specPath:V(),summary:``};render(){let{isShown:e,toggleShown:t,getComponent:n,authActions:r,authSelectors:i,operationProps:a,specPath:o}=this.props,{summary:s,isAuthorized:c,method:l,op:u,showSummary:d,path:f,operationId:p,originalOperationId:m,displayOperationId:h}=a.toObject(),g=u.get(`summary`),_=a.get(`security`),v=n(`authorizeOperationBtn`,!0),y=n(`OperationSummaryMethod`),b=n(`OperationSummaryPath`),x=n(`JumpToPath`,!0),S=n(`CopyToClipboardBtn`,!0),C=n(`ArrowUpIcon`),w=n(`ArrowDownIcon`),T=_&&!!_.count(),E=T&&_.size===1&&_.first().isEmpty(),D=!T||E;return H.createElement(`div`,{className:`opblock-summary opblock-summary-${l}`},H.createElement(`button`,{"aria-expanded":e,className:`opblock-summary-control`,onClick:t},H.createElement(y,{method:l}),H.createElement(`div`,{className:`opblock-summary-path-description-wrapper`},H.createElement(b,{getComponent:n,operationProps:a,specPath:o}),d?H.createElement(`div`,{className:`opblock-summary-description`},(0,wB.default)(g||s)):null),h&&(m||p)?H.createElement(`span`,{className:`opblock-summary-operation-id`},m||p):null),H.createElement(S,{textToCopy:`${o.get(1)}`}),D?null:H.createElement(v,{isAuthorized:c,onClick:()=>{let e=i.definitionsForRequirements(_);r.showDefinitions(e)}}),H.createElement(x,{path:o}),H.createElement(`button`,{"aria-label":`${l} ${f.replace(/\//g,`/`)}`,className:`opblock-control-arrow`,"aria-expanded":e,tabIndex:`-1`,onClick:t},e?H.createElement(C,{className:`arrow`}):H.createElement(w,{className:`arrow`})))}},dQ=class extends H.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return H.createElement(`span`,{className:`opblock-summary-method`},e.toUpperCase())}},fQ=class extends H.PureComponent{render(){let{getComponent:e,operationProps:t}=this.props,{deprecated:n,isShown:r,path:i,tag:a,operationId:o,isDeepLinkingEnabled:s}=t.toObject(),c=i.split(/(?=\/)/g);for(let e=1;e<c.length;e+=2)c.splice(e,0,H.createElement(`wbr`,{key:e}));let l=e(`DeepLink`);return H.createElement(`span`,{className:n?`opblock-summary-path__deprecated`:`opblock-summary-path`,"data-path":i},H.createElement(l,{enabled:s,isShown:r,path:yG(`${a}/${o}`),text:c}))}},pQ=({extensions:e,getComponent:t})=>{let n=t(`OperationExtRow`);return H.createElement(`div`,{className:`opblock-section`},H.createElement(`div`,{className:`opblock-section-header`},H.createElement(`h4`,null,`Extensions`)),H.createElement(`div`,{className:`table-container`},H.createElement(`table`,null,H.createElement(`thead`,null,H.createElement(`tr`,null,H.createElement(`td`,{className:`col_header`},`Field`),H.createElement(`td`,{className:`col_header`},`Value`))),H.createElement(`tbody`,null,e.entrySeq().map((([e,t])=>H.createElement(n,{key:`${e}-${t}`,xKey:e,xVal:t})))))))},mQ=({xKey:e,xVal:t})=>{let n=t?t.toJS?t.toJS():t:null;return H.createElement(`tr`,null,H.createElement(`td`,null,e),H.createElement(`td`,null,JSON.stringify(n)))};function hQ(e,t=`_`){return e.replace(/[^\w-]/g,t)}var gQ=class e extends H.Component{static defaultProps={tryItOutResponse:null,produces:z([`application/json`]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:t})=>{let{oas3Actions:n,path:r,method:i}=this.props;e&&n.setResponseContentType({value:t,path:r,method:i})};render(){let{responses:t,tryItOutResponse:n,getComponent:r,getConfigs:i,specSelectors:a,fn:o,producesValue:s,displayRequestDuration:c,specPath:l,path:u,method:d,oas3Selectors:f,oas3Actions:p}=this.props,m=function(e){let t=e.keySeq();return t.contains($W)?$W:t.filter((e=>(e+``)[0]===`2`)).sort().first()}(t),h=r(`contentType`),g=r(`liveResponse`),_=r(`response`),v=this.props.produces&&this.props.produces.size?this.props.produces:e.defaultProps.produces,y=a.isOAS3()?function(e){if(!Ra.OrderedMap.isOrderedMap(e)||!e.size)return null;let t=e.find(((e,t)=>t.startsWith(`2`)&&Object.keys(e.get(`content`)||{}).length>0)),n=e.get(`default`)||Ra.OrderedMap(),r=(n.get(`content`)||Ra.OrderedMap()).keySeq().toJS().length?n:null;return t||r}(t):null,b=t.filter(((e,t)=>!xG(t))),x=hQ(`${d}${u}_responses`),S=`${x}_select`;return b&&b.size?H.createElement(`div`,{className:`responses-wrapper`},H.createElement(`div`,{className:`opblock-section-header`},H.createElement(`h4`,null,`Responses`),a.isOAS3()?null:H.createElement(`label`,{htmlFor:S},H.createElement(`span`,null,`Response content type`),H.createElement(h,{value:s,ariaControls:x,ariaLabel:`Response content type`,className:`execute-content-type`,contentTypes:v,controlId:S,onChange:this.onChangeProducesWrapper}))),H.createElement(`div`,{className:`responses-inner`},n?H.createElement(`div`,null,H.createElement(g,{response:n,getComponent:r,getConfigs:i,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),H.createElement(`h4`,null,`Responses`)):null,H.createElement(`table`,{"aria-live":`polite`,className:`responses-table`,id:x,role:`region`},H.createElement(`thead`,null,H.createElement(`tr`,{className:`responses-header`},H.createElement(`td`,{className:`col_header response-col_status`},`Code`),H.createElement(`td`,{className:`col_header response-col_description`},`Description`),a.isOAS3()?H.createElement(`td`,{className:`col col_header response-col_links`},`Links`):null)),H.createElement(`tbody`,null,b.entrySeq().map((([e,t])=>{let c=n&&n.get(`status`)==e?`response_current`:``;return H.createElement(_,{key:e,path:u,method:d,specPath:l.push(e),isDefault:m===e,fn:o,className:c,code:e,response:t,specSelectors:a,controlsAcceptHeader:t===y,onContentTypeChange:this.onResponseContentTypeChange,contentType:s,getConfigs:i,activeExamplesKey:f.activeExamplesMember(u,d,`responses`,e),oas3Actions:p,getComponent:r})})).toArray())))):null}};function _Q(e){return function(e){try{return!!JSON.parse(e)}catch{return null}}(e)?`json`:null}var vQ=class extends H.Component{constructor(e,t){super(e,t),this.state={responseContentType:``}}static defaultProps={response:z({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{let{onContentTypeChange:t,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),t({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{let{response:e,contentType:t,activeExamplesKey:n}=this.props,r=this.state.responseContentType||t,i=e.getIn([`content`,r],B({})).get(`examples`,null).keySeq().first();return n||i};render(){let{path:e,method:t,code:n,response:r,className:i,specPath:a,fn:o,getComponent:s,getConfigs:c,specSelectors:l,contentType:u,controlsAcceptHeader:d,oas3Actions:f}=this.props,{inferSchema:p,getSampleSchema:m}=o,h=l.isOAS3(),{showExtensions:g}=c(),_=g?SG(r):null,v=r.get(`headers`),y=r.get(`links`),b=s(`ResponseExtension`),x=s(`headers`),S=s(`HighlightCode`,!0),C=s(`modelExample`),w=s(`Markdown`,!0),T=s(`operationLink`),E=s(`contentType`),D=s(`ExamplesSelect`),O=s(`Example`);var k,A;let j=this.state.responseContentType||u,M=r.getIn([`content`,j],B({})),N=M.get(`examples`,null);if(h){let e=M.get(`schema`);k=e?p(e.toJS()):null,A=e?a.push(`content`,this.state.responseContentType,`schema`):a}else k=r.get(`schema`),A=r.has(`schema`)?a.push(`schema`):a;let P,ee,te=!1,F={includeReadOnly:!0};if(h){if(ee=M.get(`schema`)?.toJS(),B.isMap(N)&&!N.isEmpty()){let e=this.getTargetExamplesKey(),t=e=>B.isMap(e)?e.get(`value`):void 0;P=t(N.get(e,B({}))),P===void 0&&(P=t(N.values().next().value)),te=!0}else M.get(`example`)!==void 0&&(P=M.get(`example`),te=!0)}else{ee=k,F={...F,includeWriteOnly:!0};let e=r.getIn([`examples`,j]);e&&(P=e,te=!0)}let I=((e,t)=>{if(e==null)return null;let n=_Q(e)?`json`:null;return H.createElement(`div`,null,H.createElement(t,{className:`example`,language:n},TG(e)))})(m(ee,j,F,te?P:void 0),S);return H.createElement(`tr`,{className:`response `+(i||``),"data-code":n},H.createElement(`td`,{className:`response-col_status`},n),H.createElement(`td`,{className:`response-col_description`},H.createElement(`div`,{className:`response-col_description__inner`},H.createElement(w,{source:r.get(`description`)})),g&&_.size?_.entrySeq().map((([e,t])=>H.createElement(b,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,h&&r.get(`content`)?H.createElement(`section`,{className:`response-controls`},H.createElement(`div`,{className:(0,Dp.default)(`response-control-media-type`,{"response-control-media-type--accept-controller":d})},H.createElement(`small`,{className:`response-control-media-type__title`},`Media type`),H.createElement(E,{value:this.state.responseContentType,contentTypes:r.get(`content`)?r.get(`content`).keySeq():xi(),onChange:this._onContentTypeChange,ariaLabel:`Media Type`}),d?H.createElement(`small`,{className:`response-control-media-type__accept-message`},`Controls `,H.createElement(`code`,null,`Accept`),` header.`):null),B.isMap(N)&&!N.isEmpty()?H.createElement(`div`,{className:`response-control-examples`},H.createElement(`small`,{className:`response-control-examples__title`},`Examples`),H.createElement(D,{examples:N,currentExampleKey:this.getTargetExamplesKey(),onSelect:r=>f.setActiveExamplesMember({name:r,pathMethod:[e,t],contextType:`responses`,contextName:n}),showLabels:!1})):null):null,I||k?H.createElement(C,{specPath:A,getComponent:s,getConfigs:c,specSelectors:l,schema:rG(k),example:I,includeReadOnly:!0}):null,h&&N?H.createElement(O,{example:N.get(this.getTargetExamplesKey(),B({})),getComponent:s,getConfigs:c,omitValue:!0}):null,v?H.createElement(x,{headers:v,getComponent:s}):null),h?H.createElement(`td`,{className:`response-col_links`},y?y.toSeq().entrySeq().map((([e,t])=>H.createElement(T,{key:e,name:e,link:t,getComponent:s}))):H.createElement(`i`,null,`No links`)):null)}},yQ=({xKey:e,xVal:t})=>H.createElement(`div`,{className:`response__extension`},e,`: `,String(t)),bQ=class extends H.PureComponent{state={parsedContent:null};updateParsedContent=e=>{let{content:t}=this.props;if(e!==t){if(t&&t instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(t)}else this.setState({parsedContent:t.toString()})}};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:t,url:n,headers:r={},getComponent:i}=this.props,{parsedContent:a}=this.state,o=i(`HighlightCode`,!0),s=`response_`+new Date().getTime(),c,l;if(n||=``,(/^application\/octet-stream/i.test(t)||r[`Content-Disposition`]&&/attachment/i.test(r[`Content-Disposition`])||r[`content-disposition`]&&/attachment/i.test(r[`content-disposition`])||r[`Content-Description`]&&/File Transfer/i.test(r[`Content-Description`])||r[`content-description`]&&/File Transfer/i.test(r[`content-description`]))&&(e.size>0||e.length>0)){if(`Blob`in window){let i=t||`text/html`,a=e instanceof Blob?e:new Blob([e],{type:i}),o=window.URL.createObjectURL(a),s=[i,n.substr(n.lastIndexOf(`/`)+1),o].join(`:`),c=r[`content-disposition`]||r[`Content-Disposition`];if(c!==void 0){let e=function(e){let t;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((n=>(t=n.exec(e),t!==null))),t!==null&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}(c);e!==null&&(s=e)}l=GW.navigator&&GW.navigator.msSaveOrOpenBlob?H.createElement(`div`,null,H.createElement(`a`,{href:o,onClick:()=>GW.navigator.msSaveOrOpenBlob(a,s)},`Download file`)):H.createElement(`div`,null,H.createElement(`a`,{href:o,download:s},`Download file`))}else l=H.createElement(`pre`,{className:`microlight`},`Download headers detected but your browser does not support downloading binary via XHR (Blob).`)}else if(/json/i.test(t)){let t=null;_Q(e)&&(t=`json`);try{c=JSON.stringify(JSON.parse(e),null,` `)}catch{c=`can't parse JSON. Raw result:
|
|
234
|
-
|
|
235
|
-
`+e}l=H.createElement(o,{language:t,downloadable:!0,fileName:`${s}.json`,canCopy:!0},c)}else/xml/i.test(t)?(c=(0,DB.default)(e,{textNodesOnSameLine:!0,indentor:` `}),l=H.createElement(o,{downloadable:!0,fileName:`${s}.xml`,canCopy:!0},c)):l=(0,OB.default)(t)===`text/html`||/text\/plain/.test(t)?H.createElement(o,{downloadable:!0,fileName:`${s}.html`,canCopy:!0},e):(0,OB.default)(t)===`text/csv`||/text\/csv/.test(t)?H.createElement(o,{downloadable:!0,fileName:`${s}.csv`,canCopy:!0},e):/^image\//i.test(t)?t.includes(`svg`)?H.createElement(`div`,null,` `,e,` `):H.createElement(`img`,{src:window.URL.createObjectURL(e)}):/^audio\//i.test(t)?H.createElement(`pre`,{className:`microlight`},H.createElement(`audio`,{controls:!0,key:n},H.createElement(`source`,{src:n,type:t}))):typeof e==`string`?H.createElement(o,{downloadable:!0,fileName:`${s}.txt`,canCopy:!0},e):e.size>0?a?H.createElement(`div`,null,H.createElement(`p`,{className:`i`},`Unrecognized response type; displaying content as text.`),H.createElement(o,{downloadable:!0,fileName:`${s}.txt`,canCopy:!0},a)):H.createElement(`p`,{className:`i`},`Unrecognized response type; unable to display.`):null;return l?H.createElement(`div`,null,H.createElement(`h5`,null,`Response body`),l):null}},xQ=class extends H.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,t,n)=>{let{specActions:{changeParamByIdentity:r},onChangeKey:i}=this.props;r(i,e,t,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:t},onChangeKey:n}=this.props;t(n,e)};toggleTab=e=>e===`parameters`?this.setState({parametersVisible:!0,callbackVisible:!1}):e===`callbacks`?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:t})=>{let{specActions:n,oas3Selectors:r,oas3Actions:i}=this.props,a=r.hasUserEditedBody(...t),o=r.shouldRetainRequestBodyValue(...t);i.setRequestContentType({value:e,pathMethod:t}),i.initRequestBodyValidateError({pathMethod:t}),a||(o||i.setRequestBodyValue({value:void 0,pathMethod:t}),n.clearResponse(...t),n.clearRequest(...t),n.clearValidateParams(t))};render(){let{onTryoutClick:e,onResetClick:t,parameters:n,allowTryItOut:r,tryItOutEnabled:i,specPath:a,fn:o,getComponent:s,getConfigs:c,specSelectors:l,specActions:u,pathMethod:d,oas3Actions:f,oas3Selectors:p,operation:m}=this.props,h=s(`parameterRow`),g=s(`TryItOutButton`),_=s(`contentType`),v=s(`Callbacks`,!0),y=s(`RequestBody`,!0),b=i&&r,x=l.isOAS3(),S=`${hQ(`${d[1]}${d[0]}_requests`)}_select`,C=m.get(`requestBody`),w=Object.values(n.reduce(((e,t)=>{if(B.isMap(t)){let n=t.get(`in`);e[n]??=[],e[n].push(t)}return e}),{})).reduce(((e,t)=>e.concat(t)),[]);return H.createElement(`div`,{className:`opblock-section`},H.createElement(`div`,{className:`opblock-section-header`},x?H.createElement(`div`,{className:`tab-header`},H.createElement(`div`,{onClick:()=>this.toggleTab(`parameters`),className:`tab-item ${this.state.parametersVisible&&`active`}`},H.createElement(`h4`,{className:`opblock-title`},H.createElement(`span`,null,`Parameters`))),m.get(`callbacks`)?H.createElement(`div`,{onClick:()=>this.toggleTab(`callbacks`),className:`tab-item ${this.state.callbackVisible&&`active`}`},H.createElement(`h4`,{className:`opblock-title`},H.createElement(`span`,null,`Callbacks`))):null):H.createElement(`div`,{className:`tab-header`},H.createElement(`h4`,{className:`opblock-title`},`Parameters`)),r?H.createElement(g,{isOAS3:l.isOAS3(),hasUserEditedBody:p.hasUserEditedBody(...d),enabled:i,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>t(d)}):null),this.state.parametersVisible?H.createElement(`div`,{className:`parameters-container`},w.length?H.createElement(`div`,{className:`table-container`},H.createElement(`table`,{className:`parameters`},H.createElement(`thead`,null,H.createElement(`tr`,null,H.createElement(`th`,{className:`col_header parameters-col_name`},`Name`),H.createElement(`th`,{className:`col_header parameters-col_description`},`Description`))),H.createElement(`tbody`,null,w.map(((e,t)=>H.createElement(h,{fn:o,specPath:a.push(t.toString()),getComponent:s,getConfigs:c,rawParam:e,param:l.parameterWithMetaByIdentity(d,e),key:`${e.get(`in`)}.${e.get(`name`)}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:l,specActions:u,oas3Actions:f,oas3Selectors:p,pathMethod:d,isExecute:b})))))):H.createElement(`div`,{className:`opblock-description-wrapper`},H.createElement(`p`,null,`No parameters`))):null,this.state.callbackVisible?H.createElement(`div`,{className:`callbacks-container opblock-description-wrapper`},H.createElement(v,{callbacks:B(m.get(`callbacks`)),specPath:a.slice(0,-1).push(`callbacks`)})):null,x&&C&&this.state.parametersVisible&&H.createElement(`div`,{className:`opblock-section opblock-section-request-body`},H.createElement(`div`,{className:`opblock-section-header`},H.createElement(`h4`,{className:`opblock-title parameter__name ${C.get(`required`)&&`required`}`},`Request body`),H.createElement(`label`,{id:S},H.createElement(_,{value:p.requestContentType(...d),contentTypes:C.get(`content`,V()).keySeq(),onChange:e=>{this.onChangeMediaType({value:e,pathMethod:d})},className:`body-param-content-type`,ariaLabel:`Request content type`,controlId:S}))),H.createElement(`div`,{className:`opblock-description-wrapper`},H.createElement(y,{setRetainRequestBodyValueFlag:e=>f.setRetainRequestBodyValueFlag({value:e,pathMethod:d}),userHasEditedBody:p.hasUserEditedBody(...d),specPath:a.slice(0,-1).push(`requestBody`),requestBody:C,requestBodyValue:p.requestBodyValue(...d),requestBodyInclusionSetting:p.requestBodyInclusionSetting(...d),requestBodyErrors:p.requestBodyErrors(...d),isExecute:b,getConfigs:c,activeExamplesKey:p.activeExamplesMember(...d,`requestBody`,`requestBody`),updateActiveExamplesKey:e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:`requestBody`,contextName:`requestBody`})},onChange:(e,t)=>{if(t){let n=p.requestBodyValue(...d),r=B.isMap(n)?n:B();return f.setRequestBodyValue({pathMethod:d,value:r.setIn(t,e)})}f.setRequestBodyValue({value:e,pathMethod:d})},onChangeIncludeEmpty:(e,t)=>{f.setRequestBodyInclusion({pathMethod:d,value:t,name:e})},contentType:p.requestContentType(...d)}))))}},SQ=({xKey:e,xVal:t})=>H.createElement(`div`,{className:`parameter__extension`},e,`: `,String(t)),CQ={onChange:()=>{},isIncludedOptions:{}},wQ=class extends H.Component{static defaultProps=CQ;componentDidMount(){let{isIncludedOptions:e,onChange:t}=this.props,{shouldDispatchInit:n,defaultValue:r}=e;n&&t(r)}onCheckboxChange=e=>{let{onChange:t}=this.props;t(e.target.checked)};render(){let{isIncluded:e,isDisabled:t}=this.props;return H.createElement(`div`,null,H.createElement(`label`,{htmlFor:`include_empty_value`,className:(0,Dp.default)(`parameter__empty_value_toggle`,{disabled:t})},H.createElement(`input`,{id:`include_empty_value`,type:`checkbox`,disabled:t,checked:!t&&e,onChange:this.onCheckboxChange}),`Send empty value`))}},TQ=e=>{if(V.isList(e))return e;if(typeof e!=`string`)return null;try{let t=JSON.parse(e);return Array.isArray(t)?V(t):null}catch{return null}},EQ=class extends H.Component{constructor(e,t){super(e,t),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let t,{specSelectors:n,pathMethod:r,rawParam:i}=e,a=n.isOAS3(),o=n.parameterWithMetaByIdentity(r,i)||new B;if(o=o.isEmpty()?i:o,a){let{schema:e}=ZW(o,{isOAS3:a});t=e?e.get(`enum`):void 0}else t=o?o.get(`enum`):void 0;let s,c=o?o.get(`value`):void 0;c===void 0?i.get(`required`)&&t&&t.size&&(s=t.first()):s=c,s!==void 0&&s!==c&&this.onChangeWrapper(function(e){return typeof e==`number`?e.toString():e}(s)),this.setDefaultValue()}onChangeWrapper=(e,t=!1)=>{let n,{onChange:r,rawParam:i}=this.props;return n=e===``||e&&e.size===0?null:e,r(i,n,t)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:`parameters`,contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:t,param:n,pathMethod:r}=this.props,i=n.get(`name`),a=n.get(`in`);return t.updateEmptyParamInclusion(r,i,a,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:t,rawParam:n,oas3Selectors:r,fn:i}=this.props,a=e.isOAS3(),o=e.parameterWithMetaByIdentity(t,n)||B(),{schema:s}=ZW(o,{isOAS3:a}),c=o.get(`content`,B()).keySeq().first(),l=s?i.getSampleSchema(s.toJS(),c,{includeWriteOnly:!0}):null;if(o&&o.get(`value`)===void 0&&o.get(`in`)!==`body`){let n;if(e.isSwagger2())n=o.get(`x-example`)===void 0?o.getIn([`schema`,`example`])===void 0?s&&s.getIn([`default`]):o.getIn([`schema`,`example`]):o.get(`x-example`);else if(a){s=this.composeJsonSchema(s);let e=r.activeExamplesMember(...t,`parameters`,this.getParamKey());n=o.getIn([`examples`,e,`value`])===void 0?o.getIn([`content`,c,`example`])===void 0?o.get(`example`)===void 0?(s&&s.get(`example`))===void 0?(s&&s.get(`default`))===void 0?o.get(`default`):s&&s.get(`default`):s&&s.get(`example`):o.get(`example`):o.getIn([`content`,c,`example`]):o.getIn([`examples`,e,`value`])}n===void 0||V.isList(n)||(n=TG(n));let u=i.getSchemaObjectType(s),d=i.getSchemaObjectType(s?.get(`items`)),f=V.isList(s?.get(`type`));if(a&&u===`array`&&!f&&n!==void 0){let e=TQ(n);this.onChangeWrapper(e);return}if(n!==void 0)this.onChangeWrapper(n);else if(u===`object`&&l&&!o.get(`examples`))this.onChangeWrapper(V.isList(l)?l:TG(l));else if(u===`array`&&d===`object`&&l&&!o.get(`examples`)){let e=TQ(l);this.onChangeWrapper(e)}}};onExampleValueUpdate=e=>{let{specSelectors:t,pathMethod:n,rawParam:r,fn:i}=this.props,{schema:a}=ZW(t.parameterWithMetaByIdentity(n,r)||B(),{isOAS3:!0});a&&=this.composeJsonSchema(a);let o=i.getSchemaObjectType(a),s=V.isList(a?.get(`type`));if(o!==`array`||s)this.onChangeWrapper(e);else{let t=TQ(e);this.onChangeWrapper(t)}};getParamKey(){let{param:e}=this.props;return e?`${e.get(`name`)}-${e.get(`in`)}`:null}composeJsonSchema(e){let{fn:t}=this.props,n=e.get(`oneOf`)?.get(0)?.toJS(),r=e.get(`anyOf`)?.get(0)?.toJS();return z(t.mergeJsonSchema(e.toJS(),n??r??{}))}render(){let{param:e,rawParam:t,getComponent:n,getConfigs:r,isExecute:i,fn:a,onChangeConsumes:o,specSelectors:s,pathMethod:c,specPath:l,oas3Selectors:u}=this.props,d=s.isOAS3(),{showExtensions:f,showCommonExtensions:p}=r();if(e||=t,!t)return null;let m=n(`JsonSchemaForm`),h=n(`ParamBody`),g=e.get(`in`),_=g===`body`?H.createElement(h,{getComponent:n,getConfigs:r,fn:a,param:e,consumes:s.consumesOptionsFor(c),consumesValue:s.contentTypeValues(c).get(`requestContentType`),onChange:this.onChangeWrapper,onChangeConsumes:o,isExecute:i,specSelectors:s,pathMethod:c}):null,v=n(`modelExample`),y=n(`Markdown`,!0),b=n(`ParameterExt`),x=n(`ParameterIncludeEmpty`),S=n(`ExamplesSelectValueRetainer`),C=n(`Example`),{schema:w}=ZW(e,{isOAS3:d}),T=s.parameterWithMetaByIdentity(c,t)||B(),E=T.get(`content`,B()).keySeq().first();d&&(w=this.composeJsonSchema(w));let D=w?w.get(`format`):null,O=g===`formData`,k=`FormData`in GW,A=e.get(`required`),j=a.getSchemaObjectType(w),M=a.getSchemaObjectType(w?.get(`items`)),N=a.getSchemaObjectTypeLabel(w),P=!_&&j===`object`,ee=!_&&M===`object`,te,F,I,L,R=T?T.get(`value`):``,ne=p?CG(w):null,re=f?SG(e):null,ie=!1;e!==void 0&&w&&(te=w.get(`items`)),te===void 0?w&&(F=w.get(`enum`)):(F=te.get(`enum`),I=te.get(`default`)),F&&F.size&&F.size>0&&(ie=!0),e!==void 0&&(w&&(I=w.get(`default`)),I===void 0&&(I=e.get(`default`)),L=e.get(`example`),L===void 0&&(L=e.get(`x-example`)));let ae=_?null:H.createElement(m,{fn:a,getComponent:n,value:R,required:A,disabled:!i,description:e.get(`name`),onChange:this.onChangeWrapper,errors:T.get(`errors`),schema:w});return H.createElement(`tr`,{"data-param-name":e.get(`name`),"data-param-in":e.get(`in`)},H.createElement(`td`,{className:`parameters-col_name`},H.createElement(`div`,{className:A?`parameter__name required`:`parameter__name`},e.get(`name`),A?H.createElement(`span`,null,`\xA0*`):null),H.createElement(`div`,{className:`parameter__type`},N,D&&H.createElement(`span`,{className:`prop-format`},`($`,D,`)`)),H.createElement(`div`,{className:`parameter__deprecated`},d&&e.get(`deprecated`)?`deprecated`:null),H.createElement(`div`,{className:`parameter__in`},`(`,e.get(`in`),`)`)),H.createElement(`td`,{className:`parameters-col_description`},e.get(`description`)?H.createElement(y,{source:e.get(`description`)}):null,!_&&i||!ie?null:H.createElement(y,{className:`parameter__enum`,source:`<i>Available values</i> : `+F.map((function(e){return e})).toArray().map(String).join(`, `)}),!_&&i||I===void 0?null:H.createElement(y,{className:`parameter__default`,source:`<i>Default value</i> : `+I}),!_&&i||L===void 0?null:H.createElement(y,{source:`<i>Example</i> : `+L}),O&&!k&&H.createElement(`div`,null,`Error: your browser does not support FormData`),d&&e.get(`examples`)?H.createElement(`section`,{className:`parameter-controls`},H.createElement(S,{examples:e.get(`examples`),onSelect:this._onExampleSelect,updateValue:this.onExampleValueUpdate,getComponent:n,defaultToFirstExample:!0,currentKey:u.activeExamplesMember(...c,`parameters`,this.getParamKey()),currentUserInputValue:R})):null,P||ee?H.createElement(v,{getComponent:n,specPath:E?l.push(`content`,E,`schema`):l.push(`schema`),getConfigs:r,isExecute:i,specSelectors:s,schema:w,example:ae}):ae,_&&w?H.createElement(v,{getComponent:n,specPath:l.push(`schema`),getConfigs:r,isExecute:i,specSelectors:s,schema:w,example:_,includeWriteOnly:!0}):null,!_&&i&&e.get(`allowEmptyValue`)?H.createElement(x,{onChange:this.onChangeIncludeEmpty,isIncluded:s.parameterInclusionSettingFor(c,e.get(`name`),e.get(`in`)),isDisabled:!kG(R)}):null,d&&e.get(`examples`)?H.createElement(C,{example:e.getIn([`examples`,u.activeExamplesMember(...c,`parameters`,this.getParamKey())]),getComponent:n,getConfigs:r}):null,p&&ne.size?ne.entrySeq().map((([e,t])=>H.createElement(b,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,f&&re.size?re.entrySeq().map((([e,t])=>H.createElement(b,{key:`${e}-${t}`,xKey:e,xVal:t}))):null))}},DQ=class extends H.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:t,path:n,method:r}=this.props;return t.validateParams([n,r]),e.validateBeforeExecute([n,r])};handleValidateRequestBody=()=>{let{path:e,method:t,specSelectors:n,oas3Selectors:r,oas3Actions:i}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};i.clearRequestBodyValidateError({path:e,method:t});let o=n.getOAS3RequiredRequestBodyContentType([e,t]),s=r.requestBodyValue(e,t),c=r.validateBeforeExecute([e,t]),l=r.requestContentType(e,t);if(!c)return a.missingBodyValue=!0,i.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1;if(!o)return!0;let u=r.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:l,oas3RequestBodyValue:s});return!u||u.length<1||(u.forEach((e=>{a.missingRequiredKeys.push(e)})),i.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:t,path:n,method:r}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:t,path:n,method:r})};handleValidationResultFail=()=>{let{specActions:e,path:t,method:n}=this.props;e.clearValidateParams([t,n]),setTimeout((()=>{e.validateParams([t,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),t=this.handleValidateRequestBody(),n=e&&t;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){let{disabled:e}=this.props;return H.createElement(`button`,{className:`btn execute opblock-control__btn`,onClick:this.onClick,disabled:e},`Execute`)}},OQ=class extends H.Component{render(){let{headers:e,getComponent:t}=this.props,n=t(`Property`),r=t(`Markdown`,!0);return e&&e.size?H.createElement(`div`,{className:`headers-wrapper`},H.createElement(`h4`,{className:`headers__title`},`Headers:`),H.createElement(`table`,{className:`headers`},H.createElement(`thead`,null,H.createElement(`tr`,{className:`header-row`},H.createElement(`th`,{className:`header-col`},`Name`),H.createElement(`th`,{className:`header-col`},`Description`),H.createElement(`th`,{className:`header-col`},`Type`))),H.createElement(`tbody`,null,e.entrySeq().map((([e,t])=>{if(!Ra.Map.isMap(t))return null;let i=t.get(`description`),a=t.getIn([`schema`])?t.getIn([`schema`,`type`]):t.getIn([`type`]),o=t.getIn([`schema`,`example`]);return H.createElement(`tr`,{key:e},H.createElement(`td`,{className:`header-col`},e),H.createElement(`td`,{className:`header-col`},i?H.createElement(r,{source:i}):null),H.createElement(`td`,{className:`header-col`},a,` `,o?H.createElement(n,{propKey:`Example`,propVal:o,propClass:`header-example`}):null))})).toArray()))):null}},kQ=class extends H.Component{render(){let{editorActions:e,errSelectors:t,layoutSelectors:n,layoutActions:r,getComponent:i}=this.props,a=i(`Collapse`);if(e&&e.jumpToLine)var o=e.jumpToLine;let s=t.allErrors().filter((e=>e.get(`type`)===`thrown`||e.get(`level`)===`error`));if(!s||s.count()<1)return null;let c=n.isShown([`errorPane`],!0),l=s.sortBy((e=>e.get(`line`)));return H.createElement(`pre`,{className:`errors-wrapper`},H.createElement(`hgroup`,{className:`error`},H.createElement(`h4`,{className:`errors__title`},`Errors`),H.createElement(`button`,{className:`btn errors__clear-btn`,onClick:()=>r.show([`errorPane`],!c)},c?`Hide`:`Show`)),H.createElement(a,{isOpened:c,animated:!0},H.createElement(`div`,{className:`errors`},l.map(((e,t)=>{let n=e.get(`type`);return n===`thrown`||n===`auth`?H.createElement(AQ,{key:t,error:e.get(`error`)||e,jumpToLine:o}):n===`spec`?H.createElement(jQ,{key:t,error:e,jumpToLine:o}):void 0})))))}},AQ=({error:e,jumpToLine:t})=>{if(!e)return null;let n=e.get(`line`);return H.createElement(`div`,{className:`error-wrapper`},e?H.createElement(`div`,null,H.createElement(`h4`,null,e.get(`source`)&&e.get(`level`)?MQ(e.get(`source`))+` `+e.get(`level`):``,e.get(`path`)?H.createElement(`small`,null,` at `,e.get(`path`)):null),H.createElement(`span`,{className:`message thrown`},e.get(`message`)),H.createElement(`div`,{className:`error-line`},n&&t?H.createElement(`a`,{onClick:t.bind(null,n)},`Jump to line `,n):null)):null)},jQ=({error:e,jumpToLine:t=null})=>{let n=null;return e.get(`path`)?n=V.isList(e.get(`path`))?H.createElement(`small`,null,`at `,e.get(`path`).join(`.`)):H.createElement(`small`,null,`at `,e.get(`path`)):e.get(`line`)&&!t&&(n=H.createElement(`small`,null,`on line `,e.get(`line`))),H.createElement(`div`,{className:`error-wrapper`},e?H.createElement(`div`,null,H.createElement(`h4`,null,MQ(e.get(`source`))+` `+e.get(`level`),`\xA0`,n),H.createElement(`span`,{className:`message`},e.get(`message`)),H.createElement(`div`,{className:`error-line`},t?H.createElement(`a`,{onClick:t.bind(null,e.get(`line`))},`Jump to line `,e.get(`line`)):null)):null)};function MQ(e){return(e||``).split(` `).map((e=>e[0].toUpperCase()+e.slice(1))).join(` `)}var NQ=()=>{},PQ=class extends H.Component{static defaultProps={onChange:NQ,value:null,contentTypes:z([`application/json`])};componentDidMount(){let{contentTypes:e,onChange:t}=this.props;e&&e.size&&t(e.first())}componentDidUpdate(){let{contentTypes:e,value:t,onChange:n}=this.props;e&&e.size&&(e.includes(t)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:t,className:n,contentTypes:r,controlId:i,value:a}=this.props;return r&&r.size?H.createElement(`div`,{className:`content-type-wrapper `+(n||``)},H.createElement(`select`,{"aria-controls":e,"aria-label":t,className:`content-type`,id:i,onChange:this.onChangeWrapper,value:a||``},r.map((e=>H.createElement(`option`,{key:e,value:e},e))).toArray())):null}};function FQ(...e){return e.filter((e=>!!e)).join(` `).trim()}var IQ=class extends H.Component{render(){let{fullscreen:e,full:t,...n}=this.props;if(e)return H.createElement(`section`,n);let r=`swagger-container`+(t?`-full`:``);return H.createElement(`section`,xp({},n,{className:FQ(n.className,r)}))}},LQ={mobile:``,tablet:`-tablet`,desktop:`-desktop`,large:`-hd`},RQ=class extends H.Component{render(){let{hide:e,keepContents:t,mobile:n,tablet:r,desktop:i,large:a,...o}=this.props;if(e&&!t)return H.createElement(`span`,null);let s=[];for(let e in LQ){if(!Object.prototype.hasOwnProperty.call(LQ,e))continue;let t=LQ[e];if(e in this.props){let n=this.props[e];if(n<1){s.push(`none`+t);continue}s.push(`block`+t),s.push(`col-`+n+t)}}e&&s.push(`hidden`);let c=FQ(o.className,...s);return H.createElement(`section`,xp({},o,{className:c}))}},zQ=class extends H.Component{render(){return H.createElement(`div`,xp({},this.props,{className:FQ(this.props.className,`wrapper`)}))}},BQ=class extends H.Component{static defaultProps={className:``};render(){return H.createElement(`button`,xp({},this.props,{className:FQ(this.props.className,`button`)}))}},VQ=e=>H.createElement(`textarea`,e),HQ=e=>H.createElement(`input`,e),UQ=class extends H.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,t){let n;super(e,t),n=e.value?e.value:e.multiple?[``]:``,this.state={value:n}}onChange=e=>{let t,{onChange:n,multiple:r}=this.props,i=[].slice.call(e.target.options);t=r?i.filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value,this.setState({value:t}),n&&n(t)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:t,allowEmptyValue:n,disabled:r}=this.props,i=this.state.value?.toJS?.()||this.state.value;return H.createElement(`select`,{className:this.props.className,multiple:t,value:i,onChange:this.onChange,disabled:r},n?H.createElement(`option`,{value:``},`--`):null,e.map((function(e,t){return H.createElement(`option`,{key:t,value:String(e)},String(e))})))}},WQ=class extends H.Component{render(){return H.createElement(`a`,xp({},this.props,{rel:`noopener noreferrer`,className:FQ(this.props.className,`link`)}))}},GQ=({children:e})=>H.createElement(`div`,{className:`no-margin`},` `,e,` `),KQ=class extends H.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?H.createElement(GQ,null,this.props.children):H.createElement(`noscript`,null)}render(){let{animated:e,isOpened:t,children:n}=this.props;return e?(n=t?n:null,H.createElement(GQ,null,n)):this.renderNotAnimated()}},qQ=class extends H.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,t){this.props.layoutActions.show(e,t)}showOp(e,t){let{layoutActions:n}=this.props;n.show(e,t)}render(){let{specSelectors:e,layoutSelectors:t,layoutActions:n,getComponent:r}=this.props,i=e.taggedOperations(),a=r(`Collapse`);return H.createElement(`div`,null,H.createElement(`h4`,{className:`overview-title`},`Overview`),i.map(((e,r)=>{let i=e.get(`operations`),o=[`overview-tags`,r],s=t.isShown(o,!0);return H.createElement(`div`,{key:`overview-`+r},H.createElement(`h4`,{onClick:()=>n.show(o,!s),className:`link overview-tag`},` `,s?`-`:`+`,r),H.createElement(a,{isOpened:s,animated:!0},i.map((e=>{let{path:r,method:i,id:a}=e.toObject(),o=`operations`,s=a,c=t.isShown([o,s]);return H.createElement(JQ,{key:a,path:r,method:i,id:r+`-`+i,shown:c,showOpId:s,showOpIdPrefix:o,href:`#operation-${s}`,onClick:n.show})})).toArray()))})).valueSeq().toArray(),i.size<1&&H.createElement(`h3`,null,` No operations defined in spec! `))}},JQ=class extends H.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:t,onClick:n,shown:r}=this.props;n([t,e],!r)}render(){let{id:e,method:t,shown:n,href:r}=this.props;return H.createElement(WQ,{href:r,onClick:this.onClick,className:`block opblock-link `+(n?`shown`:``)},H.createElement(`div`,null,H.createElement(`small`,{className:`bold-label-${t}`},t.toUpperCase()),H.createElement(`span`,{className:`bold-label`},e)))}},YQ=class extends H.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){let{value:e,defaultValue:t,initialValue:n,...r}=this.props;return H.createElement(`input`,xp({},r,{ref:e=>this.inputRef=e}))}},XQ=class extends H.Component{render(){let{host:e,basePath:t}=this.props;return H.createElement(`pre`,{className:`base-url`},`[ Base URL: `,e,t,` ]`)}},ZQ=class extends H.PureComponent{render(){let{url:e,getComponent:t}=this.props,n=t(`Link`);return H.createElement(n,{target:`_blank`,href:iJ(e)},H.createElement(`span`,{className:`url`},` `,e))}},QQ=class extends H.Component{render(){let{info:e,url:t,host:n,basePath:r,getComponent:i,externalDocs:a,selectedServer:o,url:s}=this.props,c=e.get(`version`),l=e.get(`description`),u=e.get(`title`),d=rJ(e.get(`termsOfService`),s,{selectedServer:o}),f=e.get(`contact`),p=e.get(`license`),m=rJ(a&&a.get(`url`),s,{selectedServer:o}),h=a&&a.get(`description`),g=i(`Markdown`,!0),_=i(`Link`),v=i(`VersionStamp`),y=i(`OpenAPIVersion`),b=i(`InfoUrl`),x=i(`InfoBasePath`),S=i(`License`),C=i(`Contact`);return H.createElement(`div`,{className:`info`},H.createElement(`hgroup`,{className:`main`},H.createElement(`h1`,{className:`title`},u,H.createElement(`span`,null,c&&H.createElement(v,{version:c}),H.createElement(y,{oasVersion:`2.0`}))),n||r?H.createElement(x,{host:n,basePath:r}):null,t&&H.createElement(b,{getComponent:i,url:t})),H.createElement(`div`,{className:`description`},H.createElement(g,{source:l})),d&&H.createElement(`div`,{className:`info__tos`},H.createElement(_,{target:`_blank`,href:iJ(d)},`Terms of service`)),f?.size>0&&H.createElement(C,{getComponent:i,data:f,selectedServer:o,url:t}),p?.size>0&&H.createElement(S,{getComponent:i,license:p,selectedServer:o,url:t}),m?H.createElement(_,{className:`info__extdocs`,target:`_blank`,href:iJ(m)},h||m):null)}},$Q=class extends H.Component{render(){let{specSelectors:e,getComponent:t,oas3Selectors:n}=this.props,r=e.info(),i=e.url(),a=e.basePath(),o=e.host(),s=e.externalDocs(),c=n.selectedServer(),l=t(`info`);return H.createElement(`div`,null,r&&r.count()?H.createElement(l,{info:r,url:i,host:o,basePath:a,externalDocs:s,getComponent:t,selectedServer:c}):null)}},e$=class extends H.Component{render(){let{data:e,getComponent:t,selectedServer:n,url:r}=this.props,i=e.get(`name`,`the developer`),a=rJ(e.get(`url`),r,{selectedServer:n}),o=e.get(`email`),s=t(`Link`);return H.createElement(`div`,{className:`info__contact`},a&&H.createElement(`div`,null,H.createElement(s,{href:iJ(a),target:`_blank`},i,` - Website`)),o&&H.createElement(s,{href:iJ(`mailto:${o}`)},a?`Send email to ${i}`:`Contact ${i}`))}},t$=class extends H.Component{render(){let{license:e,getComponent:t,selectedServer:n,url:r}=this.props,i=e.get(`name`,`License`),a=rJ(e.get(`url`),r,{selectedServer:n}),o=t(`Link`);return H.createElement(`div`,{className:`info__license`},a?H.createElement(`div`,{className:`info__license__url`},H.createElement(o,{target:`_blank`,href:iJ(a)},i)):H.createElement(`span`,null,i))}},n$=class extends H.Component{render(){return null}},r$=class extends H.Component{render(){let{getComponent:e}=this.props,t=e(`CopyIcon`);return H.createElement(`div`,{className:`view-line-link copy-to-clipboard`,title:`Copy to clipboard`},H.createElement(Op.CopyToClipboard,{text:this.props.textToCopy},H.createElement(t,null)))}},i$=class extends H.Component{render(){return H.createElement(`div`,{className:`footer`})}},a$=class extends H.Component{onFilterChange=e=>{let{target:{value:t}}=e;this.props.layoutActions.updateFilter(t)};render(){let{specSelectors:e,layoutSelectors:t,getComponent:n}=this.props,r=n(`Col`),i=e.loadingStatus()===`loading`,a=e.loadingStatus()===`failed`,o=t.currentFilter(),s=[`operation-filter-input`];return a&&s.push(`failed`),i&&s.push(`loading`),H.createElement(`div`,null,!1===o?null:H.createElement(`div`,{className:`filter-container`},H.createElement(r,{className:`filter wrapper`,mobile:12},H.createElement(`input`,{className:s.join(` `),placeholder:`Filter by tag`,type:`text`,onChange:this.onFilterChange,value:typeof o==`string`?o:``,disabled:i}))))}},o$=Function.prototype,s$=class e extends H.PureComponent{static defaultProp={consumes:z([`application/json`]),param:z({}),onChange:o$,onChangeConsumes:o$};constructor(e,t){super(e,t),this.state={isEditBox:!1,value:``}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:t,isExecute:n,consumesValue:r=``}=e,i=/xml/i.test(r),a=/json/i.test(r),o=i?t.get(`value_xml`):t.get(`value`);if(o!==void 0){let e=!o&&a?`{}`:o;this.setState({value:e}),this.onChange(e,{isXml:i,isEditBox:n})}else i?this.onChange(this.sample(`xml`),{isXml:i,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:t,fn:n}=this.props,r=n.inferSchema(t.toJS());return n.getSampleSchema(r,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:t,isXml:n})=>{this.setState({value:e,isEditBox:t}),this._onChange(e,n)};_onChange=(e,t)=>{(this.props.onChange||o$)(e,t)};handleOnChange=e=>{let{consumesValue:t}=this.props,n=/xml/i.test(t),r=e.target.value;this.onChange(r,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:t,param:n,isExecute:r,specSelectors:i,pathMethod:a,getComponent:o}=this.props,s=o(`Button`),c=o(`TextArea`),l=o(`HighlightCode`,!0),u=o(`contentType`),d=(i?i.parameterWithMetaByIdentity(a,n):n).get(`errors`,V()),f=i.contentTypeValues(a).get(`requestContentType`),p=this.props.consumes&&this.props.consumes.size?this.props.consumes:e.defaultProp.consumes,{value:m,isEditBox:h}=this.state,g=null;_Q(m)&&(g=`json`);let _=`${hQ(`${a[1]}${a[0]}_parameters`)}_select`;return H.createElement(`div`,{className:`body-param`,"data-param-name":n.get(`name`),"data-param-in":n.get(`in`)},h&&r?H.createElement(c,{className:`body-param__text`+(d.count()?` invalid`:``),value:m,onChange:this.handleOnChange}):m&&H.createElement(l,{className:`body-param__example`,language:g},m),H.createElement(`div`,{className:`body-param-options`},r?H.createElement(`div`,{className:`body-param-edit`},H.createElement(s,{className:h?`btn cancel body-param__example-edit`:`btn edit body-param__example-edit`,onClick:this.toggleIsEditBox},h?`Cancel`:`Edit`)):null,H.createElement(`label`,{htmlFor:_},H.createElement(`span`,null,`Parameter content type`),H.createElement(u,{value:f,contentTypes:p,onChange:t,className:`body-param-content-type`,ariaLabel:`Parameter content type`,controlId:_}))))}},c$=class extends H.Component{render(){let{request:e,getComponent:t}=this.props,n=Nq(e),r=t(`SyntaxHighlighter`,!0);return H.createElement(`div`,{className:`curl-command`},H.createElement(`h4`,null,`Curl`),H.createElement(`div`,{className:`copy-to-clipboard`},H.createElement(Op.CopyToClipboard,{text:n},H.createElement(`button`,{"aria-label":`Copy cURL command to clipboard`}))),H.createElement(`div`,null,H.createElement(r,{language:`bash`,className:`curl microlight`,renderPlainText:({children:e,PlainTextViewer:t})=>H.createElement(t,{className:`curl`},e)},n)))}},l$=({propKey:e,propVal:t,propClass:n})=>H.createElement(`span`,{className:n},H.createElement(`br`,null),e,`: `,TG(t)),u$=class extends H.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){let{onTryoutClick:e,onCancelClick:t,onResetClick:n,enabled:r,hasUserEditedBody:i,isOAS3:a}=this.props,o=a&&i;return H.createElement(`div`,{className:o?`try-out btn-group`:`try-out`},r?H.createElement(`button`,{className:`btn try-out__btn cancel`,onClick:t},`Cancel`):H.createElement(`button`,{className:`btn try-out__btn`,onClick:e},`Try it out `),o&&H.createElement(`button`,{className:`btn try-out__btn reset`,onClick:n},`Reset`))}},d$=class extends H.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){let{bypass:e,isSwagger2:t,isOAS3:n,alsoShow:r}=this.props;return e?H.createElement(`div`,null,this.props.children):t&&n?H.createElement(`div`,{className:`version-pragma`},r,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,H.createElement(`code`,null,`swagger`),` and `,H.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),H.createElement(`p`,null,`Supported version fields are `,H.createElement(`code`,null,`swagger: `,`"2.0"`),` and those that match `,H.createElement(`code`,null,`openapi: 3.0.n`),` (for example, `,H.createElement(`code`,null,`openapi: 3.0.4`),`).`)))):t||n?H.createElement(`div`,null,this.props.children):H.createElement(`div`,{className:`version-pragma`},r,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,`The provided definition does not specify a valid version field.`),H.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,H.createElement(`code`,null,`swagger: `,`"2.0"`),` and those that match `,H.createElement(`code`,null,`openapi: 3.0.n`),` (for example, `,H.createElement(`code`,null,`openapi: 3.0.4`),`).`))))}},f$=({version:e})=>H.createElement(`small`,null,H.createElement(`pre`,{className:`version`},` `,e,` `)),p$=({oasVersion:e})=>H.createElement(`small`,{className:`version-stamp`},H.createElement(`pre`,{className:`version`},`OAS `,e)),m$=({enabled:e,path:t,text:n})=>H.createElement(`a`,{className:`nostyle`,onClick:e?e=>e.preventDefault():null,href:e?`#/${t}`:null},H.createElement(`span`,null,n)),h$=()=>H.createElement(`div`,null,H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,className:`svg-assets`},H.createElement(`defs`,null,H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`unlocked`},H.createElement(`path`,{d:`M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z`})),H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`locked`},H.createElement(`path`,{d:`M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z`})),H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`close`},H.createElement(`path`,{d:`M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z`})),H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow`},H.createElement(`path`,{d:`M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z`})),H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow-down`},H.createElement(`path`,{d:`M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z`})),H.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow-up`},H.createElement(`path`,{d:`M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z`})),H.createElement(`symbol`,{viewBox:`0 0 24 24`,id:`jump-to`},H.createElement(`path`,{d:`M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z`})),H.createElement(`symbol`,{viewBox:`0 0 24 24`,id:`expand`},H.createElement(`path`,{d:`M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z`})),H.createElement(`symbol`,{viewBox:`0 0 15 16`,id:`copy`},H.createElement(`g`,{transform:`translate(2, -1)`},H.createElement(`path`,{fill:`#ffffff`,fillRule:`evenodd`,d:`M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z`}))))));u.addHook&&u.addHook(`beforeSanitizeElements`,(function(e){return e.href&&e.setAttribute(`rel`,`noopener noreferrer`),e}));var g$=function({source:e,className:t=``,getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!=`string`)return null;let r=new VH({html:!0,typographer:!0,breaks:!0,linkTarget:`_blank`}).use(QU);r.core.ruler.disable([`replacements`,`smartquotes`]);let{useUnsafeMarkdown:i}=n(),a=r.render(e),o=_$(a,{useUnsafeMarkdown:i});return e&&a&&o?H.createElement(`div`,{className:(0,Dp.default)(t,`markdown`),dangerouslySetInnerHTML:{__html:o}}):null};function _$(e,{useUnsafeMarkdown:t=!1}={}){let n=t,r=t?[]:[`style`,`class`];return t&&!_$.hasWarnedAboutDeprecation&&(console.warn(`useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.`),_$.hasWarnedAboutDeprecation=!0),u.sanitize(e,{ADD_ATTR:[`target`],FORBID_TAGS:[`style`,`form`],ALLOW_DATA_ATTR:n,FORBID_ATTR:r})}_$.hasWarnedAboutDeprecation=!1;var v$=class extends H.Component{render(){let{errSelectors:e,specSelectors:t,getComponent:n}=this.props,r=n(`SvgAssets`),i=n(`InfoContainer`,!0),a=n(`VersionPragmaFilter`),o=n(`operations`,!0),s=n(`Models`,!0),c=n(`Webhooks`,!0),l=n(`Row`),u=n(`Col`),d=n(`errors`,!0),f=n(`ServersContainer`,!0),p=n(`SchemesContainer`,!0),m=n(`AuthorizeBtnContainer`,!0),h=n(`FilterContainer`,!0),g=t.isSwagger2(),_=t.isOAS3(),v=t.isOAS31(),y=t.isOAS32(),b=!t.specStr(),x=t.loadingStatus(),S=null;if(x===`loading`&&(S=H.createElement(`div`,{className:`info`},H.createElement(`div`,{className:`loading-container`},H.createElement(`div`,{className:`loading`})))),x===`failed`&&(S=H.createElement(`div`,{className:`info`},H.createElement(`div`,{className:`loading-container`},H.createElement(`h4`,{className:`title`},`Failed to load API definition.`),H.createElement(d,null)))),x===`failedConfig`){let t=e.lastError(),n=t?t.get(`message`):``;S=H.createElement(`div`,{className:`info failed-config`},H.createElement(`div`,{className:`loading-container`},H.createElement(`h4`,{className:`title`},`Failed to load remote configuration.`),H.createElement(`p`,null,n)))}if(!S&&b&&(S=H.createElement(`h4`,null,`No API definition provided.`)),S)return H.createElement(`div`,{className:`swagger-ui`},H.createElement(`div`,{className:`loading-container`},S));let C=t.servers(),w=t.schemes(),T=C&&C.size,E=w&&w.size,D=!!t.securityDefinitions();return H.createElement(`div`,{className:`swagger-ui`},H.createElement(r,null),H.createElement(a,{isSwagger2:g,isOAS3:_,isOAS31:v,isOAS32:y,alsoShow:H.createElement(d,null)},H.createElement(d,null),H.createElement(l,{className:`information-container`},H.createElement(u,{mobile:12},H.createElement(i,null))),T||E||D?H.createElement(`div`,{className:`scheme-container`},H.createElement(u,{className:`schemes wrapper`,mobile:12},T||E?H.createElement(`div`,{className:`schemes-server-container`},T?H.createElement(f,null):null,E?H.createElement(p,null):null):null,D?H.createElement(m,null):null)):null,H.createElement(h,null),H.createElement(`main`,{id:`operations`,tabIndex:`-1`,style:{outline:`none`}},H.createElement(l,null,H.createElement(u,{mobile:12,desktop:12},H.createElement(o,null))),v&&H.createElement(l,{className:`webhooks-container`},H.createElement(u,{mobile:12,desktop:12},H.createElement(c,null))),H.createElement(l,null,H.createElement(u,{mobile:12,desktop:12},H.createElement(s,null))))))}},y$=()=>({components:{App:RZ,authorizationPopup:zZ,authorizeBtn:BZ,AuthorizeBtnContainer:VZ,authorizeOperationBtn:HZ,auths:UZ,AuthItem:WZ,authError:GZ,oauth2:$Z,apiKeyAuth:KZ,basicAuth:qZ,clear:eQ,liveResponse:rQ,InitializedInput:YQ,info:QQ,InfoContainer:$Q,InfoUrl:ZQ,InfoBasePath:XQ,Contact:e$,License:t$,JumpToPath:n$,CopyToClipboardBtn:r$,onlineValidatorBadge:iQ,operations:oQ,operation:cQ,OperationSummary:uQ,OperationSummaryMethod:dQ,OperationSummaryPath:fQ,responses:gQ,response:vQ,ResponseExtension:yQ,responseBody:bQ,parameters:xQ,parameterRow:EQ,execute:DQ,headers:OQ,errors:kQ,contentType:PQ,overview:qQ,footer:i$,FilterContainer:a$,ParamBody:s$,curl:c$,Property:l$,TryItOutButton:u$,Markdown:g$,BaseLayout:v$,VersionPragmaFilter:d$,VersionStamp:f$,OperationExt:pQ,OperationExtRow:mQ,ParameterExt:SQ,ParameterIncludeEmpty:wQ,OperationTag:sQ,OperationContainer:lQ,OpenAPIVersion:p$,DeepLink:m$,SvgAssets:h$,Example:JZ,ExamplesSelect:YZ,ExamplesSelectValueRetainer:ZZ}}),b$=()=>({components:{...CW}}),x$=()=>[RG,IK,lZ,wq,vZ,yZ,oZ,ZK,sq,Cq,TJ,eY,y$,b$,cZ,wK,bZ,UK,$K,Eq,Uq,AZ,MZ,LZ()],S$=B();function C$(e){return(t,n)=>(...r)=>{if(n.getSystem().specSelectors.isOAS3()){let t=e(...r);return typeof t==`function`?t(n):t}return t(...r)}}var w$=C$((0,ch.default)(null)),T$=C$(((e,t)=>e=>e.getSystem().specSelectors.findSchema(t))),E$=C$((()=>e=>{let t=e.getSystem().specSelectors.specJson().getIn([`components`,`schemas`]);return B.isMap(t)?t:S$})),D$=C$((()=>e=>e.getSystem().specSelectors.specJson().hasIn([`servers`,0]))),O$=C$(p(fY,(e=>e.getIn([`components`,`securitySchemes`])||null))),k$=(e,t)=>(n,...r)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...r),A$=w$,j$=w$,M$=w$,N$=w$,P$=w$,F$=function(e){return(t,n)=>(...r)=>n.getSystem().specSelectors.isOAS3()?e(n,n.getState().getIn([`spec`,`resolvedSubtrees`,`components`,`securitySchemes`]),...r):t(...r)}(p((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let n=V();return t&&t.entrySeq().forEach((([e,t])=>{let r=t?.get(`type`);if(r===`oauth2`&&t.get(`flows`).entrySeq().forEach((([r,i])=>{let a=z({flow:r,authorizationUrl:i.get(`authorizationUrl`),tokenUrl:i.get(`tokenUrl`),scopes:i.get(`scopes`),type:t.get(`type`),description:t.get(`description`)});n=n.push(new B({[e]:a.filter((e=>e!==void 0))}))})),r!==`http`&&r!==`apiKey`||(n=n.push(new B({[e]:t}))),r===`openIdConnect`&&t.get(`openIdConnectData`)){let r=t.get(`openIdConnectData`);(r.get(`grant_types_supported`)||[`authorization_code`,`implicit`]).forEach((i=>{let a=r.get(`scopes_supported`)&&r.get(`scopes_supported`).reduce(((e,t)=>e.set(t,``)),new B),o=z({flow:i,authorizationUrl:r.get(`authorization_endpoint`),tokenUrl:r.get(`token_endpoint`),scopes:a,type:`oauth2`,openIdConnectUrl:t.get(`openIdConnectUrl`)});n=n.push(new B({[e]:o.filter((e=>e!==void 0))}))}))}})),n})));function I$(e){return(t,n)=>r=>typeof n.specSelectors?.isOAS3==`function`?n.specSelectors.isOAS3()?H.createElement(e,xp({},r,n,{Ori:t})):H.createElement(t,r):(console.warn(`OAS3 wrapper: couldn't get spec`),null)}var L$=B(),R$=()=>e=>function(e){let t=e.get(`swagger`);return typeof t==`string`&&t===`2.0`}(e.getSystem().specSelectors.specJson()),z$=()=>e=>function(e){let t=e.get(`openapi`);return typeof t==`string`&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}(e.getSystem().specSelectors.specJson()),B$=()=>e=>e.getSystem().specSelectors.isOAS30();function V$(e){return(t,...n)=>r=>{if(r.specSelectors.isOAS3()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null}}var H$=V$((()=>e=>e.specSelectors.specJson().get(`servers`,L$))),U$=(e,t)=>{let n=e.getIn([`resolvedSubtrees`,`components`,`schemas`,t],null),r=e.getIn([`json`,`components`,`schemas`,t],null);return n||r||null},W$=V$(((e,{callbacks:t,specPath:n})=>e=>{let r=e.specSelectors.validOperationMethods();return B.isMap(t)?t.reduce(((e,t,i)=>{if(!B.isMap(t))return e;let a=t.reduce(((e,t,a)=>{if(!B.isMap(t))return e;let o=t.entrySeq().filter((([e])=>r.includes(e))).map((([e,t])=>({operation:B({operation:t}),method:e,path:a,callbackName:i,specPath:n.concat([i,a,e])})));return e.concat(o)}),V());return e.concat(a)}),V()).groupBy((e=>e.callbackName)).map((e=>e.toArray())).toObject():{}})),G$=({callbacks:e,specPath:t,specSelectors:n,getComponent:r})=>{let i=n.callbacksOperations({callbacks:e,specPath:t}),a=Object.keys(i),o=r(`OperationContainer`,!0);return a.length===0?H.createElement(`span`,null,`No callbacks`):H.createElement(`div`,null,a.map((e=>H.createElement(`div`,{key:`${e}`},H.createElement(`h2`,null,e),i[e].map((t=>H.createElement(o,{key:`${e}-${t.path}-${t.method}`,op:t.operation,tag:`callbacks`,method:t.method,path:t.path,specPath:t.specPath,allowTryItOut:!1})))))))},K$=(e,t,n,r)=>{let i=e.getIn([`content`,t])??pa(),a=i.get(`schema`,pa()),o=i.get(`examples`)!==void 0,s=i.get(`example`),c=o?i.getIn([`examples`,n,`value`]):s;return TG(r.getSampleSchema(a,t,{includeWriteOnly:!0},c))},q$=({userHasEditedBody:e,requestBody:t,requestBodyValue:n,requestBodyInclusionSetting:r,requestBodyErrors:i,getComponent:a,getConfigs:o,specSelectors:s,fn:c,contentType:l,isExecute:u,specPath:d,onChange:f,onChangeIncludeEmpty:p,activeExamplesKey:m,updateActiveExamplesKey:h,setRetainRequestBodyValueFlag:g})=>{let _=e=>{f(e.target.files[0])},v=e=>{let t={key:e,shouldDispatchInit:!1,defaultValue:!0};return r.get(e,`no value`)===`no value`&&(t.shouldDispatchInit=!0),t},y=a(`Markdown`,!0),b=a(`modelExample`),x=a(`RequestBodyEditor`),S=a(`HighlightCode`,!0),C=a(`ExamplesSelectValueRetainer`),w=a(`Example`),T=a(`ParameterIncludeEmpty`),{showCommonExtensions:E}=o(),D=t?.get(`description`)??null,O=t?.get(`content`)??new pa;l=l||O.keySeq().first()||``;let k=O.get(l)??pa(),A=k.get(`schema`,pa()),j=k.get(`examples`,null)?.map(((e,n)=>{let r=e?.get(`value`,null);return r&&(e=e.set(`value`,K$(t,l,n,c),r)),e}));if(i=V.isList(i)?i:V(),c.isFileUploadIntended(k?.get(`schema`),l)){let e=a(`Input`);return u?H.createElement(e,{type:`file`,onChange:_}):H.createElement(`i`,null,`Example values are not available for `,H.createElement(`code`,null,l),` media types.`)}if(!k.size)return null;if(c.hasSchemaType(k.get(`schema`),`object`)&&(l===`application/x-www-form-urlencoded`||l.indexOf(`multipart/`)===0)&&A.get(`properties`,pa()).size>0){let e=a(`JsonSchemaForm`),t=a(`ParameterExt`),l=A.get(`properties`,pa());return n=B.isMap(n)?n:pa(),H.createElement(`div`,{className:`table-container`},D&&H.createElement(y,{source:D}),H.createElement(`table`,null,H.createElement(`tbody`,null,B.isMap(l)&&l.entrySeq().map((([l,m])=>{if(m.get(`readOnly`))return;let h=m.get(`oneOf`)?.get(0)?.toJS(),g=m.get(`anyOf`)?.get(0)?.toJS();m=z(c.mergeJsonSchema(m.toJS(),h??g??{}));let _=E?CG(m):null,x=A.get(`required`,V()).includes(l),S=c.getSchemaObjectType(m),C=c.getSchemaObjectTypeLabel(m),w=c.getSchemaObjectType(m?.get(`items`)),D=m.get(`format`),O=m.get(`description`),k=n.getIn([l,`value`]),j=n.getIn([l,`errors`])||i,M=r.get(l)||!1,N=c.getSampleSchema(m,!1,{includeWriteOnly:!0});!1===N&&(N=`false`),N===0&&(N=`0`),typeof N!=`string`&&S===`object`&&(N=TG(N)),typeof N==`string`&&S===`array`&&(N=JSON.parse(N));let P=c.isFileUploadIntended(m),ee=H.createElement(e,{fn:c,dispatchInitialValue:!P,schema:m,description:l,getComponent:a,value:k===void 0?N:k,required:x,errors:j,onChange:e=>{f(e,[l])}});return H.createElement(`tr`,{key:l,className:`parameters`,"data-property-name":l},H.createElement(`td`,{className:`parameters-col_name`},H.createElement(`div`,{className:x?`parameter__name required`:`parameter__name`},l,x?H.createElement(`span`,null,`\xA0*`):null),H.createElement(`div`,{className:`parameter__type`},C,D&&H.createElement(`span`,{className:`prop-format`},`($`,D,`)`),E&&_.size?_.entrySeq().map((([e,n])=>H.createElement(t,{key:`${e}-${n}`,xKey:e,xVal:n}))):null),H.createElement(`div`,{className:`parameter__deprecated`},m.get(`deprecated`)?`deprecated`:null)),H.createElement(`td`,{className:`parameters-col_description`},H.createElement(y,{source:O}),u?H.createElement(`div`,null,S===`object`||w===`object`?H.createElement(b,{getComponent:a,specPath:d.push(`schema`),getConfigs:o,isExecute:u,specSelectors:s,schema:m,example:ee}):ee,x?null:H.createElement(T,{onChange:e=>p(l,e),isIncluded:M,isIncludedOptions:v(l),isDisabled:Array.isArray(k)?k.length!==0:!kG(k)})):null))})))))}let M=K$(t,l,m,c),N=null;_Q(M)&&(N=`json`);let P=u?H.createElement(x,{value:n,errors:i,defaultValue:M,onChange:f,getComponent:a}):H.createElement(S,{className:`body-param__example`,language:N},TG(n)||M);return H.createElement(`div`,null,D&&H.createElement(y,{source:D}),j?H.createElement(C,{userHasEditedBody:e,examples:j,currentKey:m,currentUserInputValue:n,onSelect:e=>{h(e)},updateValue:f,defaultToFirstExample:!0,getComponent:a,setRetainRequestBodyValueFlag:g}):null,H.createElement(b,{getComponent:a,getConfigs:o,specSelectors:s,expandDepth:1,isExecute:u,schema:k.get(`schema`),specPath:d.push(`content`,l,`schema`),example:P,includeWriteOnly:!0}),j?H.createElement(w,{example:j.get(m),getComponent:a,getConfigs:o}):null)},J$=class extends H.Component{render(){let{link:e,name:t,getComponent:n}=this.props,r=n(`Markdown`,!0),i=e.get(`operationId`)||e.get(`operationRef`),a=e.get(`parameters`)&&e.get(`parameters`).toJS(),o=e.get(`description`);return H.createElement(`div`,{className:`operation-link`},H.createElement(`div`,{className:`description`},H.createElement(`b`,null,H.createElement(`code`,null,t)),o?H.createElement(r,{source:o}):null),H.createElement(`pre`,null,"Operation `",i,"`",H.createElement(`br`,null),H.createElement(`br`,null),`Parameters `,function(e,t){return typeof t==`string`?t.split(`
|
|
236
|
-
`).map(((t,n)=>n>0?Array(e+1).join(` `)+t:t)).join(`
|
|
237
|
-
`):``}(0,JSON.stringify(a,null,2))||`{}`,H.createElement(`br`,null)))}},Y$=({servers:e,currentServer:t,setSelectedServer:n,setServerVariableValue:r,getServerVariable:i,getEffectiveServerValue:a})=>{let o=(e.find((e=>e.get(`url`)===t))||pa()).get(`variables`)||pa(),s=o.size!==0;(0,H.useEffect)((()=>{t||n(e.first()?.get(`url`))}),[]),(0,H.useEffect)((()=>{let i=e.find((e=>e.get(`url`)===t));if(!i)return void n(e.first().get(`url`));(i.get(`variables`)||pa()).map(((e,n)=>{r({server:t,key:n,val:e.get(`default`)||``})}))}),[t,e]);let c=(0,H.useCallback)((e=>{n(e.target.value)}),[n]),l=(0,H.useCallback)((e=>{let n=e.target.getAttribute(`data-variable`),i=e.target.value;r({server:t,key:n,val:i})}),[r,t]);return H.createElement(`div`,{className:`servers`},H.createElement(`label`,{htmlFor:`servers`},H.createElement(`select`,{onChange:c,value:t,id:`servers`},e.valueSeq().map((e=>H.createElement(`option`,{value:e.get(`url`),key:e.get(`url`)},e.get(`url`),e.get(`description`)&&` - ${e.get(`description`)}`))).toArray())),s&&H.createElement(`div`,null,H.createElement(`div`,{className:`computed-url`},`Computed URL:`,H.createElement(`code`,null,a(t))),H.createElement(`h4`,null,`Server variables`),H.createElement(`table`,null,H.createElement(`tbody`,null,o.entrySeq().map((([e,n])=>H.createElement(`tr`,{key:e},H.createElement(`td`,null,e),H.createElement(`td`,null,n.get(`enum`)?H.createElement(`select`,{"data-variable":e,onChange:l},n.get(`enum`).map((n=>H.createElement(`option`,{selected:n===i(t,e),key:n,value:n},n)))):H.createElement(`input`,{type:`text`,value:i(t,e)||``,onChange:l,"data-variable":e})))))))))},X$=class extends H.Component{render(){let{specSelectors:e,oas3Selectors:t,oas3Actions:n,getComponent:r}=this.props,i=e.servers(),a=r(`Servers`);return i&&i.size?H.createElement(`div`,null,H.createElement(`span`,{className:`servers-title`},`Servers`),H.createElement(a,{servers:i,currentServer:t.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:t.serverVariableValue,getEffectiveServerValue:t.serverEffectiveValue})):null}},Z$=Function.prototype,Q$=class extends H.Component{constructor(e,t){super(e,t);let{name:n,schema:r}=this.props,i=this.getValue();this.state={name:n,schema:r,value:i}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,`value`])}onChange=e=>{let{onChange:t}=this.props,{value:n,name:r}=e.target,i=Object.assign({},this.state.value);r?i[r]=n:i=n,this.setState({value:i},(()=>t(this.state)))};render(){let{schema:e,getComponent:t,errSelectors:n,name:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`Markdown`,!0),u=t(`JumpToPath`,!0),d=(e.get(`scheme`)||``).toLowerCase(),f=i.selectAuthPath(r),p=this.getValue(),m=n.allErrors().filter((e=>e.get(`authId`)===r));if(d===`basic`){let t=p?p.get(`username`):null;return H.createElement(`div`,null,H.createElement(`h4`,null,H.createElement(`code`,null,r),`\xA0 (http, Basic)`,H.createElement(u,{path:f})),t&&H.createElement(`h6`,null,`Authorized`),H.createElement(o,null,H.createElement(l,{source:e.get(`description`)})),H.createElement(o,null,H.createElement(`label`,{htmlFor:`auth-basic-username`},`Username:`),t?H.createElement(`code`,null,` `,t,` `):H.createElement(s,null,H.createElement(a,{id:`auth-basic-username`,type:`text`,required:`required`,name:`username`,"aria-label":`auth-basic-username`,onChange:this.onChange,autoFocus:!0}))),H.createElement(o,null,H.createElement(`label`,{htmlFor:`auth-basic-password`},`Password:`),t?H.createElement(`code`,null,` ****** `):H.createElement(s,null,H.createElement(a,{id:`auth-basic-password`,autoComplete:`new-password`,name:`password`,type:`password`,"aria-label":`auth-basic-password`,onChange:this.onChange}))),m.valueSeq().map(((e,t)=>H.createElement(c,{error:e,key:t}))))}return d===`bearer`?H.createElement(`div`,null,H.createElement(`h4`,null,H.createElement(`code`,null,r),`\xA0 (http, Bearer)`,H.createElement(u,{path:f})),p&&H.createElement(`h6`,null,`Authorized`),H.createElement(o,null,H.createElement(l,{source:e.get(`description`)})),H.createElement(o,null,H.createElement(`label`,{htmlFor:`auth-bearer-value`},`Value:`),p?H.createElement(`code`,null,` ****** `):H.createElement(s,null,H.createElement(a,{id:`auth-bearer-value`,type:`text`,"aria-label":`auth-bearer-value`,onChange:this.onChange,autoFocus:!0}))),m.valueSeq().map(((e,t)=>H.createElement(c,{error:e,key:t})))):H.createElement(`div`,null,H.createElement(`em`,null,H.createElement(`b`,null,r),` HTTP authentication: unsupported scheme `,`'${d}'`))}},$$=class extends H.Component{setSelectedServer=e=>{let{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${t}:${n}`)};setServerVariableValue=e=>{let{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${t}:${n}`})};getSelectedServer=()=>{let{path:e,method:t}=this.props;return this.props.getSelectedServer(`${e}:${t}`)};getServerVariable=(e,t)=>{let{path:n,method:r}=this.props;return this.props.getServerVariable({namespace:`${n}:${r}`,server:e},t)};getEffectiveServerValue=e=>{let{path:t,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${t}:${n}`})};render(){let{operationServers:e,pathServers:t,getComponent:n}=this.props;if(!e&&!t)return null;let r=n(`Servers`),i=e||t,a=e?`operation`:`path`;return H.createElement(`div`,{className:`opblock-section operation-servers`},H.createElement(`div`,{className:`opblock-section-header`},H.createElement(`div`,{className:`tab-header`},H.createElement(`h4`,{className:`opblock-title`},`Servers`))),H.createElement(`div`,{className:`opblock-description-wrapper`},H.createElement(`h4`,{className:`message`},`These `,a,`-level options override the global server options.`),H.createElement(r,{servers:i,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}},e1={Callbacks:G$,HttpAuth:Q$,RequestBody:q$,Servers:Y$,ServersContainer:X$,RequestBodyEditor:class extends H.PureComponent{static defaultProps={onChange:Z$,userHasEditedBody:!1};constructor(e,t){super(e,t),this.state={value:TG(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{let{onChange:t,defaultValue:n}=e||this.props;return this.setState({value:n}),t(n)};onChange=e=>{this.props.onChange(TG(e))};onDomChange=e=>{let t=e.target.value;this.setState({value:t},(()=>this.onChange(t)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:TG(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:t}=this.props,{value:n}=this.state,r=t.size>0,i=e(`TextArea`);return H.createElement(`div`,{className:`body-param`},H.createElement(i,{className:(0,Dp.default)(`body-param__text`,{invalid:r}),title:t.size?t.join(`, `):``,value:n,onChange:this.onDomChange}))}},OperationServers:$$,operationLink:J$},t1=new VH(`commonmark`);t1.block.ruler.enable([`table`]),t1.set({linkTarget:`_blank`});var n1=I$((({source:e,className:t=``,getConfigs:n=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!=`string`)return null;if(e){let{useUnsafeMarkdown:r}=n(),i=_$(t1.render(e),{useUnsafeMarkdown:r}),a;return typeof i==`string`&&(a=i.trim()),H.createElement(`div`,{dangerouslySetInnerHTML:{__html:a},className:(0,Dp.default)(t,`renderedMarkdown`)})}return null})),r1=I$((({Ori:e,...t})=>{let{schema:n,getComponent:r,errSelectors:i,authorized:a,onAuthChange:o,name:s,authSelectors:c}=t,l=r(`HttpAuth`);return n.get(`type`)===`http`?H.createElement(l,{key:s,schema:n,name:s,errSelectors:i,authorized:a,getComponent:r,onChange:o,authSelectors:c}):H.createElement(e,t)})),i1=I$(iQ),a1=I$(class extends H.Component{render(){let{getConfigs:e,schema:t,Ori:n}=this.props,r=[`model-box`],i=null;return!0===t.get(`deprecated`)&&(r.push(`deprecated`),i=H.createElement(`span`,{className:`model-deprecated-warning`},`Deprecated:`)),H.createElement(`div`,{className:r.join(` `)},i,H.createElement(n,xp({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}),o1=I$((({Ori:e,...t})=>{let{schema:n,getComponent:r,errors:i,onChange:a,fn:o}=t,s=o.isFileUploadIntended(n),c=r(`Input`);return s?H.createElement(c,{type:`file`,className:i.length?`invalid`:``,title:i.length?i:``,onChange:e=>{a(e.target.files[0])},disabled:e.isDisabled}):H.createElement(e,t)})),s1={Markdown:n1,AuthItem:r1,OpenAPIVersion:function(e){return(t,n)=>r=>typeof n.specSelectors?.isOAS30==`function`?n.specSelectors.isOAS30()?H.createElement(e,xp({},r,n,{Ori:t})):H.createElement(t,r):(console.warn(`OAS30 wrapper: couldn't get spec`),null)}((e=>{let{Ori:t}=e;return H.createElement(t,{oasVersion:`3.0`})})),JsonSchema_string:o1,model:a1,onlineValidatorBadge:i1},c1=`oas3_set_servers`,l1=`oas3_set_request_body_value`,u1=`oas3_set_request_body_retain_flag`,d1=`oas3_set_request_body_inclusion`,f1=`oas3_set_active_examples_member`,p1=`oas3_set_request_content_type`,m1=`oas3_set_response_content_type`,h1=`oas3_set_server_variable_value`,g1=`oas3_set_request_body_validate_error`,_1=`oas3_clear_request_body_validate_error`,v1=`oas3_clear_request_body_value`;function y1(e,t){return{type:c1,payload:{selectedServerUrl:e,namespace:t}}}function b1({value:e,pathMethod:t}){return{type:l1,payload:{value:e,pathMethod:t}}}var x1=({value:e,pathMethod:t})=>({type:u1,payload:{value:e,pathMethod:t}});function S1({value:e,pathMethod:t,name:n}){return{type:d1,payload:{value:e,pathMethod:t,name:n}}}function C1({name:e,pathMethod:t,contextType:n,contextName:r}){return{type:f1,payload:{name:e,pathMethod:t,contextType:n,contextName:r}}}function w1({value:e,pathMethod:t}){return{type:p1,payload:{value:e,pathMethod:t}}}function T1({value:e,path:t,method:n}){return{type:m1,payload:{value:e,path:t,method:n}}}function E1({server:e,namespace:t,key:n,val:r}){return{type:h1,payload:{server:e,namespace:t,key:n,val:r}}}var D1=({path:e,method:t,validationErrors:n})=>({type:g1,payload:{path:e,method:t,validationErrors:n}}),O1=({path:e,method:t})=>({type:_1,payload:{path:e,method:t}}),k1=({pathMethod:e})=>({type:_1,payload:{path:e[0],method:e[1]}}),A1=({pathMethod:e})=>({type:v1,payload:{pathMethod:e}}),j1=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS3()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},M1=j1(((e,t)=>{let n=t?[t,`selectedServer`]:[`selectedServer`];return e.getIn(n)||``})),N1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`bodyValue`])||null)),P1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`retainBodyValue`])||!1)),F1=(e,t,n)=>e=>{let{oas3Selectors:r,specSelectors:i,fn:a}=e.getSystem();if(i.isOAS3()){let e=r.requestContentType(t,n);if(e)return K$(i.specResolvedSubtree([`paths`,t,n,`requestBody`]),e,r.activeExamplesMember(t,n,`requestBody`,`requestBody`),a)}return null},I1=j1(((e,t,n)=>e=>{let{oas3Selectors:r,specSelectors:i,fn:a}=e,o=!1,s=r.requestContentType(t,n),c=r.requestBodyValue(t,n),l=i.specResolvedSubtree([`paths`,t,n,`requestBody`]);if(!l)return!1;if(B.isMap(c)&&(c=TG(c.mapEntries((e=>B.isMap(e[1])?[e[0],e[1].get(`value`)]:e)).toJS())),V.isList(c)&&(c=TG(c)),s){let e=K$(l,s,r.activeExamplesMember(t,n,`requestBody`,`requestBody`),a);o=!!c&&c!==e}return o})),L1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`bodyInclusion`])||B())),R1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`errors`])||null)),z1=j1(((e,t,n,r,i)=>e.getIn([`examples`,t,n,r,i,`activeExample`])||null)),B1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`requestContentType`])||null)),V1=j1(((e,t,n)=>e.getIn([`requestData`,t,n,`responseContentType`])||null)),H1=j1(((e,t,n)=>{let r;if(typeof t!=`string`){let{server:e,namespace:i}=t;r=i?[i,`serverVariableValues`,e,n]:[`serverVariableValues`,e,n]}else r=[`serverVariableValues`,t,n];return e.getIn(r)||null})),U1=j1(((e,t)=>{let n;if(typeof t!=`string`){let{server:e,namespace:r}=t;n=r?[r,`serverVariableValues`,e]:[`serverVariableValues`,e]}else n=[`serverVariableValues`,t];return e.getIn(n)||pa()})),W1=j1(((e,t)=>{var n,r;if(typeof t!=`string`){let{server:i,namespace:a}=t;r=i,n=a?e.getIn([a,`serverVariableValues`,r]):e.getIn([`serverVariableValues`,r])}else r=t,n=e.getIn([`serverVariableValues`,r]);n||=pa();let i=r;return n.map(((e,t)=>{i=i.replace(RegExp(`{${(0,nW.default)(t)}}`,`g`),e)})),i})),G1=function(e){return(...t)=>n=>{let r=n.getSystem().specSelectors.specJson(),i=[...t][1]||[];return!r.getIn([`paths`,...i,`requestBody`,`required`])||e(...t)}}(((e,t)=>((e,t)=>(t||=[],!!e.getIn([`requestData`,...t,`bodyValue`])))(e,t))),K1=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:n,oas3RequestBodyValue:r})=>{let i=[];if(!B.isMap(r))return i;let a=[];return Object.keys(t.requestContentType).forEach((e=>{e===n&&t.requestContentType[e].forEach((e=>{a.indexOf(e)<0&&a.push(e)}))})),a.forEach((e=>{r.getIn([e,`value`])||i.push(e)})),i},q1=(0,ch.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`]),J1={[c1]:(e,{payload:{selectedServerUrl:t,namespace:n}})=>{let r=n?[n,`selectedServer`]:[`selectedServer`];return e.setIn(r,t)},[l1]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;if(!B.isMap(t))return e.setIn([`requestData`,r,i,`bodyValue`],t);let a=e.getIn([`requestData`,r,i,`bodyValue`])||B();B.isMap(a)||(a=B());let o=a,[...s]=t.keys();return s.forEach((e=>{let n=t.getIn([e]);o.has(e)&&B.isMap(n)||(o=o.setIn([e,`value`],n))})),e.setIn([`requestData`,r,i,`bodyValue`],o)},[u1]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;return e.setIn([`requestData`,r,i,`retainBodyValue`],t)},[d1]:(e,{payload:{value:t,pathMethod:n,name:r}})=>{let[i,a]=n;return e.setIn([`requestData`,i,a,`bodyInclusion`,r],t)},[f1]:(e,{payload:{name:t,pathMethod:n,contextType:r,contextName:i}})=>{let[a,o]=n;return e.setIn([`examples`,a,o,r,i,`activeExample`],t)},[p1]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;return e.setIn([`requestData`,r,i,`requestContentType`],t)},[m1]:(e,{payload:{value:t,path:n,method:r}})=>e.setIn([`requestData`,n,r,`responseContentType`],t),[h1]:(e,{payload:{server:t,namespace:n,key:r,val:i}})=>{let a=n?[n,`serverVariableValues`,t,r]:[`serverVariableValues`,t,r];return e.setIn(a,i)},[g1]:(e,{payload:{path:t,method:n,validationErrors:r}})=>{let i=[];if(i.push(`Required field is not provided`),r.missingBodyValue)return e.setIn([`requestData`,t,n,`errors`],z(i));if(r.missingRequiredKeys&&r.missingRequiredKeys.length>0){let{missingRequiredKeys:a}=r;return e.updateIn([`requestData`,t,n,`bodyValue`],z({}),(e=>a.reduce(((e,t)=>e.setIn([t,`errors`],z(i))),e)))}return console.warn(`unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR`),e},[_1]:(e,{payload:{path:t,method:n}})=>{let r=e.getIn([`requestData`,t,n,`bodyValue`]);if(!B.isMap(r))return e.setIn([`requestData`,t,n,`errors`],z([]));let[...i]=r.keys();return i?e.updateIn([`requestData`,t,n,`bodyValue`],z({}),(e=>i.reduce(((e,t)=>e.setIn([t,`errors`],z([]))),e))):e},[v1]:(e,{payload:{pathMethod:t}})=>{let[n,r]=t,i=e.getIn([`requestData`,n,r,`bodyValue`]);return i?B.isMap(i)?e.setIn([`requestData`,n,r,`bodyValue`],B()):e.setIn([`requestData`,n,r,`bodyValue`],``):e}};function Y1({getSystem:e}){let t=(e=>(t,n=null)=>{let{getConfigs:r,fn:i}=e(),{fileUploadMediaTypes:a}=r();if(typeof n==`string`&&a.some((e=>n.startsWith(e))))return!0;let o=B.isMap(t);if(!o&&!(0,sh.default)(t))return!1;let s=o?t.get(`format`):t.format;return i.hasSchemaType(t,`string`)&&[`binary`,`byte`].includes(s)})(e);return{components:e1,wrapComponents:s1,statePlugins:{spec:{wrapSelectors:wW,selectors:EW},auth:{wrapSelectors:TW},oas3:{actions:{...DW},reducers:J1,selectors:{...OW}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var X1=({specSelectors:e,getComponent:t})=>{let n=e.selectWebhooksOperations();if(!n)return null;let r=Object.keys(n),i=t(`OperationContainer`,!0);return r.length===0?null:H.createElement(`div`,{className:`webhooks`},H.createElement(`h2`,null,`Webhooks`),r.map((e=>H.createElement(`div`,{key:`${e}-webhook`},n[e].map((t=>H.createElement(i,{key:`${e}-${t.method}-webhook`,op:t.operation,tag:`webhooks`,method:t.method,path:e,specPath:V(t.specPath),allowTryItOut:!1})))))))},Z1=({getComponent:e,specSelectors:t})=>{let n=t.selectLicenseNameField(),r=t.selectLicenseUrl(),i=e(`Link`);return H.createElement(`div`,{className:`info__license`},r?H.createElement(`div`,{className:`info__license__url`},H.createElement(i,{target:`_blank`,href:iJ(r)},n)):H.createElement(`span`,null,n))},Q1=({getComponent:e,specSelectors:t})=>{let n=t.selectContactNameField(),r=t.selectContactUrl(),i=t.selectContactEmailField(),a=e(`Link`);return H.createElement(`div`,{className:`info__contact`},r&&H.createElement(`div`,null,H.createElement(a,{href:iJ(r),target:`_blank`},n,` - Website`)),i&&H.createElement(a,{href:iJ(`mailto:${i}`)},r?`Send email to ${n}`:`Contact ${n}`))},$1=({getComponent:e,specSelectors:t})=>{let n=t.version(),r=t.url(),i=t.basePath(),a=t.host(),o=t.selectInfoSummaryField(),s=t.selectInfoDescriptionField(),c=t.selectInfoTitleField(),l=t.selectInfoTermsOfServiceUrl(),u=t.selectExternalDocsUrl(),d=t.selectExternalDocsDescriptionField(),f=t.contact(),p=t.license(),m=e(`Markdown`,!0),h=e(`Link`),g=e(`VersionStamp`),_=e(`OpenAPIVersion`),v=e(`InfoUrl`),y=e(`InfoBasePath`),b=e(`License`,!0),x=e(`Contact`,!0),S=e(`JsonSchemaDialect`,!0);return H.createElement(`div`,{className:`info`},H.createElement(`hgroup`,{className:`main`},H.createElement(`h1`,{className:`title`},c,H.createElement(`span`,null,n&&H.createElement(g,{version:n}),H.createElement(_,{oasVersion:`3.1`}))),(a||i)&&H.createElement(y,{host:a,basePath:i}),r&&H.createElement(v,{getComponent:e,url:r})),o&&H.createElement(`p`,{className:`info__summary`},o),H.createElement(`div`,{className:`info__description description`},H.createElement(m,{source:s})),l&&H.createElement(`div`,{className:`info__tos`},H.createElement(h,{target:`_blank`,href:iJ(l)},`Terms of service`)),f.size>0&&H.createElement(x,null),p.size>0&&H.createElement(b,null),u&&H.createElement(h,{className:`info__extdocs`,target:`_blank`,href:iJ(u)},d||u),H.createElement(S,null))},e0=({getComponent:e,specSelectors:t})=>{let n=t.selectJsonSchemaDialectField(),r=t.selectJsonSchemaDialectDefault(),i=e(`Link`);return H.createElement(H.Fragment,null,n&&n===r&&H.createElement(`p`,{className:`info__jsonschemadialect`},`JSON Schema dialect:`,` `,H.createElement(i,{target:`_blank`,href:iJ(n)},n)),n&&n!==r&&H.createElement(`div`,{className:`error-wrapper`},H.createElement(`div`,{className:`no-margin`},H.createElement(`div`,{className:`errors`},H.createElement(`div`,{className:`errors-wrapper`},H.createElement(`h4`,{className:`center`},`Warning`),H.createElement(`p`,{className:`message`},H.createElement(`strong`,null,`OpenAPI.jsonSchemaDialect`),` field contains a value different from the default value of`,` `,H.createElement(i,{target:`_blank`,href:r},r),`. Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.`))))))},t0=({bypass:e,isSwagger2:t,isOAS3:n,isOAS31:r,alsoShow:i,children:a})=>e?H.createElement(`div`,null,a):t&&(n||r)?H.createElement(`div`,{className:`version-pragma`},i,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,H.createElement(`code`,null,`swagger`),` and `,H.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),H.createElement(`p`,null,`Supported version fields are `,H.createElement(`code`,null,`swagger: "2.0"`),`,`,` `,H.createElement(`code`,null,`openapi: 3.0.x`),`, or `,H.createElement(`code`,null,`openapi: 3.1.x`),` (for example, `,H.createElement(`code`,null,`openapi: 3.1.0`),`).`)))):t||n||r?H.createElement(`div`,null,a):H.createElement(`div`,{className:`version-pragma`},i,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,`The provided definition does not specify a valid version field.`),H.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,H.createElement(`code`,null,`swagger: "2.0"`),`,`,` `,H.createElement(`code`,null,`openapi: 3.0.x`),`, or `,H.createElement(`code`,null,`openapi: 3.1.x`),` (for example, `,H.createElement(`code`,null,`openapi: 3.1.0`),`).`)))),n0=e=>typeof e==`string`&&e.includes(`#/components/schemas/`)?(e=>{let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);try{return decodeURIComponent(t)}catch{return t}})(e.replace(/^.*#\/components\/schemas\//,``)):null,r0=(0,H.forwardRef)((({schema:e,getComponent:t,onToggle:n=()=>{},specPath:r},i)=>{let a=t(`JSONSchema202012`),o=n0(e.get(`$$ref`)),s=(0,H.useCallback)(((e,t)=>{n(o,t)}),[o,n]);return H.createElement(a,{name:o,schema:e.toJS(),ref:i,onExpand:s,identifier:r.toJS().join(`_`)})})),i0=({specActions:e,specSelectors:t,layoutSelectors:n,layoutActions:r,getComponent:i,getConfigs:a,fn:o})=>{let s=t.selectSchemas(),c=Object.keys(s).length>0,l=[`components`,`schemas`],{docExpansion:u,defaultModelsExpandDepth:d}=a(),f=d>0&&u!==`none`,p=n.isShown(l,f),m=i(`Collapse`),h=i(`JSONSchema202012`),g=i(`ArrowUpIcon`),_=i(`ArrowDownIcon`),{getTitle:v}=o.jsonSchema202012.useFn();(0,H.useEffect)((()=>{let r=Object.entries(s).some((([e])=>n.isShown([...l,e],!1))),i=p&&(d>1||r),a=t.specResolvedSubtree(l)!=null;i&&!a&&e.requestResolvedSubtree(l)}),[p,d]);let y=(0,H.useCallback)((()=>{r.show(l,!p)}),[p]),b=(0,H.useCallback)((e=>{e!==null&&r.readyToScroll(l,e)}),[]),x=e=>t=>{t!==null&&r.readyToScroll([...l,e],t)},S=n=>(i,a)=>{let o=[...l,n];a?(t.specResolvedSubtree(o)??e.requestResolvedSubtree([...l,n]),r.show(o,!0)):r.show(o,!1)};return!c||d<0?null:H.createElement(`section`,{className:(0,Dp.default)(`models`,{"is-open":p}),ref:b},H.createElement(`h4`,null,H.createElement(`button`,{"aria-expanded":p,className:`models-control`,onClick:y},H.createElement(`span`,null,`Schemas`),p?H.createElement(g,null):H.createElement(_,null))),H.createElement(m,{isOpened:p},Object.entries(s).map((([e,t])=>{let n=v(t,{lookup:`basic`})||e;return H.createElement(h,{key:e,ref:x(e),schema:t,name:n,onExpand:S(e)})}))))},a0=({schema:e,getComponent:t,name:n,authSelectors:r})=>{let i=t(`JumpToPath`,!0),a=r.selectAuthPath(n);return H.createElement(`div`,null,H.createElement(`h4`,null,n,` (mutualTLS) `,H.createElement(i,{path:a})),H.createElement(`p`,null,`Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser.`),H.createElement(`p`,null,e.get(`description`)))},o0=class extends H.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:n}=this.props,r=n.keySeq().toArray();this.setState(r.reduce(((e,t)=>(e[t]=``,e)),{})),t.logoutWithPersistOption(r)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:n,errSelectors:r}=this.props,i=t(`AuthItem`),a=t(`oauth2`,!0),o=t(`Button`),s=n.authorized(),c=e.filter(((e,t)=>!!s.get(t))),l=e.filter((e=>e.get(`type`)!==`oauth2`&&e.get(`type`)!==`mutualTLS`)),u=e.filter((e=>e.get(`type`)===`oauth2`)),d=e.filter((e=>e.get(`type`)===`mutualTLS`));return H.createElement(`div`,{className:`auth-container`},l.size>0&&H.createElement(`form`,{onSubmit:this.submitAuth},l.map(((e,a)=>H.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray(),H.createElement(`div`,{className:`auth-btn-wrapper`},l.size===c.size?H.createElement(o,{className:`btn modal-btn auth`,onClick:this.logoutClick,"aria-label":`Remove authorization`},`Logout`):H.createElement(o,{type:`submit`,className:`btn modal-btn auth authorize`,"aria-label":`Apply credentials`},`Authorize`),H.createElement(o,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`))),u.size>0?H.createElement(`div`,null,H.createElement(`div`,{className:`scope-def`},H.createElement(`p`,null,`Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.`),H.createElement(`p`,null,`API requires the following scopes. Select which ones you want to grant to Swagger UI.`)),e.filter((e=>e.get(`type`)===`oauth2`)).map(((e,t)=>H.createElement(`div`,{key:t},H.createElement(a,{authorized:s,schema:e,name:t})))).valueSeq().toArray()):null,d.size>0&&H.createElement(`div`,null,d.map(((e,a)=>H.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray()))}},s0=e=>{let t=e.get(`openapi`);return typeof t==`string`&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},c0=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS31()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},l0=e=>(t,n)=>(r,...i)=>{if(n.getSystem().specSelectors.isOAS31()){let a=e(r,...i);return typeof a==`function`?a(t,n):a}return t(...i)},u0=e=>(t,...n)=>r=>{let i=e(t,r,...n);return typeof i==`function`?i(r):i},d0=e=>(t,n)=>r=>n.specSelectors.isOAS31()?H.createElement(e,xp({},r,{originalComponent:t,getSystem:n.getSystem})):H.createElement(t,r),f0=(e,t)=>{let{fn:n,specSelectors:r}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{let i=n[e];return[e,(...e)=>r.isOAS31()?t(...e):typeof i==`function`?i(...e):void 0]})))},p0=d0((({getSystem:e})=>{let t=e().getComponent(`OAS31License`,!0);return H.createElement(t,null)})),m0=d0((({getSystem:e})=>{let t=e().getComponent(`OAS31Contact`,!0);return H.createElement(t,null)})),h0=d0((({getSystem:e})=>{let t=e().getComponent(`OAS31Info`,!0);return H.createElement(t,null)})),g0=(e,{includeReadOnly:t,includeWriteOnly:n})=>{if(!e?.properties)return{};let r=Object.entries(e.properties).filter((([,e])=>(!0!==e?.readOnly||t)&&(!0!==e?.writeOnly||n)));return Object.fromEntries(r)},_0=e=>{if(typeof e!=`function`)return null;let t=e();return()=>[...t,`discriminator`,`xml`,`externalDocs`,`example`,`$$ref`]},v0=d0((({getSystem:e,...t})=>{let{getComponent:n,fn:r,getConfigs:i}=e(),a=i(),o=window?.location?.pathname??`/`;if(v0.ModelWithJSONSchemaContext&&v0.pathname===o)return H.createElement(v0.ModelWithJSONSchemaContext,t);let s=n(`OAS31Model`);return v0.ModelWithJSONSchemaContext=n(`withJSONSchema202012SystemContext`)(s,{config:{default$schema:`https://spec.openapis.org/oas/3.1/dialect/base`,defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:_0(r.jsonSchema202012.getSchemaKeywords)}}),v0.pathname=o,H.createElement(v0.ModelWithJSONSchemaContext,t)}));v0.ModelWithJSONSchemaContext=null,v0.pathname=null;var y0=v0,b0=d0((({getSystem:e})=>{let{getComponent:t,fn:n,getConfigs:r}=e(),i=r(),a=window?.location?.pathname??`/`;if(b0.ModelsWithJSONSchemaContext&&b0.pathname===a)return H.createElement(b0.ModelsWithJSONSchemaContext,null);let o=t(`OAS31Models`,!0);return b0.ModelsWithJSONSchemaContext=t(`withJSONSchema202012SystemContext`)(o,{config:{default$schema:`https://spec.openapis.org/oas/3.1/dialect/base`,defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:n.jsonSchema202012.getProperties,isExpandable:n.jsonSchema202012.isExpandable,getSchemaKeywords:_0(n.jsonSchema202012.getSchemaKeywords)}}),b0.pathname=a,H.createElement(b0.ModelsWithJSONSchemaContext,null)}));b0.ModelsWithJSONSchemaContext=null,b0.pathname=null;var x0=b0,S0=(e,t)=>e=>{let n=t.specSelectors.isOAS31(),r=t.getComponent(`OAS31VersionPragmaFilter`);return H.createElement(r,xp({isOAS31:n},e))},C0=d0((({originalComponent:e,...t})=>{let{getComponent:n,schema:r,name:i}=t,a=n(`MutualTLSAuth`,!0);return r.get(`type`)===`mutualTLS`?H.createElement(a,{schema:r,name:i}):H.createElement(e,t)})),w0=d0((({getSystem:e,...t})=>{let n=e().getComponent(`OAS31Auths`,!0);return H.createElement(n,t)})),T0=B(),E0=p(((e,t)=>t.specSelectors.specJson()),s0),D0=()=>e=>{let t=e.specSelectors.specJson().get(`webhooks`);return B.isMap(t)?t:T0},O0=p([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree([`webhooks`])],((e,t)=>e.reduce(((e,n,r)=>{if(!B.isMap(n))return e;let i=n.entrySeq().filter((([e])=>t.includes(e))).map((([e,t])=>({operation:B({operation:t}),method:e,path:r,specPath:[`webhooks`,r,e]})));return e.concat(i)}),V()).groupBy((e=>e.path)).map((e=>e.toArray())).toObject())),k0=()=>e=>{let t=e.specSelectors.info().get(`license`);return B.isMap(t)?t:T0},A0=()=>e=>e.specSelectors.license().get(`name`,`License`),j0=()=>e=>e.specSelectors.license().get(`url`),M0=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),N0=()=>e=>e.specSelectors.license().get(`identifier`),P0=()=>e=>{let t=e.specSelectors.info().get(`contact`);return B.isMap(t)?t:T0},F0=()=>e=>e.specSelectors.contact().get(`name`,`the developer`),I0=()=>e=>e.specSelectors.contact().get(`email`),L0=()=>e=>e.specSelectors.contact().get(`url`),R0=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),z0=()=>e=>e.specSelectors.info().get(`title`),B0=()=>e=>e.specSelectors.info().get(`summary`),V0=()=>e=>e.specSelectors.info().get(`description`),H0=()=>e=>e.specSelectors.info().get(`termsOfService`),U0=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),W0=()=>e=>e.specSelectors.externalDocs().get(`description`),G0=()=>e=>e.specSelectors.externalDocs().get(`url`),K0=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),q0=()=>e=>e.specSelectors.specJson().get(`jsonSchemaDialect`),J0=()=>`https://spec.openapis.org/oas/3.1/dialect/base`,Y0=p(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree([`components`,`schemas`])),((e,t)=>B.isMap(e)?B.isMap(t)?Object.entries(e.toJS()).reduce(((e,[n,r])=>(e[n]=t.get(n)?.toJS()||r,e)),{}):e.toJS():{})),X0=(e,t)=>(n,...r)=>t.specSelectors.isOAS31()||e(...r),Z0=l0((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),Q0=l0((()=>(e,t)=>{let n=t.specSelectors.securityDefinitions(),r=e();return n&&n.entrySeq().forEach((([e,t])=>{t?.get(`type`)===`mutualTLS`&&(r=r.push(new B({[e]:t})))})),r})),$0=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],((e,t,n,r)=>n?rJ(n,e,{selectedServer:t}):r?`https://spdx.org/licenses/${r}.html`:void 0)),e2=({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{hasKeyword:i}=n.jsonSchema202012.useFn(),a=r(`JSONSchema202012JSONViewer`);return i(e,`example`)?H.createElement(a,{name:`Example`,value:e.example,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--example`}):null},t2=({schema:e,getSystem:t})=>{let n=e?.xml||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,{path:d}=l(`xml`),{isExpanded:f,setExpanded:p,setCollapsed:m}=c(`xml`),[h,g]=u(),_=o?SG(n):[],v=!!(n.name||n.namespace||n.prefix||_.length>0),y=s(`Accordion`),b=s(`ExpandDeepButton`),x=i(`OpenAPI31Extensions`),S=i(`JSONSchema202012PathContext`)(),C=i(`JSONSchema202012LevelContext`)(),w=(0,H.useCallback)((()=>{f?m():p()}),[f,p,m]),T=(0,H.useCallback)(((e,t)=>{t?p({deep:!0}):m({deep:!0})}),[p,m]);return Object.keys(n).length===0?null:H.createElement(S.Provider,{value:d},H.createElement(C.Provider,{value:g},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--xml`,"data-json-schema-level":h},v?H.createElement(H.Fragment,null,H.createElement(y,{expanded:f,onChange:w},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`XML`)),H.createElement(b,{expanded:f,onClick:T})):H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`XML`),!0===n.attribute&&H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`attribute`),!0===n.wrapped&&H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`wrapped`),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!f})},f&&H.createElement(H.Fragment,null,n.name&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`name`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.name))),n.namespace&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(`div`,{className:`json-schema-2020-12-keyword`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`namespace`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.namespace))),n.prefix&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(`div`,{className:`json-schema-2020-12-keyword`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`prefix`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.prefix)))),_.length>0&&H.createElement(x,{openAPISpecObj:n,openAPIExtensions:_,getSystem:t})))))},n2=({discriminator:e})=>{let t=e?.mapping||{};return Object.keys(t).length===0?null:Object.entries(t).map((([e,t])=>H.createElement(`div`,{key:`${e}-${t}`,className:`json-schema-2020-12-keyword`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},e),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},t))))},r2=({schema:e,getSystem:t})=>{let n=e?.discriminator||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,d=`discriminator`,{path:f}=l(d),{isExpanded:p,setExpanded:m,setCollapsed:h}=c(d),[g,_]=u(),v=o?SG(n):[],y=!!(n.mapping||v.length>0),b=s(`Accordion`),x=s(`ExpandDeepButton`),S=i(`OpenAPI31Extensions`),C=i(`JSONSchema202012PathContext`)(),w=i(`JSONSchema202012LevelContext`)(),T=(0,H.useCallback)((()=>{p?h():m()}),[p,m,h]),E=(0,H.useCallback)(((e,t)=>{t?m({deep:!0}):h({deep:!0})}),[m,h]);return Object.keys(n).length===0?null:H.createElement(C.Provider,{value:f},H.createElement(w.Provider,{value:_},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator`,"data-json-schema-level":g},y?H.createElement(H.Fragment,null,H.createElement(b,{expanded:p,onChange:T},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`Discriminator`)),H.createElement(x,{expanded:p,onClick:E})):H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`Discriminator`),n.propertyName&&H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},n.propertyName),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(n2,{discriminator:n})),v.length>0&&H.createElement(S,{openAPISpecObj:n,openAPIExtensions:v,getSystem:t})))))},i2=({openAPISpecObj:e,getSystem:t,openAPIExtensions:n})=>{let{fn:r}=t(),{useComponent:i}=r.jsonSchema202012,a=i(`JSONViewer`);return n.map((t=>H.createElement(a,{key:t,name:t,value:e[t],className:`json-schema-2020-12-json-viewer-extension-keyword`})))},a2=({schema:e,getSystem:t})=>{let n=e?.externalDocs||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,d=`externalDocs`,{path:f}=l(d),{isExpanded:p,setExpanded:m,setCollapsed:h}=c(d),[g,_]=u(),v=o?SG(n):[],y=!!(n.description||n.url||v.length>0),b=s(`Accordion`),x=s(`ExpandDeepButton`),S=i(`JSONSchema202012KeywordDescription`),C=i(`Link`),w=i(`OpenAPI31Extensions`),T=i(`JSONSchema202012PathContext`)(),E=i(`JSONSchema202012LevelContext`)(),D=(0,H.useCallback)((()=>{p?h():m()}),[p,m,h]),O=(0,H.useCallback)(((e,t)=>{t?m({deep:!0}):h({deep:!0})}),[m,h]);return Object.keys(n).length===0?null:H.createElement(T.Provider,{value:f},H.createElement(E.Provider,{value:_},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs`,"data-json-schema-level":g},y?H.createElement(H.Fragment,null,H.createElement(b,{expanded:p,onChange:D},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`External documentation`)),H.createElement(x,{expanded:p,onClick:O})):H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`External documentation`),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&H.createElement(H.Fragment,null,n.description&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(S,{schema:n,getSystem:t})),n.url&&H.createElement(`li`,{className:`json-schema-2020-12-property`},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`url`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},H.createElement(C,{target:`_blank`,href:iJ(n.url)},n.url))))),v.length>0&&H.createElement(w,{openAPISpecObj:n,openAPIExtensions:v,getSystem:t})))))},o2=d0(({schema:e,getSystem:t})=>{if(!e?.description)return null;let{getComponent:n}=t(),r=n(`Markdown`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},H.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},H.createElement(r,{source:e.description})))}),s2=d0((({schema:e,getSystem:t,originalComponent:n})=>{let{getComponent:r}=t(),i=r(`JSONSchema202012KeywordDiscriminator`),a=r(`JSONSchema202012KeywordXml`),o=r(`JSONSchema202012KeywordExample`),s=r(`JSONSchema202012KeywordExternalDocs`);return H.createElement(H.Fragment,null,H.createElement(n,{schema:e}),H.createElement(i,{schema:e,getSystem:t}),H.createElement(a,{schema:e,getSystem:t}),H.createElement(s,{schema:e,getSystem:t}),H.createElement(o,{schema:e,getSystem:t}))})),c2=d0(({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{useComponent:i,usePath:a}=n.jsonSchema202012,{getDependentRequired:o,getProperties:s}=n.jsonSchema202012.useFn(),c=n.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=a(`properties`),d=i(`JSONSchema`),f=r(`JSONSchema202012PathContext`)(),p=s(e,c);return Object.keys(p).length===0?null:H.createElement(f.Provider,{value:u},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},H.createElement(`ul`,null,Object.entries(p).map((([t,n])=>{let r=l.includes(t),i=o(t,e);return H.createElement(`li`,{key:t,className:(0,Dp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":r})},H.createElement(d,{name:t,schema:n,dependentRequired:i}))})))))}),l2=function({fn:e,getSystem:t}){if(e.jsonSchema202012){let n=((e,t)=>{let{fn:n}=t();if(typeof e!=`function`)return null;let{hasKeyword:r}=n.jsonSchema202012;return t=>e(t)||r(t,`example`)||t?.xml||t?.discriminator||t?.externalDocs})(e.jsonSchema202012.isExpandable,t);Object.assign(this.fn.jsonSchema202012,{isExpandable:n,getProperties:g0})}if(typeof e.sampleFromSchema==`function`&&e.jsonSchema202012){let n=f0({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(tG(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(tG(t)?.type)},t());Object.assign(this.fn,n)}let n=(e=>(t,n=null)=>{let{fn:r}=e();if(r.isFileUploadIntendedOAS30(t,n))return!0;let i=B.isMap(t);if(!i&&!(0,sh.default)(t))return!1;let a=i?t.get(`contentMediaType`):t.contentMediaType,o=i?t.get(`contentEncoding`):t.contentEncoding;return typeof a==`string`&&a!==``||typeof o==`string`&&o!==``})(t),{isFileUploadIntended:r}=f0({isFileUploadIntended:n},t());if(this.fn.isFileUploadIntended=r,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){let{hasSchemaType:n}=f0({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=n}},u2=({fn:e})=>{let t=e.createSystemSelector||u0,n=e.createOnlyOAS31Selector||c0;return{afterLoad:l2,fn:{isOAS31:s0,createSystemSelector:u0,createOnlyOAS31Selector:c0},components:{Webhooks:X1,JsonSchemaDialect:e0,MutualTLSAuth:a0,OAS31Info:$1,OAS31License:Z1,OAS31Contact:Q1,OAS31VersionPragmaFilter:t0,OAS31Model:r0,OAS31Models:i0,OAS31Auths:o0,JSONSchema202012KeywordExample:e2,JSONSchema202012KeywordXml:t2,JSONSchema202012KeywordDiscriminator:r2,JSONSchema202012KeywordExternalDocs:a2,OpenAPI31Extensions:i2},wrapComponents:{InfoContainer:h0,License:p0,Contact:m0,VersionPragmaFilter:S0,Model:y0,Models:x0,AuthItem:C0,auths:w0,JSONSchema202012KeywordDescription:o2,JSONSchema202012KeywordExamples:s2,JSONSchema202012KeywordProperties:c2},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Q0}},spec:{selectors:{isOAS31:t(E0),license:k0,selectLicenseNameField:A0,selectLicenseUrlField:j0,selectLicenseIdentifierField:n(N0),selectLicenseUrl:t(M0),contact:P0,selectContactNameField:F0,selectContactEmailField:I0,selectContactUrlField:L0,selectContactUrl:t(R0),selectInfoTitleField:z0,selectInfoSummaryField:n(B0),selectInfoDescriptionField:V0,selectInfoTermsOfServiceField:H0,selectInfoTermsOfServiceUrl:t(U0),selectExternalDocsDescriptionField:W0,selectExternalDocsUrlField:G0,selectExternalDocsUrl:t(K0),webhooks:n(D0),selectWebhooksOperations:n(t(O0)),selectJsonSchemaDialectField:q0,selectJsonSchemaDialectDefault:J0,selectSchemas:t(Y0)},wrapSelectors:{isOAS3:X0,selectLicenseUrl:Z0}},oas31:{selectors:{selectLicenseUrl:n(t($0))}}}}},d2=({bypass:e,isSwagger2:t,isOAS3:n,isOAS31:r,isOAS32:i,alsoShow:a,children:o})=>e?H.createElement(`div`,null,o):t&&(n||r||i)?H.createElement(`div`,{className:`version-pragma`},a,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,H.createElement(`code`,null,`swagger`),` and `,H.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),H.createElement(`p`,null,`Supported version fields are `,H.createElement(`code`,null,`swagger: "2.0"`),` `,`and `,H.createElement(`code`,null,`openapi: 3.0.x`),`, `,H.createElement(`code`,null,`openapi: 3.1.x`),`, or`,` `,H.createElement(`code`,null,`openapi: 3.2.x`),` (for example,`,` `,H.createElement(`code`,null,`openapi: 3.2.0`),`).`)))):t||n||r||i?H.createElement(`div`,null,o):H.createElement(`div`,{className:`version-pragma`},a,H.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},H.createElement(`div`,null,H.createElement(`h3`,null,`Unable to render this definition`),H.createElement(`p`,null,`The provided definition does not specify a valid version field.`),H.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,H.createElement(`code`,null,`swagger: "2.0"`),` `,`and `,H.createElement(`code`,null,`openapi: 3.0.x`),`, `,H.createElement(`code`,null,`openapi: 3.1.x`),`, or`,` `,H.createElement(`code`,null,`openapi: 3.2.x`),` (for example,`,` `,H.createElement(`code`,null,`openapi: 3.2.0`),`).`)))),f2=e=>{let t=e.get(`openapi`);return typeof t==`string`&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)},p2=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS32()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},m2=e=>(t,...n)=>r=>{let i=e(t,r,...n);return typeof i==`function`?i(r):i},h2=e=>(t,n)=>r=>n.specSelectors.isOAS32()?H.createElement(e,xp({},r,{originalComponent:t,getSystem:n.getSystem})):H.createElement(t,r),g2=(e,t)=>{let{fn:n,specSelectors:r}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{let i=n[e];return[e,(...e)=>r.isOAS32()?t(...e):typeof i==`function`?i(...e):void 0]})))},_2=h2((e=>{let{getSystem:t}=e,n=t().getComponent(`OAS31Contact`,!0);return H.createElement(n,e)})),v2=h2((({getSystem:e})=>{let t=e().getComponent(`OAS31Info`,!0);return H.createElement(t,null)})),y2=h2((e=>{let{getSystem:t}=e,n=t().getComponent(`OAS31License`,!0);return H.createElement(n,e)})),b2=e=>{if(typeof e!=`function`)return null;let t=e();return()=>[...t,`discriminator`,`xml`,`externalDocs`,`example`,`$$ref`]},x2=h2((({getSystem:e,...t})=>{let{getComponent:n,fn:r,getConfigs:i}=e(),a=i(),o=window?.location?.pathname??`/`;if(x2.ModelWithJSONSchemaContext&&x2.pathname===o)return H.createElement(x2.ModelWithJSONSchemaContext,t);let s=n(`OAS31Model`);return x2.ModelWithJSONSchemaContext=n(`withJSONSchema202012SystemContext`)(s,{config:{default$schema:`https://spec.openapis.org/oas/3.2/schema/2025-09-17`,defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:b2(r.jsonSchema202012.getSchemaKeywords)}}),x2.pathname=o,H.createElement(x2.ModelWithJSONSchemaContext,t)}));x2.ModelWithJSONSchemaContext=null,x2.pathname=null;var S2=x2,C2=h2((({getSystem:e})=>{let{getComponent:t,fn:n,getConfigs:r}=e(),i=r(),a=window?.location?.pathname??`/`;if(C2.ModelsWithJSONSchemaContext&&C2.pathname===a)return H.createElement(C2.ModelsWithJSONSchemaContext,null);let o=t(`OAS31Models`,!0);return C2.ModelsWithJSONSchemaContext=t(`withJSONSchema202012SystemContext`)(o,{config:{default$schema:`https://spec.openapis.org/oas/3.2/schema/2025-09-17`,defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:n.jsonSchema202012.getProperties,isExpandable:n.jsonSchema202012.isExpandable,getSchemaKeywords:b2(n.jsonSchema202012.getSchemaKeywords)}}),C2.pathname=a,H.createElement(C2.ModelsWithJSONSchemaContext,null)}));C2.ModelsWithJSONSchemaContext=null,C2.pathname=null;var w2=C2,T2=h2((e=>{let{originalComponent:t}=e;return H.createElement(t,{oasVersion:`3.2`})})),E2=(e,t)=>e=>{let n=t.specSelectors.isOAS32(),r=t.getComponent(`OAS32VersionPragmaFilter`);return H.createElement(r,xp({isOAS32:n},e))},D2=h2(({schema:e,getSystem:t})=>{if(!e?.description)return null;let{getComponent:n}=t(),r=n(`Markdown`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},H.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},H.createElement(r,{source:e.description})))}),O2=h2((({schema:e,getSystem:t,originalComponent:n})=>{let{getComponent:r}=t(),i=r(`JSONSchema202012KeywordDiscriminator`),a=r(`JSONSchema202012KeywordXml`),o=r(`JSONSchema202012KeywordExample`),s=r(`JSONSchema202012KeywordExternalDocs`);return H.createElement(H.Fragment,null,H.createElement(n,{schema:e}),H.createElement(i,{schema:e,getSystem:t}),H.createElement(a,{schema:e,getSystem:t}),H.createElement(s,{schema:e,getSystem:t}),H.createElement(o,{schema:e,getSystem:t}))})),k2=h2(({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{useComponent:i,usePath:a}=n.jsonSchema202012,{getDependentRequired:o,getProperties:s}=n.jsonSchema202012.useFn(),c=n.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=a(`properties`),d=i(`JSONSchema`),f=r(`JSONSchema202012PathContext`)(),p=s(e,c);return Object.keys(p).length===0?null:H.createElement(f.Provider,{value:u},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},H.createElement(`ul`,null,Object.entries(p).map((([t,n])=>{let r=l.includes(t),i=o(t,e);return H.createElement(`li`,{key:t,className:(0,Dp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":r})},H.createElement(d,{name:t,schema:n,dependentRequired:i}))})))))}),A2=(0,ch.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`,`query`]),j2=(e,t)=>(n,...r)=>t.specSelectors.isOAS32()||e(...r),M2=(N2=()=>(e,t)=>t.oas32Selectors.validOperationMethods(),(e,t)=>(n,...r)=>{if(t.getSystem().specSelectors.isOAS32()){let i=N2(n,...r);return typeof i==`function`?i(e,t):i}return e(...r)}),N2,P2=B(),F2=(e,t)=>()=>f2(t.specSelectors.specJson()),I2=()=>e=>{let t=e.specSelectors.info().get(`license`);return B.isMap(t)?t:P2},L2=()=>e=>e.specSelectors.license().get(`name`,`License`),R2=()=>e=>e.specSelectors.license().get(`url`),z2=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),B2=()=>e=>e.specSelectors.license().get(`identifier`),V2=()=>e=>{let t=e.specSelectors.info().get(`contact`);return B.isMap(t)?t:P2},H2=()=>e=>e.specSelectors.contact().get(`name`,`the developer`),U2=()=>e=>e.specSelectors.contact().get(`email`),W2=()=>e=>e.specSelectors.contact().get(`url`),G2=p([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,n)=>{if(n)return rJ(n,e,{selectedServer:t})})),K2=()=>e=>e.specSelectors.info().get(`summary`),q2=function({fn:e,getSystem:t}){if(typeof e.sampleFromSchema==`function`&&e.jsonSchema202012){let n=g2({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(tG(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(tG(t)?.type)},t());Object.assign(this.fn,n)}let n=(e=>(t,n=null)=>{let{fn:r}=e();if(r.isFileUploadIntendedOAS30(t,n))return!0;let i=B.isMap(t);if(!i&&!(0,sh.default)(t))return!1;let a=i?t.get(`contentMediaType`):t.contentMediaType,o=i?t.get(`contentEncoding`):t.contentEncoding;return typeof a==`string`&&a!==``||typeof o==`string`&&o!==``})(t),{isFileUploadIntended:r}=g2({isFileUploadIntended:n},t());if(this.fn.isFileUploadIntended=r,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){let{hasSchemaType:n}=g2({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=n}},J2=({fn:e})=>{let t=e.createSystemSelector||m2;return{afterLoad:q2,fn:{isOAS32:f2,createSystemSelector:m2,createOnlyOAS32Selector:p2},components:{OAS32VersionPragmaFilter:d2},wrapComponents:{Contact:_2,InfoContainer:v2,License:y2,Model:S2,Models:w2,OpenAPIVersion:T2,VersionPragmaFilter:E2,JSONSchema202012KeywordDescription:D2,JSONSchema202012KeywordExamples:O2,JSONSchema202012KeywordProperties:k2},statePlugins:{spec:{selectors:{isOAS32:t(F2),selectInfoSummaryField:K2,license:I2,selectLicenseNameField:L2,selectLicenseUrlField:R2,selectLicenseIdentifierField:B2,selectLicenseUrl:t(z2),contact:V2,selectContactNameField:H2,selectContactEmailField:U2,selectContactUrlField:W2,selectContactUrl:t(G2)},wrapSelectors:{isOAS3:j2,validOperationMethods:M2}},oas32:{selectors:{validOperationMethods:A2}}}}},Y2=Ul.default.object,X2=Ul.default.bool,Z2=(Ul.default.oneOfType([Y2,X2]),(0,H.createContext)(null));Z2.displayName=`JSONSchemaContext`;var Q2=(0,H.createContext)(0);Q2.displayName=`JSONSchemaLevelContext`;var $2=(0,H.createContext)(new Set),e4=(0,H.createContext)([]),t4=class{static Collapsed=`collapsed`;static Expanded=`expanded`;static DeeplyExpanded=`deeply-expanded`},n4=()=>{let{config:e}=(0,H.useContext)(Z2);return e},$=e=>{let{components:t}=(0,H.useContext)(Z2);return t[e]||null},r4=(e=void 0)=>{let{fn:t}=(0,H.useContext)(Z2);return e===void 0?t:t[e]},i4=()=>{let[,e]=(0,H.useState)(null),{state:t}=(0,H.useContext)(Z2);return{state:t,setState:n=>{n(t),e({})}}},a4=()=>{let e=(0,H.useContext)(Q2);return[e,e+1]},o4=e=>{let t=(0,H.useContext)(e4),{setState:n}=i4(),r=typeof e==`string`?[...t,e]:t;return{path:r,pathMutator:(e,t={deep:!1})=>{let i=r.toString();t.deep?n(t=>{Object.keys(t.paths).forEach((n=>{n.startsWith(i)&&(t.paths[n]=e)}))}):n(t=>{t.paths[i]=e,e===t4.Collapsed&&Object.keys(t.paths).forEach((e=>{e.startsWith(i)&&t.paths[e]===t4.DeeplyExpanded&&(t.paths[e]=t4.Expanded)}))})}}},s4=e=>{let[t]=a4(),{defaultExpandedLevels:n}=n4(),{path:r,pathMutator:i}=o4(e),{path:a}=o4(),{state:o}=i4(),s=o.paths[r.toString()],c=o.paths[a.toString()]??o.paths[a.slice(0,-1).toString()],l=s??(n-t>0?t4.Expanded:t4.Collapsed),u=l!==t4.Collapsed;return(0,H.useEffect)((()=>{i(c===t4.DeeplyExpanded?t4.DeeplyExpanded:l)}),[c]),{isExpanded:u,setExpanded:(0,H.useCallback)(((e={deep:!1})=>{i(e.deep?t4.DeeplyExpanded:t4.Expanded)}),[]),setCollapsed:(0,H.useCallback)(((e={deep:!1})=>{i(t4.Collapsed,e)}),[])}},c4=(e=void 0)=>{if(e===void 0)return(0,H.useContext)($2);let t=(0,H.useContext)($2);return new Set([...t,e])},l4=(0,H.forwardRef)((({schema:e,name:t=``,dependentRequired:n=[],onExpand:r=()=>{},identifier:i=``},a)=>{let o=r4(),s=i||e?.$id||t,{path:c}=o4(s),{isExpanded:l,setExpanded:u,setCollapsed:d}=s4(s),[f,p]=a4(),m=(()=>{let[e]=a4();return e>0})(),h=o.isExpandable(e)||n.length>0,g=(e=>c4().has(e))(e),_=c4(e),v=o.stringifyConstraints(e),y=$(`Accordion`),b=$(`Keyword$schema`),x=$(`Keyword$vocabulary`),S=$(`Keyword$id`),C=$(`Keyword$anchor`),w=$(`Keyword$dynamicAnchor`),T=$(`Keyword$ref`),E=$(`Keyword$dynamicRef`),D=$(`Keyword$defs`),O=$(`Keyword$comment`),k=$(`KeywordAllOf`),A=$(`KeywordAnyOf`),j=$(`KeywordOneOf`),M=$(`KeywordNot`),N=$(`KeywordIf`),P=$(`KeywordThen`),ee=$(`KeywordElse`),te=$(`KeywordDependentSchemas`),F=$(`KeywordPrefixItems`),I=$(`KeywordItems`),L=$(`KeywordContains`),R=$(`KeywordProperties`),ne=$(`KeywordPatternProperties`),re=$(`KeywordAdditionalProperties`),ie=$(`KeywordPropertyNames`),ae=$(`KeywordUnevaluatedItems`),oe=$(`KeywordUnevaluatedProperties`),se=$(`KeywordType`),ce=$(`KeywordEnum`),le=$(`KeywordConst`),ue=$(`KeywordConstraint`),de=$(`KeywordDependentRequired`),fe=$(`KeywordContentSchema`),pe=$(`KeywordTitle`),me=$(`KeywordDescription`),he=$(`KeywordDefault`),ge=$(`KeywordDeprecated`),_e=$(`KeywordReadOnly`),ve=$(`KeywordWriteOnly`),ye=$(`KeywordExamples`),be=$(`ExtensionKeywords`),xe=$(`ExpandDeepButton`),Se=(0,H.useCallback)(((e,t)=>{t?u():d(),r(e,t,!1)}),[r,u,d]),Ce=(0,H.useCallback)(((e,t)=>{t?u({deep:!0}):d({deep:!0}),r(e,t,!0)}),[r,u,d]);return H.createElement(e4.Provider,{value:c},H.createElement(Q2.Provider,{value:p},H.createElement($2.Provider,{value:_},H.createElement(`article`,{ref:a,"data-json-schema-level":f,className:(0,Dp.default)(`json-schema-2020-12`,{"json-schema-2020-12--embedded":m,"json-schema-2020-12--circular":g})},H.createElement(`div`,{className:`json-schema-2020-12-head`},h&&!g?H.createElement(H.Fragment,null,H.createElement(y,{expanded:l,onChange:Se},H.createElement(pe,{title:t,schema:e})),H.createElement(xe,{expanded:l,onClick:Ce})):H.createElement(pe,{title:t,schema:e}),H.createElement(ge,{schema:e}),H.createElement(_e,{schema:e}),H.createElement(ve,{schema:e}),H.createElement(se,{schema:e,isCircular:g}),v.length>0&&v.map((e=>H.createElement(ue,{key:`${e.scope}-${e.value}`,constraint:e})))),H.createElement(`div`,{className:(0,Dp.default)(`json-schema-2020-12-body`,{"json-schema-2020-12-body--collapsed":!l})},l&&H.createElement(H.Fragment,null,H.createElement(me,{schema:e}),!g&&h&&H.createElement(H.Fragment,null,H.createElement(R,{schema:e}),H.createElement(ne,{schema:e}),H.createElement(re,{schema:e}),H.createElement(oe,{schema:e}),H.createElement(ie,{schema:e}),H.createElement(k,{schema:e}),H.createElement(A,{schema:e}),H.createElement(j,{schema:e}),H.createElement(M,{schema:e}),H.createElement(N,{schema:e}),H.createElement(P,{schema:e}),H.createElement(ee,{schema:e}),H.createElement(te,{schema:e}),H.createElement(F,{schema:e}),H.createElement(I,{schema:e}),H.createElement(ae,{schema:e}),H.createElement(L,{schema:e}),H.createElement(fe,{schema:e})),H.createElement(ce,{schema:e}),H.createElement(le,{schema:e}),H.createElement(de,{schema:e,dependentRequired:n}),H.createElement(he,{schema:e}),H.createElement(ye,{schema:e}),H.createElement(b,{schema:e}),H.createElement(x,{schema:e}),H.createElement(S,{schema:e}),H.createElement(C,{schema:e}),H.createElement(w,{schema:e}),H.createElement(T,{schema:e}),!g&&h&&H.createElement(D,{schema:e}),H.createElement(E,{schema:e}),H.createElement(O,{schema:e}),H.createElement(be,{schema:e})))))))})),u4=({schema:e})=>e?.$schema?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$schema`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$schema)):null,d4=({schema:e})=>{let t=`$vocabulary`,{path:n}=o4(t),{isExpanded:r,setExpanded:i,setCollapsed:a}=s4(t),o=$(`Accordion`),s=(0,H.useCallback)((()=>{r?a():i()}),[r,i,a]);return e?.$vocabulary&&typeof e.$vocabulary==`object`?H.createElement(e4.Provider,{value:n},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary`},H.createElement(o,{expanded:r,onChange:s},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$vocabulary`)),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,null,r&&Object.entries(e.$vocabulary).map((([e,t])=>H.createElement(`li`,{key:e,className:(0,Dp.default)(`json-schema-2020-12-$vocabulary-uri`,{"json-schema-2020-12-$vocabulary-uri--disabled":!t})},H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e))))))):null},f4=({schema:e})=>e?.$id?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$id`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$id`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$id)):null,p4=({schema:e})=>e?.$anchor?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$anchor`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$anchor)):null,m4=({schema:e})=>e?.$dynamicAnchor?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$dynamicAnchor`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$dynamicAnchor)):null,h4=({schema:e})=>e?.$ref?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$ref`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$ref)):null,g4=({schema:e})=>e?.$dynamicRef?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$dynamicRef`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$dynamicRef)):null,_4=({schema:e})=>{let t=e?.$defs||{},n=`$defs`,{path:r}=o4(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=s4(n),[s,c]=a4(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONSchema`),f=(0,H.useCallback)((()=>{i?o():a()}),[i,a,o]),p=(0,H.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return Object.keys(t).length===0?null:H.createElement(e4.Provider,{value:r},H.createElement(Q2.Provider,{value:c},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs`,"data-json-schema-level":s},H.createElement(l,{expanded:i,onChange:f},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$defs`)),H.createElement(u,{expanded:i,onClick:p}),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&H.createElement(H.Fragment,null,Object.entries(t).map((([e,t])=>H.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},H.createElement(d,{name:e,schema:t})))))))))},v4=({schema:e})=>e?.$comment?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$comment`),H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$comment)):null,y4=({schema:e})=>{let t=e?.allOf||[],n=r4(),r=`allOf`,{path:i}=o4(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=s4(r),[c,l]=a4(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,H.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,H.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?H.createElement(e4.Provider,{value:i},H.createElement(Q2.Provider,{value:l},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf`,"data-json-schema-level":c},H.createElement(u,{expanded:a,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`All of`)),H.createElement(d,{expanded:a,onClick:h}),H.createElement(p,{schema:{allOf:t}}),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&H.createElement(H.Fragment,null,t.map(((e,t)=>H.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},H.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},b4=({schema:e})=>{let t=e?.anyOf||[],n=r4(),r=`anyOf`,{path:i}=o4(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=s4(r),[c,l]=a4(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,H.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,H.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?H.createElement(e4.Provider,{value:i},H.createElement(Q2.Provider,{value:l},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf`,"data-json-schema-level":c},H.createElement(u,{expanded:a,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Any of`)),H.createElement(d,{expanded:a,onClick:h}),H.createElement(p,{schema:{anyOf:t}}),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&H.createElement(H.Fragment,null,t.map(((e,t)=>H.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},H.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},x4=({schema:e})=>{let t=e?.oneOf||[],n=r4(),r=`oneOf`,{path:i}=o4(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=s4(r),[c,l]=a4(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,H.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,H.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?H.createElement(e4.Provider,{value:i},H.createElement(Q2.Provider,{value:l},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf`,"data-json-schema-level":c},H.createElement(u,{expanded:a,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`One of`)),H.createElement(d,{expanded:a,onClick:h}),H.createElement(p,{schema:{oneOf:t}}),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&H.createElement(H.Fragment,null,t.map(((e,t)=>H.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},H.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},S4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`not`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Not`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--not`},H.createElement(n,{name:r,schema:e.not,identifier:`not`}))},C4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`if`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`If`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--if`},H.createElement(n,{name:r,schema:e.if,identifier:`if`}))},w4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`then`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Then`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--then`},H.createElement(n,{name:r,schema:e.then,identifier:`then`}))},T4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`else`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Else`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--if`},H.createElement(n,{name:r,schema:e.else,identifier:`else`}))},E4=({schema:e})=>{let t=e?.dependentSchemas||[],n=`dependentSchemas`,{path:r}=o4(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=s4(n),[s,c]=a4(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONSchema`),f=(0,H.useCallback)((()=>{i?o():a()}),[i,a,o]),p=(0,H.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return typeof t!=`object`||Object.keys(t).length===0?null:H.createElement(e4.Provider,{value:r},H.createElement(Q2.Provider,{value:c},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas`,"data-json-schema-level":s},H.createElement(l,{expanded:i,onChange:f},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Dependent schemas`)),H.createElement(u,{expanded:i,onClick:p}),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&H.createElement(H.Fragment,null,Object.entries(t).map((([e,t])=>H.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},H.createElement(d,{name:e,schema:t})))))))))},D4=({schema:e})=>{let t=e?.prefixItems||[],n=r4(),r=`prefixItems`,{path:i}=o4(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=s4(r),[c,l]=a4(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,H.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,H.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?H.createElement(e4.Provider,{value:i},H.createElement(Q2.Provider,{value:l},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems`,"data-json-schema-level":c},H.createElement(u,{expanded:a,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Prefix items`)),H.createElement(d,{expanded:a,onClick:h}),H.createElement(p,{schema:{prefixItems:t}}),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&H.createElement(H.Fragment,null,t.map(((e,t)=>H.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},H.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},O4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`items`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Items`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--items`},H.createElement(n,{name:r,schema:e.items,identifier:`items`}))},k4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`contains`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Contains`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--contains`},H.createElement(n,{name:r,schema:e.contains,identifier:`contains`}))},A4=({schema:e})=>{let t=r4(),n=e?.properties||{},r=Array.isArray(e?.required)?e.required:[],i=$(`JSONSchema`),{path:a}=o4(`properties`);return Object.keys(n).length===0?null:H.createElement(e4.Provider,{value:a},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},H.createElement(`ul`,null,Object.entries(n).map((([n,a])=>{let o=r.includes(n),s=t.getDependentRequired(n,e);return H.createElement(`li`,{key:n,className:(0,Dp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":o})},H.createElement(i,{name:n,schema:a,dependentRequired:s}))})))))},j4=({schema:e})=>{let t=e?.patternProperties||{},n=$(`JSONSchema`),{path:r}=o4(`patternProperties`);return Object.keys(t).length===0?null:H.createElement(e4.Provider,{value:r},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties`},H.createElement(`ul`,null,Object.entries(t).map((([e,t])=>H.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},H.createElement(n,{name:e,schema:t})))))))},M4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`additionalProperties`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Additional properties`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties`},!0===e.additionalProperties?H.createElement(H.Fragment,null,r,H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`allowed`)):!1===e.additionalProperties?H.createElement(H.Fragment,null,r,H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`forbidden`)):H.createElement(n,{name:r,schema:e.additionalProperties,identifier:`additionalProperties`}))},N4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`),r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Property names`);return t.hasKeyword(e,`propertyNames`)?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames`},H.createElement(n,{name:r,schema:e.propertyNames,identifier:`propertyNames`})):null},P4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`unevaluatedItems`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Unevaluated items`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems`},H.createElement(n,{name:r,schema:e.unevaluatedItems,identifier:`unevaluatedItems`}))},F4=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`unevaluatedProperties`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Unevaluated properties`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties`},H.createElement(n,{name:r,schema:e.unevaluatedProperties,identifier:`unevaluatedProperties`}))},I4=({schema:e,isCircular:t=!1})=>{let n=r4().getType(e),r=t?` [circular]`:``;return H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`${n}${r}`)},L4=({schema:e})=>{let t=$(`JSONViewer`);return Array.isArray(e?.enum)?H.createElement(t,{name:`Enum`,value:e.enum,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--enum`}):null},R4=({schema:e})=>{let t=r4(),n=$(`JSONViewer`);return t.hasKeyword(e,`const`)?H.createElement(n,{name:`Const`,value:e.const,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--const`}):null},z4=e=>typeof e==`string`?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,B4=e=>(t,{lookup:n=`extended`}={})=>{let r=e();if(t?.title!=null)return r.upperFirst(String(t.title));if(n===`extended`){if(t?.$anchor!=null)return r.upperFirst(String(t.$anchor));if(t?.$id!=null)return String(t.$id)}return``},V4=e=>{let t=(n,r=new WeakSet)=>{let i=e();if(n==null)return`any`;if(i.isBooleanJSONSchema(n))return n?`any`:`never`;if(typeof n!=`object`||r.has(n))return`any`;r.add(n);let{type:a,prefixItems:o,items:s}=n,c=()=>{if(Array.isArray(o)){let e=o.map((e=>t(e,r))),n=s?t(s,r):`any`;return`array<[${e.join(`, `)}], ${n}>`}return s?`array<${t(s,r)}>`:`array<any>`};if(n.not&&t(n.not)===`any`)return`never`;let l=(e,i)=>Array.isArray(n[e])?`(${n[e].map((e=>t(e,r))).join(i)})`:null,u=[Array.isArray(a)?a.map((e=>e===`array`?c():e)).join(` | `):a===`array`?c():[`null`,`boolean`,`object`,`array`,`number`,`integer`,`string`].includes(a)?a:(()=>{if(Object.hasOwn(n,`prefixItems`)||Object.hasOwn(n,`items`)||Object.hasOwn(n,`contains`))return c();if(Object.hasOwn(n,`properties`)||Object.hasOwn(n,`additionalProperties`)||Object.hasOwn(n,`patternProperties`))return`object`;if([`int32`,`int64`].includes(n.format))return`integer`;if([`float`,`double`].includes(n.format))return`number`;if(Object.hasOwn(n,`minimum`)||Object.hasOwn(n,`maximum`)||Object.hasOwn(n,`exclusiveMinimum`)||Object.hasOwn(n,`exclusiveMaximum`)||Object.hasOwn(n,`multipleOf`))return`number | integer`;if(Object.hasOwn(n,`pattern`)||Object.hasOwn(n,`format`)||Object.hasOwn(n,`minLength`)||Object.hasOwn(n,`maxLength`)||Object.hasOwn(n,`contentEncoding`)||Object.hasOwn(n,`contentMediaType`))return`string`;if(n.const!==void 0){if(n.const===null)return`null`;if(typeof n.const==`boolean`)return`boolean`;if(typeof n.const==`number`)return Number.isInteger(n.const)?`integer`:`number`;if(typeof n.const==`string`)return`string`;if(Array.isArray(n.const))return`array<any>`;if(typeof n.const==`object`)return`object`}return null})(),l(`oneOf`,` | `),l(`anyOf`,` | `),l(`allOf`,` & `)].filter(Boolean).join(` | `);return r.delete(n),u||`any`};return t},H4=e=>typeof e==`boolean`,U4=(e,t)=>typeof e==`object`&&!!e&&Object.hasOwn(e,t),W4=e=>t=>{let n=e();return t?.$schema||t?.$vocabulary||t?.$id||t?.$anchor||t?.$dynamicAnchor||t?.$ref||t?.$dynamicRef||t?.$defs||t?.$comment||t?.allOf||t?.anyOf||t?.oneOf||n.hasKeyword(t,`not`)||n.hasKeyword(t,`if`)||n.hasKeyword(t,`then`)||n.hasKeyword(t,`else`)||t?.dependentSchemas||t?.prefixItems||n.hasKeyword(t,`items`)||n.hasKeyword(t,`contains`)||t?.properties||t?.patternProperties||n.hasKeyword(t,`additionalProperties`)||n.hasKeyword(t,`propertyNames`)||n.hasKeyword(t,`unevaluatedItems`)||n.hasKeyword(t,`unevaluatedProperties`)||t?.description||t?.enum||n.hasKeyword(t,`const`)||n.hasKeyword(t,`contentSchema`)||n.hasKeyword(t,`default`)||t?.examples||n.getExtensionKeywords(t).length>0},G4=e=>e===null||[`number`,`bigint`,`boolean`].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(G4).join(`, `)}]`:JSON.stringify(e),K4=(e,t,n)=>{let r=typeof t==`number`,i=typeof n==`number`;return r&&i?t===n?`${t} ${e}`:`[${t}, ${n}] ${e}`:r?`≥ ${t} ${e}`:i?`≤ ${n} ${e}`:null},q4=e=>{let t=[],n=(e=>{if(typeof e?.multipleOf!=`number`||e.multipleOf<=0||e.multipleOf===1)return null;let{multipleOf:t}=e;if(Number.isInteger(t))return`multiple of ${t}`;let n=10**t.toString().split(`.`)[1].length;return`multiple of ${t*n}/${n}`})(e);n!==null&&t.push({scope:`number`,value:n});let r=(e=>{let t=e?.minimum,n=e?.maximum,r=e?.exclusiveMinimum,i=e?.exclusiveMaximum,a=typeof t==`number`,o=typeof n==`number`,s=typeof r==`number`,c=typeof i==`number`,l=s&&(!a||t<r),u=c&&(!o||n>i);return(a||s)&&(o||c)?`${l?`(`:`[`}${l?r:t}, ${u?i:n}${u?`)`:`]`}`:a||s?`${l?`>`:`≥`} ${l?r:t}`:o||c?`${u?`<`:`≤`} ${u?i:n}`:null})(e);r!==null&&t.push({scope:`number`,value:r}),e?.format&&t.push({scope:`string`,value:e.format});let i=K4(`characters`,e?.minLength,e?.maxLength);i!==null&&t.push({scope:`string`,value:i}),e?.pattern&&t.push({scope:`string`,value:`matches ${e?.pattern}`}),e?.contentMediaType&&t.push({scope:`string`,value:`media type: ${e.contentMediaType}`}),e?.contentEncoding&&t.push({scope:`string`,value:`encoding: ${e.contentEncoding}`});let a=K4(e?.uniqueItems?`unique items`:`items`,e?.minItems,e?.maxItems);a!==null&&t.push({scope:`array`,value:a}),e?.uniqueItems&&!a&&t.push({scope:`array`,value:`unique`});let o=K4(`contained items`,e?.minContains,e?.maxContains);o!==null&&t.push({scope:`array`,value:o});let s=K4(`properties`,e?.minProperties,e?.maxProperties);return s!==null&&t.push({scope:`object`,value:s}),t},J4=(e,t)=>t?.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce(((t,[n,r])=>(Array.isArray(r)&&r.includes(e)&&t.add(n),t)),new Set)):[],Y4=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),X4=()=>`$schema.$vocabulary.$id.$anchor.$dynamicAnchor.$dynamicRef.$ref.$defs.$comment.allOf.anyOf.oneOf.not.if.then.else.dependentSchemas.prefixItems.items.contains.properties.patternProperties.additionalProperties.propertyNames.unevaluatedItems.unevaluatedProperties.type.enum.const.multipleOf.maximum.exclusiveMaximum.minimum.exclusiveMinimum.maxLength.minLength.pattern.maxItems.minItems.uniqueItems.maxContains.minContains.maxProperties.minProperties.required.dependentRequired.title.description.default.deprecated.readOnly.writeOnly.examples.format.contentEncoding.contentMediaType.contentSchema`.split(`.`),Z4=e=>t=>{let n=e().getSchemaKeywords();return Y4(t)?((e,t)=>{let n=new Set(t);return e.filter((e=>!n.has(e)))})(Object.keys(t),n):[]},Q4=(e,t)=>{let n=B.isMap(e);if(!n&&!Y4(e))return!1;let r=e=>t===e||Array.isArray(t)&&t.includes(e),i=n?e.get(`type`):e.type;return V.isList(i)||Array.isArray(i)?i.some((e=>r(e))):r(i)},$4=H.memo(({constraint:e})=>Y4(e)&&typeof e.scope==`string`&&typeof e.value==`string`?H.createElement(`span`,{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null),e3=({dependentRequired:e})=>Array.isArray(e)&&e.length!==0?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired`},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Required when defined`),H.createElement(`ul`,null,e.map((e=>H.createElement(`li`,{key:e},H.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning`},e)))))):null,t3=({schema:e})=>{let t=r4(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`contentSchema`))return null;let r=H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Content schema`);return H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema`},H.createElement(n,{name:r,schema:e.contentSchema,identifier:`contentSchema`}))},n3=({title:e=``,schema:t})=>{let n=r4(),r=e||n.getTitle(t);return r?H.createElement(`strong`,{className:`json-schema-2020-12__title`},r):null},r3=({schema:e})=>e?.description?H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},H.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},e.description)):null,i3=({schema:e})=>{let t=r4(),n=$(`JSONViewer`);return t.hasKeyword(e,`default`)?H.createElement(n,{name:`Default`,value:e.default,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--default`}):null},a3=({schema:e})=>!0===e?.deprecated?H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--warning`},`deprecated`):null,o3=({schema:e})=>!0===e?.readOnly?H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`read-only`):null,s3=({schema:e})=>!0===e?.writeOnly?H.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`write-only`):null,c3=({schema:e})=>{let t=e?.examples||[],n=$(`JSONViewer`);return Array.isArray(t)&&t.length!==0?H.createElement(n,{name:`Examples`,value:e.examples,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--examples`}):null},l3=({schema:e})=>{let t=r4(),n=`ExtensionKeywords`,{path:r}=o4(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=s4(n),[s,c]=a4(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONViewer`),{showExtensionKeywords:f}=n4(),p=t.getExtensionKeywords(e),m=(0,H.useCallback)((()=>{i?o():a()}),[i,a,o]),h=(0,H.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return f&&p.length!==0?H.createElement(e4.Provider,{value:r},H.createElement(Q2.Provider,{value:c},H.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords`,"data-json-schema-level":s},H.createElement(l,{expanded:i,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension`},`Extension Keywords`)),H.createElement(u,{expanded:i,onClick:h}),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&H.createElement(H.Fragment,null,p.map((t=>H.createElement(d,{key:t,name:t,value:e[t],className:`json-schema-2020-12-json-viewer-extension-keyword`})))))))):null},u3=({name:e,value:t,className:n})=>{let r=r4(),{path:i}=o4(e),{isExpanded:a,setExpanded:o,setCollapsed:s}=s4(e),[c,l]=a4(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=typeof t==`string`||typeof t==`number`||typeof t==`bigint`||typeof t==`boolean`||typeof t==`symbol`||t==null,p=(e=>Y4(e)&&Object.keys(e).length===0)(t)||(e=>Array.isArray(e)&&e.length===0)(t),m=(0,H.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,H.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return f?H.createElement(`div`,{className:(0,Dp.default)(`json-schema-2020-12-json-viewer`,n)},H.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e),H.createElement(`span`,{className:`json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary`},r.stringify(t))):p?H.createElement(`div`,{className:(0,Dp.default)(`json-schema-2020-12-json-viewer`,n)},H.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},Array.isArray(t)?`empty array`:`empty object`)):H.createElement(e4.Provider,{value:i},H.createElement(Q2.Provider,{value:l},H.createElement(`div`,{className:(0,Dp.default)(`json-schema-2020-12-json-viewer`,n),"data-json-schema-level":c},H.createElement(u,{expanded:a,onChange:m},H.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e)),H.createElement(d,{expanded:a,onClick:h}),H.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},Array.isArray(t)?`array`:`object`),H.createElement(`ul`,{className:(0,Dp.default)(`json-schema-2020-12-json-viewer__children`,{"json-schema-2020-12-json-viewer__children--collapsed":!a})},a&&H.createElement(H.Fragment,null,Array.isArray(t)?t.map(((e,t)=>H.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},H.createElement(u3,{name:`#${t}`,value:e,className:n})))):Object.entries(t).map((([e,t])=>H.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},H.createElement(u3,{name:e,value:t,className:n})))))))))},d3=u3,f3=({expanded:e=!1,children:t,onChange:n})=>{let r=$(`ChevronRightIcon`),i=(0,H.useCallback)((t=>{n(t,!e)}),[e,n]);return H.createElement(`button`,{type:`button`,className:`json-schema-2020-12-accordion`,onClick:i},H.createElement(`div`,{className:`json-schema-2020-12-accordion__children`},t),H.createElement(`span`,{className:(0,Dp.default)(`json-schema-2020-12-accordion__icon`,{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},H.createElement(r,null)))},p3=({expanded:e,onClick:t})=>{let n=(0,H.useCallback)((n=>{t(n,!e)}),[e,t]);return H.createElement(`button`,{type:`button`,className:`json-schema-2020-12-expand-deep-button`,onClick:n},e?`Collapse all`:`Expand all`)},m3=()=>H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`},H.createElement(`path`,{fill:`currentColor`,d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})),h3=(e,t={})=>{let n={components:{JSONSchema:l4,Keyword$schema:u4,Keyword$vocabulary:d4,Keyword$id:f4,Keyword$anchor:p4,Keyword$dynamicAnchor:m4,Keyword$ref:h4,Keyword$dynamicRef:g4,Keyword$defs:_4,Keyword$comment:v4,KeywordAllOf:y4,KeywordAnyOf:b4,KeywordOneOf:x4,KeywordNot:S4,KeywordIf:C4,KeywordThen:w4,KeywordElse:T4,KeywordDependentSchemas:E4,KeywordPrefixItems:D4,KeywordItems:O4,KeywordContains:k4,KeywordProperties:A4,KeywordPatternProperties:j4,KeywordAdditionalProperties:M4,KeywordPropertyNames:N4,KeywordUnevaluatedItems:P4,KeywordUnevaluatedProperties:F4,KeywordType:I4,KeywordEnum:L4,KeywordConst:R4,KeywordConstraint:$4,KeywordDependentRequired:e3,KeywordContentSchema:t3,KeywordTitle:n3,KeywordDescription:r3,KeywordDefault:i3,KeywordDeprecated:a3,KeywordReadOnly:o3,KeywordWriteOnly:s3,KeywordExamples:c3,ExtensionKeywords:l3,JSONViewer:d3,Accordion:f3,ExpandDeepButton:p3,ChevronRightIcon:m3,...t.components},config:{default$schema:`https://json-schema.org/draft/2020-12/schema`,defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:z4,getTitle:B4(r4),getType:V4(r4),isBooleanJSONSchema:H4,hasKeyword:U4,isExpandable:W4(r4),stringify:G4,stringifyConstraints:q4,getDependentRequired:J4,getSchemaKeywords:X4,getExtensionKeywords:Z4(r4),...t.fn},state:{paths:{}}},r=t=>H.createElement(Z2.Provider,{value:n},H.createElement(e,t));return r.contexts={JSONSchemaContext:Z2},r.displayName=e.displayName,r},g3=({getSystem:e})=>(t,n={})=>{let{getComponent:r,getConfigs:i}=e(),a=i();return h3(t,{components:{JSONSchema:r(`JSONSchema202012`),Keyword$schema:r(`JSONSchema202012Keyword$schema`),Keyword$vocabulary:r(`JSONSchema202012Keyword$vocabulary`),Keyword$id:r(`JSONSchema202012Keyword$id`),Keyword$anchor:r(`JSONSchema202012Keyword$anchor`),Keyword$dynamicAnchor:r(`JSONSchema202012Keyword$dynamicAnchor`),Keyword$ref:r(`JSONSchema202012Keyword$ref`),Keyword$dynamicRef:r(`JSONSchema202012Keyword$dynamicRef`),Keyword$defs:r(`JSONSchema202012Keyword$defs`),Keyword$comment:r(`JSONSchema202012Keyword$comment`),KeywordAllOf:r(`JSONSchema202012KeywordAllOf`),KeywordAnyOf:r(`JSONSchema202012KeywordAnyOf`),KeywordOneOf:r(`JSONSchema202012KeywordOneOf`),KeywordNot:r(`JSONSchema202012KeywordNot`),KeywordIf:r(`JSONSchema202012KeywordIf`),KeywordThen:r(`JSONSchema202012KeywordThen`),KeywordElse:r(`JSONSchema202012KeywordElse`),KeywordDependentSchemas:r(`JSONSchema202012KeywordDependentSchemas`),KeywordPrefixItems:r(`JSONSchema202012KeywordPrefixItems`),KeywordItems:r(`JSONSchema202012KeywordItems`),KeywordContains:r(`JSONSchema202012KeywordContains`),KeywordProperties:r(`JSONSchema202012KeywordProperties`),KeywordPatternProperties:r(`JSONSchema202012KeywordPatternProperties`),KeywordAdditionalProperties:r(`JSONSchema202012KeywordAdditionalProperties`),KeywordPropertyNames:r(`JSONSchema202012KeywordPropertyNames`),KeywordUnevaluatedItems:r(`JSONSchema202012KeywordUnevaluatedItems`),KeywordUnevaluatedProperties:r(`JSONSchema202012KeywordUnevaluatedProperties`),KeywordType:r(`JSONSchema202012KeywordType`),KeywordEnum:r(`JSONSchema202012KeywordEnum`),KeywordConst:r(`JSONSchema202012KeywordConst`),KeywordConstraint:r(`JSONSchema202012KeywordConstraint`),KeywordDependentRequired:r(`JSONSchema202012KeywordDependentRequired`),KeywordContentSchema:r(`JSONSchema202012KeywordContentSchema`),KeywordTitle:r(`JSONSchema202012KeywordTitle`),KeywordDescription:r(`JSONSchema202012KeywordDescription`),KeywordDefault:r(`JSONSchema202012KeywordDefault`),KeywordDeprecated:r(`JSONSchema202012KeywordDeprecated`),KeywordReadOnly:r(`JSONSchema202012KeywordReadOnly`),KeywordWriteOnly:r(`JSONSchema202012KeywordWriteOnly`),KeywordExamples:r(`JSONSchema202012KeywordExamples`),ExtensionKeywords:r(`JSONSchema202012ExtensionKeywords`),JSONViewer:r(`JSONSchema202012JSONViewer`),Accordion:r(`JSONSchema202012Accordion`),ExpandDeepButton:r(`JSONSchema202012ExpandDeepButton`),ChevronRightIcon:r(`JSONSchema202012ChevronRightIcon`),...n.components},config:{showExtensionKeywords:a.showExtensions,...n.config},fn:{...n.fn}})},_3=({getSystem:e,fn:t})=>{let n=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:l4,JSONSchema202012Keyword$schema:u4,JSONSchema202012Keyword$vocabulary:d4,JSONSchema202012Keyword$id:f4,JSONSchema202012Keyword$anchor:p4,JSONSchema202012Keyword$dynamicAnchor:m4,JSONSchema202012Keyword$ref:h4,JSONSchema202012Keyword$dynamicRef:g4,JSONSchema202012Keyword$defs:_4,JSONSchema202012Keyword$comment:v4,JSONSchema202012KeywordAllOf:y4,JSONSchema202012KeywordAnyOf:b4,JSONSchema202012KeywordOneOf:x4,JSONSchema202012KeywordNot:S4,JSONSchema202012KeywordIf:C4,JSONSchema202012KeywordThen:w4,JSONSchema202012KeywordElse:T4,JSONSchema202012KeywordDependentSchemas:E4,JSONSchema202012KeywordPrefixItems:D4,JSONSchema202012KeywordItems:O4,JSONSchema202012KeywordContains:k4,JSONSchema202012KeywordProperties:A4,JSONSchema202012KeywordPatternProperties:j4,JSONSchema202012KeywordAdditionalProperties:M4,JSONSchema202012KeywordPropertyNames:N4,JSONSchema202012KeywordUnevaluatedItems:P4,JSONSchema202012KeywordUnevaluatedProperties:F4,JSONSchema202012KeywordType:I4,JSONSchema202012KeywordEnum:L4,JSONSchema202012KeywordConst:R4,JSONSchema202012KeywordConstraint:$4,JSONSchema202012KeywordDependentRequired:e3,JSONSchema202012KeywordContentSchema:t3,JSONSchema202012KeywordTitle:n3,JSONSchema202012KeywordDescription:r3,JSONSchema202012KeywordDefault:i3,JSONSchema202012KeywordDeprecated:a3,JSONSchema202012KeywordReadOnly:o3,JSONSchema202012KeywordWriteOnly:s3,JSONSchema202012KeywordExamples:c3,JSONSchema202012ExtensionKeywords:l3,JSONSchema202012JSONViewer:d3,JSONSchema202012Accordion:f3,JSONSchema202012ExpandDeepButton:p3,JSONSchema202012ChevronRightIcon:m3,withJSONSchema202012Context:h3,withJSONSchema202012SystemContext:g3(e()),JSONSchema202012PathContext:()=>e4,JSONSchema202012LevelContext:()=>Q2},fn:{upperFirst:z4,jsonSchema202012:{getTitle:B4(n),getType:V4(n),isExpandable:W4(n),isBooleanJSONSchema:H4,hasKeyword:U4,useFn:r4,useConfig:n4,useComponent:$,useIsExpanded:s4,usePath:o4,useLevel:a4,getSchemaKeywords:X4,getExtensionKeywords:Z4(n),hasSchemaType:Q4}}}},v3=(e,{sample:t=[]}={})=>((e,t={})=>{let{minItems:n,maxItems:r,uniqueItems:i}=t,{contains:a,minContains:o,maxContains:s}=t,c=[...e];if(typeof a==`object`&&a&&Number.isInteger(o)&&o>1){let e=c.at(0);for(let t=1;t<o;t+=1)c.unshift(e)}if(Number.isInteger(r)&&r>0&&(c=e.slice(0,r)),Number.isInteger(n)&&n>0)for(let e=0;c.length<n;e+=1)c.push(c[e%c.length]);return!0===i&&(c=Array.from(new Set(c))),c})(t,e),y3=()=>{throw Error(`Not implemented`)},b3=e=>qW()(e),x3=e=>e.at(0),S3=e=>typeof e==`boolean`,C3=e=>(0,sh.default)(e),w3=e=>S3(e)||C3(e),T3=class{data={};register(e,t){this.data[e]=t}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},E3=()=>0,D3=()=>0,O3=()=>.1,k3=()=>.1,A3=()=>`user@example.com`,j3=()=>`실례@example.com`,M3=()=>`example.com`,N3=()=>`실례.com`,P3=()=>`198.51.100.42`,F3=()=>`2001:0db8:5b96:0000:0000:426f:8e17:642a`,I3=()=>`https://example.com/`,L3=()=>`path/index.html`,R3=()=>`https://실례.com/`,z3=()=>`path/실례.html`,B3=()=>`3fa85f64-5717-4562-b3fc-2c963f66afa6`,V3=()=>`https://example.com/dictionary/{term:1}/{term}`,H3=()=>`/a/b/c`,U3=()=>`1/0`,W3=()=>new Date().toISOString(),G3=()=>new Date().toISOString().substring(0,10),K3=()=>new Date().toISOString().substring(11),q3=()=>`P3D`,J3=()=>`********`,Y3=()=>`^[a-z]+$`,X3=new class extends T3{#e={int32:E3,int64:D3,float:O3,double:k3,email:A3,"idn-email":j3,hostname:M3,"idn-hostname":N3,ipv4:P3,ipv6:F3,uri:I3,"uri-reference":L3,iri:R3,"iri-reference":z3,uuid:B3,"uri-template":V3,"json-pointer":H3,"relative-json-pointer":U3,"date-time":W3,date:G3,time:K3,duration:q3,password:J3,regex:Y3};data={...this.#e};get defaults(){return{...this.#e}}},Z3=(e,t)=>typeof t==`function`?X3.register(e,t):t===null?X3.unregister(e):X3.get(e);Z3.getDefaults=()=>X3.defaults;var Q3=Z3,$3=Q(287).Buffer,e6=e=>$3.from(e).toString(`ascii`),t6=Q(287).Buffer,n6=e=>t6.from(e).toString(`utf8`),r6=Q(287).Buffer,i6=e=>r6.from(e).toString(`binary`),a6=e=>{let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===61)t+=`=3D`;else if(r>=33&&r<=60||r>=62&&r<=126||r===9||r===32)t+=e.charAt(n);else if(r===13||r===10)t+=`\r
|
|
238
|
-
`;else if(r>126){let r=unescape(encodeURIComponent(e.charAt(n)));for(let e=0;e<r.length;e++)t+=`=`+(`0`+r.charCodeAt(e).toString(16)).slice(-2).toUpperCase()}else t+=`=`+(`0`+r.toString(16)).slice(-2).toUpperCase()}return t},o6=Q(287).Buffer,s6=e=>o6.from(e).toString(`hex`),c6=Q(287).Buffer,l6=e=>{let t=c6.from(e).toString(`utf8`),n=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,r=0,i=``,a=0,o=0;for(let e=0;e<t.length;e++)for(a=a<<8|t.charCodeAt(e),o+=8;o>=5;)i+=n.charAt(a>>>o-5&31),o-=5;o>0&&(i+=n.charAt(a<<5-o&31),r=(8-8*t.length%5)%5);for(let e=0;e<r;e++)i+=`=`;return i},u6=Q(287).Buffer,d6=e=>u6.from(e).toString(`base64`),f6=Q(287).Buffer,p6=e=>f6.from(e).toString(`base64url`),m6=new class extends T3{#e={"7bit":e6,"8bit":n6,binary:i6,"quoted-printable":a6,base16:s6,base32:l6,base64:d6,base64url:p6};data={...this.#e};get defaults(){return{...this.#e}}},h6=(e,t)=>typeof t==`function`?m6.register(e,t):t===null?m6.unregister(e):m6.get(e);h6.getDefaults=()=>m6.defaults;var g6=h6,_6={"text/plain":()=>`string`,"text/css":()=>`.selector { border: 1px solid red }`,"text/csv":()=>`value1,value2,value3`,"text/html":()=>`<p>content</p>`,"text/calendar":()=>`BEGIN:VCALENDAR`,"text/javascript":()=>`console.dir('Hello world!');`,"text/xml":()=>`<person age="30">John Doe</person>`,"text/*":()=>`string`},v6={"image/*":()=>b3(25).toString(`binary`)},y6={"audio/*":()=>b3(25).toString(`binary`)},b6={"video/*":()=>b3(25).toString(`binary`)},x6={"application/json":()=>`{"key":"value"}`,"application/ld+json":()=>`{"name": "John Doe"}`,"application/x-httpd-php":()=>`<?php echo '<p>Hello World!</p>'; ?>`,"application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>`echo "Hello World!"`,"application/xhtml+xml":()=>`<p>content</p>`,"application/*":()=>b3(25).toString(`binary`)},S6=new class extends T3{#e={..._6,...v6,...y6,...b6,...x6};data={...this.#e};get defaults(){return{...this.#e}}},C6=(e,t)=>{if(typeof t==`function`)return S6.register(e,t);if(t===null)return S6.unregister(e);let n=e.split(`;`).at(0),r=`${n.split(`/`).at(0)}/*`;return S6.get(e)||S6.get(n)||S6.get(r)};C6.getDefaults=()=>S6.defaults;var w6=C6,T6=(e,t={})=>{let{maxLength:n,minLength:r}=t,i=e;if(Number.isInteger(n)&&n>0&&(i=i.slice(0,n)),Number.isInteger(r)&&r>0){let e=0;for(;i.length<r;)i+=i[e++%i.length]}return i},E6=(e,{sample:t}={})=>{let{contentEncoding:n,contentMediaType:r,contentSchema:i}=e,{pattern:a,format:o}=e,s=g6(n)||fz.default,c;return c=typeof a==`string`?T6((e=>{try{let t=e.replace(/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,`100`),n=new uh.default(t);return n.max=100,n.gen()}catch{return`string`}})(a),e):typeof o==`string`?(e=>{let{format:t}=e,n=Q3(t);return typeof n==`function`?n(e):`string`})(e):w3(i)&&typeof r==`string`&&t!==void 0?Array.isArray(t)||typeof t==`object`?JSON.stringify(t):T6(String(t),e):typeof r==`string`?(e=>{let{contentMediaType:t}=e,n=w6(t);return typeof n==`function`?n(e):`string`})(e):T6(`string`,e),s(c)},D6=(e,t={})=>{let{minimum:n,maximum:r,exclusiveMinimum:i,exclusiveMaximum:a}=t,{multipleOf:o}=t,s=Number.isInteger(e)?1:2**-52,c=typeof n==`number`?n:null,l=typeof r==`number`?r:null,u=e;if(typeof i==`number`&&(c=c===null?i+s:Math.max(c,i+s)),typeof a==`number`&&(l=l===null?a-s:Math.min(l,a-s)),u=c>l&&e||c||l||u,typeof o==`number`&&o>0){let e=u%o;u=e===0?u:u+o-e}return u},O6=new Proxy({array:v3,object:y3,string:E6,number:e=>{let{format:t}=e,n;return n=typeof t==`string`?(e=>{let{format:t}=e,n=Q3(t);return typeof n==`function`?n(e):0})(e):0,D6(n,e)},integer:e=>{let{format:t}=e,n;return n=typeof t==`string`?(e=>{let{format:t}=e,n=Q3(t);if(typeof n==`function`)return n(e);switch(t){case`int32`:return E3();case`int64`:return D3()}return 0})(e):0,D6(n,e)},boolean:e=>typeof e.default!=`boolean`||e.default,null:()=>null},{get:(e,t)=>typeof t==`string`&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`}),k6=[`array`,`object`,`number`,`integer`,`string`,`boolean`,`null`],A6=e=>{if(!C3(e))return!1;let{examples:t,example:n,default:r}=e;return!!(Array.isArray(t)&&t.length>=1)||r!==void 0||n!==void 0},j6=e=>{if(!C3(e))return null;let{examples:t,example:n,default:r}=e;return Array.isArray(t)&&t.length>=1?t.at(0):r===void 0?n===void 0?void 0:n:r},M6={array:[`items`,`prefixItems`,`contains`,`maxContains`,`minContains`,`maxItems`,`minItems`,`uniqueItems`,`unevaluatedItems`],object:[`properties`,`additionalProperties`,`patternProperties`,`propertyNames`,`minProperties`,`maxProperties`,`required`,`dependentSchemas`,`dependentRequired`,`unevaluatedProperties`],string:[`pattern`,`format`,`minLength`,`maxLength`,`contentEncoding`,`contentMediaType`,`contentSchema`],integer:[`minimum`,`maximum`,`exclusiveMinimum`,`exclusiveMaximum`,`multipleOf`]};M6.number=M6.integer;var N6=`string`,P6=e=>e===void 0?null:e===null?`null`:Array.isArray(e)?`array`:Number.isInteger(e)?`integer`:typeof e,F6=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes(`array`))return`array`;if(e.includes(`object`))return`object`;{let t=e.filter((e=>e!==`null`)),n=x3(t.length>0?t:e);if(k6.includes(n))return n}}return k6.includes(e)?e:null},I6=(e,t=new WeakSet)=>{if(!C3(e)||t.has(e))return N6;t.add(e);let{type:n,const:r}=e;if(n=F6(n),typeof n!=`string`){let t=Object.keys(M6);e:for(let r=0;r<t.length;r+=1){let i=t[r],a=M6[i];for(let t=0;t<a.length;t+=1){let r=a[t];if(Object.hasOwn(e,r)){n=i;break e}}}}if(typeof n!=`string`&&r!==void 0){let e=P6(r);n=typeof e==`string`?e:n}if(typeof n!=`string`){let r=n=>Array.isArray(e[n])?F6(e[n].map((e=>I6(e,t)))):null,i=r(`allOf`),a=r(`anyOf`),o=r(`oneOf`),s=e.not?I6(e.not,t):null;(i||a||o||s)&&(n=F6([i,a,o,s].filter(Boolean)))}if(typeof n!=`string`&&A6(e)){let t=P6(j6(e));n=typeof t==`string`?t:n}return t.delete(e),n||N6},L6=e=>I6(e),R6=e=>S3(e)?(e=>!1===e?{not:{}}:{})(e):C3(e)?e:{},z6=(e,t,n={})=>{if(S3(e)&&!0===e)return!0;if(S3(e)&&!1===e)return!1;if(S3(t)&&!0===t)return!0;if(S3(t)&&!1===t)return!1;if(!w3(e))return t;if(!w3(t))return e;let r={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type==`string`){let n=iG(t.type).concat(e.type);r.type=Array.from(new Set(n))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(r.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){let i=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);r.properties={};for(let a of i){let i=t.properties[a]||{},o=e.properties[a]||{};i.readOnly&&!n.includeReadOnly||i.writeOnly&&!n.includeWriteOnly?r.required=(r.required||[]).filter((e=>e!==a)):r.properties[a]=z6(o,i,n)}}return w3(t.items)&&w3(e.items)&&(r.items=z6(e.items,t.items,n)),w3(t.contains)&&w3(e.contains)&&(r.contains=z6(e.contains,t.contains,n)),w3(t.contentSchema)&&w3(e.contentSchema)&&(r.contentSchema=z6(e.contentSchema,t.contentSchema,n)),r},B6=z6,V6=(e,t={},n=void 0,r=!1)=>{if(e==null&&n===void 0)return;typeof e?.toJS==`function`&&(e=e.toJS()),e=R6(e);let i=n!==void 0||A6(e),a=!i&&Array.isArray(e.oneOf)&&e.oneOf.length>0,o=!i&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!i&&(a||o)){let n=R6(x3(a?e.oneOf:e.anyOf));!(e=B6(e,n,t)).xml&&n.xml&&(e.xml=n.xml),A6(e)&&A6(n)&&(i=!0)}let s={},{xml:c,properties:l,additionalProperties:u,items:d,contains:f}=e||{},p=L6(e),{includeReadOnly:m,includeWriteOnly:h}=t;c||={};let g,{name:_,prefix:v,namespace:y}=c,b={};Object.hasOwn(e,`type`)||(e.type=p),r&&(_||=`notagname`,g=(v?`${v}:`:``)+_,y)&&(s[v?`xmlns:${v}`:`xmlns`]=y),r&&(b[g]=[]);let x=nG(l),S,C=0,w=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&C>=e.maxProperties,T=t=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!w()&&(!(t=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(t))(t)||e.maxProperties-C-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let t=0;return r?e.required.forEach((e=>t+=b[e]===void 0?0:1)):e.required.forEach((e=>{t+=b[g]?.find((t=>t[e]!==void 0))===void 0?0:1})),e.required.length-t})()>0);if(S=r?(n,i=void 0)=>{if(e&&x[n]){if(x[n].xml=x[n].xml||{},x[n].xml.attribute){let e=Array.isArray(x[n].enum)?x3(x[n].enum):void 0;if(A6(x[n]))s[x[n].xml.name||n]=j6(x[n]);else if(e!==void 0)s[x[n].xml.name||n]=e;else{let e=R6(x[n]),r=L6(e),a=x[n].xml.name||n;if(r===`array`){let e=V6(x[n],t,i,!1);s[a]=e.map((e=>(0,sh.default)(e)?`UnknownTypeObject`:Array.isArray(e)?`UnknownTypeArray`:e)).join(` `)}else s[a]=r===`object`?`UnknownTypeObject`:O6[r](e)}return}x[n].xml.name=x[n].xml.name||n}else x[n]||!1===u||(x[n]={xml:{name:n}});let a=V6(x[n],t,i,r);T(n)&&(C++,Array.isArray(a)?b[g]=b[g].concat(a):b[g].push(a))}:(n,i)=>{if(T(n)){if((0,sh.default)(e.discriminator?.mapping)&&e.discriminator.propertyName===n&&typeof e.$$ref==`string`){for(let t in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[t])!==-1){b[n]=t;break}}else b[n]=V6(x[n],t,i,r);C++}},i){let i;if(i=n===void 0?j6(e):n,!r){if(typeof i==`number`&&p===`string`)return`${i}`;if(typeof i!=`string`||p===`string`)return i;try{return JSON.parse(i)}catch{return i}}if(p===`array`){if(!Array.isArray(i)){if(typeof i==`string`)return i;i=[i]}let n=[];return C3(d)&&(d.xml=d.xml||c||{},d.xml.name=d.xml.name||c.name,n=i.map((e=>V6(d,t,e,r)))),C3(f)&&(f.xml=f.xml||c||{},f.xml.name=f.xml.name||c.name,n=[V6(f,t,void 0,r),...n]),n=O6.array(e,{sample:n}),c.wrapped?(b[g]=n,(0,dh.default)(s)||b[g].push({_attr:s})):b=n,b}if(p===`object`){if(typeof i==`string`)return i;for(let e in i)Object.hasOwn(i,e)&&(x[e]?.readOnly&&!m||x[e]?.writeOnly&&!h||(x[e]?.xml?.attribute?s[x[e].xml.name||e]=i[e]:S(e,i[e])));return(0,dh.default)(s)||b[g].push({_attr:s}),b}return b[g]=(0,dh.default)(s)?i:[{_attr:s},i],b}if(p===`array`){let n=[];if(C3(f)){if(r&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||c.name),Array.isArray(f.anyOf)){let{anyOf:e,...i}=d;n.push(...f.anyOf.map((e=>V6(B6(e,i,t),t,void 0,r))))}else if(Array.isArray(f.oneOf)){let{oneOf:e,...i}=d;n.push(...f.oneOf.map((e=>V6(B6(e,i,t),t,void 0,r))))}else{if(!(!r||r&&c.wrapped))return V6(f,t,void 0,r);n.push(V6(f,t,void 0,r))}}if(C3(d)){if(r&&(d.xml=d.xml||e.xml||{},d.xml.name=d.xml.name||c.name),Array.isArray(d.anyOf)){let{anyOf:e,...i}=d;n.push(...d.anyOf.map((e=>V6(B6(e,i,t),t,void 0,r))))}else if(Array.isArray(d.oneOf)){let{oneOf:e,...i}=d;n.push(...d.oneOf.map((e=>V6(B6(e,i,t),t,void 0,r))))}else{if(!(!r||r&&c.wrapped))return V6(d,t,void 0,r);n.push(V6(d,t,void 0,r))}}return n=O6.array(e,{sample:n}),r&&c.wrapped?(b[g]=n,(0,dh.default)(s)||b[g].push({_attr:s}),b):n}if(p===`object`){for(let e in x)Object.hasOwn(x,e)&&(x[e]?.deprecated||x[e]?.readOnly&&!m||x[e]?.writeOnly&&!h||S(e));if(r&&s&&b[g].push({_attr:s}),w())return b;if(S3(u)&&u)r?b[g].push({additionalProp:`Anything can be here`}):b.additionalProp1={},C++;else if(C3(u)){let n=u,i=V6(n,t,void 0,r);if(r&&typeof n?.xml?.name==`string`&&n?.xml?.name!==`notagname`)b[g].push(i);else{let t=n?.[`x-additionalPropertiesName`]||`additionalProp`,a=Number.isInteger(e.minProperties)&&e.minProperties>0&&C<e.minProperties?e.minProperties-C:3;for(let e=1;e<=a;e++){if(w())return b;if(r){let n={};n[t+e]=i.notagname,b[g].push(n)}else b[t+e]=i;C++}}}return b}let E;if(e.const!==void 0)E=e.const;else if(e&&Array.isArray(e.enum))E=x3(iG(e.enum));else{let n=C3(e.contentSchema)?V6(e.contentSchema,t,void 0,r):void 0;E=O6[p](e,{sample:n})}return r?(b[g]=(0,dh.default)(s)?E:[{_attr:s},E],b):E},H6=(e,t,n)=>{let r=V6(e,t,n,!0);if(r)return typeof r==`string`?r:DJ()(r,{declaration:!0,indent:` `})},U6=(e,t,n)=>V6(e,t,n,!1),W6=(e,t,n)=>[e,JSON.stringify(t),JSON.stringify(n)],G6=jJ(H6,W6),K6=jJ(U6,W6),q6=new class extends T3{#e={};data={...this.#e};get defaults(){return{...this.#e}}},J6=(e,t)=>(t!==void 0&&q6.register(e,t),q6.get(e)),Y6=[{when:/json/,shouldStringifyTypes:[`string`]}],X6=[`object`],Z6=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.jsonSchema202012.memoizedSampleFromSchema(t,n,i),s=typeof o,c=Y6.reduce(((e,t)=>t.when.test(r)?[...e,...t.shouldStringifyTypes]:e),X6);return(0,eu.default)(c,(e=>e===s))?JSON.stringify(o,null,2):o},Q6=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.jsonSchema202012.getJsonSampleSchema(t,n,r,i),s;try{s=Ed.dump(Ed.load(o),{lineWidth:-1},{schema:Ad}),s[s.length-1]===`
|
|
239
|
-
`&&(s=s.slice(0,s.length-1))}catch(e){return console.error(e),`error: could not generate yaml example`}return s.replace(/\t/g,` `)},$6=e=>(t,n,r)=>{let{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
|
|
240
|
-
<!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(t,n,r)},e8=e=>(t,n=``,r={},i=void 0)=>{let{fn:a}=e();return typeof t?.toJS==`function`&&(t=t.toJS()),typeof i?.toJS==`function`&&(i=i.toJS()),/xml/.test(n)?a.jsonSchema202012.getXmlSampleSchema(t,r,i):/(yaml|yml)/.test(n)?a.jsonSchema202012.getYamlSampleSchema(t,r,n,i):a.jsonSchema202012.getJsonSampleSchema(t,r,n,i)},t8=({getSystem:e})=>({fn:{jsonSchema202012:{sampleFromSchema:U6,sampleFromSchemaGeneric:V6,sampleOptionAPI:J6,sampleEncoderAPI:g6,sampleFormatAPI:Q3,sampleMediaTypeAPI:w6,createXMLExample:H6,memoizedSampleFromSchema:K6,memoizedCreateXMLExample:G6,getJsonSampleSchema:Z6(e),getYamlSampleSchema:Q6(e),getXmlSampleSchema:$6(e),getSampleSchema:e8(e),mergeJsonSchema:B6,foldType:F6}}});function n8(){return[x$,Y1,_3,t8,u2,J2]}var r8=e=>()=>({fn:e.fn,components:e.components}),i8=e=>{let t=AW()({layout:{layout:e.layout,filter:e.filter},spec:{spec:``,url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(let[n,r]of Object.entries(e.initialState))r===void 0&&delete t[n];return{system:{configs:e.configs},plugins:e.presets,state:t}},a8=()=>e=>{let t=e.queryConfigEnabled?(()=>{let e=new URLSearchParams(GW.location.search);return Object.fromEntries(e)})():{};return Object.entries(t).reduce(((e,[t,n])=>(t===`config`?e.configUrl=n:t===`urls.primaryName`?e[t]=n:e=(0,mh.default)(e,t,n),e)),{})},o8=({url:e,system:t})=>async n=>{if(!e||typeof t.configsActions?.getConfigByUrl!=`function`)return{};let r=(()=>{let e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:n.requestInterceptor,responseInterceptor:n.responseInterceptor},(e=>{r.resolve(e)})),r.promise},s8=()=>()=>{let e={};return globalThis.location&&(e.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf(`/`))}/oauth2-redirect.html`),e},c8=Object.freeze({dom_id:null,domNode:null,spec:{},url:``,urls:null,configUrl:null,layout:`BaseLayout`,docExpansion:`list`,maxDisplayedTags:-1,filter:!1,validatorUrl:`https://validator.swagger.io/validator`,oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>(e.curlOptions=[],e),responseInterceptor:e=>e,showMutatedRequest:!0,defaultModelRendering:`example`,defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:`cURL (bash)`,syntax:`bash`},curl_powershell:{title:`cURL (PowerShell)`,syntax:`powershell`},curl_cmd:{title:`cURL (CMD)`,syntax:`bash`}},defaultExpanded:!0,languages:null},supportedSubmitMethods:[`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`],queryConfigEnabled:!1,presets:[n8],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:`agate`},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:[`application/octet-stream`,`image/`,`audio/`,`video/`],uncaughtExceptionHandler:null}),l8=(e,t=[])=>Array.isArray(e)?e:t,u8=(e,t=!1)=>!0===e||e===`true`||e===1||e===`1`||!1!==e&&e!==`false`&&e!==0&&e!==`0`&&t,d8=e=>e===null||e===`null`?null:e,f8=e=>u8(e,String(e)),p8=(e,t)=>typeof e==`function`?e:t,m8=e=>Array.isArray(e)?e:null,h8=e=>typeof e==`function`?e:null,g8=e=>e===null||e===`null`?null:String(e),_8=(e,t=-1)=>{let n=parseInt(e,10);return Number.isNaN(n)?t:n},v8=(e,t={})=>(0,sh.default)(e)?e:t,y8=e=>typeof e==`function`||typeof e==`string`?e:null,b8=e=>String(e),x8={components:{typeCaster:v8},configs:{typeCaster:v8},configUrl:{typeCaster:g8},deepLinking:{typeCaster:u8,defaultValue:c8.deepLinking},defaultModelExpandDepth:{typeCaster:_8,defaultValue:c8.defaultModelExpandDepth},defaultModelRendering:{typeCaster:b8},defaultModelsExpandDepth:{typeCaster:_8,defaultValue:c8.defaultModelsExpandDepth},displayOperationId:{typeCaster:u8,defaultValue:c8.displayOperationId},displayRequestDuration:{typeCaster:u8,defaultValue:c8.displayRequestDuration},docExpansion:{typeCaster:b8},dom_id:{typeCaster:g8},domNode:{typeCaster:d8},fileUploadMediaTypes:{typeCaster:l8,defaultValue:c8.fileUploadMediaTypes},filter:{typeCaster:f8},fn:{typeCaster:v8},initialState:{typeCaster:v8},layout:{typeCaster:b8},maxDisplayedTags:{typeCaster:_8,defaultValue:c8.maxDisplayedTags},modelPropertyMacro:{typeCaster:h8},oauth2RedirectUrl:{typeCaster:e=>e===void 0||e===`undefined`?void 0:String(e)},onComplete:{typeCaster:h8},operationsSorter:{typeCaster:y8},paramaterMacro:{typeCaster:h8},persistAuthorization:{typeCaster:u8,defaultValue:c8.persistAuthorization},plugins:{typeCaster:l8,defaultValue:c8.plugins},presets:{typeCaster:l8,defaultValue:c8.presets},requestInterceptor:{typeCaster:p8,defaultValue:c8.requestInterceptor},requestSnippets:{typeCaster:v8,defaultValue:c8.requestSnippets},requestSnippetsEnabled:{typeCaster:u8,defaultValue:c8.requestSnippetsEnabled},responseInterceptor:{typeCaster:p8,defaultValue:c8.responseInterceptor},showCommonExtensions:{typeCaster:u8,defaultValue:c8.showCommonExtensions},showExtensions:{typeCaster:u8,defaultValue:c8.showExtensions},showMutatedRequest:{typeCaster:u8,defaultValue:c8.showMutatedRequest},spec:{typeCaster:v8,defaultValue:c8.spec},supportedSubmitMethods:{typeCaster:l8,defaultValue:c8.supportedSubmitMethods},syntaxHighlight:{typeCaster:(e,t)=>(0,sh.default)(e)?e:!1===e||e===`false`||e===0||e===`0`?{activated:!1}:t,defaultValue:c8.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:u8,defaultValue:c8.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:b8},tagsSorter:{typeCaster:y8},tryItOutEnabled:{typeCaster:u8,defaultValue:c8.tryItOutEnabled},url:{typeCaster:b8},urls:{typeCaster:m8},"urls.primaryName":{typeCaster:b8},validatorUrl:{typeCaster:g8},withCredentials:{typeCaster:u8,defaultValue:c8.withCredentials},uncaughtExceptionHandler:{typeCaster:h8}},S8=e=>Object.entries(x8).reduce(((e,[t,{typeCaster:n,defaultValue:r}])=>{if((0,rW.default)(e,t)){let i=n((0,hp.default)(e,t),r);e=(0,iW.default)(t,i,e)}return e}),{...e}),C8=(e,...t)=>{let n=Symbol.for(`domNode`),r=Symbol.for(`primaryName`),i=[];for(let e of t){let t={...e};Object.hasOwn(t,`domNode`)&&(n=t.domNode,delete t.domNode),Object.hasOwn(t,`urls.primaryName`)?(r=t[`urls.primaryName`],delete t[`urls.primaryName`]):Array.isArray(t.urls)&&Object.hasOwn(t.urls,`primaryName`)&&(r=t.urls.primaryName,delete t.urls.primaryName),i.push(t)}let a=AW()(e,...i);return n!==Symbol.for(`domNode`)&&(a.domNode=n),r!==Symbol.for(`primaryName`)&&Array.isArray(a.urls)&&(a.urls.primaryName=r),S8(a)};function w8(e){let t=a8()(e),n=s8()(),r=w8.config.merge({},w8.config.defaults,n,e,t),i=i8(r),a=r8(r),o=new jG(i);o.register([r.plugins,a]);let s=o.getSystem(),c=e=>{o.setConfigs(e),s.configsActions.loaded()},l=e=>{!t.url&&typeof e.spec==`object`&&Object.keys(e.spec).length>0?(s.specActions.updateUrl(``),s.specActions.updateLoadingStatus(`success`),s.specActions.updateSpec(JSON.stringify(e.spec))):typeof s.specActions.download==`function`&&e.url&&!e.urls&&(s.specActions.updateUrl(e.url),s.specActions.download(e.url))},u=e=>{if(e.domNode)s.render(e.domNode,`App`);else if(e.dom_id){let t=document.querySelector(e.dom_id);s.render(t,`App`)}else e.dom_id===null||e.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return r.configUrl?((async()=>{let{configUrl:e}=r,n=await o8({url:e,system:s})(r),i=w8.config.merge({},r,n,t);c(i),n!==null&&l(i),u(i)})(),s):(c(r),l(r),u(r),s)}w8.System=jG,w8.config={defaults:c8,merge:C8,typeCast:S8,typeCastMappings:x8},w8.presets={base:x$,apis:n8},w8.plugins={Accessibility:RG,Auth:wK,Configs:IK,DeepLining:UK,Err:ZK,Filter:$K,Icons:sq,JSONSchema5:TJ,JSONSchema5Samples:eY,JSONSchema202012:_3,JSONSchema202012Samples:t8,Layout:Cq,Logs:wq,OpenAPI30:Y1,OpenAPI31:Y1,OnComplete:Eq,RequestSnippets:Uq,Spec:oZ,SwaggerClient:cZ,Util:lZ,View:vZ,ViewLegacy:yZ,DownloadUrl:bZ,SyntaxHighlighting:AZ,Versions:MZ,SafeRender:LZ};var T8=w8,{config:E8}=T8,D8=e=>{let t=(0,H.useRef)();return(0,H.useEffect)(()=>{t.current=e},[e]),t.current},O8=({spec:e=E8.defaults.spec,url:t=E8.defaults.url,layout:n=E8.defaults.layout,requestInterceptor:r=E8.defaults.requestInterceptor,responseInterceptor:i=E8.defaults.responseInterceptor,supportedSubmitMethods:a=E8.defaults.supportedSubmitMethods,queryConfigEnabled:o=E8.defaults.queryConfigEnabled,plugins:s=E8.defaults.plugins,displayOperationId:c=E8.defaults.displayOperationId,showMutatedRequest:l=E8.defaults.showMutatedRequest,docExpansion:u=E8.defaults.docExpansion,defaultModelExpandDepth:d=E8.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:f=E8.defaults.defaultModelsExpandDepth,defaultModelRendering:p=E8.defaults.defaultModelRendering,presets:m=E8.defaults.presets,deepLinking:h=E8.defaults.deepLinking,showExtensions:g=E8.defaults.showExtensions,showCommonExtensions:_=E8.defaults.showCommonExtensions,filter:v=E8.defaults.filter,requestSnippetsEnabled:y=E8.defaults.requestSnippetsEnabled,requestSnippets:b=E8.defaults.requestSnippets,tryItOutEnabled:x=E8.defaults.tryItOutEnabled,displayRequestDuration:S=E8.defaults.displayRequestDuration,withCredentials:C=E8.defaults.withCredentials,persistAuthorization:w=E8.defaults.persistAuthorization,oauth2RedirectUrl:T=E8.defaults.oauth2RedirectUrl,onComplete:E=null,initialState:D=E8.defaults.initialState,uncaughtExceptionHandler:O=E8.defaults.uncaughtExceptionHandler})=>{let[k,A]=(0,H.useState)(null),j=k?.getComponent(`App`,`root`),M=D8(e),N=D8(t);return(0,H.useEffect)(()=>{let k=T8({plugins:s,spec:e,url:t,layout:n,defaultModelsExpandDepth:f,defaultModelRendering:p,presets:[T8.presets.apis,...m],requestInterceptor:r,responseInterceptor:i,onComplete:()=>{typeof E==`function`&&E(k)},docExpansion:u,supportedSubmitMethods:a,queryConfigEnabled:o,defaultModelExpandDepth:d,displayOperationId:c,tryItOutEnabled:x,displayRequestDuration:S,requestSnippetsEnabled:y,requestSnippets:b,showMutatedRequest:l,deepLinking:h,showExtensions:g,showCommonExtensions:_,filter:v,persistAuthorization:w,withCredentials:C,initialState:D,uncaughtExceptionHandler:O,...typeof T==`string`?{oauth2RedirectUrl:T}:{}});A(k)},[]),(0,H.useEffect)(()=>{k&&(t!==k.specSelectors.url()||t!==N)&&(k.specActions.updateSpec(``),t&&(k.specActions.updateUrl(t),k.specActions.download(t)))},[k,t]),(0,H.useEffect)(()=>{if(k){let t=k.specSelectors.specStr();if(e&&e!==T8.config.defaults.spec&&(e!==t||e!==M)){let t=typeof e==`object`?JSON.stringify(e):e;k.specActions.updateSpec(t)}}},[k,e]),j?H.createElement(j,null):null};O8.System=T8.System,O8.presets=T8.presets,O8.plugins=T8.plugins,O8.config=T8.config;export{O8 as default};
|