ranui 0.2.1-alpha.1 → 0.2.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-1lUEp_ro.js} +83 -76
- package/dist/button-Cj-XSCsd.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-BHN9Xp4S.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-O_J_n1_W.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-mebH0XLm.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-YOKzMoc7.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-CzGAVWYC.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-ZNhcQ4tf.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-B8afuJlF.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-BniIptBE.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-GZrfSeon.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-CqoQfJoV.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-BlwAXu7I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-M6gWxLbm.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-8E-45Y8e.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-C1oQyPE3.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-CNdmbeLf.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-gRagDkTb.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CAQ5Og2P.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-BZKSLe3D.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-vk40tuhm.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-Bg0cexzU.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-CGwS0cd_.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-BK6DEkcN.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-ClF1awGi.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-BL0V7Kjf.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-BIFVbQIj.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-D7JIbROq.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-DFVtDJb2.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-C3qZGN-D.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-BXNH5uPD.js} +45 -45
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +135 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +170 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,1280 @@
|
|
|
1
|
+
import { n as f } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
function ve(e) {
|
|
3
|
+
return typeof e > "u" || e === null;
|
|
4
|
+
}
|
|
5
|
+
f(ve, "isNothing");
|
|
6
|
+
function Ee(e) {
|
|
7
|
+
return typeof e == "object" && e !== null;
|
|
8
|
+
}
|
|
9
|
+
f(Ee, "isObject");
|
|
10
|
+
function Oe(e) {
|
|
11
|
+
return Array.isArray(e) ? e : ve(e) ? [] : [e];
|
|
12
|
+
}
|
|
13
|
+
f(Oe, "toArray");
|
|
14
|
+
function Ie(e, n) {
|
|
15
|
+
var i, l, r, u;
|
|
16
|
+
if (n)
|
|
17
|
+
for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1)
|
|
18
|
+
r = u[i], e[r] = n[r];
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
f(Ie, "extend");
|
|
22
|
+
function ke(e, n) {
|
|
23
|
+
var i = "", l;
|
|
24
|
+
for (l = 0; l < n; l += 1) i += e;
|
|
25
|
+
return i;
|
|
26
|
+
}
|
|
27
|
+
f(ke, "repeat");
|
|
28
|
+
function Le(e) {
|
|
29
|
+
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
30
|
+
}
|
|
31
|
+
f(Le, "isNegativeZero");
|
|
32
|
+
var _ = {
|
|
33
|
+
isNothing: ve,
|
|
34
|
+
isObject: Ee,
|
|
35
|
+
toArray: Oe,
|
|
36
|
+
repeat: ke,
|
|
37
|
+
isNegativeZero: Le,
|
|
38
|
+
extend: Ie
|
|
39
|
+
};
|
|
40
|
+
function Ae(e, n) {
|
|
41
|
+
var i = "", l = e.reason || "(unknown reason)";
|
|
42
|
+
return e.mark ? (e.mark.name && (i += 'in "' + e.mark.name + '" '), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
|
|
43
|
+
|
|
44
|
+
` + e.mark.snippet), l + " " + i) : l;
|
|
45
|
+
}
|
|
46
|
+
f(Ae, "formatError");
|
|
47
|
+
function B(e, n) {
|
|
48
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Ae(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ new Error()).stack || "";
|
|
49
|
+
}
|
|
50
|
+
f(B, "YAMLException$1");
|
|
51
|
+
B.prototype = Object.create(Error.prototype);
|
|
52
|
+
B.prototype.constructor = B;
|
|
53
|
+
B.prototype.toString = /* @__PURE__ */ f(function(n) {
|
|
54
|
+
return this.name + ": " + Ae(this, n);
|
|
55
|
+
}, "toString");
|
|
56
|
+
var T = B;
|
|
57
|
+
function W(e, n, i, l, r) {
|
|
58
|
+
var u = "", o = "", c = Math.floor(r / 2) - 1;
|
|
59
|
+
return l - n > c && (u = " ... ", n = l - c + u.length), i - l > c && (o = " ...", i = l + c - o.length), {
|
|
60
|
+
str: u + e.slice(n, i).replace(/\t/g, "→") + o,
|
|
61
|
+
pos: l - n + u.length
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
f(W, "getLine");
|
|
65
|
+
function G(e, n) {
|
|
66
|
+
return _.repeat(" ", n - e.length) + e;
|
|
67
|
+
}
|
|
68
|
+
f(G, "padStart");
|
|
69
|
+
function Ne(e, n) {
|
|
70
|
+
if (n = Object.create(n || null), !e.buffer) return null;
|
|
71
|
+
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
72
|
+
for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer); )
|
|
73
|
+
r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
|
|
74
|
+
o < 0 && (o = l.length - 1);
|
|
75
|
+
var c = "", a, t, d = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + d + 3);
|
|
76
|
+
for (a = 1; a <= n.linesBefore && !(o - a < 0); a++)
|
|
77
|
+
t = W(e.buffer, l[o - a], r[o - a], e.position - (l[o] - l[o - a]), p), c = _.repeat(" ", n.indent) + G((e.line - a + 1).toString(), d) + " | " + t.str + `
|
|
78
|
+
` + c;
|
|
79
|
+
for (t = W(e.buffer, l[o], r[o], e.position, p), c += _.repeat(" ", n.indent) + G((e.line + 1).toString(), d) + " | " + t.str + `
|
|
80
|
+
`, c += _.repeat("-", n.indent + d + 3 + t.pos) + `^
|
|
81
|
+
`, a = 1; a <= n.linesAfter && !(o + a >= r.length); a++)
|
|
82
|
+
t = W(e.buffer, l[o + a], r[o + a], e.position - (l[o] - l[o + a]), p), c += _.repeat(" ", n.indent) + G((e.line + a + 1).toString(), d) + " | " + t.str + `
|
|
83
|
+
`;
|
|
84
|
+
return c.replace(/\n$/, "");
|
|
85
|
+
}
|
|
86
|
+
f(Ne, "makeSnippet");
|
|
87
|
+
var hi = Ne, di = [
|
|
88
|
+
"kind",
|
|
89
|
+
"multi",
|
|
90
|
+
"resolve",
|
|
91
|
+
"construct",
|
|
92
|
+
"instanceOf",
|
|
93
|
+
"predicate",
|
|
94
|
+
"represent",
|
|
95
|
+
"representName",
|
|
96
|
+
"defaultStyle",
|
|
97
|
+
"styleAliases"
|
|
98
|
+
], si = [
|
|
99
|
+
"scalar",
|
|
100
|
+
"sequence",
|
|
101
|
+
"mapping"
|
|
102
|
+
];
|
|
103
|
+
function Re(e) {
|
|
104
|
+
var n = {};
|
|
105
|
+
return e !== null && Object.keys(e).forEach(function(i) {
|
|
106
|
+
e[i].forEach(function(l) {
|
|
107
|
+
n[String(l)] = i;
|
|
108
|
+
});
|
|
109
|
+
}), n;
|
|
110
|
+
}
|
|
111
|
+
f(Re, "compileStyleAliases");
|
|
112
|
+
function Me(e, n) {
|
|
113
|
+
if (n = n || {}, Object.keys(n).forEach(function(i) {
|
|
114
|
+
if (di.indexOf(i) === -1) throw new T('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
|
|
115
|
+
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
116
|
+
return !0;
|
|
117
|
+
}, this.construct = n.construct || function(i) {
|
|
118
|
+
return i;
|
|
119
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Re(n.styleAliases || null), si.indexOf(this.kind) === -1) throw new T('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
120
|
+
}
|
|
121
|
+
f(Me, "Type$1");
|
|
122
|
+
var C = Me;
|
|
123
|
+
function ie(e, n) {
|
|
124
|
+
var i = [];
|
|
125
|
+
return e[n].forEach(function(l) {
|
|
126
|
+
var r = i.length;
|
|
127
|
+
i.forEach(function(u, o) {
|
|
128
|
+
u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
|
|
129
|
+
}), i[r] = l;
|
|
130
|
+
}), i;
|
|
131
|
+
}
|
|
132
|
+
f(ie, "compileList");
|
|
133
|
+
function Ye() {
|
|
134
|
+
var e = {
|
|
135
|
+
scalar: {},
|
|
136
|
+
sequence: {},
|
|
137
|
+
mapping: {},
|
|
138
|
+
fallback: {},
|
|
139
|
+
multi: {
|
|
140
|
+
scalar: [],
|
|
141
|
+
sequence: [],
|
|
142
|
+
mapping: [],
|
|
143
|
+
fallback: []
|
|
144
|
+
}
|
|
145
|
+
}, n, i;
|
|
146
|
+
function l(r) {
|
|
147
|
+
r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
|
|
148
|
+
}
|
|
149
|
+
for (f(l, "collectType"), n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
|
|
150
|
+
return e;
|
|
151
|
+
}
|
|
152
|
+
f(Ye, "compileMap");
|
|
153
|
+
function $(e) {
|
|
154
|
+
return this.extend(e);
|
|
155
|
+
}
|
|
156
|
+
f($, "Schema$1");
|
|
157
|
+
$.prototype.extend = /* @__PURE__ */ f(function(n) {
|
|
158
|
+
var i = [], l = [];
|
|
159
|
+
if (n instanceof C) l.push(n);
|
|
160
|
+
else if (Array.isArray(n)) l = l.concat(n);
|
|
161
|
+
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
|
|
162
|
+
n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
|
|
163
|
+
else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
164
|
+
i.forEach(function(u) {
|
|
165
|
+
if (!(u instanceof C)) throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
166
|
+
if (u.loadKind && u.loadKind !== "scalar") throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
167
|
+
if (u.multi) throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
168
|
+
}), l.forEach(function(u) {
|
|
169
|
+
if (!(u instanceof C)) throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
170
|
+
});
|
|
171
|
+
var r = Object.create($.prototype);
|
|
172
|
+
return r.implicit = (this.implicit || []).concat(i), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = ie(r, "implicit"), r.compiledExplicit = ie(r, "explicit"), r.compiledTypeMap = Ye(r.compiledImplicit, r.compiledExplicit), r;
|
|
173
|
+
}, "extend");
|
|
174
|
+
var mi = new $({ explicit: [
|
|
175
|
+
new C("tag:yaml.org,2002:str", {
|
|
176
|
+
kind: "scalar",
|
|
177
|
+
construct: /* @__PURE__ */ f(function(e) {
|
|
178
|
+
return e !== null ? e : "";
|
|
179
|
+
}, "construct")
|
|
180
|
+
}),
|
|
181
|
+
new C("tag:yaml.org,2002:seq", {
|
|
182
|
+
kind: "sequence",
|
|
183
|
+
construct: /* @__PURE__ */ f(function(e) {
|
|
184
|
+
return e !== null ? e : [];
|
|
185
|
+
}, "construct")
|
|
186
|
+
}),
|
|
187
|
+
new C("tag:yaml.org,2002:map", {
|
|
188
|
+
kind: "mapping",
|
|
189
|
+
construct: /* @__PURE__ */ f(function(e) {
|
|
190
|
+
return e !== null ? e : {};
|
|
191
|
+
}, "construct")
|
|
192
|
+
})
|
|
193
|
+
] });
|
|
194
|
+
function Fe(e) {
|
|
195
|
+
if (e === null) return !0;
|
|
196
|
+
var n = e.length;
|
|
197
|
+
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
198
|
+
}
|
|
199
|
+
f(Fe, "resolveYamlNull");
|
|
200
|
+
function Pe() {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
f(Pe, "constructYamlNull");
|
|
204
|
+
function Be(e) {
|
|
205
|
+
return e === null;
|
|
206
|
+
}
|
|
207
|
+
f(Be, "isNull");
|
|
208
|
+
var gi = new C("tag:yaml.org,2002:null", {
|
|
209
|
+
kind: "scalar",
|
|
210
|
+
resolve: Fe,
|
|
211
|
+
construct: Pe,
|
|
212
|
+
predicate: Be,
|
|
213
|
+
represent: {
|
|
214
|
+
canonical: /* @__PURE__ */ f(function() {
|
|
215
|
+
return "~";
|
|
216
|
+
}, "canonical"),
|
|
217
|
+
lowercase: /* @__PURE__ */ f(function() {
|
|
218
|
+
return "null";
|
|
219
|
+
}, "lowercase"),
|
|
220
|
+
uppercase: /* @__PURE__ */ f(function() {
|
|
221
|
+
return "NULL";
|
|
222
|
+
}, "uppercase"),
|
|
223
|
+
camelcase: /* @__PURE__ */ f(function() {
|
|
224
|
+
return "Null";
|
|
225
|
+
}, "camelcase"),
|
|
226
|
+
empty: /* @__PURE__ */ f(function() {
|
|
227
|
+
return "";
|
|
228
|
+
}, "empty")
|
|
229
|
+
},
|
|
230
|
+
defaultStyle: "lowercase"
|
|
231
|
+
});
|
|
232
|
+
function De(e) {
|
|
233
|
+
if (e === null) return !1;
|
|
234
|
+
var n = e.length;
|
|
235
|
+
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
236
|
+
}
|
|
237
|
+
f(De, "resolveYamlBoolean");
|
|
238
|
+
function He(e) {
|
|
239
|
+
return e === "true" || e === "True" || e === "TRUE";
|
|
240
|
+
}
|
|
241
|
+
f(He, "constructYamlBoolean");
|
|
242
|
+
function je(e) {
|
|
243
|
+
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
244
|
+
}
|
|
245
|
+
f(je, "isBoolean");
|
|
246
|
+
var vi = new C("tag:yaml.org,2002:bool", {
|
|
247
|
+
kind: "scalar",
|
|
248
|
+
resolve: De,
|
|
249
|
+
construct: He,
|
|
250
|
+
predicate: je,
|
|
251
|
+
represent: {
|
|
252
|
+
lowercase: /* @__PURE__ */ f(function(e) {
|
|
253
|
+
return e ? "true" : "false";
|
|
254
|
+
}, "lowercase"),
|
|
255
|
+
uppercase: /* @__PURE__ */ f(function(e) {
|
|
256
|
+
return e ? "TRUE" : "FALSE";
|
|
257
|
+
}, "uppercase"),
|
|
258
|
+
camelcase: /* @__PURE__ */ f(function(e) {
|
|
259
|
+
return e ? "True" : "False";
|
|
260
|
+
}, "camelcase")
|
|
261
|
+
},
|
|
262
|
+
defaultStyle: "lowercase"
|
|
263
|
+
});
|
|
264
|
+
function Ue(e) {
|
|
265
|
+
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
266
|
+
}
|
|
267
|
+
f(Ue, "isHexCode");
|
|
268
|
+
function Ke(e) {
|
|
269
|
+
return 48 <= e && e <= 55;
|
|
270
|
+
}
|
|
271
|
+
f(Ke, "isOctCode");
|
|
272
|
+
function qe(e) {
|
|
273
|
+
return 48 <= e && e <= 57;
|
|
274
|
+
}
|
|
275
|
+
f(qe, "isDecCode");
|
|
276
|
+
function We(e) {
|
|
277
|
+
if (e === null) return !1;
|
|
278
|
+
var n = e.length, i = 0, l = !1, r;
|
|
279
|
+
if (!n) return !1;
|
|
280
|
+
if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
|
|
281
|
+
if (i + 1 === n) return !0;
|
|
282
|
+
if (r = e[++i], r === "b") {
|
|
283
|
+
for (i++; i < n; i++)
|
|
284
|
+
if (r = e[i], r !== "_") {
|
|
285
|
+
if (r !== "0" && r !== "1") return !1;
|
|
286
|
+
l = !0;
|
|
287
|
+
}
|
|
288
|
+
return l && r !== "_";
|
|
289
|
+
}
|
|
290
|
+
if (r === "x") {
|
|
291
|
+
for (i++; i < n; i++)
|
|
292
|
+
if (r = e[i], r !== "_") {
|
|
293
|
+
if (!Ue(e.charCodeAt(i))) return !1;
|
|
294
|
+
l = !0;
|
|
295
|
+
}
|
|
296
|
+
return l && r !== "_";
|
|
297
|
+
}
|
|
298
|
+
if (r === "o") {
|
|
299
|
+
for (i++; i < n; i++)
|
|
300
|
+
if (r = e[i], r !== "_") {
|
|
301
|
+
if (!Ke(e.charCodeAt(i))) return !1;
|
|
302
|
+
l = !0;
|
|
303
|
+
}
|
|
304
|
+
return l && r !== "_";
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (r === "_") return !1;
|
|
308
|
+
for (; i < n; i++)
|
|
309
|
+
if (r = e[i], r !== "_") {
|
|
310
|
+
if (!qe(e.charCodeAt(i))) return !1;
|
|
311
|
+
l = !0;
|
|
312
|
+
}
|
|
313
|
+
return !(!l || r === "_");
|
|
314
|
+
}
|
|
315
|
+
f(We, "resolveYamlInteger");
|
|
316
|
+
function Ge(e) {
|
|
317
|
+
var n = e, i = 1, l;
|
|
318
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (i = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
|
|
319
|
+
if (l === "0") {
|
|
320
|
+
if (n[1] === "b") return i * parseInt(n.slice(2), 2);
|
|
321
|
+
if (n[1] === "x") return i * parseInt(n.slice(2), 16);
|
|
322
|
+
if (n[1] === "o") return i * parseInt(n.slice(2), 8);
|
|
323
|
+
}
|
|
324
|
+
return i * parseInt(n, 10);
|
|
325
|
+
}
|
|
326
|
+
f(Ge, "constructYamlInteger");
|
|
327
|
+
function $e(e) {
|
|
328
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !_.isNegativeZero(e);
|
|
329
|
+
}
|
|
330
|
+
f($e, "isInteger");
|
|
331
|
+
var Ai = new C("tag:yaml.org,2002:int", {
|
|
332
|
+
kind: "scalar",
|
|
333
|
+
resolve: We,
|
|
334
|
+
construct: Ge,
|
|
335
|
+
predicate: $e,
|
|
336
|
+
represent: {
|
|
337
|
+
binary: /* @__PURE__ */ f(function(e) {
|
|
338
|
+
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
339
|
+
}, "binary"),
|
|
340
|
+
octal: /* @__PURE__ */ f(function(e) {
|
|
341
|
+
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
342
|
+
}, "octal"),
|
|
343
|
+
decimal: /* @__PURE__ */ f(function(e) {
|
|
344
|
+
return e.toString(10);
|
|
345
|
+
}, "decimal"),
|
|
346
|
+
hexadecimal: /* @__PURE__ */ f(function(e) {
|
|
347
|
+
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
348
|
+
}, "hexadecimal")
|
|
349
|
+
},
|
|
350
|
+
defaultStyle: "decimal",
|
|
351
|
+
styleAliases: {
|
|
352
|
+
binary: [2, "bin"],
|
|
353
|
+
octal: [8, "oct"],
|
|
354
|
+
decimal: [10, "dec"],
|
|
355
|
+
hexadecimal: [16, "hex"]
|
|
356
|
+
}
|
|
357
|
+
}), yi = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
358
|
+
function Qe(e) {
|
|
359
|
+
return !(e === null || !yi.test(e) || e[e.length - 1] === "_");
|
|
360
|
+
}
|
|
361
|
+
f(Qe, "resolveYamlFloat");
|
|
362
|
+
function Ve(e) {
|
|
363
|
+
var n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1;
|
|
364
|
+
return "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
|
|
365
|
+
}
|
|
366
|
+
f(Ve, "constructYamlFloat");
|
|
367
|
+
var wi = /^[-+]?[0-9]+e/;
|
|
368
|
+
function Xe(e, n) {
|
|
369
|
+
var i;
|
|
370
|
+
if (isNaN(e)) switch (n) {
|
|
371
|
+
case "lowercase":
|
|
372
|
+
return ".nan";
|
|
373
|
+
case "uppercase":
|
|
374
|
+
return ".NAN";
|
|
375
|
+
case "camelcase":
|
|
376
|
+
return ".NaN";
|
|
377
|
+
}
|
|
378
|
+
else if (Number.POSITIVE_INFINITY === e) switch (n) {
|
|
379
|
+
case "lowercase":
|
|
380
|
+
return ".inf";
|
|
381
|
+
case "uppercase":
|
|
382
|
+
return ".INF";
|
|
383
|
+
case "camelcase":
|
|
384
|
+
return ".Inf";
|
|
385
|
+
}
|
|
386
|
+
else if (Number.NEGATIVE_INFINITY === e) switch (n) {
|
|
387
|
+
case "lowercase":
|
|
388
|
+
return "-.inf";
|
|
389
|
+
case "uppercase":
|
|
390
|
+
return "-.INF";
|
|
391
|
+
case "camelcase":
|
|
392
|
+
return "-.Inf";
|
|
393
|
+
}
|
|
394
|
+
else if (_.isNegativeZero(e)) return "-0.0";
|
|
395
|
+
return i = e.toString(10), wi.test(i) ? i.replace("e", ".e") : i;
|
|
396
|
+
}
|
|
397
|
+
f(Xe, "representYamlFloat");
|
|
398
|
+
function Ze(e) {
|
|
399
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || _.isNegativeZero(e));
|
|
400
|
+
}
|
|
401
|
+
f(Ze, "isFloat");
|
|
402
|
+
var _i = new C("tag:yaml.org,2002:float", {
|
|
403
|
+
kind: "scalar",
|
|
404
|
+
resolve: Qe,
|
|
405
|
+
construct: Ve,
|
|
406
|
+
predicate: Ze,
|
|
407
|
+
represent: Xe,
|
|
408
|
+
defaultStyle: "lowercase"
|
|
409
|
+
}), ze = mi.extend({ implicit: [
|
|
410
|
+
gi,
|
|
411
|
+
vi,
|
|
412
|
+
Ai,
|
|
413
|
+
_i
|
|
414
|
+
] }), Ci = ze, Je = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), en = /* @__PURE__ */ new 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]))?))?$");
|
|
415
|
+
function nn(e) {
|
|
416
|
+
return e === null ? !1 : Je.exec(e) !== null || en.exec(e) !== null;
|
|
417
|
+
}
|
|
418
|
+
f(nn, "resolveYamlTimestamp");
|
|
419
|
+
function rn(e) {
|
|
420
|
+
var n, i, l, r, u, o, c, a = 0, t = null, d, p, s;
|
|
421
|
+
if (n = Je.exec(e), n === null && (n = en.exec(e)), n === null) throw new Error("Date resolve error");
|
|
422
|
+
if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
|
|
423
|
+
if (u = +n[4], o = +n[5], c = +n[6], n[7]) {
|
|
424
|
+
for (a = n[7].slice(0, 3); a.length < 3; ) a += "0";
|
|
425
|
+
a = +a;
|
|
426
|
+
}
|
|
427
|
+
return n[9] && (d = +n[10], p = +(n[11] || 0), t = (d * 60 + p) * 6e4, n[9] === "-" && (t = -t)), s = new Date(Date.UTC(i, l, r, u, o, c, a)), t && s.setTime(s.getTime() - t), s;
|
|
428
|
+
}
|
|
429
|
+
f(rn, "constructYamlTimestamp");
|
|
430
|
+
function ln(e) {
|
|
431
|
+
return e.toISOString();
|
|
432
|
+
}
|
|
433
|
+
f(ln, "representYamlTimestamp");
|
|
434
|
+
var Si = new C("tag:yaml.org,2002:timestamp", {
|
|
435
|
+
kind: "scalar",
|
|
436
|
+
resolve: nn,
|
|
437
|
+
construct: rn,
|
|
438
|
+
instanceOf: Date,
|
|
439
|
+
represent: ln
|
|
440
|
+
});
|
|
441
|
+
function on(e) {
|
|
442
|
+
return e === "<<" || e === null;
|
|
443
|
+
}
|
|
444
|
+
f(on, "resolveYamlMerge");
|
|
445
|
+
var bi = new C("tag:yaml.org,2002:merge", {
|
|
446
|
+
kind: "scalar",
|
|
447
|
+
resolve: on
|
|
448
|
+
}), ye = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
449
|
+
\r`;
|
|
450
|
+
function un(e) {
|
|
451
|
+
if (e === null) return !1;
|
|
452
|
+
var n, i, l = 0, r = e.length, u = ye;
|
|
453
|
+
for (i = 0; i < r; i++)
|
|
454
|
+
if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
|
|
455
|
+
if (n < 0) return !1;
|
|
456
|
+
l += 6;
|
|
457
|
+
}
|
|
458
|
+
return l % 8 === 0;
|
|
459
|
+
}
|
|
460
|
+
f(un, "resolveYamlBinary");
|
|
461
|
+
function cn(e) {
|
|
462
|
+
var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = ye, o = 0, c = [];
|
|
463
|
+
for (n = 0; n < r; n++)
|
|
464
|
+
n % 4 === 0 && n && (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
|
|
465
|
+
return i = r % 4 * 6, i === 0 ? (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)) : i === 18 ? (c.push(o >> 10 & 255), c.push(o >> 2 & 255)) : i === 12 && c.push(o >> 4 & 255), new Uint8Array(c);
|
|
466
|
+
}
|
|
467
|
+
f(cn, "constructYamlBinary");
|
|
468
|
+
function fn(e) {
|
|
469
|
+
var n = "", i = 0, l, r, u = e.length, o = ye;
|
|
470
|
+
for (l = 0; l < u; l++)
|
|
471
|
+
l % 3 === 0 && l && (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]), i = (i << 8) + e[l];
|
|
472
|
+
return r = u % 3, r === 0 ? (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]) : r === 2 ? (n += o[i >> 10 & 63], n += o[i >> 4 & 63], n += o[i << 2 & 63], n += o[64]) : r === 1 && (n += o[i >> 2 & 63], n += o[i << 4 & 63], n += o[64], n += o[64]), n;
|
|
473
|
+
}
|
|
474
|
+
f(fn, "representYamlBinary");
|
|
475
|
+
function an(e) {
|
|
476
|
+
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
477
|
+
}
|
|
478
|
+
f(an, "isBinary");
|
|
479
|
+
var Ti = new C("tag:yaml.org,2002:binary", {
|
|
480
|
+
kind: "scalar",
|
|
481
|
+
resolve: un,
|
|
482
|
+
construct: cn,
|
|
483
|
+
predicate: an,
|
|
484
|
+
represent: fn
|
|
485
|
+
}), xi = Object.prototype.hasOwnProperty, Ei = Object.prototype.toString;
|
|
486
|
+
function tn(e) {
|
|
487
|
+
if (e === null) return !0;
|
|
488
|
+
var n = [], i, l, r, u, o, c = e;
|
|
489
|
+
for (i = 0, l = c.length; i < l; i += 1) {
|
|
490
|
+
if (r = c[i], o = !1, Ei.call(r) !== "[object Object]") return !1;
|
|
491
|
+
for (u in r) if (xi.call(r, u)) if (!o) o = !0;
|
|
492
|
+
else return !1;
|
|
493
|
+
if (!o) return !1;
|
|
494
|
+
if (n.indexOf(u) === -1) n.push(u);
|
|
495
|
+
else return !1;
|
|
496
|
+
}
|
|
497
|
+
return !0;
|
|
498
|
+
}
|
|
499
|
+
f(tn, "resolveYamlOmap");
|
|
500
|
+
function pn(e) {
|
|
501
|
+
return e !== null ? e : [];
|
|
502
|
+
}
|
|
503
|
+
f(pn, "constructYamlOmap");
|
|
504
|
+
var Oi = new C("tag:yaml.org,2002:omap", {
|
|
505
|
+
kind: "sequence",
|
|
506
|
+
resolve: tn,
|
|
507
|
+
construct: pn
|
|
508
|
+
}), Ii = Object.prototype.toString;
|
|
509
|
+
function hn(e) {
|
|
510
|
+
if (e === null) return !0;
|
|
511
|
+
var n, i, l, r, u, o = e;
|
|
512
|
+
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
|
|
513
|
+
if (l = o[n], Ii.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return !1;
|
|
514
|
+
u[n] = [r[0], l[r[0]]];
|
|
515
|
+
}
|
|
516
|
+
return !0;
|
|
517
|
+
}
|
|
518
|
+
f(hn, "resolveYamlPairs");
|
|
519
|
+
function dn(e) {
|
|
520
|
+
if (e === null) return [];
|
|
521
|
+
var n, i, l, r, u, o = e;
|
|
522
|
+
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1)
|
|
523
|
+
l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
|
|
524
|
+
return u;
|
|
525
|
+
}
|
|
526
|
+
f(dn, "constructYamlPairs");
|
|
527
|
+
var ki = new C("tag:yaml.org,2002:pairs", {
|
|
528
|
+
kind: "sequence",
|
|
529
|
+
resolve: hn,
|
|
530
|
+
construct: dn
|
|
531
|
+
}), Li = Object.prototype.hasOwnProperty;
|
|
532
|
+
function sn(e) {
|
|
533
|
+
if (e === null) return !0;
|
|
534
|
+
var n, i = e;
|
|
535
|
+
for (n in i) if (Li.call(i, n) && i[n] !== null)
|
|
536
|
+
return !1;
|
|
537
|
+
return !0;
|
|
538
|
+
}
|
|
539
|
+
f(sn, "resolveYamlSet");
|
|
540
|
+
function mn(e) {
|
|
541
|
+
return e !== null ? e : {};
|
|
542
|
+
}
|
|
543
|
+
f(mn, "constructYamlSet");
|
|
544
|
+
var Ni = new C("tag:yaml.org,2002:set", {
|
|
545
|
+
kind: "mapping",
|
|
546
|
+
resolve: sn,
|
|
547
|
+
construct: mn
|
|
548
|
+
}), gn = Ci.extend({
|
|
549
|
+
implicit: [Si, bi],
|
|
550
|
+
explicit: [
|
|
551
|
+
Ti,
|
|
552
|
+
Oi,
|
|
553
|
+
ki,
|
|
554
|
+
Ni
|
|
555
|
+
]
|
|
556
|
+
}), L = Object.prototype.hasOwnProperty, Q = 1, vn = 2, An = 3, V = 4, ne = 1, Ri = 2, Te = 3, Mi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yi = /[\x85\u2028\u2029]/, Fi = /[,\[\]\{\}]/, yn = /^(?:!|!!|![a-z\-]+!)$/i, wn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
557
|
+
function re(e) {
|
|
558
|
+
return Object.prototype.toString.call(e);
|
|
559
|
+
}
|
|
560
|
+
f(re, "_class");
|
|
561
|
+
function E(e) {
|
|
562
|
+
return e === 10 || e === 13;
|
|
563
|
+
}
|
|
564
|
+
f(E, "is_EOL");
|
|
565
|
+
function k(e) {
|
|
566
|
+
return e === 9 || e === 32;
|
|
567
|
+
}
|
|
568
|
+
f(k, "is_WHITE_SPACE");
|
|
569
|
+
function b(e) {
|
|
570
|
+
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
571
|
+
}
|
|
572
|
+
f(b, "is_WS_OR_EOL");
|
|
573
|
+
function R(e) {
|
|
574
|
+
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
575
|
+
}
|
|
576
|
+
f(R, "is_FLOW_INDICATOR");
|
|
577
|
+
function _n(e) {
|
|
578
|
+
var n;
|
|
579
|
+
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
580
|
+
}
|
|
581
|
+
f(_n, "fromHexCode");
|
|
582
|
+
function Cn(e) {
|
|
583
|
+
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
584
|
+
}
|
|
585
|
+
f(Cn, "escapedHexLen");
|
|
586
|
+
function Sn(e) {
|
|
587
|
+
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
588
|
+
}
|
|
589
|
+
f(Sn, "fromDecimalCode");
|
|
590
|
+
function le(e) {
|
|
591
|
+
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
592
|
+
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
593
|
+
}
|
|
594
|
+
f(le, "simpleEscapeSequence");
|
|
595
|
+
function bn(e) {
|
|
596
|
+
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
597
|
+
}
|
|
598
|
+
f(bn, "charFromCodepoint");
|
|
599
|
+
function we(e, n, i) {
|
|
600
|
+
n === "__proto__" ? Object.defineProperty(e, n, {
|
|
601
|
+
configurable: !0,
|
|
602
|
+
enumerable: !0,
|
|
603
|
+
writable: !0,
|
|
604
|
+
value: i
|
|
605
|
+
}) : e[n] = i;
|
|
606
|
+
}
|
|
607
|
+
f(we, "setProperty");
|
|
608
|
+
var Tn = new Array(256), xn = new Array(256);
|
|
609
|
+
for (N = 0; N < 256; N++)
|
|
610
|
+
Tn[N] = le(N) ? 1 : 0, xn[N] = le(N);
|
|
611
|
+
var N;
|
|
612
|
+
function En(e, n) {
|
|
613
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || gn, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, 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.firstTabInLine = -1, this.documents = [];
|
|
614
|
+
}
|
|
615
|
+
f(En, "State$1");
|
|
616
|
+
function _e(e, n) {
|
|
617
|
+
var i = {
|
|
618
|
+
name: e.filename,
|
|
619
|
+
buffer: e.input.slice(0, -1),
|
|
620
|
+
position: e.position,
|
|
621
|
+
line: e.line,
|
|
622
|
+
column: e.position - e.lineStart
|
|
623
|
+
};
|
|
624
|
+
return i.snippet = hi(i), new T(n, i);
|
|
625
|
+
}
|
|
626
|
+
f(_e, "generateError");
|
|
627
|
+
function h(e, n) {
|
|
628
|
+
throw _e(e, n);
|
|
629
|
+
}
|
|
630
|
+
f(h, "throwError");
|
|
631
|
+
function H(e, n) {
|
|
632
|
+
e.onWarning && e.onWarning.call(null, _e(e, n));
|
|
633
|
+
}
|
|
634
|
+
f(H, "throwWarning");
|
|
635
|
+
var xe = {
|
|
636
|
+
YAML: /* @__PURE__ */ f(function(n, i, l) {
|
|
637
|
+
var r, u, o;
|
|
638
|
+
n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && H(n, "unsupported YAML version of the document");
|
|
639
|
+
}, "handleYamlDirective"),
|
|
640
|
+
TAG: /* @__PURE__ */ f(function(n, i, l) {
|
|
641
|
+
var r, u;
|
|
642
|
+
l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], yn.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), L.call(n.tagMap, r) && h(n, 'there is a previously declared suffix for "' + r + '" tag handle'), wn.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
643
|
+
try {
|
|
644
|
+
u = decodeURIComponent(u);
|
|
645
|
+
} catch {
|
|
646
|
+
h(n, "tag prefix is malformed: " + u);
|
|
647
|
+
}
|
|
648
|
+
n.tagMap[r] = u;
|
|
649
|
+
}, "handleTagDirective")
|
|
650
|
+
};
|
|
651
|
+
function I(e, n, i, l) {
|
|
652
|
+
var r, u, o, c;
|
|
653
|
+
if (n < i) {
|
|
654
|
+
if (c = e.input.slice(n, i), l) for (r = 0, u = c.length; r < u; r += 1)
|
|
655
|
+
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
|
|
656
|
+
else Mi.test(c) && h(e, "the stream contains non-printable characters");
|
|
657
|
+
e.result += c;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
f(I, "captureSegment");
|
|
661
|
+
function oe(e, n, i, l) {
|
|
662
|
+
var r, u, o, c;
|
|
663
|
+
for (_.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, c = r.length; o < c; o += 1)
|
|
664
|
+
u = r[o], L.call(n, u) || (we(n, u, i[u]), l[u] = !0);
|
|
665
|
+
}
|
|
666
|
+
f(oe, "mergeMappings");
|
|
667
|
+
function M(e, n, i, l, r, u, o, c, a) {
|
|
668
|
+
var t, d;
|
|
669
|
+
if (Array.isArray(r))
|
|
670
|
+
for (r = Array.prototype.slice.call(r), t = 0, d = r.length; t < d; t += 1)
|
|
671
|
+
Array.isArray(r[t]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && re(r[t]) === "[object Object]" && (r[t] = "[object Object]");
|
|
672
|
+
if (typeof r == "object" && re(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (t = 0, d = u.length; t < d; t += 1) oe(e, n, u[t], i);
|
|
673
|
+
else oe(e, n, u, i);
|
|
674
|
+
else
|
|
675
|
+
!e.json && !L.call(i, r) && L.call(n, r) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = a || e.position, h(e, "duplicated mapping key")), we(n, r, u), delete i[r];
|
|
676
|
+
return n;
|
|
677
|
+
}
|
|
678
|
+
f(M, "storeMappingPair");
|
|
679
|
+
function J(e) {
|
|
680
|
+
var n = e.input.charCodeAt(e.position);
|
|
681
|
+
n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
682
|
+
}
|
|
683
|
+
f(J, "readLineBreak");
|
|
684
|
+
function w(e, n, i) {
|
|
685
|
+
for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
686
|
+
for (; k(r); )
|
|
687
|
+
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
688
|
+
if (n && r === 35) do
|
|
689
|
+
r = e.input.charCodeAt(++e.position);
|
|
690
|
+
while (r !== 10 && r !== 13 && r !== 0);
|
|
691
|
+
if (E(r))
|
|
692
|
+
for (J(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32; )
|
|
693
|
+
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
694
|
+
else break;
|
|
695
|
+
}
|
|
696
|
+
return i !== -1 && l !== 0 && e.lineIndent < i && H(e, "deficient indentation"), l;
|
|
697
|
+
}
|
|
698
|
+
f(w, "skipSeparationSpace");
|
|
699
|
+
function q(e) {
|
|
700
|
+
var n = e.position, i = e.input.charCodeAt(n);
|
|
701
|
+
return !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || b(i)));
|
|
702
|
+
}
|
|
703
|
+
f(q, "testDocumentSeparator");
|
|
704
|
+
function ee(e, n) {
|
|
705
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += _.repeat(`
|
|
706
|
+
`, n - 1));
|
|
707
|
+
}
|
|
708
|
+
f(ee, "writeFoldedLines");
|
|
709
|
+
function On(e, n, i) {
|
|
710
|
+
var l, r, u, o, c, a, t, d, p = e.kind, s = e.result, m = e.input.charCodeAt(e.position);
|
|
711
|
+
if (b(m) || R(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), b(r) || i && R(r)))
|
|
712
|
+
return !1;
|
|
713
|
+
for (e.kind = "scalar", e.result = "", u = o = e.position, c = !1; m !== 0; ) {
|
|
714
|
+
if (m === 58) {
|
|
715
|
+
if (r = e.input.charCodeAt(e.position + 1), b(r) || i && R(r)) break;
|
|
716
|
+
} else if (m === 35) {
|
|
717
|
+
if (l = e.input.charCodeAt(e.position - 1), b(l)) break;
|
|
718
|
+
} else {
|
|
719
|
+
if (e.position === e.lineStart && q(e) || i && R(m)) break;
|
|
720
|
+
if (E(m))
|
|
721
|
+
if (a = e.line, t = e.lineStart, d = e.lineIndent, w(e, !1, -1), e.lineIndent >= n) {
|
|
722
|
+
c = !0, m = e.input.charCodeAt(e.position);
|
|
723
|
+
continue;
|
|
724
|
+
} else {
|
|
725
|
+
e.position = o, e.line = a, e.lineStart = t, e.lineIndent = d;
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
c && (I(e, u, o, !1), ee(e, e.line - a), u = o = e.position, c = !1), k(m) || (o = e.position + 1), m = e.input.charCodeAt(++e.position);
|
|
730
|
+
}
|
|
731
|
+
return I(e, u, o, !1), e.result ? !0 : (e.kind = p, e.result = s, !1);
|
|
732
|
+
}
|
|
733
|
+
f(On, "readPlainScalar");
|
|
734
|
+
function In(e, n) {
|
|
735
|
+
var i = e.input.charCodeAt(e.position), l, r;
|
|
736
|
+
if (i !== 39) return !1;
|
|
737
|
+
for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; ) if (i === 39)
|
|
738
|
+
if (I(e, l, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
|
|
739
|
+
l = e.position, e.position++, r = e.position;
|
|
740
|
+
else return !0;
|
|
741
|
+
else E(i) ? (I(e, l, r, !0), ee(e, w(e, !1, n)), l = r = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
742
|
+
h(e, "unexpected end of the stream within a single quoted scalar");
|
|
743
|
+
}
|
|
744
|
+
f(In, "readSingleQuotedScalar");
|
|
745
|
+
function kn(e, n) {
|
|
746
|
+
var i, l, r, u, o, c = e.input.charCodeAt(e.position);
|
|
747
|
+
if (c !== 34) return !1;
|
|
748
|
+
for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (c = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
749
|
+
if (c === 34)
|
|
750
|
+
return I(e, i, e.position, !0), e.position++, !0;
|
|
751
|
+
if (c === 92) {
|
|
752
|
+
if (I(e, i, e.position, !0), c = e.input.charCodeAt(++e.position), E(c)) w(e, !1, n);
|
|
753
|
+
else if (c < 256 && Tn[c])
|
|
754
|
+
e.result += xn[c], e.position++;
|
|
755
|
+
else if ((o = Cn(c)) > 0) {
|
|
756
|
+
for (r = o, u = 0; r > 0; r--)
|
|
757
|
+
c = e.input.charCodeAt(++e.position), (o = _n(c)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
|
|
758
|
+
e.result += bn(u), e.position++;
|
|
759
|
+
} else h(e, "unknown escape sequence");
|
|
760
|
+
i = l = e.position;
|
|
761
|
+
} else E(c) ? (I(e, i, l, !0), ee(e, w(e, !1, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
762
|
+
}
|
|
763
|
+
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
764
|
+
}
|
|
765
|
+
f(kn, "readDoubleQuotedScalar");
|
|
766
|
+
function Ln(e, n) {
|
|
767
|
+
var i = !0, l, r, u, o = e.tag, c, a = e.anchor, t, d, p, s, m, g = /* @__PURE__ */ Object.create(null), A, y, x, v = e.input.charCodeAt(e.position);
|
|
768
|
+
if (v === 91)
|
|
769
|
+
d = 93, m = !1, c = [];
|
|
770
|
+
else if (v === 123)
|
|
771
|
+
d = 125, m = !0, c = {};
|
|
772
|
+
else return !1;
|
|
773
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), v = e.input.charCodeAt(++e.position); v !== 0; ) {
|
|
774
|
+
if (w(e, !0, n), v = e.input.charCodeAt(e.position), v === d)
|
|
775
|
+
return e.position++, e.tag = o, e.anchor = a, e.kind = m ? "mapping" : "sequence", e.result = c, !0;
|
|
776
|
+
i ? v === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), y = A = x = null, p = s = !1, v === 63 && (t = e.input.charCodeAt(e.position + 1), b(t) && (p = s = !0, e.position++, w(e, !0, n))), l = e.line, r = e.lineStart, u = e.position, Y(e, n, Q, !1, !0), y = e.tag, A = e.result, w(e, !0, n), v = e.input.charCodeAt(e.position), (s || e.line === l) && v === 58 && (p = !0, v = e.input.charCodeAt(++e.position), w(e, !0, n), Y(e, n, Q, !1, !0), x = e.result), m ? M(e, c, g, y, A, x, l, r, u) : p ? c.push(M(e, null, g, y, A, x, l, r, u)) : c.push(A), w(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (i = !0, v = e.input.charCodeAt(++e.position)) : i = !1;
|
|
777
|
+
}
|
|
778
|
+
h(e, "unexpected end of the stream within a flow collection");
|
|
779
|
+
}
|
|
780
|
+
f(Ln, "readFlowCollection");
|
|
781
|
+
function Nn(e, n) {
|
|
782
|
+
var i, l, r = ne, u = !1, o = !1, c = n, a = 0, t = !1, d, p = e.input.charCodeAt(e.position);
|
|
783
|
+
if (p === 124) l = !1;
|
|
784
|
+
else if (p === 62) l = !0;
|
|
785
|
+
else return !1;
|
|
786
|
+
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
787
|
+
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45) ne === r ? r = p === 43 ? Te : Ri : h(e, "repeat of a chomping mode identifier");
|
|
788
|
+
else if ((d = Sn(p)) >= 0) d === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (c = n + d - 1, o = !0);
|
|
789
|
+
else break;
|
|
790
|
+
if (k(p)) {
|
|
791
|
+
do
|
|
792
|
+
p = e.input.charCodeAt(++e.position);
|
|
793
|
+
while (k(p));
|
|
794
|
+
if (p === 35) do
|
|
795
|
+
p = e.input.charCodeAt(++e.position);
|
|
796
|
+
while (!E(p) && p !== 0);
|
|
797
|
+
}
|
|
798
|
+
for (; p !== 0; ) {
|
|
799
|
+
for (J(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && p === 32; )
|
|
800
|
+
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
801
|
+
if (!o && e.lineIndent > c && (c = e.lineIndent), E(p)) {
|
|
802
|
+
a++;
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
if (e.lineIndent < c) {
|
|
806
|
+
r === Te ? e.result += _.repeat(`
|
|
807
|
+
`, u ? 1 + a : a) : r === ne && u && (e.result += `
|
|
808
|
+
`);
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
for (l ? k(p) ? (t = !0, e.result += _.repeat(`
|
|
812
|
+
`, u ? 1 + a : a)) : t ? (t = !1, e.result += _.repeat(`
|
|
813
|
+
`, a + 1)) : a === 0 ? u && (e.result += " ") : e.result += _.repeat(`
|
|
814
|
+
`, a) : e.result += _.repeat(`
|
|
815
|
+
`, u ? 1 + a : a), u = !0, o = !0, a = 0, i = e.position; !E(p) && p !== 0; ) p = e.input.charCodeAt(++e.position);
|
|
816
|
+
I(e, i, e.position, !1);
|
|
817
|
+
}
|
|
818
|
+
return !0;
|
|
819
|
+
}
|
|
820
|
+
f(Nn, "readBlockScalar");
|
|
821
|
+
function ue(e, n) {
|
|
822
|
+
var i, l = e.tag, r = e.anchor, u = [], o, c = !1, a;
|
|
823
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
824
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), a = e.input.charCodeAt(e.position); a !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(a !== 45 || (o = e.input.charCodeAt(e.position + 1), !b(o)))); ) {
|
|
825
|
+
if (c = !0, e.position++, w(e, !0, -1) && e.lineIndent <= n) {
|
|
826
|
+
u.push(null), a = e.input.charCodeAt(e.position);
|
|
827
|
+
continue;
|
|
828
|
+
}
|
|
829
|
+
if (i = e.line, Y(e, n, An, !1, !0), u.push(e.result), w(e, !0, -1), a = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && a !== 0) h(e, "bad indentation of a sequence entry");
|
|
830
|
+
else if (e.lineIndent < n) break;
|
|
831
|
+
}
|
|
832
|
+
return c ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, !0) : !1;
|
|
833
|
+
}
|
|
834
|
+
f(ue, "readBlockSequence");
|
|
835
|
+
function Rn(e, n, i) {
|
|
836
|
+
var l, r, u, o, c, a, t = e.tag, d = e.anchor, p = {}, s = /* @__PURE__ */ Object.create(null), m = null, g = null, A = null, y = !1, x = !1, v;
|
|
837
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
838
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), v = e.input.charCodeAt(e.position); v !== 0; ) {
|
|
839
|
+
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (v === 63 || v === 58) && b(l))
|
|
840
|
+
v === 63 ? (y && (M(e, p, s, m, g, null, o, c, a), m = g = A = null), x = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = l;
|
|
841
|
+
else {
|
|
842
|
+
if (o = e.line, c = e.lineStart, a = e.position, !Y(e, i, vn, !1, !0)) break;
|
|
843
|
+
if (e.line === u) {
|
|
844
|
+
for (v = e.input.charCodeAt(e.position); k(v); ) v = e.input.charCodeAt(++e.position);
|
|
845
|
+
if (v === 58)
|
|
846
|
+
v = e.input.charCodeAt(++e.position), b(v) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (M(e, p, s, m, g, null, o, c, a), m = g = A = null), x = !0, y = !1, r = !1, m = e.tag, g = e.result;
|
|
847
|
+
else if (x) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
848
|
+
else
|
|
849
|
+
return e.tag = t, e.anchor = d, !0;
|
|
850
|
+
} else if (x) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
851
|
+
else
|
|
852
|
+
return e.tag = t, e.anchor = d, !0;
|
|
853
|
+
}
|
|
854
|
+
if ((e.line === u || e.lineIndent > n) && (y && (o = e.line, c = e.lineStart, a = e.position), Y(e, n, V, !0, r) && (y ? g = e.result : A = e.result), y || (M(e, p, s, m, g, A, o, c, a), m = g = A = null), w(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && v !== 0) h(e, "bad indentation of a mapping entry");
|
|
855
|
+
else if (e.lineIndent < n) break;
|
|
856
|
+
}
|
|
857
|
+
return y && M(e, p, s, m, g, null, o, c, a), x && (e.tag = t, e.anchor = d, e.kind = "mapping", e.result = p), x;
|
|
858
|
+
}
|
|
859
|
+
f(Rn, "readBlockMapping");
|
|
860
|
+
function Mn(e) {
|
|
861
|
+
var n, i = !1, l = !1, r, u, o = e.input.charCodeAt(e.position);
|
|
862
|
+
if (o !== 33) return !1;
|
|
863
|
+
if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
|
|
864
|
+
do
|
|
865
|
+
o = e.input.charCodeAt(++e.position);
|
|
866
|
+
while (o !== 0 && o !== 62);
|
|
867
|
+
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
|
|
868
|
+
} else {
|
|
869
|
+
for (; o !== 0 && !b(o); )
|
|
870
|
+
o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), yn.test(r) || h(e, "named tag handle cannot contain such characters"), l = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
871
|
+
u = e.input.slice(n, e.position), Fi.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
|
|
872
|
+
}
|
|
873
|
+
u && !wn.test(u) && h(e, "tag name cannot contain such characters: " + u);
|
|
874
|
+
try {
|
|
875
|
+
u = decodeURIComponent(u);
|
|
876
|
+
} catch {
|
|
877
|
+
h(e, "tag name is malformed: " + u);
|
|
878
|
+
}
|
|
879
|
+
return i ? e.tag = u : L.call(e.tagMap, r) ? e.tag = e.tagMap[r] + u : r === "!" ? e.tag = "!" + u : r === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
880
|
+
}
|
|
881
|
+
f(Mn, "readTagProperty");
|
|
882
|
+
function Yn(e) {
|
|
883
|
+
var n, i = e.input.charCodeAt(e.position);
|
|
884
|
+
if (i !== 38) return !1;
|
|
885
|
+
for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !b(i) && !R(i); ) i = e.input.charCodeAt(++e.position);
|
|
886
|
+
return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
887
|
+
}
|
|
888
|
+
f(Yn, "readAnchorProperty");
|
|
889
|
+
function Fn(e) {
|
|
890
|
+
var n, i, l = e.input.charCodeAt(e.position);
|
|
891
|
+
if (l !== 42) return !1;
|
|
892
|
+
for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !b(l) && !R(l); ) l = e.input.charCodeAt(++e.position);
|
|
893
|
+
return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), L.call(e.anchorMap, i) || h(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], w(e, !0, -1), !0;
|
|
894
|
+
}
|
|
895
|
+
f(Fn, "readAlias");
|
|
896
|
+
function Y(e, n, i, l, r) {
|
|
897
|
+
var u, o, c, a = 1, t = !1, d = !1, p, s, m, g, A, y;
|
|
898
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = c = V === i || An === i, l && w(e, !0, -1) && (t = !0, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)), a === 1) for (; Mn(e) || Yn(e); ) w(e, !0, -1) ? (t = !0, c = u, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)) : c = !1;
|
|
899
|
+
if (c && (c = t || r), (a === 1 || V === i) && (Q === i || vn === i ? A = n : A = n + 1, y = e.position - e.lineStart, a === 1 ? c && (ue(e, y) || Rn(e, y, A)) || Ln(e, A) ? d = !0 : (o && Nn(e, A) || In(e, A) || kn(e, A) ? d = !0 : Fn(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : On(e, A, Q === i) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : a === 0 && (d = c && ue(e, y))), e.tag === null)
|
|
900
|
+
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
901
|
+
else if (e.tag === "?") {
|
|
902
|
+
for (e.result !== null && e.kind !== "scalar" && h(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, s = e.implicitTypes.length; p < s; p += 1)
|
|
903
|
+
if (g = e.implicitTypes[p], g.resolve(e.result)) {
|
|
904
|
+
e.result = g.construct(e.result), e.tag = g.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
} else if (e.tag !== "!") {
|
|
908
|
+
if (L.call(e.typeMap[e.kind || "fallback"], e.tag)) g = e.typeMap[e.kind || "fallback"][e.tag];
|
|
909
|
+
else
|
|
910
|
+
for (g = null, m = e.typeMap.multi[e.kind || "fallback"], p = 0, s = m.length; p < s; p += 1) if (e.tag.slice(0, m[p].tag.length) === m[p].tag) {
|
|
911
|
+
g = m[p];
|
|
912
|
+
break;
|
|
913
|
+
}
|
|
914
|
+
g || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
915
|
+
}
|
|
916
|
+
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
917
|
+
}
|
|
918
|
+
f(Y, "composeNode");
|
|
919
|
+
function Pn(e) {
|
|
920
|
+
var n = e.position, i, l, r, u = !1, o;
|
|
921
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (w(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
922
|
+
for (u = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
923
|
+
for (l = e.input.slice(i, e.position), r = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
924
|
+
for (; k(o); ) o = e.input.charCodeAt(++e.position);
|
|
925
|
+
if (o === 35) {
|
|
926
|
+
do
|
|
927
|
+
o = e.input.charCodeAt(++e.position);
|
|
928
|
+
while (o !== 0 && !E(o));
|
|
929
|
+
break;
|
|
930
|
+
}
|
|
931
|
+
if (E(o)) break;
|
|
932
|
+
for (i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
933
|
+
r.push(e.input.slice(i, e.position));
|
|
934
|
+
}
|
|
935
|
+
o !== 0 && J(e), L.call(xe, l) ? xe[l](e, l, r) : H(e, 'unknown document directive "' + l + '"');
|
|
936
|
+
}
|
|
937
|
+
if (w(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, w(e, !0, -1)) : u && h(e, "directives end mark is expected"), Y(e, e.lineIndent - 1, V, !1, !0), w(e, !0, -1), e.checkLineBreaks && Yi.test(e.input.slice(n, e.position)) && H(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
|
|
938
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, w(e, !0, -1));
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
|
|
942
|
+
else return;
|
|
943
|
+
}
|
|
944
|
+
f(Pn, "readDocument");
|
|
945
|
+
function Ce(e, n) {
|
|
946
|
+
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
947
|
+
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
948
|
+
var i = new En(e, n), l = e.indexOf("\0");
|
|
949
|
+
for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
|
|
950
|
+
i.lineIndent += 1, i.position += 1;
|
|
951
|
+
for (; i.position < i.length - 1; ) Pn(i);
|
|
952
|
+
return i.documents;
|
|
953
|
+
}
|
|
954
|
+
f(Ce, "loadDocuments");
|
|
955
|
+
function Bn(e, n, i) {
|
|
956
|
+
n !== null && typeof n == "object" && typeof i > "u" && (i = n, n = null);
|
|
957
|
+
var l = Ce(e, i);
|
|
958
|
+
if (typeof n != "function") return l;
|
|
959
|
+
for (var r = 0, u = l.length; r < u; r += 1) n(l[r]);
|
|
960
|
+
}
|
|
961
|
+
f(Bn, "loadAll$1");
|
|
962
|
+
function Dn(e, n) {
|
|
963
|
+
var i = Ce(e, n);
|
|
964
|
+
if (i.length !== 0) {
|
|
965
|
+
if (i.length === 1) return i[0];
|
|
966
|
+
throw new T("expected a single document in the stream, but found more");
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
f(Dn, "load$1");
|
|
970
|
+
var Hn = {
|
|
971
|
+
loadAll: Bn,
|
|
972
|
+
load: Dn
|
|
973
|
+
}, jn = Object.prototype.toString, Un = Object.prototype.hasOwnProperty, Se = 65279, Pi = 9, j = 10, Bi = 13, Di = 32, Hi = 33, ji = 34, ce = 35, Ui = 37, Ki = 38, qi = 39, Wi = 42, Kn = 44, Gi = 45, X = 58, $i = 61, Qi = 62, Vi = 63, Xi = 64, qn = 91, Wn = 93, Zi = 96, Gn = 123, zi = 124, $n = 125, S = {};
|
|
974
|
+
S[0] = "\\0";
|
|
975
|
+
S[7] = "\\a";
|
|
976
|
+
S[8] = "\\b";
|
|
977
|
+
S[9] = "\\t";
|
|
978
|
+
S[10] = "\\n";
|
|
979
|
+
S[11] = "\\v";
|
|
980
|
+
S[12] = "\\f";
|
|
981
|
+
S[13] = "\\r";
|
|
982
|
+
S[27] = "\\e";
|
|
983
|
+
S[34] = '\\"';
|
|
984
|
+
S[92] = "\\\\";
|
|
985
|
+
S[133] = "\\N";
|
|
986
|
+
S[160] = "\\_";
|
|
987
|
+
S[8232] = "\\L";
|
|
988
|
+
S[8233] = "\\P";
|
|
989
|
+
var Ji = [
|
|
990
|
+
"y",
|
|
991
|
+
"Y",
|
|
992
|
+
"yes",
|
|
993
|
+
"Yes",
|
|
994
|
+
"YES",
|
|
995
|
+
"on",
|
|
996
|
+
"On",
|
|
997
|
+
"ON",
|
|
998
|
+
"n",
|
|
999
|
+
"N",
|
|
1000
|
+
"no",
|
|
1001
|
+
"No",
|
|
1002
|
+
"NO",
|
|
1003
|
+
"off",
|
|
1004
|
+
"Off",
|
|
1005
|
+
"OFF"
|
|
1006
|
+
], er = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1007
|
+
function Qn(e, n) {
|
|
1008
|
+
var i, l, r, u, o, c, a;
|
|
1009
|
+
if (n === null) return {};
|
|
1010
|
+
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1)
|
|
1011
|
+
o = l[r], c = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), a = e.compiledTypeMap.fallback[o], a && Un.call(a.styleAliases, c) && (c = a.styleAliases[c]), i[o] = c;
|
|
1012
|
+
return i;
|
|
1013
|
+
}
|
|
1014
|
+
f(Qn, "compileStyleMap");
|
|
1015
|
+
function Vn(e) {
|
|
1016
|
+
var n = e.toString(16).toUpperCase(), i, l;
|
|
1017
|
+
if (e <= 255)
|
|
1018
|
+
i = "x", l = 2;
|
|
1019
|
+
else if (e <= 65535)
|
|
1020
|
+
i = "u", l = 4;
|
|
1021
|
+
else if (e <= 4294967295)
|
|
1022
|
+
i = "U", l = 8;
|
|
1023
|
+
else throw new T("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1024
|
+
return "\\" + i + _.repeat("0", l - n.length) + n;
|
|
1025
|
+
}
|
|
1026
|
+
f(Vn, "encodeHex");
|
|
1027
|
+
var nr = 1, U = 2;
|
|
1028
|
+
function Xn(e) {
|
|
1029
|
+
this.schema = e.schema || gn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = _.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Qn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? U : nr, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1030
|
+
}
|
|
1031
|
+
f(Xn, "State");
|
|
1032
|
+
function fe(e, n) {
|
|
1033
|
+
for (var i = _.repeat(" ", n), l = 0, r = -1, u = "", o, c = e.length; l < c; )
|
|
1034
|
+
r = e.indexOf(`
|
|
1035
|
+
`, l), r === -1 ? (o = e.slice(l), l = c) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
|
|
1036
|
+
` && (u += i), u += o;
|
|
1037
|
+
return u;
|
|
1038
|
+
}
|
|
1039
|
+
f(fe, "indentString");
|
|
1040
|
+
function Z(e, n) {
|
|
1041
|
+
return `
|
|
1042
|
+
` + _.repeat(" ", e.indent * n);
|
|
1043
|
+
}
|
|
1044
|
+
f(Z, "generateNextLine");
|
|
1045
|
+
function Zn(e, n) {
|
|
1046
|
+
var i, l, r;
|
|
1047
|
+
for (i = 0, l = e.implicitTypes.length; i < l; i += 1)
|
|
1048
|
+
if (r = e.implicitTypes[i], r.resolve(n)) return !0;
|
|
1049
|
+
return !1;
|
|
1050
|
+
}
|
|
1051
|
+
f(Zn, "testImplicitResolving");
|
|
1052
|
+
function K(e) {
|
|
1053
|
+
return e === Di || e === Pi;
|
|
1054
|
+
}
|
|
1055
|
+
f(K, "isWhitespace");
|
|
1056
|
+
function D(e) {
|
|
1057
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Se || 65536 <= e && e <= 1114111;
|
|
1058
|
+
}
|
|
1059
|
+
f(D, "isPrintable");
|
|
1060
|
+
function ae(e) {
|
|
1061
|
+
return D(e) && e !== Se && e !== Bi && e !== j;
|
|
1062
|
+
}
|
|
1063
|
+
f(ae, "isNsCharOrWhitespace");
|
|
1064
|
+
function te(e, n, i) {
|
|
1065
|
+
var l = ae(e), r = l && !K(e);
|
|
1066
|
+
return (i ? l : l && e !== Kn && e !== qn && e !== Wn && e !== Gn && e !== $n) && e !== ce && !(n === X && !r) || ae(n) && !K(n) && e === ce || n === X && r;
|
|
1067
|
+
}
|
|
1068
|
+
f(te, "isPlainSafe");
|
|
1069
|
+
function zn(e) {
|
|
1070
|
+
return D(e) && e !== Se && !K(e) && e !== Gi && e !== Vi && e !== X && e !== Kn && e !== qn && e !== Wn && e !== Gn && e !== $n && e !== ce && e !== Ki && e !== Wi && e !== Hi && e !== zi && e !== $i && e !== Qi && e !== qi && e !== ji && e !== Ui && e !== Xi && e !== Zi;
|
|
1071
|
+
}
|
|
1072
|
+
f(zn, "isPlainSafeFirst");
|
|
1073
|
+
function Jn(e) {
|
|
1074
|
+
return !K(e) && e !== X;
|
|
1075
|
+
}
|
|
1076
|
+
f(Jn, "isPlainSafeLast");
|
|
1077
|
+
function P(e, n) {
|
|
1078
|
+
var i = e.charCodeAt(n), l;
|
|
1079
|
+
return i >= 55296 && i <= 56319 && n + 1 < e.length && (l = e.charCodeAt(n + 1), l >= 56320 && l <= 57343) ? (i - 55296) * 1024 + l - 56320 + 65536 : i;
|
|
1080
|
+
}
|
|
1081
|
+
f(P, "codePointAt");
|
|
1082
|
+
function be(e) {
|
|
1083
|
+
return /^\n* /.test(e);
|
|
1084
|
+
}
|
|
1085
|
+
f(be, "needIndentIndicator");
|
|
1086
|
+
var ei = 1, pe = 2, ni = 3, ii = 4, F = 5;
|
|
1087
|
+
function ri(e, n, i, l, r, u, o, c) {
|
|
1088
|
+
var a, t = 0, d = null, p = !1, s = !1, m = l !== -1, g = -1, A = zn(P(e, 0)) && Jn(P(e, e.length - 1));
|
|
1089
|
+
if (n || o) for (a = 0; a < e.length; t >= 65536 ? a += 2 : a++) {
|
|
1090
|
+
if (t = P(e, a), !D(t)) return F;
|
|
1091
|
+
A = A && te(t, d, c), d = t;
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
for (a = 0; a < e.length; t >= 65536 ? a += 2 : a++) {
|
|
1095
|
+
if (t = P(e, a), t === j)
|
|
1096
|
+
p = !0, m && (s = s || a - g - 1 > l && e[g + 1] !== " ", g = a);
|
|
1097
|
+
else if (!D(t)) return F;
|
|
1098
|
+
A = A && te(t, d, c), d = t;
|
|
1099
|
+
}
|
|
1100
|
+
s = s || m && a - g - 1 > l && e[g + 1] !== " ";
|
|
1101
|
+
}
|
|
1102
|
+
return !p && !s ? A && !o && !r(e) ? ei : u === U ? F : pe : i > 9 && be(e) ? F : o ? u === U ? F : pe : s ? ii : ni;
|
|
1103
|
+
}
|
|
1104
|
+
f(ri, "chooseScalarStyle");
|
|
1105
|
+
function li(e, n, i, l, r) {
|
|
1106
|
+
e.dump = (function() {
|
|
1107
|
+
if (n.length === 0) return e.quotingType === U ? '""' : "''";
|
|
1108
|
+
if (!e.noCompatMode && (Ji.indexOf(n) !== -1 || er.test(n)))
|
|
1109
|
+
return e.quotingType === U ? '"' + n + '"' : "'" + n + "'";
|
|
1110
|
+
var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), c = l || e.flowLevel > -1 && i >= e.flowLevel;
|
|
1111
|
+
function a(t) {
|
|
1112
|
+
return Zn(e, t);
|
|
1113
|
+
}
|
|
1114
|
+
switch (f(a, "testAmbiguity"), ri(n, c, e.indent, o, a, e.quotingType, e.forceQuotes && !l, r)) {
|
|
1115
|
+
case ei:
|
|
1116
|
+
return n;
|
|
1117
|
+
case pe:
|
|
1118
|
+
return "'" + n.replace(/'/g, "''") + "'";
|
|
1119
|
+
case ni:
|
|
1120
|
+
return "|" + he(n, e.indent) + de(fe(n, u));
|
|
1121
|
+
case ii:
|
|
1122
|
+
return ">" + he(n, e.indent) + de(fe(oi(n, o), u));
|
|
1123
|
+
case F:
|
|
1124
|
+
return '"' + ui(n) + '"';
|
|
1125
|
+
default:
|
|
1126
|
+
throw new T("impossible error: invalid scalar style");
|
|
1127
|
+
}
|
|
1128
|
+
})();
|
|
1129
|
+
}
|
|
1130
|
+
f(li, "writeScalar");
|
|
1131
|
+
function he(e, n) {
|
|
1132
|
+
var i = be(e) ? String(n) : "", l = e[e.length - 1] === `
|
|
1133
|
+
`;
|
|
1134
|
+
return i + (l && (e[e.length - 2] === `
|
|
1135
|
+
` || e === `
|
|
1136
|
+
`) ? "+" : l ? "" : "-") + `
|
|
1137
|
+
`;
|
|
1138
|
+
}
|
|
1139
|
+
f(he, "blockHeader");
|
|
1140
|
+
function de(e) {
|
|
1141
|
+
return e[e.length - 1] === `
|
|
1142
|
+
` ? e.slice(0, -1) : e;
|
|
1143
|
+
}
|
|
1144
|
+
f(de, "dropEndingNewline");
|
|
1145
|
+
function oi(e, n) {
|
|
1146
|
+
for (var i = /(\n+)([^\n]*)/g, l = (function() {
|
|
1147
|
+
var t = e.indexOf(`
|
|
1148
|
+
`);
|
|
1149
|
+
return t = t !== -1 ? t : e.length, i.lastIndex = t, se(e.slice(0, t), n);
|
|
1150
|
+
})(), r = e[0] === `
|
|
1151
|
+
` || e[0] === " ", u, o; o = i.exec(e); ) {
|
|
1152
|
+
var c = o[1], a = o[2];
|
|
1153
|
+
u = a[0] === " ", l += c + (!r && !u && a !== "" ? `
|
|
1154
|
+
` : "") + se(a, n), r = u;
|
|
1155
|
+
}
|
|
1156
|
+
return l;
|
|
1157
|
+
}
|
|
1158
|
+
f(oi, "foldString");
|
|
1159
|
+
function se(e, n) {
|
|
1160
|
+
if (e === "" || e[0] === " ") return e;
|
|
1161
|
+
for (var i = / [^ ]/g, l, r = 0, u, o = 0, c = 0, a = ""; l = i.exec(e); )
|
|
1162
|
+
c = l.index, c - r > n && (u = o > r ? o : c, a += `
|
|
1163
|
+
` + e.slice(r, u), r = u + 1), o = c;
|
|
1164
|
+
return a += `
|
|
1165
|
+
`, e.length - r > n && o > r ? a += e.slice(r, o) + `
|
|
1166
|
+
` + e.slice(o + 1) : a += e.slice(r), a.slice(1);
|
|
1167
|
+
}
|
|
1168
|
+
f(se, "foldLine");
|
|
1169
|
+
function ui(e) {
|
|
1170
|
+
for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++)
|
|
1171
|
+
i = P(e, r), l = S[i], !l && D(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Vn(i);
|
|
1172
|
+
return n;
|
|
1173
|
+
}
|
|
1174
|
+
f(ui, "escapeString");
|
|
1175
|
+
function ci(e, n, i) {
|
|
1176
|
+
var l = "", r = e.tag, u, o, c;
|
|
1177
|
+
for (u = 0, o = i.length; u < o; u += 1)
|
|
1178
|
+
c = i[u], e.replacer && (c = e.replacer.call(i, String(u), c)), (O(e, n, c, !1, !1) || typeof c > "u" && O(e, n, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
1179
|
+
e.tag = r, e.dump = "[" + l + "]";
|
|
1180
|
+
}
|
|
1181
|
+
f(ci, "writeFlowSequence");
|
|
1182
|
+
function me(e, n, i, l) {
|
|
1183
|
+
var r = "", u = e.tag, o, c, a;
|
|
1184
|
+
for (o = 0, c = i.length; o < c; o += 1)
|
|
1185
|
+
a = i[o], e.replacer && (a = e.replacer.call(i, String(o), a)), (O(e, n + 1, a, !0, !0, !1, !0) || typeof a > "u" && O(e, n + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += Z(e, n)), e.dump && j === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1186
|
+
e.tag = u, e.dump = r || "[]";
|
|
1187
|
+
}
|
|
1188
|
+
f(me, "writeBlockSequence");
|
|
1189
|
+
function fi(e, n, i) {
|
|
1190
|
+
var l = "", r = e.tag, u = Object.keys(i), o, c, a, t, d;
|
|
1191
|
+
for (o = 0, c = u.length; o < c; o += 1)
|
|
1192
|
+
d = "", l !== "" && (d += ", "), e.condenseFlow && (d += '"'), a = u[o], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), O(e, n, a, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), O(e, n, t, !1, !1) && (d += e.dump, l += d));
|
|
1193
|
+
e.tag = r, e.dump = "{" + l + "}";
|
|
1194
|
+
}
|
|
1195
|
+
f(fi, "writeFlowMapping");
|
|
1196
|
+
function ai(e, n, i, l) {
|
|
1197
|
+
var r = "", u = e.tag, o = Object.keys(i), c, a, t, d, p, s;
|
|
1198
|
+
if (e.sortKeys === !0) o.sort();
|
|
1199
|
+
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
1200
|
+
else if (e.sortKeys) throw new T("sortKeys must be a boolean or a function");
|
|
1201
|
+
for (c = 0, a = o.length; c < a; c += 1)
|
|
1202
|
+
s = "", (!l || r !== "") && (s += Z(e, n)), t = o[c], d = i[t], e.replacer && (d = e.replacer.call(i, t, d)), O(e, n + 1, t, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && j === e.dump.charCodeAt(0) ? s += "?" : s += "? "), s += e.dump, p && (s += Z(e, n)), O(e, n + 1, d, !0, p) && (e.dump && j === e.dump.charCodeAt(0) ? s += ":" : s += ": ", s += e.dump, r += s));
|
|
1203
|
+
e.tag = u, e.dump = r || "{}";
|
|
1204
|
+
}
|
|
1205
|
+
f(ai, "writeBlockMapping");
|
|
1206
|
+
function ge(e, n, i) {
|
|
1207
|
+
var l, r = i ? e.explicitTypes : e.implicitTypes, u, o, c, a;
|
|
1208
|
+
for (u = 0, o = r.length; u < o; u += 1)
|
|
1209
|
+
if (c = r[u], (c.instanceOf || c.predicate) && (!c.instanceOf || typeof n == "object" && n instanceof c.instanceOf) && (!c.predicate || c.predicate(n))) {
|
|
1210
|
+
if (i ? c.multi && c.representName ? e.tag = c.representName(n) : e.tag = c.tag : e.tag = "?", c.represent) {
|
|
1211
|
+
if (a = e.styleMap[c.tag] || c.defaultStyle, jn.call(c.represent) === "[object Function]") l = c.represent(n, a);
|
|
1212
|
+
else if (Un.call(c.represent, a)) l = c.represent[a](n, a);
|
|
1213
|
+
else throw new T("!<" + c.tag + '> tag resolver accepts not "' + a + '" style');
|
|
1214
|
+
e.dump = l;
|
|
1215
|
+
}
|
|
1216
|
+
return !0;
|
|
1217
|
+
}
|
|
1218
|
+
return !1;
|
|
1219
|
+
}
|
|
1220
|
+
f(ge, "detectType");
|
|
1221
|
+
function O(e, n, i, l, r, u, o) {
|
|
1222
|
+
e.tag = null, e.dump = i, ge(e, i, !1) || ge(e, i, !0);
|
|
1223
|
+
var c = jn.call(e.dump), a = l, t;
|
|
1224
|
+
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
1225
|
+
var d = c === "[object Object]" || c === "[object Array]", p, s;
|
|
1226
|
+
if (d && (p = e.duplicates.indexOf(i), s = p !== -1), (e.tag !== null && e.tag !== "?" || s || e.indent !== 2 && n > 0) && (r = !1), s && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
1227
|
+
else {
|
|
1228
|
+
if (d && s && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), c === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (ai(e, n, e.dump, r), s && (e.dump = "&ref_" + p + e.dump)) : (fi(e, n, e.dump), s && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1229
|
+
else if (c === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? me(e, n - 1, e.dump, r) : me(e, n, e.dump, r), s && (e.dump = "&ref_" + p + e.dump)) : (ci(e, n, e.dump), s && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1230
|
+
else if (c === "[object String]")
|
|
1231
|
+
e.tag !== "?" && li(e, e.dump, n, u, a);
|
|
1232
|
+
else {
|
|
1233
|
+
if (c === "[object Undefined]") return !1;
|
|
1234
|
+
if (e.skipInvalid) return !1;
|
|
1235
|
+
throw new T("unacceptable kind of an object to dump " + c);
|
|
1236
|
+
}
|
|
1237
|
+
e.tag !== null && e.tag !== "?" && (t = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), e.tag[0] === "!" ? t = "!" + t : t.slice(0, 18) === "tag:yaml.org,2002:" ? t = "!!" + t.slice(18) : t = "!<" + t + ">", e.dump = t + " " + e.dump);
|
|
1238
|
+
}
|
|
1239
|
+
return !0;
|
|
1240
|
+
}
|
|
1241
|
+
f(O, "writeNode");
|
|
1242
|
+
function ti(e, n) {
|
|
1243
|
+
var i = [], l = [], r, u;
|
|
1244
|
+
for (z(e, i, l), r = 0, u = l.length; r < u; r += 1) n.duplicates.push(i[l[r]]);
|
|
1245
|
+
n.usedDuplicates = new Array(u);
|
|
1246
|
+
}
|
|
1247
|
+
f(ti, "getDuplicateReferences");
|
|
1248
|
+
function z(e, n, i) {
|
|
1249
|
+
var l, r, u;
|
|
1250
|
+
if (e !== null && typeof e == "object")
|
|
1251
|
+
if (r = n.indexOf(e), r !== -1)
|
|
1252
|
+
i.indexOf(r) === -1 && i.push(r);
|
|
1253
|
+
else if (n.push(e), Array.isArray(e)) for (r = 0, u = e.length; r < u; r += 1) z(e[r], n, i);
|
|
1254
|
+
else
|
|
1255
|
+
for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1) z(e[l[r]], n, i);
|
|
1256
|
+
}
|
|
1257
|
+
f(z, "inspectNode");
|
|
1258
|
+
function pi(e, n) {
|
|
1259
|
+
n = n || {};
|
|
1260
|
+
var i = new Xn(n);
|
|
1261
|
+
i.noRefs || ti(e, i);
|
|
1262
|
+
var l = e;
|
|
1263
|
+
return i.replacer && (l = i.replacer.call({ "": l }, "", l)), O(i, 0, l, !0, !0) ? i.dump + `
|
|
1264
|
+
` : "";
|
|
1265
|
+
}
|
|
1266
|
+
f(pi, "dump$1");
|
|
1267
|
+
var ir = { dump: pi };
|
|
1268
|
+
function rr(e, n) {
|
|
1269
|
+
return function() {
|
|
1270
|
+
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
f(rr, "renamed");
|
|
1274
|
+
var or = ze, ur = Hn.load;
|
|
1275
|
+
Hn.loadAll;
|
|
1276
|
+
ir.dump;
|
|
1277
|
+
export {
|
|
1278
|
+
ur as n,
|
|
1279
|
+
or as t
|
|
1280
|
+
};
|