@bleedingdev/modern-js-utils 3.2.0-ultramodern.0
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/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/cjs/cli/alias.js +82 -0
- package/dist/cjs/cli/applyOptionsChain.js +50 -0
- package/dist/cjs/cli/commands.js +69 -0
- package/dist/cjs/cli/common.js +59 -0
- package/dist/cjs/cli/config.js +39 -0
- package/dist/cjs/cli/constants.js +136 -0
- package/dist/cjs/cli/ensure.js +56 -0
- package/dist/cjs/cli/fs.js +46 -0
- package/dist/cjs/cli/get/config.js +48 -0
- package/dist/cjs/cli/get/data.js +106 -0
- package/dist/cjs/cli/get/index.js +112 -0
- package/dist/cjs/cli/index.js +212 -0
- package/dist/cjs/cli/is/config.js +86 -0
- package/dist/cjs/cli/is/env.js +52 -0
- package/dist/cjs/cli/is/index.js +79 -0
- package/dist/cjs/cli/is/project.js +147 -0
- package/dist/cjs/cli/is/type.js +84 -0
- package/dist/cjs/cli/logger.js +39 -0
- package/dist/cjs/cli/modulePath.js +87 -0
- package/dist/cjs/cli/monorepo.js +110 -0
- package/dist/cjs/cli/package.js +97 -0
- package/dist/cjs/cli/path.js +111 -0
- package/dist/cjs/cli/port.js +79 -0
- package/dist/cjs/cli/prettyInstructions.js +117 -0
- package/dist/cjs/cli/require.js +127 -0
- package/dist/cjs/cli/route.js +76 -0
- package/dist/cjs/cli/runtimeExports.js +86 -0
- package/dist/cjs/cli/tsconfig.js +51 -0
- package/dist/cjs/cli/version.js +67 -0
- package/dist/cjs/cli/watch.js +87 -0
- package/dist/cjs/compiled.js +209 -0
- package/dist/cjs/import.js +56 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/universal/constants.js +84 -0
- package/dist/cjs/universal/index.js +36 -0
- package/dist/cjs/universal/path.js +36 -0
- package/dist/cjs/universal/pluginDagSort.js +75 -0
- package/dist/compiled/address/index.js +171 -0
- package/dist/compiled/address/lib/address.d.ts +28 -0
- package/dist/compiled/address/package.json +1 -0
- package/dist/compiled/browserslist/index.d.ts +178 -0
- package/dist/compiled/browserslist/index.js +1329 -0
- package/dist/compiled/browserslist/license +20 -0
- package/dist/compiled/browserslist/package.json +1 -0
- package/dist/compiled/chalk/index.d.ts +415 -0
- package/dist/compiled/chalk/index.js +2368 -0
- package/dist/compiled/chalk/license +9 -0
- package/dist/compiled/chalk/package.json +1 -0
- package/dist/compiled/chokidar/anymatch/index.d.ts +19 -0
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/index.js +4162 -0
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/chokidar/license +21 -0
- package/dist/compiled/chokidar/package.json +1 -0
- package/dist/compiled/chokidar/types/index.d.ts +188 -0
- package/dist/compiled/commander/index.js +1540 -0
- package/dist/compiled/commander/index.mjs +2 -0
- package/dist/compiled/commander/license +22 -0
- package/dist/compiled/commander/package.json +1 -0
- package/dist/compiled/commander/typings/index.d.ts +890 -0
- package/dist/compiled/debug/index.d.ts +54 -0
- package/dist/compiled/debug/index.js +621 -0
- package/dist/compiled/debug/license +20 -0
- package/dist/compiled/debug/ms/index.d.ts +25 -0
- package/dist/compiled/debug/package.json +1 -0
- package/dist/compiled/dotenv/index.js +101 -0
- package/dist/compiled/dotenv/license +23 -0
- package/dist/compiled/dotenv/package.json +1 -0
- package/dist/compiled/dotenv/types/index.d.ts +59 -0
- package/dist/compiled/dotenv-expand/index.d.ts +15 -0
- package/dist/compiled/dotenv-expand/index.js +54 -0
- package/dist/compiled/dotenv-expand/license +24 -0
- package/dist/compiled/dotenv-expand/package.json +1 -0
- package/dist/compiled/execa/index.d.ts +564 -0
- package/dist/compiled/execa/index.js +1738 -0
- package/dist/compiled/execa/license +9 -0
- package/dist/compiled/execa/package.json +1 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/compiled/fast-glob/index.js +4665 -0
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/fast-glob/license +21 -0
- package/dist/compiled/fast-glob/out/index.d.ts +27 -0
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/compiled/fast-glob/out/settings.d.ts +164 -0
- package/dist/compiled/fast-glob/out/types/index.d.ts +31 -0
- package/dist/compiled/fast-glob/package.json +1 -0
- package/dist/compiled/filesize/filesize.d.ts +131 -0
- package/dist/compiled/filesize/index.js +198 -0
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/filesize/license +28 -0
- package/dist/compiled/filesize/package.json +1 -0
- package/dist/compiled/fs-extra/index.d.ts +563 -0
- package/dist/compiled/fs-extra/index.js +2222 -0
- package/dist/compiled/fs-extra/license +15 -0
- package/dist/compiled/fs-extra/package.json +1 -0
- package/dist/compiled/glob/index.d.ts +91 -0
- package/dist/compiled/glob/index.js +2011 -0
- package/dist/compiled/glob/license +21 -0
- package/dist/compiled/glob/minimatch/index.d.ts +204 -0
- package/dist/compiled/glob/package.json +1 -0
- package/dist/compiled/globby/index.d.ts +186 -0
- package/dist/compiled/globby/index.js +690 -0
- package/dist/compiled/globby/license +9 -0
- package/dist/compiled/globby/package.json +1 -0
- package/dist/compiled/gzip-size/index.d.ts +96 -0
- package/dist/compiled/gzip-size/index.js +157 -0
- package/dist/compiled/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/package.json +1 -0
- package/dist/compiled/import-lazy/index.d.ts +26 -0
- package/dist/compiled/import-lazy/index.js +45 -0
- package/dist/compiled/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/package.json +1 -0
- package/dist/compiled/inquirer/index.d.ts +997 -0
- package/dist/compiled/inquirer/index.js +20167 -0
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +65 -0
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +206 -0
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +65 -0
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +104 -0
- package/dist/compiled/inquirer/license +22 -0
- package/dist/compiled/inquirer/package.json +1 -0
- package/dist/compiled/inquirer/through/index.d.ts +25 -0
- package/dist/compiled/js-yaml/index.d.ts +154 -0
- package/dist/compiled/js-yaml/index.js +2191 -0
- package/dist/compiled/js-yaml/index.mjs +2167 -0
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/js-yaml/license +21 -0
- package/dist/compiled/js-yaml/package.json +1 -0
- package/dist/compiled/json5/index.js +983 -0
- package/dist/compiled/json5/lib/index.d.ts +4 -0
- package/dist/compiled/json5/lib/parse.d.ts +15 -0
- package/dist/compiled/json5/lib/stringify.d.ts +89 -0
- package/dist/compiled/json5/package.json +1 -0
- package/dist/compiled/lodash/common/array.d.ts +2126 -0
- package/dist/compiled/lodash/common/collection.d.ts +1930 -0
- package/dist/compiled/lodash/common/common.d.ts +280 -0
- package/dist/compiled/lodash/common/date.d.ts +23 -0
- package/dist/compiled/lodash/common/function.d.ts +1446 -0
- package/dist/compiled/lodash/common/lang.d.ts +1693 -0
- package/dist/compiled/lodash/common/math.d.ts +405 -0
- package/dist/compiled/lodash/common/number.d.ts +131 -0
- package/dist/compiled/lodash/common/object.d.ts +2519 -0
- package/dist/compiled/lodash/common/seq.d.ts +210 -0
- package/dist/compiled/lodash/common/string.d.ts +788 -0
- package/dist/compiled/lodash/common/util.d.ts +1220 -0
- package/dist/compiled/lodash/index.d.ts +46 -0
- package/dist/compiled/lodash/index.js +1 -0
- package/dist/compiled/lodash/index.mjs +1 -0
- package/dist/compiled/lodash/license +47 -0
- package/dist/compiled/lodash/package.json +1 -0
- package/dist/compiled/mime-types/index.d.ts +14 -0
- package/dist/compiled/mime-types/index.js +116 -0
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/mime-types/license +23 -0
- package/dist/compiled/mime-types/package.json +1 -0
- package/dist/compiled/minimist/index.d.ts +95 -0
- package/dist/compiled/minimist/index.js +202 -0
- package/dist/compiled/minimist/license +18 -0
- package/dist/compiled/minimist/package.json +1 -0
- package/dist/compiled/nanoid/index.d.ts +91 -0
- package/dist/compiled/nanoid/index.js +83 -0
- package/dist/compiled/nanoid/index.mjs +69 -0
- package/dist/compiled/nanoid/license +20 -0
- package/dist/compiled/nanoid/package.json +1 -0
- package/dist/compiled/ora/cli-spinners/index.d.ts +125 -0
- package/dist/compiled/ora/index.d.ts +277 -0
- package/dist/compiled/ora/index.js +3936 -0
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/ora/license +9 -0
- package/dist/compiled/ora/package.json +1 -0
- package/dist/compiled/pkg-up/index.d.ts +48 -0
- package/dist/compiled/pkg-up/index.js +15 -0
- package/dist/compiled/pkg-up/license +9 -0
- package/dist/compiled/pkg-up/package.json +1 -0
- package/dist/compiled/semver/classes/comparator.d.ts +17 -0
- package/dist/compiled/semver/classes/range.d.ts +21 -0
- package/dist/compiled/semver/classes/semver.d.ts +62 -0
- package/dist/compiled/semver/functions/clean.d.ts +8 -0
- package/dist/compiled/semver/functions/cmp.d.ts +16 -0
- package/dist/compiled/semver/functions/coerce.d.ts +12 -0
- package/dist/compiled/semver/functions/compare-build.d.ts +16 -0
- package/dist/compiled/semver/functions/compare-loose.d.ts +5 -0
- package/dist/compiled/semver/functions/compare.d.ts +20 -0
- package/dist/compiled/semver/functions/diff.d.ts +13 -0
- package/dist/compiled/semver/functions/eq.d.ts +9 -0
- package/dist/compiled/semver/functions/gt.d.ts +9 -0
- package/dist/compiled/semver/functions/gte.d.ts +9 -0
- package/dist/compiled/semver/functions/inc.d.ts +15 -0
- package/dist/compiled/semver/functions/lt.d.ts +9 -0
- package/dist/compiled/semver/functions/lte.d.ts +8 -0
- package/dist/compiled/semver/functions/major.d.ts +9 -0
- package/dist/compiled/semver/functions/minor.d.ts +9 -0
- package/dist/compiled/semver/functions/neq.d.ts +9 -0
- package/dist/compiled/semver/functions/parse.d.ts +12 -0
- package/dist/compiled/semver/functions/patch.d.ts +9 -0
- package/dist/compiled/semver/functions/prerelease.d.ts +12 -0
- package/dist/compiled/semver/functions/rcompare.d.ts +15 -0
- package/dist/compiled/semver/functions/rsort.d.ts +9 -0
- package/dist/compiled/semver/functions/satisfies.d.ts +14 -0
- package/dist/compiled/semver/functions/sort.d.ts +9 -0
- package/dist/compiled/semver/functions/valid.d.ts +11 -0
- package/dist/compiled/semver/index.d.ts +133 -0
- package/dist/compiled/semver/index.js +1779 -0
- package/dist/compiled/semver/internals/identifiers.d.ts +13 -0
- package/dist/compiled/semver/license +15 -0
- package/dist/compiled/semver/package.json +1 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +14 -0
- package/dist/compiled/semver/ranges/intersects.d.ts +13 -0
- package/dist/compiled/semver/ranges/ltr.d.ts +14 -0
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-version.d.ts +10 -0
- package/dist/compiled/semver/ranges/outside.d.ts +15 -0
- package/dist/compiled/semver/ranges/simplify.d.ts +14 -0
- package/dist/compiled/semver/ranges/subset.d.ts +13 -0
- package/dist/compiled/semver/ranges/to-comparators.d.ts +9 -0
- package/dist/compiled/semver/ranges/valid.d.ts +12 -0
- package/dist/compiled/signale/index.d.ts +162 -0
- package/dist/compiled/signale/index.js +1704 -0
- package/dist/compiled/signale/package.json +1 -0
- package/dist/compiled/slash/index.d.ts +25 -0
- package/dist/compiled/slash/index.js +32 -0
- package/dist/compiled/slash/license +9 -0
- package/dist/compiled/slash/package.json +1 -0
- package/dist/compiled/strip-ansi/index.d.ts +17 -0
- package/dist/compiled/strip-ansi/index.js +34 -0
- package/dist/compiled/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/package.json +1 -0
- package/dist/compiled/tsconfig-paths/index.js +629 -0
- package/dist/compiled/tsconfig-paths/index.mjs +2 -0
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +12 -0
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/dist/compiled/tsconfig-paths/license +21 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -0
- package/dist/compiled/upath/index.js +135 -0
- package/dist/compiled/upath/license +22 -0
- package/dist/compiled/upath/package.json +1 -0
- package/dist/compiled/upath/upath.d.ts +241 -0
- package/dist/compiled/url-join/index.d.ts +17 -0
- package/dist/compiled/url-join/index.js +61 -0
- package/dist/compiled/url-join/license +21 -0
- package/dist/compiled/url-join/package.json +1 -0
- package/dist/compiled/webpack-chain/index.js +1475 -0
- package/dist/compiled/webpack-chain/license +373 -0
- package/dist/compiled/webpack-chain/package.json +1 -0
- package/dist/compiled/webpack-chain/types/index.d.ts +599 -0
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +9 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +30 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +49 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/esm/cli/index.mjs +23 -0
- package/dist/esm/cli/is/config.mjs +37 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/index.mjs +4 -0
- package/dist/esm/cli/is/project.mjs +75 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +1 -0
- package/dist/esm/cli/modulePath.mjs +33 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +70 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +42 -0
- package/dist/esm/cli/tsconfig.mjs +7 -0
- package/dist/esm/cli/version.mjs +24 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +45 -0
- package/dist/esm/import.mjs +9 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/rslib-runtime.mjs +12 -0
- package/dist/esm/universal/constants.mjs +14 -0
- package/dist/esm/universal/index.mjs +1 -0
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +32 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +17 -0
- package/dist/esm-node/cli/commands.mjs +24 -0
- package/dist/esm-node/cli/common.mjs +10 -0
- package/dist/esm-node/cli/config.mjs +6 -0
- package/dist/esm-node/cli/constants.mjs +31 -0
- package/dist/esm-node/cli/ensure.mjs +10 -0
- package/dist/esm-node/cli/fs.mjs +10 -0
- package/dist/esm-node/cli/get/config.mjs +15 -0
- package/dist/esm-node/cli/get/data.mjs +50 -0
- package/dist/esm-node/cli/get/index.mjs +19 -0
- package/dist/esm-node/cli/index.mjs +24 -0
- package/dist/esm-node/cli/is/config.mjs +38 -0
- package/dist/esm-node/cli/is/env.mjs +7 -0
- package/dist/esm-node/cli/is/index.mjs +5 -0
- package/dist/esm-node/cli/is/project.mjs +76 -0
- package/dist/esm-node/cli/is/type.mjs +27 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/modulePath.mjs +34 -0
- package/dist/esm-node/cli/monorepo.mjs +51 -0
- package/dist/esm-node/cli/package.mjs +52 -0
- package/dist/esm-node/cli/path.mjs +36 -0
- package/dist/esm-node/cli/port.mjs +36 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +71 -0
- package/dist/esm-node/cli/require.mjs +80 -0
- package/dist/esm-node/cli/route.mjs +37 -0
- package/dist/esm-node/cli/runtimeExports.mjs +43 -0
- package/dist/esm-node/cli/tsconfig.mjs +8 -0
- package/dist/esm-node/cli/version.mjs +25 -0
- package/dist/esm-node/cli/watch.mjs +41 -0
- package/dist/esm-node/compiled.mjs +45 -0
- package/dist/esm-node/import.mjs +10 -0
- package/dist/esm-node/index.mjs +4 -0
- package/dist/esm-node/universal/constants.mjs +15 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +3 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +42 -0
- package/dist/types/cli/alias.d.ts +20 -0
- package/dist/types/cli/applyOptionsChain.d.ts +3 -0
- package/dist/types/cli/commands.d.ts +8 -0
- package/dist/types/cli/common.d.ts +9 -0
- package/dist/types/cli/config.d.ts +4 -0
- package/dist/types/cli/constants.d.ts +55 -0
- package/dist/types/cli/ensure.d.ts +8 -0
- package/dist/types/cli/fs.d.ts +7 -0
- package/dist/types/cli/get/config.d.ts +1 -0
- package/dist/types/cli/get/data.d.ts +6 -0
- package/dist/types/cli/get/index.d.ts +11 -0
- package/dist/types/cli/index.d.ts +23 -0
- package/dist/types/cli/is/config.d.ts +22 -0
- package/dist/types/cli/is/env.d.ts +8 -0
- package/dist/types/cli/is/index.d.ts +4 -0
- package/dist/types/cli/is/project.d.ts +39 -0
- package/dist/types/cli/is/type.d.ts +15 -0
- package/dist/types/cli/logger.d.ts +1 -0
- package/dist/types/cli/modulePath.d.ts +5 -0
- package/dist/types/cli/monorepo.d.ts +9 -0
- package/dist/types/cli/package.d.ts +5 -0
- package/dist/types/cli/path.d.ts +11 -0
- package/dist/types/cli/port.d.ts +12 -0
- package/dist/types/cli/prettyInstructions.d.ts +9 -0
- package/dist/types/cli/require.d.ts +9 -0
- package/dist/types/cli/route.d.ts +4 -0
- package/dist/types/cli/runtimeExports.d.ts +5 -0
- package/dist/types/cli/tsconfig.d.ts +1 -0
- package/dist/types/cli/version.d.ts +4 -0
- package/dist/types/cli/watch.d.ts +8 -0
- package/dist/types/compiled.d.ts +37 -0
- package/dist/types/import.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/universal/constants.d.ts +47 -0
- package/dist/types/universal/index.d.ts +1 -0
- package/dist/types/universal/path.d.ts +1 -0
- package/dist/types/universal/pluginDagSort.d.ts +1 -0
- package/package.json +174 -0
- package/rslib.config.mts +162 -0
- package/rstest.config.mts +8 -0
|
@@ -0,0 +1,2167 @@
|
|
|
1
|
+
/*! LICENSE: index.mjs.LICENSE.txt */
|
|
2
|
+
var e = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
e.d = (t, r)=>{
|
|
5
|
+
for(var i in r)if (e.o(r, i) && !e.o(t, i)) Object.defineProperty(t, i, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: r[i]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
e.o = (e, t)=>Object.prototype.hasOwnProperty.call(e, t);
|
|
13
|
+
})();
|
|
14
|
+
if (void 0 !== e) e.ab = new URL(".", import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";
|
|
15
|
+
var t = {};
|
|
16
|
+
e.d(t, {
|
|
17
|
+
Ay: ()=>ot,
|
|
18
|
+
Bh: ()=>et,
|
|
19
|
+
Hh: ()=>ze,
|
|
20
|
+
N5: ()=>nt,
|
|
21
|
+
OU: ()=>Ve,
|
|
22
|
+
Qd: ()=>it,
|
|
23
|
+
Sj: ()=>Qe,
|
|
24
|
+
ZU: ()=>Ke,
|
|
25
|
+
bk: ()=>at,
|
|
26
|
+
gK: ()=>rt,
|
|
27
|
+
gh: ()=>Xe,
|
|
28
|
+
my: ()=>Je,
|
|
29
|
+
rQ: ()=>Ge,
|
|
30
|
+
tB: ()=>tt,
|
|
31
|
+
uH: ()=>Ze
|
|
32
|
+
});
|
|
33
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */ function isNothing(e) {
|
|
34
|
+
return null == e;
|
|
35
|
+
}
|
|
36
|
+
function isObject(e) {
|
|
37
|
+
return "object" == typeof e && null !== e;
|
|
38
|
+
}
|
|
39
|
+
function toArray(e) {
|
|
40
|
+
if (Array.isArray(e)) return e;
|
|
41
|
+
if (isNothing(e)) return [];
|
|
42
|
+
return [
|
|
43
|
+
e
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
function extend(e, t) {
|
|
47
|
+
var r, i, n, a;
|
|
48
|
+
if (t) {
|
|
49
|
+
a = Object.keys(t);
|
|
50
|
+
for(r = 0, i = a.length; r < i; r += 1){
|
|
51
|
+
n = a[r];
|
|
52
|
+
e[n] = t[n];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return e;
|
|
56
|
+
}
|
|
57
|
+
function repeat(e, t) {
|
|
58
|
+
var r = "", i;
|
|
59
|
+
for(i = 0; i < t; i += 1)r += e;
|
|
60
|
+
return r;
|
|
61
|
+
}
|
|
62
|
+
function isNegativeZero(e) {
|
|
63
|
+
return 0 === e && -1 / 0 === 1 / e;
|
|
64
|
+
}
|
|
65
|
+
var r = isNothing;
|
|
66
|
+
var i = isObject;
|
|
67
|
+
var n = toArray;
|
|
68
|
+
var a = repeat;
|
|
69
|
+
var o = isNegativeZero;
|
|
70
|
+
var l = extend;
|
|
71
|
+
var s = {
|
|
72
|
+
isNothing: r,
|
|
73
|
+
isObject: i,
|
|
74
|
+
toArray: n,
|
|
75
|
+
repeat: a,
|
|
76
|
+
isNegativeZero: o,
|
|
77
|
+
extend: l
|
|
78
|
+
};
|
|
79
|
+
function formatError(e, t) {
|
|
80
|
+
var r = "", i = e.reason || "(unknown reason)";
|
|
81
|
+
if (!e.mark) return i;
|
|
82
|
+
if (e.mark.name) r += 'in "' + e.mark.name + '" ';
|
|
83
|
+
r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")";
|
|
84
|
+
if (!t && e.mark.snippet) r += "\n\n" + e.mark.snippet;
|
|
85
|
+
return i + " " + r;
|
|
86
|
+
}
|
|
87
|
+
function YAMLException$1(e, t) {
|
|
88
|
+
Error.call(this);
|
|
89
|
+
this.name = "YAMLException";
|
|
90
|
+
this.reason = e;
|
|
91
|
+
this.mark = t;
|
|
92
|
+
this.message = formatError(this, false);
|
|
93
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
94
|
+
else this.stack = (new Error).stack || "";
|
|
95
|
+
}
|
|
96
|
+
YAMLException$1.prototype = Object.create(Error.prototype);
|
|
97
|
+
YAMLException$1.prototype.constructor = YAMLException$1;
|
|
98
|
+
YAMLException$1.prototype.toString = function(e) {
|
|
99
|
+
return this.name + ": " + formatError(this, e);
|
|
100
|
+
};
|
|
101
|
+
var c = YAMLException$1;
|
|
102
|
+
function getLine(e, t, r, i, n) {
|
|
103
|
+
var a = "";
|
|
104
|
+
var o = "";
|
|
105
|
+
var l = Math.floor(n / 2) - 1;
|
|
106
|
+
if (i - t > l) {
|
|
107
|
+
a = " ... ";
|
|
108
|
+
t = i - l + a.length;
|
|
109
|
+
}
|
|
110
|
+
if (r - i > l) {
|
|
111
|
+
o = " ...";
|
|
112
|
+
r = i + l - o.length;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
str: a + e.slice(t, r).replace(/\t/g, "→") + o,
|
|
116
|
+
pos: i - t + a.length
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function padStart(e, t) {
|
|
120
|
+
return s.repeat(" ", t - e.length) + e;
|
|
121
|
+
}
|
|
122
|
+
function makeSnippet(e, t) {
|
|
123
|
+
t = Object.create(t || null);
|
|
124
|
+
if (!e.buffer) return null;
|
|
125
|
+
if (!t.maxLength) t.maxLength = 79;
|
|
126
|
+
if ("number" != typeof t.indent) t.indent = 1;
|
|
127
|
+
if ("number" != typeof t.linesBefore) t.linesBefore = 3;
|
|
128
|
+
if ("number" != typeof t.linesAfter) t.linesAfter = 2;
|
|
129
|
+
var r = /\r?\n|\r|\0/g;
|
|
130
|
+
var i = [
|
|
131
|
+
0
|
|
132
|
+
];
|
|
133
|
+
var n = [];
|
|
134
|
+
var a;
|
|
135
|
+
var o = -1;
|
|
136
|
+
while(a = r.exec(e.buffer)){
|
|
137
|
+
n.push(a.index);
|
|
138
|
+
i.push(a.index + a[0].length);
|
|
139
|
+
if (e.position <= a.index && o < 0) o = i.length - 2;
|
|
140
|
+
}
|
|
141
|
+
if (o < 0) o = i.length - 1;
|
|
142
|
+
var l = "", c, u;
|
|
143
|
+
var f = Math.min(e.line + t.linesAfter, n.length).toString().length;
|
|
144
|
+
var p = t.maxLength - (t.indent + f + 3);
|
|
145
|
+
for(c = 1; c <= t.linesBefore; c++){
|
|
146
|
+
if (o - c < 0) break;
|
|
147
|
+
u = getLine(e.buffer, i[o - c], n[o - c], e.position - (i[o] - i[o - c]), p);
|
|
148
|
+
l = s.repeat(" ", t.indent) + padStart((e.line - c + 1).toString(), f) + " | " + u.str + "\n" + l;
|
|
149
|
+
}
|
|
150
|
+
u = getLine(e.buffer, i[o], n[o], e.position, p);
|
|
151
|
+
l += s.repeat(" ", t.indent) + padStart((e.line + 1).toString(), f) + " | " + u.str + "\n";
|
|
152
|
+
l += s.repeat("-", t.indent + f + 3 + u.pos) + "^\n";
|
|
153
|
+
for(c = 1; c <= t.linesAfter; c++){
|
|
154
|
+
if (o + c >= n.length) break;
|
|
155
|
+
u = getLine(e.buffer, i[o + c], n[o + c], e.position - (i[o] - i[o + c]), p);
|
|
156
|
+
l += s.repeat(" ", t.indent) + padStart((e.line + c + 1).toString(), f) + " | " + u.str + "\n";
|
|
157
|
+
}
|
|
158
|
+
return l.replace(/\n$/, "");
|
|
159
|
+
}
|
|
160
|
+
var u = makeSnippet;
|
|
161
|
+
var f = [
|
|
162
|
+
"kind",
|
|
163
|
+
"multi",
|
|
164
|
+
"resolve",
|
|
165
|
+
"construct",
|
|
166
|
+
"instanceOf",
|
|
167
|
+
"predicate",
|
|
168
|
+
"represent",
|
|
169
|
+
"representName",
|
|
170
|
+
"defaultStyle",
|
|
171
|
+
"styleAliases"
|
|
172
|
+
];
|
|
173
|
+
var p = [
|
|
174
|
+
"scalar",
|
|
175
|
+
"sequence",
|
|
176
|
+
"mapping"
|
|
177
|
+
];
|
|
178
|
+
function compileStyleAliases(e) {
|
|
179
|
+
var t = {};
|
|
180
|
+
if (null !== e) Object.keys(e).forEach(function(r) {
|
|
181
|
+
e[r].forEach(function(e) {
|
|
182
|
+
t[String(e)] = r;
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
return t;
|
|
186
|
+
}
|
|
187
|
+
function Type$1(e, t) {
|
|
188
|
+
t = t || {};
|
|
189
|
+
Object.keys(t).forEach(function(t) {
|
|
190
|
+
if (-1 === f.indexOf(t)) throw new c('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
191
|
+
});
|
|
192
|
+
this.options = t;
|
|
193
|
+
this.tag = e;
|
|
194
|
+
this.kind = t["kind"] || null;
|
|
195
|
+
this.resolve = t["resolve"] || function() {
|
|
196
|
+
return true;
|
|
197
|
+
};
|
|
198
|
+
this.construct = t["construct"] || function(e) {
|
|
199
|
+
return e;
|
|
200
|
+
};
|
|
201
|
+
this.instanceOf = t["instanceOf"] || null;
|
|
202
|
+
this.predicate = t["predicate"] || null;
|
|
203
|
+
this.represent = t["represent"] || null;
|
|
204
|
+
this.representName = t["representName"] || null;
|
|
205
|
+
this.defaultStyle = t["defaultStyle"] || null;
|
|
206
|
+
this.multi = t["multi"] || false;
|
|
207
|
+
this.styleAliases = compileStyleAliases(t["styleAliases"] || null);
|
|
208
|
+
if (-1 === p.indexOf(this.kind)) throw new c('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
209
|
+
}
|
|
210
|
+
var d = Type$1;
|
|
211
|
+
function compileList(e, t) {
|
|
212
|
+
var r = [];
|
|
213
|
+
e[t].forEach(function(e) {
|
|
214
|
+
var t = r.length;
|
|
215
|
+
r.forEach(function(r, i) {
|
|
216
|
+
if (r.tag === e.tag && r.kind === e.kind && r.multi === e.multi) t = i;
|
|
217
|
+
});
|
|
218
|
+
r[t] = e;
|
|
219
|
+
});
|
|
220
|
+
return r;
|
|
221
|
+
}
|
|
222
|
+
function compileMap() {
|
|
223
|
+
var e = {
|
|
224
|
+
scalar: {},
|
|
225
|
+
sequence: {},
|
|
226
|
+
mapping: {},
|
|
227
|
+
fallback: {},
|
|
228
|
+
multi: {
|
|
229
|
+
scalar: [],
|
|
230
|
+
sequence: [],
|
|
231
|
+
mapping: [],
|
|
232
|
+
fallback: []
|
|
233
|
+
}
|
|
234
|
+
}, t, r;
|
|
235
|
+
function collectType(t) {
|
|
236
|
+
if (t.multi) {
|
|
237
|
+
e.multi[t.kind].push(t);
|
|
238
|
+
e.multi["fallback"].push(t);
|
|
239
|
+
} else e[t.kind][t.tag] = e["fallback"][t.tag] = t;
|
|
240
|
+
}
|
|
241
|
+
for(t = 0, r = arguments.length; t < r; t += 1)arguments[t].forEach(collectType);
|
|
242
|
+
return e;
|
|
243
|
+
}
|
|
244
|
+
function Schema$1(e) {
|
|
245
|
+
return this.extend(e);
|
|
246
|
+
}
|
|
247
|
+
Schema$1.prototype.extend = function(e) {
|
|
248
|
+
var t = [];
|
|
249
|
+
var r = [];
|
|
250
|
+
if (e instanceof d) r.push(e);
|
|
251
|
+
else if (Array.isArray(e)) r = r.concat(e);
|
|
252
|
+
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) {
|
|
253
|
+
if (e.implicit) t = t.concat(e.implicit);
|
|
254
|
+
if (e.explicit) r = r.concat(e.explicit);
|
|
255
|
+
} else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
256
|
+
t.forEach(function(e) {
|
|
257
|
+
if (!(e instanceof d)) throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
258
|
+
if (e.loadKind && "scalar" !== e.loadKind) throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
259
|
+
if (e.multi) throw new c("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
260
|
+
});
|
|
261
|
+
r.forEach(function(e) {
|
|
262
|
+
if (!(e instanceof d)) throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
263
|
+
});
|
|
264
|
+
var i = Object.create(Schema$1.prototype);
|
|
265
|
+
i.implicit = (this.implicit || []).concat(t);
|
|
266
|
+
i.explicit = (this.explicit || []).concat(r);
|
|
267
|
+
i.compiledImplicit = compileList(i, "implicit");
|
|
268
|
+
i.compiledExplicit = compileList(i, "explicit");
|
|
269
|
+
i.compiledTypeMap = compileMap(i.compiledImplicit, i.compiledExplicit);
|
|
270
|
+
return i;
|
|
271
|
+
};
|
|
272
|
+
var h = Schema$1;
|
|
273
|
+
var m = new d("tag:yaml.org,2002:str", {
|
|
274
|
+
kind: "scalar",
|
|
275
|
+
construct: function(e) {
|
|
276
|
+
return null !== e ? e : "";
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
var g = new d("tag:yaml.org,2002:seq", {
|
|
280
|
+
kind: "sequence",
|
|
281
|
+
construct: function(e) {
|
|
282
|
+
return null !== e ? e : [];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
var v = new d("tag:yaml.org,2002:map", {
|
|
286
|
+
kind: "mapping",
|
|
287
|
+
construct: function(e) {
|
|
288
|
+
return null !== e ? e : {};
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
var w = new h({
|
|
292
|
+
explicit: [
|
|
293
|
+
m,
|
|
294
|
+
g,
|
|
295
|
+
v
|
|
296
|
+
]
|
|
297
|
+
});
|
|
298
|
+
function resolveYamlNull(e) {
|
|
299
|
+
if (null === e) return true;
|
|
300
|
+
var t = e.length;
|
|
301
|
+
return 1 === t && "~" === e || 4 === t && ("null" === e || "Null" === e || "NULL" === e);
|
|
302
|
+
}
|
|
303
|
+
function constructYamlNull() {
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
function isNull(e) {
|
|
307
|
+
return null === e;
|
|
308
|
+
}
|
|
309
|
+
var y = new d("tag:yaml.org,2002:null", {
|
|
310
|
+
kind: "scalar",
|
|
311
|
+
resolve: resolveYamlNull,
|
|
312
|
+
construct: constructYamlNull,
|
|
313
|
+
predicate: isNull,
|
|
314
|
+
represent: {
|
|
315
|
+
canonical: function() {
|
|
316
|
+
return "~";
|
|
317
|
+
},
|
|
318
|
+
lowercase: function() {
|
|
319
|
+
return "null";
|
|
320
|
+
},
|
|
321
|
+
uppercase: function() {
|
|
322
|
+
return "NULL";
|
|
323
|
+
},
|
|
324
|
+
camelcase: function() {
|
|
325
|
+
return "Null";
|
|
326
|
+
},
|
|
327
|
+
empty: function() {
|
|
328
|
+
return "";
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
defaultStyle: "lowercase"
|
|
332
|
+
});
|
|
333
|
+
function resolveYamlBoolean(e) {
|
|
334
|
+
if (null === e) return false;
|
|
335
|
+
var t = e.length;
|
|
336
|
+
return 4 === t && ("true" === e || "True" === e || "TRUE" === e) || 5 === t && ("false" === e || "False" === e || "FALSE" === e);
|
|
337
|
+
}
|
|
338
|
+
function constructYamlBoolean(e) {
|
|
339
|
+
return "true" === e || "True" === e || "TRUE" === e;
|
|
340
|
+
}
|
|
341
|
+
function isBoolean(e) {
|
|
342
|
+
return "[object Boolean]" === Object.prototype.toString.call(e);
|
|
343
|
+
}
|
|
344
|
+
var S = new d("tag:yaml.org,2002:bool", {
|
|
345
|
+
kind: "scalar",
|
|
346
|
+
resolve: resolveYamlBoolean,
|
|
347
|
+
construct: constructYamlBoolean,
|
|
348
|
+
predicate: isBoolean,
|
|
349
|
+
represent: {
|
|
350
|
+
lowercase: function(e) {
|
|
351
|
+
return e ? "true" : "false";
|
|
352
|
+
},
|
|
353
|
+
uppercase: function(e) {
|
|
354
|
+
return e ? "TRUE" : "FALSE";
|
|
355
|
+
},
|
|
356
|
+
camelcase: function(e) {
|
|
357
|
+
return e ? "True" : "False";
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
defaultStyle: "lowercase"
|
|
361
|
+
});
|
|
362
|
+
function isHexCode(e) {
|
|
363
|
+
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
364
|
+
}
|
|
365
|
+
function isOctCode(e) {
|
|
366
|
+
return 48 <= e && e <= 55;
|
|
367
|
+
}
|
|
368
|
+
function isDecCode(e) {
|
|
369
|
+
return 48 <= e && e <= 57;
|
|
370
|
+
}
|
|
371
|
+
function resolveYamlInteger(e) {
|
|
372
|
+
if (null === e) return false;
|
|
373
|
+
var t = e.length, r = 0, i = false, n;
|
|
374
|
+
if (!t) return false;
|
|
375
|
+
n = e[r];
|
|
376
|
+
if ("-" === n || "+" === n) n = e[++r];
|
|
377
|
+
if ("0" === n) {
|
|
378
|
+
if (r + 1 === t) return true;
|
|
379
|
+
n = e[++r];
|
|
380
|
+
if ("b" === n) {
|
|
381
|
+
r++;
|
|
382
|
+
for(; r < t; r++){
|
|
383
|
+
n = e[r];
|
|
384
|
+
if ("_" !== n) {
|
|
385
|
+
if ("0" !== n && "1" !== n) return false;
|
|
386
|
+
i = true;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return i && "_" !== n;
|
|
390
|
+
}
|
|
391
|
+
if ("x" === n) {
|
|
392
|
+
r++;
|
|
393
|
+
for(; r < t; r++){
|
|
394
|
+
n = e[r];
|
|
395
|
+
if ("_" !== n) {
|
|
396
|
+
if (!isHexCode(e.charCodeAt(r))) return false;
|
|
397
|
+
i = true;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return i && "_" !== n;
|
|
401
|
+
}
|
|
402
|
+
if ("o" === n) {
|
|
403
|
+
r++;
|
|
404
|
+
for(; r < t; r++){
|
|
405
|
+
n = e[r];
|
|
406
|
+
if ("_" !== n) {
|
|
407
|
+
if (!isOctCode(e.charCodeAt(r))) return false;
|
|
408
|
+
i = true;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return i && "_" !== n;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
if ("_" === n) return false;
|
|
415
|
+
for(; r < t; r++){
|
|
416
|
+
n = e[r];
|
|
417
|
+
if ("_" !== n) {
|
|
418
|
+
if (!isDecCode(e.charCodeAt(r))) return false;
|
|
419
|
+
i = true;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
if (!i || "_" === n) return false;
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
function constructYamlInteger(e) {
|
|
426
|
+
var t = e, r = 1, i;
|
|
427
|
+
if (-1 !== t.indexOf("_")) t = t.replace(/_/g, "");
|
|
428
|
+
i = t[0];
|
|
429
|
+
if ("-" === i || "+" === i) {
|
|
430
|
+
if ("-" === i) r = -1;
|
|
431
|
+
t = t.slice(1);
|
|
432
|
+
i = t[0];
|
|
433
|
+
}
|
|
434
|
+
if ("0" === t) return 0;
|
|
435
|
+
if ("0" === i) {
|
|
436
|
+
if ("b" === t[1]) return r * parseInt(t.slice(2), 2);
|
|
437
|
+
if ("x" === t[1]) return r * parseInt(t.slice(2), 16);
|
|
438
|
+
if ("o" === t[1]) return r * parseInt(t.slice(2), 8);
|
|
439
|
+
}
|
|
440
|
+
return r * parseInt(t, 10);
|
|
441
|
+
}
|
|
442
|
+
function isInteger(e) {
|
|
443
|
+
return "[object Number]" === Object.prototype.toString.call(e) && e % 1 === 0 && !s.isNegativeZero(e);
|
|
444
|
+
}
|
|
445
|
+
var A = new d("tag:yaml.org,2002:int", {
|
|
446
|
+
kind: "scalar",
|
|
447
|
+
resolve: resolveYamlInteger,
|
|
448
|
+
construct: constructYamlInteger,
|
|
449
|
+
predicate: isInteger,
|
|
450
|
+
represent: {
|
|
451
|
+
binary: function(e) {
|
|
452
|
+
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
453
|
+
},
|
|
454
|
+
octal: function(e) {
|
|
455
|
+
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
456
|
+
},
|
|
457
|
+
decimal: function(e) {
|
|
458
|
+
return e.toString(10);
|
|
459
|
+
},
|
|
460
|
+
hexadecimal: function(e) {
|
|
461
|
+
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
defaultStyle: "decimal",
|
|
465
|
+
styleAliases: {
|
|
466
|
+
binary: [
|
|
467
|
+
2,
|
|
468
|
+
"bin"
|
|
469
|
+
],
|
|
470
|
+
octal: [
|
|
471
|
+
8,
|
|
472
|
+
"oct"
|
|
473
|
+
],
|
|
474
|
+
decimal: [
|
|
475
|
+
10,
|
|
476
|
+
"dec"
|
|
477
|
+
],
|
|
478
|
+
hexadecimal: [
|
|
479
|
+
16,
|
|
480
|
+
"hex"
|
|
481
|
+
]
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
var b = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
485
|
+
function resolveYamlFloat(e) {
|
|
486
|
+
if (null === e) return false;
|
|
487
|
+
if (!b.test(e) || "_" === e[e.length - 1]) return false;
|
|
488
|
+
return true;
|
|
489
|
+
}
|
|
490
|
+
function constructYamlFloat(e) {
|
|
491
|
+
var t, r;
|
|
492
|
+
t = e.replace(/_/g, "").toLowerCase();
|
|
493
|
+
r = "-" === t[0] ? -1 : 1;
|
|
494
|
+
if ("+-".indexOf(t[0]) >= 0) t = t.slice(1);
|
|
495
|
+
if (".inf" === t) return 1 === r ? 1 / 0 : -1 / 0;
|
|
496
|
+
if (".nan" === t) return NaN;
|
|
497
|
+
return r * parseFloat(t, 10);
|
|
498
|
+
}
|
|
499
|
+
var E = /^[-+]?[0-9]+e/;
|
|
500
|
+
function representYamlFloat(e, t) {
|
|
501
|
+
var r;
|
|
502
|
+
if (isNaN(e)) switch(t){
|
|
503
|
+
case "lowercase":
|
|
504
|
+
return ".nan";
|
|
505
|
+
case "uppercase":
|
|
506
|
+
return ".NAN";
|
|
507
|
+
case "camelcase":
|
|
508
|
+
return ".NaN";
|
|
509
|
+
}
|
|
510
|
+
else if (1 / 0 === e) switch(t){
|
|
511
|
+
case "lowercase":
|
|
512
|
+
return ".inf";
|
|
513
|
+
case "uppercase":
|
|
514
|
+
return ".INF";
|
|
515
|
+
case "camelcase":
|
|
516
|
+
return ".Inf";
|
|
517
|
+
}
|
|
518
|
+
else if (-1 / 0 === e) switch(t){
|
|
519
|
+
case "lowercase":
|
|
520
|
+
return "-.inf";
|
|
521
|
+
case "uppercase":
|
|
522
|
+
return "-.INF";
|
|
523
|
+
case "camelcase":
|
|
524
|
+
return "-.Inf";
|
|
525
|
+
}
|
|
526
|
+
else if (s.isNegativeZero(e)) return "-0.0";
|
|
527
|
+
r = e.toString(10);
|
|
528
|
+
return E.test(r) ? r.replace("e", ".e") : r;
|
|
529
|
+
}
|
|
530
|
+
function isFloat(e) {
|
|
531
|
+
return "[object Number]" === Object.prototype.toString.call(e) && (e % 1 !== 0 || s.isNegativeZero(e));
|
|
532
|
+
}
|
|
533
|
+
var k = new d("tag:yaml.org,2002:float", {
|
|
534
|
+
kind: "scalar",
|
|
535
|
+
resolve: resolveYamlFloat,
|
|
536
|
+
construct: constructYamlFloat,
|
|
537
|
+
predicate: isFloat,
|
|
538
|
+
represent: representYamlFloat,
|
|
539
|
+
defaultStyle: "lowercase"
|
|
540
|
+
});
|
|
541
|
+
var O = w.extend({
|
|
542
|
+
implicit: [
|
|
543
|
+
y,
|
|
544
|
+
S,
|
|
545
|
+
A,
|
|
546
|
+
k
|
|
547
|
+
]
|
|
548
|
+
});
|
|
549
|
+
var C = O;
|
|
550
|
+
var _ = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
551
|
+
var I = 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]))?))?$");
|
|
552
|
+
function resolveYamlTimestamp(e) {
|
|
553
|
+
if (null === e) return false;
|
|
554
|
+
if (null !== _.exec(e)) return true;
|
|
555
|
+
if (null !== I.exec(e)) return true;
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
function constructYamlTimestamp(e) {
|
|
559
|
+
var t, r, i, n, a, o, l, s = 0, c = null, u, f, p;
|
|
560
|
+
t = _.exec(e);
|
|
561
|
+
if (null === t) t = I.exec(e);
|
|
562
|
+
if (null === t) throw new Error("Date resolve error");
|
|
563
|
+
r = +t[1];
|
|
564
|
+
i = t[2] - 1;
|
|
565
|
+
n = +t[3];
|
|
566
|
+
if (!t[4]) return new Date(Date.UTC(r, i, n));
|
|
567
|
+
a = +t[4];
|
|
568
|
+
o = +t[5];
|
|
569
|
+
l = +t[6];
|
|
570
|
+
if (t[7]) {
|
|
571
|
+
s = t[7].slice(0, 3);
|
|
572
|
+
while(s.length < 3)s += "0";
|
|
573
|
+
s *= 1;
|
|
574
|
+
}
|
|
575
|
+
if (t[9]) {
|
|
576
|
+
u = +t[10];
|
|
577
|
+
f = +(t[11] || 0);
|
|
578
|
+
c = (60 * u + f) * 6e4;
|
|
579
|
+
if ("-" === t[9]) c = -c;
|
|
580
|
+
}
|
|
581
|
+
p = new Date(Date.UTC(r, i, n, a, o, l, s));
|
|
582
|
+
if (c) p.setTime(p.getTime() - c);
|
|
583
|
+
return p;
|
|
584
|
+
}
|
|
585
|
+
function representYamlTimestamp(e) {
|
|
586
|
+
return e.toISOString();
|
|
587
|
+
}
|
|
588
|
+
var x = new d("tag:yaml.org,2002:timestamp", {
|
|
589
|
+
kind: "scalar",
|
|
590
|
+
resolve: resolveYamlTimestamp,
|
|
591
|
+
construct: constructYamlTimestamp,
|
|
592
|
+
instanceOf: Date,
|
|
593
|
+
represent: representYamlTimestamp
|
|
594
|
+
});
|
|
595
|
+
function resolveYamlMerge(e) {
|
|
596
|
+
return "<<" === e || null === e;
|
|
597
|
+
}
|
|
598
|
+
var L = new d("tag:yaml.org,2002:merge", {
|
|
599
|
+
kind: "scalar",
|
|
600
|
+
resolve: resolveYamlMerge
|
|
601
|
+
});
|
|
602
|
+
var N = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
603
|
+
function resolveYamlBinary(e) {
|
|
604
|
+
if (null === e) return false;
|
|
605
|
+
var t, r, i = 0, n = e.length, a = N;
|
|
606
|
+
for(r = 0; r < n; r++){
|
|
607
|
+
t = a.indexOf(e.charAt(r));
|
|
608
|
+
if (!(t > 64)) {
|
|
609
|
+
if (t < 0) return false;
|
|
610
|
+
i += 6;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return i % 8 === 0;
|
|
614
|
+
}
|
|
615
|
+
function constructYamlBinary(e) {
|
|
616
|
+
var t, r, i = e.replace(/[\r\n=]/g, ""), n = i.length, a = N, o = 0, l = [];
|
|
617
|
+
for(t = 0; t < n; t++){
|
|
618
|
+
if (t % 4 === 0 && t) {
|
|
619
|
+
l.push(o >> 16 & 255);
|
|
620
|
+
l.push(o >> 8 & 255);
|
|
621
|
+
l.push(255 & o);
|
|
622
|
+
}
|
|
623
|
+
o = o << 6 | a.indexOf(i.charAt(t));
|
|
624
|
+
}
|
|
625
|
+
r = n % 4 * 6;
|
|
626
|
+
if (0 === r) {
|
|
627
|
+
l.push(o >> 16 & 255);
|
|
628
|
+
l.push(o >> 8 & 255);
|
|
629
|
+
l.push(255 & o);
|
|
630
|
+
} else if (18 === r) {
|
|
631
|
+
l.push(o >> 10 & 255);
|
|
632
|
+
l.push(o >> 2 & 255);
|
|
633
|
+
} else if (12 === r) l.push(o >> 4 & 255);
|
|
634
|
+
return new Uint8Array(l);
|
|
635
|
+
}
|
|
636
|
+
function representYamlBinary(e) {
|
|
637
|
+
var t = "", r = 0, i, n, a = e.length, o = N;
|
|
638
|
+
for(i = 0; i < a; i++){
|
|
639
|
+
if (i % 3 === 0 && i) {
|
|
640
|
+
t += o[r >> 18 & 63];
|
|
641
|
+
t += o[r >> 12 & 63];
|
|
642
|
+
t += o[r >> 6 & 63];
|
|
643
|
+
t += o[63 & r];
|
|
644
|
+
}
|
|
645
|
+
r = (r << 8) + e[i];
|
|
646
|
+
}
|
|
647
|
+
n = a % 3;
|
|
648
|
+
if (0 === n) {
|
|
649
|
+
t += o[r >> 18 & 63];
|
|
650
|
+
t += o[r >> 12 & 63];
|
|
651
|
+
t += o[r >> 6 & 63];
|
|
652
|
+
t += o[63 & r];
|
|
653
|
+
} else if (2 === n) {
|
|
654
|
+
t += o[r >> 10 & 63];
|
|
655
|
+
t += o[r >> 4 & 63];
|
|
656
|
+
t += o[r << 2 & 63];
|
|
657
|
+
t += o[64];
|
|
658
|
+
} else if (1 === n) {
|
|
659
|
+
t += o[r >> 2 & 63];
|
|
660
|
+
t += o[r << 4 & 63];
|
|
661
|
+
t += o[64];
|
|
662
|
+
t += o[64];
|
|
663
|
+
}
|
|
664
|
+
return t;
|
|
665
|
+
}
|
|
666
|
+
function isBinary(e) {
|
|
667
|
+
return "[object Uint8Array]" === Object.prototype.toString.call(e);
|
|
668
|
+
}
|
|
669
|
+
var T = new d("tag:yaml.org,2002:binary", {
|
|
670
|
+
kind: "scalar",
|
|
671
|
+
resolve: resolveYamlBinary,
|
|
672
|
+
construct: constructYamlBinary,
|
|
673
|
+
predicate: isBinary,
|
|
674
|
+
represent: representYamlBinary
|
|
675
|
+
});
|
|
676
|
+
var F = Object.prototype.hasOwnProperty;
|
|
677
|
+
var M = Object.prototype.toString;
|
|
678
|
+
function resolveYamlOmap(e) {
|
|
679
|
+
if (null === e) return true;
|
|
680
|
+
var t = [], r, i, n, a, o, l = e;
|
|
681
|
+
for(r = 0, i = l.length; r < i; r += 1){
|
|
682
|
+
n = l[r];
|
|
683
|
+
o = false;
|
|
684
|
+
if ("[object Object]" !== M.call(n)) return false;
|
|
685
|
+
for(a in n)if (F.call(n, a)) if (o) return false;
|
|
686
|
+
else o = true;
|
|
687
|
+
if (!o) return false;
|
|
688
|
+
if (-1 !== t.indexOf(a)) return false;
|
|
689
|
+
t.push(a);
|
|
690
|
+
}
|
|
691
|
+
return true;
|
|
692
|
+
}
|
|
693
|
+
function constructYamlOmap(e) {
|
|
694
|
+
return null !== e ? e : [];
|
|
695
|
+
}
|
|
696
|
+
var j = new d("tag:yaml.org,2002:omap", {
|
|
697
|
+
kind: "sequence",
|
|
698
|
+
resolve: resolveYamlOmap,
|
|
699
|
+
construct: constructYamlOmap
|
|
700
|
+
});
|
|
701
|
+
var Y = Object.prototype.toString;
|
|
702
|
+
function resolveYamlPairs(e) {
|
|
703
|
+
if (null === e) return true;
|
|
704
|
+
var t, r, i, n, a, o = e;
|
|
705
|
+
a = new Array(o.length);
|
|
706
|
+
for(t = 0, r = o.length; t < r; t += 1){
|
|
707
|
+
i = o[t];
|
|
708
|
+
if ("[object Object]" !== Y.call(i)) return false;
|
|
709
|
+
n = Object.keys(i);
|
|
710
|
+
if (1 !== n.length) return false;
|
|
711
|
+
a[t] = [
|
|
712
|
+
n[0],
|
|
713
|
+
i[n[0]]
|
|
714
|
+
];
|
|
715
|
+
}
|
|
716
|
+
return true;
|
|
717
|
+
}
|
|
718
|
+
function constructYamlPairs(e) {
|
|
719
|
+
if (null === e) return [];
|
|
720
|
+
var t, r, i, n, a, o = e;
|
|
721
|
+
a = new Array(o.length);
|
|
722
|
+
for(t = 0, r = o.length; t < r; t += 1){
|
|
723
|
+
i = o[t];
|
|
724
|
+
n = Object.keys(i);
|
|
725
|
+
a[t] = [
|
|
726
|
+
n[0],
|
|
727
|
+
i[n[0]]
|
|
728
|
+
];
|
|
729
|
+
}
|
|
730
|
+
return a;
|
|
731
|
+
}
|
|
732
|
+
var P = new d("tag:yaml.org,2002:pairs", {
|
|
733
|
+
kind: "sequence",
|
|
734
|
+
resolve: resolveYamlPairs,
|
|
735
|
+
construct: constructYamlPairs
|
|
736
|
+
});
|
|
737
|
+
var W = Object.prototype.hasOwnProperty;
|
|
738
|
+
function resolveYamlSet(e) {
|
|
739
|
+
if (null === e) return true;
|
|
740
|
+
var t, r = e;
|
|
741
|
+
for(t in r)if (W.call(r, t)) {
|
|
742
|
+
if (null !== r[t]) return false;
|
|
743
|
+
}
|
|
744
|
+
return true;
|
|
745
|
+
}
|
|
746
|
+
function constructYamlSet(e) {
|
|
747
|
+
return null !== e ? e : {};
|
|
748
|
+
}
|
|
749
|
+
var D = new d("tag:yaml.org,2002:set", {
|
|
750
|
+
kind: "mapping",
|
|
751
|
+
resolve: resolveYamlSet,
|
|
752
|
+
construct: constructYamlSet
|
|
753
|
+
});
|
|
754
|
+
var B = C.extend({
|
|
755
|
+
implicit: [
|
|
756
|
+
x,
|
|
757
|
+
L
|
|
758
|
+
],
|
|
759
|
+
explicit: [
|
|
760
|
+
T,
|
|
761
|
+
j,
|
|
762
|
+
P,
|
|
763
|
+
D
|
|
764
|
+
]
|
|
765
|
+
});
|
|
766
|
+
var R = Object.prototype.hasOwnProperty;
|
|
767
|
+
var q = 1;
|
|
768
|
+
var H = 2;
|
|
769
|
+
var $ = 3;
|
|
770
|
+
var U = 4;
|
|
771
|
+
var K = 1;
|
|
772
|
+
var Q = 2;
|
|
773
|
+
var Z = 3;
|
|
774
|
+
var G = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
775
|
+
var V = /[\x85\u2028\u2029]/;
|
|
776
|
+
var J = /[,\[\]\{\}]/;
|
|
777
|
+
var z = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
778
|
+
var X = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
779
|
+
function _class(e) {
|
|
780
|
+
return Object.prototype.toString.call(e);
|
|
781
|
+
}
|
|
782
|
+
function is_EOL(e) {
|
|
783
|
+
return 10 === e || 13 === e;
|
|
784
|
+
}
|
|
785
|
+
function is_WHITE_SPACE(e) {
|
|
786
|
+
return 9 === e || 32 === e;
|
|
787
|
+
}
|
|
788
|
+
function is_WS_OR_EOL(e) {
|
|
789
|
+
return 9 === e || 32 === e || 10 === e || 13 === e;
|
|
790
|
+
}
|
|
791
|
+
function is_FLOW_INDICATOR(e) {
|
|
792
|
+
return 44 === e || 91 === e || 93 === e || 123 === e || 125 === e;
|
|
793
|
+
}
|
|
794
|
+
function fromHexCode(e) {
|
|
795
|
+
var t;
|
|
796
|
+
if (48 <= e && e <= 57) return e - 48;
|
|
797
|
+
t = 32 | e;
|
|
798
|
+
if (97 <= t && t <= 102) return t - 97 + 10;
|
|
799
|
+
return -1;
|
|
800
|
+
}
|
|
801
|
+
function escapedHexLen(e) {
|
|
802
|
+
if (120 === e) return 2;
|
|
803
|
+
if (117 === e) return 4;
|
|
804
|
+
if (85 === e) return 8;
|
|
805
|
+
return 0;
|
|
806
|
+
}
|
|
807
|
+
function fromDecimalCode(e) {
|
|
808
|
+
if (48 <= e && e <= 57) return e - 48;
|
|
809
|
+
return -1;
|
|
810
|
+
}
|
|
811
|
+
function simpleEscapeSequence(e) {
|
|
812
|
+
return 48 === e ? "\0" : 97 === e ? "" : 98 === e ? "\b" : 116 === e ? "\t" : 9 === e ? "\t" : 110 === e ? "\n" : 118 === e ? "\v" : 102 === e ? "\f" : 114 === e ? "\r" : 101 === e ? "" : 32 === e ? " " : 34 === e ? '"' : 47 === e ? "/" : 92 === e ? "\\" : 78 === e ? "
" : 95 === e ? " " : 76 === e ? "\u2028" : 80 === e ? "\u2029" : "";
|
|
813
|
+
}
|
|
814
|
+
function charFromCodepoint(e) {
|
|
815
|
+
if (e <= 65535) return String.fromCharCode(e);
|
|
816
|
+
return String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
817
|
+
}
|
|
818
|
+
function setProperty(e, t, r) {
|
|
819
|
+
if ("__proto__" === t) Object.defineProperty(e, t, {
|
|
820
|
+
configurable: true,
|
|
821
|
+
enumerable: true,
|
|
822
|
+
writable: true,
|
|
823
|
+
value: r
|
|
824
|
+
});
|
|
825
|
+
else e[t] = r;
|
|
826
|
+
}
|
|
827
|
+
var ee = new Array(256);
|
|
828
|
+
var te = new Array(256);
|
|
829
|
+
for(var re = 0; re < 256; re++){
|
|
830
|
+
ee[re] = simpleEscapeSequence(re) ? 1 : 0;
|
|
831
|
+
te[re] = simpleEscapeSequence(re);
|
|
832
|
+
}
|
|
833
|
+
function State$1(e, t) {
|
|
834
|
+
this.input = e;
|
|
835
|
+
this.filename = t["filename"] || null;
|
|
836
|
+
this.schema = t["schema"] || B;
|
|
837
|
+
this.onWarning = t["onWarning"] || null;
|
|
838
|
+
this.legacy = t["legacy"] || false;
|
|
839
|
+
this.json = t["json"] || false;
|
|
840
|
+
this.listener = t["listener"] || null;
|
|
841
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
842
|
+
this.typeMap = this.schema.compiledTypeMap;
|
|
843
|
+
this.length = e.length;
|
|
844
|
+
this.position = 0;
|
|
845
|
+
this.line = 0;
|
|
846
|
+
this.lineStart = 0;
|
|
847
|
+
this.lineIndent = 0;
|
|
848
|
+
this.firstTabInLine = -1;
|
|
849
|
+
this.documents = [];
|
|
850
|
+
}
|
|
851
|
+
function generateError(e, t) {
|
|
852
|
+
var r = {
|
|
853
|
+
name: e.filename,
|
|
854
|
+
buffer: e.input.slice(0, -1),
|
|
855
|
+
position: e.position,
|
|
856
|
+
line: e.line,
|
|
857
|
+
column: e.position - e.lineStart
|
|
858
|
+
};
|
|
859
|
+
r.snippet = u(r);
|
|
860
|
+
return new c(t, r);
|
|
861
|
+
}
|
|
862
|
+
function throwError(e, t) {
|
|
863
|
+
throw generateError(e, t);
|
|
864
|
+
}
|
|
865
|
+
function throwWarning(e, t) {
|
|
866
|
+
if (e.onWarning) e.onWarning.call(null, generateError(e, t));
|
|
867
|
+
}
|
|
868
|
+
var ie = {
|
|
869
|
+
YAML: function(e, t, r) {
|
|
870
|
+
var i, n, a;
|
|
871
|
+
if (null !== e.version) throwError(e, "duplication of %YAML directive");
|
|
872
|
+
if (1 !== r.length) throwError(e, "YAML directive accepts exactly one argument");
|
|
873
|
+
i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
874
|
+
if (null === i) throwError(e, "ill-formed argument of the YAML directive");
|
|
875
|
+
n = parseInt(i[1], 10);
|
|
876
|
+
a = parseInt(i[2], 10);
|
|
877
|
+
if (1 !== n) throwError(e, "unacceptable YAML version of the document");
|
|
878
|
+
e.version = r[0];
|
|
879
|
+
e.checkLineBreaks = a < 2;
|
|
880
|
+
if (1 !== a && 2 !== a) throwWarning(e, "unsupported YAML version of the document");
|
|
881
|
+
},
|
|
882
|
+
TAG: function(e, t, r) {
|
|
883
|
+
var i, n;
|
|
884
|
+
if (2 !== r.length) throwError(e, "TAG directive accepts exactly two arguments");
|
|
885
|
+
i = r[0];
|
|
886
|
+
n = r[1];
|
|
887
|
+
if (!z.test(i)) throwError(e, "ill-formed tag handle (first argument) of the TAG directive");
|
|
888
|
+
if (R.call(e.tagMap, i)) throwError(e, 'there is a previously declared suffix for "' + i + '" tag handle');
|
|
889
|
+
if (!X.test(n)) throwError(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
890
|
+
try {
|
|
891
|
+
n = decodeURIComponent(n);
|
|
892
|
+
} catch (t) {
|
|
893
|
+
throwError(e, "tag prefix is malformed: " + n);
|
|
894
|
+
}
|
|
895
|
+
e.tagMap[i] = n;
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
function captureSegment(e, t, r, i) {
|
|
899
|
+
var n, a, o, l;
|
|
900
|
+
if (t < r) {
|
|
901
|
+
l = e.input.slice(t, r);
|
|
902
|
+
if (i) for(n = 0, a = l.length; n < a; n += 1){
|
|
903
|
+
o = l.charCodeAt(n);
|
|
904
|
+
if (!(9 === o || 32 <= o && o <= 1114111)) throwError(e, "expected valid JSON character");
|
|
905
|
+
}
|
|
906
|
+
else if (G.test(l)) throwError(e, "the stream contains non-printable characters");
|
|
907
|
+
e.result += l;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function mergeMappings(e, t, r, i) {
|
|
911
|
+
var n, a, o, l;
|
|
912
|
+
if (!s.isObject(r)) throwError(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
913
|
+
n = Object.keys(r);
|
|
914
|
+
for(o = 0, l = n.length; o < l; o += 1){
|
|
915
|
+
a = n[o];
|
|
916
|
+
if (!R.call(t, a)) {
|
|
917
|
+
setProperty(t, a, r[a]);
|
|
918
|
+
i[a] = true;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
function storeMappingPair(e, t, r, i, n, a, o, l, s) {
|
|
923
|
+
var c, u;
|
|
924
|
+
if (Array.isArray(n)) {
|
|
925
|
+
n = Array.prototype.slice.call(n);
|
|
926
|
+
for(c = 0, u = n.length; c < u; c += 1){
|
|
927
|
+
if (Array.isArray(n[c])) throwError(e, "nested arrays are not supported inside keys");
|
|
928
|
+
if ("object" == typeof n && "[object Object]" === _class(n[c])) n[c] = "[object Object]";
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
if ("object" == typeof n && "[object Object]" === _class(n)) n = "[object Object]";
|
|
932
|
+
n = String(n);
|
|
933
|
+
if (null === t) t = {};
|
|
934
|
+
if ("tag:yaml.org,2002:merge" === i) if (Array.isArray(a)) for(c = 0, u = a.length; c < u; c += 1)mergeMappings(e, t, a[c], r);
|
|
935
|
+
else mergeMappings(e, t, a, r);
|
|
936
|
+
else {
|
|
937
|
+
if (!e.json && !R.call(r, n) && R.call(t, n)) {
|
|
938
|
+
e.line = o || e.line;
|
|
939
|
+
e.lineStart = l || e.lineStart;
|
|
940
|
+
e.position = s || e.position;
|
|
941
|
+
throwError(e, "duplicated mapping key");
|
|
942
|
+
}
|
|
943
|
+
setProperty(t, n, a);
|
|
944
|
+
delete r[n];
|
|
945
|
+
}
|
|
946
|
+
return t;
|
|
947
|
+
}
|
|
948
|
+
function readLineBreak(e) {
|
|
949
|
+
var t;
|
|
950
|
+
t = e.input.charCodeAt(e.position);
|
|
951
|
+
if (10 === t) e.position++;
|
|
952
|
+
else if (13 === t) {
|
|
953
|
+
e.position++;
|
|
954
|
+
if (10 === e.input.charCodeAt(e.position)) e.position++;
|
|
955
|
+
} else throwError(e, "a line break is expected");
|
|
956
|
+
e.line += 1;
|
|
957
|
+
e.lineStart = e.position;
|
|
958
|
+
e.firstTabInLine = -1;
|
|
959
|
+
}
|
|
960
|
+
function skipSeparationSpace(e, t, r) {
|
|
961
|
+
var i = 0, n = e.input.charCodeAt(e.position);
|
|
962
|
+
while(0 !== n){
|
|
963
|
+
while(is_WHITE_SPACE(n)){
|
|
964
|
+
if (9 === n && -1 === e.firstTabInLine) e.firstTabInLine = e.position;
|
|
965
|
+
n = e.input.charCodeAt(++e.position);
|
|
966
|
+
}
|
|
967
|
+
if (t && 35 === n) do n = e.input.charCodeAt(++e.position);
|
|
968
|
+
while (10 !== n && 13 !== n && 0 !== n);
|
|
969
|
+
if (is_EOL(n)) {
|
|
970
|
+
readLineBreak(e);
|
|
971
|
+
n = e.input.charCodeAt(e.position);
|
|
972
|
+
i++;
|
|
973
|
+
e.lineIndent = 0;
|
|
974
|
+
while(32 === n){
|
|
975
|
+
e.lineIndent++;
|
|
976
|
+
n = e.input.charCodeAt(++e.position);
|
|
977
|
+
}
|
|
978
|
+
} else break;
|
|
979
|
+
}
|
|
980
|
+
if (-1 !== r && 0 !== i && e.lineIndent < r) throwWarning(e, "deficient indentation");
|
|
981
|
+
return i;
|
|
982
|
+
}
|
|
983
|
+
function testDocumentSeparator(e) {
|
|
984
|
+
var t = e.position, r;
|
|
985
|
+
r = e.input.charCodeAt(t);
|
|
986
|
+
if ((45 === r || 46 === r) && r === e.input.charCodeAt(t + 1) && r === e.input.charCodeAt(t + 2)) {
|
|
987
|
+
t += 3;
|
|
988
|
+
r = e.input.charCodeAt(t);
|
|
989
|
+
if (0 === r || is_WS_OR_EOL(r)) return true;
|
|
990
|
+
}
|
|
991
|
+
return false;
|
|
992
|
+
}
|
|
993
|
+
function writeFoldedLines(e, t) {
|
|
994
|
+
if (1 === t) e.result += " ";
|
|
995
|
+
else if (t > 1) e.result += s.repeat("\n", t - 1);
|
|
996
|
+
}
|
|
997
|
+
function readPlainScalar(e, t, r) {
|
|
998
|
+
var i, n, a, o, l, s, c, u, f = e.kind, p = e.result, d;
|
|
999
|
+
d = e.input.charCodeAt(e.position);
|
|
1000
|
+
if (is_WS_OR_EOL(d) || is_FLOW_INDICATOR(d) || 35 === d || 38 === d || 42 === d || 33 === d || 124 === d || 62 === d || 39 === d || 34 === d || 37 === d || 64 === d || 96 === d) return false;
|
|
1001
|
+
if (63 === d || 45 === d) {
|
|
1002
|
+
n = e.input.charCodeAt(e.position + 1);
|
|
1003
|
+
if (is_WS_OR_EOL(n) || r && is_FLOW_INDICATOR(n)) return false;
|
|
1004
|
+
}
|
|
1005
|
+
e.kind = "scalar";
|
|
1006
|
+
e.result = "";
|
|
1007
|
+
a = o = e.position;
|
|
1008
|
+
l = false;
|
|
1009
|
+
while(0 !== d){
|
|
1010
|
+
if (58 === d) {
|
|
1011
|
+
n = e.input.charCodeAt(e.position + 1);
|
|
1012
|
+
if (is_WS_OR_EOL(n) || r && is_FLOW_INDICATOR(n)) break;
|
|
1013
|
+
} else if (35 === d) {
|
|
1014
|
+
i = e.input.charCodeAt(e.position - 1);
|
|
1015
|
+
if (is_WS_OR_EOL(i)) break;
|
|
1016
|
+
} else if (e.position === e.lineStart && testDocumentSeparator(e) || r && is_FLOW_INDICATOR(d)) break;
|
|
1017
|
+
else if (is_EOL(d)) {
|
|
1018
|
+
s = e.line;
|
|
1019
|
+
c = e.lineStart;
|
|
1020
|
+
u = e.lineIndent;
|
|
1021
|
+
skipSeparationSpace(e, false, -1);
|
|
1022
|
+
if (e.lineIndent >= t) {
|
|
1023
|
+
l = true;
|
|
1024
|
+
d = e.input.charCodeAt(e.position);
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1027
|
+
e.position = o;
|
|
1028
|
+
e.line = s;
|
|
1029
|
+
e.lineStart = c;
|
|
1030
|
+
e.lineIndent = u;
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
if (l) {
|
|
1034
|
+
captureSegment(e, a, o, false);
|
|
1035
|
+
writeFoldedLines(e, e.line - s);
|
|
1036
|
+
a = o = e.position;
|
|
1037
|
+
l = false;
|
|
1038
|
+
}
|
|
1039
|
+
if (!is_WHITE_SPACE(d)) o = e.position + 1;
|
|
1040
|
+
d = e.input.charCodeAt(++e.position);
|
|
1041
|
+
}
|
|
1042
|
+
captureSegment(e, a, o, false);
|
|
1043
|
+
if (e.result) return true;
|
|
1044
|
+
e.kind = f;
|
|
1045
|
+
e.result = p;
|
|
1046
|
+
return false;
|
|
1047
|
+
}
|
|
1048
|
+
function readSingleQuotedScalar(e, t) {
|
|
1049
|
+
var r, i, n;
|
|
1050
|
+
r = e.input.charCodeAt(e.position);
|
|
1051
|
+
if (39 !== r) return false;
|
|
1052
|
+
e.kind = "scalar";
|
|
1053
|
+
e.result = "";
|
|
1054
|
+
e.position++;
|
|
1055
|
+
i = n = e.position;
|
|
1056
|
+
while(0 !== (r = e.input.charCodeAt(e.position)))if (39 === r) {
|
|
1057
|
+
captureSegment(e, i, e.position, true);
|
|
1058
|
+
r = e.input.charCodeAt(++e.position);
|
|
1059
|
+
if (39 !== r) return true;
|
|
1060
|
+
i = e.position;
|
|
1061
|
+
e.position++;
|
|
1062
|
+
n = e.position;
|
|
1063
|
+
} else if (is_EOL(r)) {
|
|
1064
|
+
captureSegment(e, i, n, true);
|
|
1065
|
+
writeFoldedLines(e, skipSeparationSpace(e, false, t));
|
|
1066
|
+
i = n = e.position;
|
|
1067
|
+
} else if (e.position === e.lineStart && testDocumentSeparator(e)) throwError(e, "unexpected end of the document within a single quoted scalar");
|
|
1068
|
+
else {
|
|
1069
|
+
e.position++;
|
|
1070
|
+
n = e.position;
|
|
1071
|
+
}
|
|
1072
|
+
throwError(e, "unexpected end of the stream within a single quoted scalar");
|
|
1073
|
+
}
|
|
1074
|
+
function readDoubleQuotedScalar(e, t) {
|
|
1075
|
+
var r, i, n, a, o, l;
|
|
1076
|
+
l = e.input.charCodeAt(e.position);
|
|
1077
|
+
if (34 !== l) return false;
|
|
1078
|
+
e.kind = "scalar";
|
|
1079
|
+
e.result = "";
|
|
1080
|
+
e.position++;
|
|
1081
|
+
r = i = e.position;
|
|
1082
|
+
while(0 !== (l = e.input.charCodeAt(e.position)))if (34 === l) {
|
|
1083
|
+
captureSegment(e, r, e.position, true);
|
|
1084
|
+
e.position++;
|
|
1085
|
+
return true;
|
|
1086
|
+
} else if (92 === l) {
|
|
1087
|
+
captureSegment(e, r, e.position, true);
|
|
1088
|
+
l = e.input.charCodeAt(++e.position);
|
|
1089
|
+
if (is_EOL(l)) skipSeparationSpace(e, false, t);
|
|
1090
|
+
else if (l < 256 && ee[l]) {
|
|
1091
|
+
e.result += te[l];
|
|
1092
|
+
e.position++;
|
|
1093
|
+
} else if ((o = escapedHexLen(l)) > 0) {
|
|
1094
|
+
n = o;
|
|
1095
|
+
a = 0;
|
|
1096
|
+
for(; n > 0; n--){
|
|
1097
|
+
l = e.input.charCodeAt(++e.position);
|
|
1098
|
+
if ((o = fromHexCode(l)) >= 0) a = (a << 4) + o;
|
|
1099
|
+
else throwError(e, "expected hexadecimal character");
|
|
1100
|
+
}
|
|
1101
|
+
e.result += charFromCodepoint(a);
|
|
1102
|
+
e.position++;
|
|
1103
|
+
} else throwError(e, "unknown escape sequence");
|
|
1104
|
+
r = i = e.position;
|
|
1105
|
+
} else if (is_EOL(l)) {
|
|
1106
|
+
captureSegment(e, r, i, true);
|
|
1107
|
+
writeFoldedLines(e, skipSeparationSpace(e, false, t));
|
|
1108
|
+
r = i = e.position;
|
|
1109
|
+
} else if (e.position === e.lineStart && testDocumentSeparator(e)) throwError(e, "unexpected end of the document within a double quoted scalar");
|
|
1110
|
+
else {
|
|
1111
|
+
e.position++;
|
|
1112
|
+
i = e.position;
|
|
1113
|
+
}
|
|
1114
|
+
throwError(e, "unexpected end of the stream within a double quoted scalar");
|
|
1115
|
+
}
|
|
1116
|
+
function readFlowCollection(e, t) {
|
|
1117
|
+
var r = true, i, n, a, o = e.tag, l, s = e.anchor, c, u, f, p, d, h = Object.create(null), m, g, v, w;
|
|
1118
|
+
w = e.input.charCodeAt(e.position);
|
|
1119
|
+
if (91 === w) {
|
|
1120
|
+
u = 93;
|
|
1121
|
+
d = false;
|
|
1122
|
+
l = [];
|
|
1123
|
+
} else {
|
|
1124
|
+
if (123 !== w) return false;
|
|
1125
|
+
u = 125;
|
|
1126
|
+
d = true;
|
|
1127
|
+
l = {};
|
|
1128
|
+
}
|
|
1129
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = l;
|
|
1130
|
+
w = e.input.charCodeAt(++e.position);
|
|
1131
|
+
while(0 !== w){
|
|
1132
|
+
skipSeparationSpace(e, true, t);
|
|
1133
|
+
w = e.input.charCodeAt(e.position);
|
|
1134
|
+
if (w === u) {
|
|
1135
|
+
e.position++;
|
|
1136
|
+
e.tag = o;
|
|
1137
|
+
e.anchor = s;
|
|
1138
|
+
e.kind = d ? "mapping" : "sequence";
|
|
1139
|
+
e.result = l;
|
|
1140
|
+
return true;
|
|
1141
|
+
}
|
|
1142
|
+
if (r) {
|
|
1143
|
+
if (44 === w) throwError(e, "expected the node content, but found ','");
|
|
1144
|
+
} else throwError(e, "missed comma between flow collection entries");
|
|
1145
|
+
g = m = v = null;
|
|
1146
|
+
f = p = false;
|
|
1147
|
+
if (63 === w) {
|
|
1148
|
+
c = e.input.charCodeAt(e.position + 1);
|
|
1149
|
+
if (is_WS_OR_EOL(c)) {
|
|
1150
|
+
f = p = true;
|
|
1151
|
+
e.position++;
|
|
1152
|
+
skipSeparationSpace(e, true, t);
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
i = e.line;
|
|
1156
|
+
n = e.lineStart;
|
|
1157
|
+
a = e.position;
|
|
1158
|
+
composeNode(e, t, q, false, true);
|
|
1159
|
+
g = e.tag;
|
|
1160
|
+
m = e.result;
|
|
1161
|
+
skipSeparationSpace(e, true, t);
|
|
1162
|
+
w = e.input.charCodeAt(e.position);
|
|
1163
|
+
if ((p || e.line === i) && 58 === w) {
|
|
1164
|
+
f = true;
|
|
1165
|
+
w = e.input.charCodeAt(++e.position);
|
|
1166
|
+
skipSeparationSpace(e, true, t);
|
|
1167
|
+
composeNode(e, t, q, false, true);
|
|
1168
|
+
v = e.result;
|
|
1169
|
+
}
|
|
1170
|
+
if (d) storeMappingPair(e, l, h, g, m, v, i, n, a);
|
|
1171
|
+
else if (f) l.push(storeMappingPair(e, null, h, g, m, v, i, n, a));
|
|
1172
|
+
else l.push(m);
|
|
1173
|
+
skipSeparationSpace(e, true, t);
|
|
1174
|
+
w = e.input.charCodeAt(e.position);
|
|
1175
|
+
if (44 === w) {
|
|
1176
|
+
r = true;
|
|
1177
|
+
w = e.input.charCodeAt(++e.position);
|
|
1178
|
+
} else r = false;
|
|
1179
|
+
}
|
|
1180
|
+
throwError(e, "unexpected end of the stream within a flow collection");
|
|
1181
|
+
}
|
|
1182
|
+
function readBlockScalar(e, t) {
|
|
1183
|
+
var r, i, n = K, a = false, o = false, l = t, c = 0, u = false, f, p;
|
|
1184
|
+
p = e.input.charCodeAt(e.position);
|
|
1185
|
+
if (124 === p) i = false;
|
|
1186
|
+
else {
|
|
1187
|
+
if (62 !== p) return false;
|
|
1188
|
+
i = true;
|
|
1189
|
+
}
|
|
1190
|
+
e.kind = "scalar";
|
|
1191
|
+
e.result = "";
|
|
1192
|
+
while(0 !== p){
|
|
1193
|
+
p = e.input.charCodeAt(++e.position);
|
|
1194
|
+
if (43 === p || 45 === p) if (K === n) n = 43 === p ? Z : Q;
|
|
1195
|
+
else throwError(e, "repeat of a chomping mode identifier");
|
|
1196
|
+
else if ((f = fromDecimalCode(p)) >= 0) if (0 === f) throwError(e, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
1197
|
+
else if (o) throwError(e, "repeat of an indentation width identifier");
|
|
1198
|
+
else {
|
|
1199
|
+
l = t + f - 1;
|
|
1200
|
+
o = true;
|
|
1201
|
+
}
|
|
1202
|
+
else break;
|
|
1203
|
+
}
|
|
1204
|
+
if (is_WHITE_SPACE(p)) {
|
|
1205
|
+
do p = e.input.charCodeAt(++e.position);
|
|
1206
|
+
while (is_WHITE_SPACE(p));
|
|
1207
|
+
if (35 === p) do p = e.input.charCodeAt(++e.position);
|
|
1208
|
+
while (!is_EOL(p) && 0 !== p);
|
|
1209
|
+
}
|
|
1210
|
+
while(0 !== p){
|
|
1211
|
+
readLineBreak(e);
|
|
1212
|
+
e.lineIndent = 0;
|
|
1213
|
+
p = e.input.charCodeAt(e.position);
|
|
1214
|
+
while((!o || e.lineIndent < l) && 32 === p){
|
|
1215
|
+
e.lineIndent++;
|
|
1216
|
+
p = e.input.charCodeAt(++e.position);
|
|
1217
|
+
}
|
|
1218
|
+
if (!o && e.lineIndent > l) l = e.lineIndent;
|
|
1219
|
+
if (is_EOL(p)) {
|
|
1220
|
+
c++;
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
if (e.lineIndent < l) {
|
|
1224
|
+
if (n === Z) e.result += s.repeat("\n", a ? 1 + c : c);
|
|
1225
|
+
else if (n === K) {
|
|
1226
|
+
if (a) e.result += "\n";
|
|
1227
|
+
}
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
if (i) if (is_WHITE_SPACE(p)) {
|
|
1231
|
+
u = true;
|
|
1232
|
+
e.result += s.repeat("\n", a ? 1 + c : c);
|
|
1233
|
+
} else if (u) {
|
|
1234
|
+
u = false;
|
|
1235
|
+
e.result += s.repeat("\n", c + 1);
|
|
1236
|
+
} else if (0 === c) {
|
|
1237
|
+
if (a) e.result += " ";
|
|
1238
|
+
} else e.result += s.repeat("\n", c);
|
|
1239
|
+
else e.result += s.repeat("\n", a ? 1 + c : c);
|
|
1240
|
+
a = true;
|
|
1241
|
+
o = true;
|
|
1242
|
+
c = 0;
|
|
1243
|
+
r = e.position;
|
|
1244
|
+
while(!is_EOL(p) && 0 !== p)p = e.input.charCodeAt(++e.position);
|
|
1245
|
+
captureSegment(e, r, e.position, false);
|
|
1246
|
+
}
|
|
1247
|
+
return true;
|
|
1248
|
+
}
|
|
1249
|
+
function readBlockSequence(e, t) {
|
|
1250
|
+
var r, i = e.tag, n = e.anchor, a = [], o, l = false, s;
|
|
1251
|
+
if (-1 !== e.firstTabInLine) return false;
|
|
1252
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = a;
|
|
1253
|
+
s = e.input.charCodeAt(e.position);
|
|
1254
|
+
while(0 !== s){
|
|
1255
|
+
if (-1 !== e.firstTabInLine) {
|
|
1256
|
+
e.position = e.firstTabInLine;
|
|
1257
|
+
throwError(e, "tab characters must not be used in indentation");
|
|
1258
|
+
}
|
|
1259
|
+
if (45 !== s) break;
|
|
1260
|
+
o = e.input.charCodeAt(e.position + 1);
|
|
1261
|
+
if (!is_WS_OR_EOL(o)) break;
|
|
1262
|
+
l = true;
|
|
1263
|
+
e.position++;
|
|
1264
|
+
if (skipSeparationSpace(e, true, -1)) {
|
|
1265
|
+
if (e.lineIndent <= t) {
|
|
1266
|
+
a.push(null);
|
|
1267
|
+
s = e.input.charCodeAt(e.position);
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
r = e.line;
|
|
1272
|
+
composeNode(e, t, $, false, true);
|
|
1273
|
+
a.push(e.result);
|
|
1274
|
+
skipSeparationSpace(e, true, -1);
|
|
1275
|
+
s = e.input.charCodeAt(e.position);
|
|
1276
|
+
if ((e.line === r || e.lineIndent > t) && 0 !== s) throwError(e, "bad indentation of a sequence entry");
|
|
1277
|
+
else if (e.lineIndent < t) break;
|
|
1278
|
+
}
|
|
1279
|
+
if (l) {
|
|
1280
|
+
e.tag = i;
|
|
1281
|
+
e.anchor = n;
|
|
1282
|
+
e.kind = "sequence";
|
|
1283
|
+
e.result = a;
|
|
1284
|
+
return true;
|
|
1285
|
+
}
|
|
1286
|
+
return false;
|
|
1287
|
+
}
|
|
1288
|
+
function readBlockMapping(e, t, r) {
|
|
1289
|
+
var i, n, a, o, l, s, c = e.tag, u = e.anchor, f = {}, p = Object.create(null), d = null, h = null, m = null, g = false, v = false, w;
|
|
1290
|
+
if (-1 !== e.firstTabInLine) return false;
|
|
1291
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = f;
|
|
1292
|
+
w = e.input.charCodeAt(e.position);
|
|
1293
|
+
while(0 !== w){
|
|
1294
|
+
if (!g && -1 !== e.firstTabInLine) {
|
|
1295
|
+
e.position = e.firstTabInLine;
|
|
1296
|
+
throwError(e, "tab characters must not be used in indentation");
|
|
1297
|
+
}
|
|
1298
|
+
i = e.input.charCodeAt(e.position + 1);
|
|
1299
|
+
a = e.line;
|
|
1300
|
+
if ((63 === w || 58 === w) && is_WS_OR_EOL(i)) {
|
|
1301
|
+
if (63 === w) {
|
|
1302
|
+
if (g) {
|
|
1303
|
+
storeMappingPair(e, f, p, d, h, null, o, l, s);
|
|
1304
|
+
d = h = m = null;
|
|
1305
|
+
}
|
|
1306
|
+
v = true;
|
|
1307
|
+
g = true;
|
|
1308
|
+
n = true;
|
|
1309
|
+
} else if (g) {
|
|
1310
|
+
g = false;
|
|
1311
|
+
n = true;
|
|
1312
|
+
} else throwError(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
1313
|
+
e.position += 1;
|
|
1314
|
+
w = i;
|
|
1315
|
+
} else {
|
|
1316
|
+
o = e.line;
|
|
1317
|
+
l = e.lineStart;
|
|
1318
|
+
s = e.position;
|
|
1319
|
+
if (!composeNode(e, r, H, false, true)) break;
|
|
1320
|
+
if (e.line === a) {
|
|
1321
|
+
w = e.input.charCodeAt(e.position);
|
|
1322
|
+
while(is_WHITE_SPACE(w))w = e.input.charCodeAt(++e.position);
|
|
1323
|
+
if (58 === w) {
|
|
1324
|
+
w = e.input.charCodeAt(++e.position);
|
|
1325
|
+
if (!is_WS_OR_EOL(w)) throwError(e, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
1326
|
+
if (g) {
|
|
1327
|
+
storeMappingPair(e, f, p, d, h, null, o, l, s);
|
|
1328
|
+
d = h = m = null;
|
|
1329
|
+
}
|
|
1330
|
+
v = true;
|
|
1331
|
+
g = false;
|
|
1332
|
+
n = false;
|
|
1333
|
+
d = e.tag;
|
|
1334
|
+
h = e.result;
|
|
1335
|
+
} else if (v) throwError(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1336
|
+
else {
|
|
1337
|
+
e.tag = c;
|
|
1338
|
+
e.anchor = u;
|
|
1339
|
+
return true;
|
|
1340
|
+
}
|
|
1341
|
+
} else if (v) throwError(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1342
|
+
else {
|
|
1343
|
+
e.tag = c;
|
|
1344
|
+
e.anchor = u;
|
|
1345
|
+
return true;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
if (e.line === a || e.lineIndent > t) {
|
|
1349
|
+
if (g) {
|
|
1350
|
+
o = e.line;
|
|
1351
|
+
l = e.lineStart;
|
|
1352
|
+
s = e.position;
|
|
1353
|
+
}
|
|
1354
|
+
if (composeNode(e, t, U, true, n)) if (g) h = e.result;
|
|
1355
|
+
else m = e.result;
|
|
1356
|
+
if (!g) {
|
|
1357
|
+
storeMappingPair(e, f, p, d, h, m, o, l, s);
|
|
1358
|
+
d = h = m = null;
|
|
1359
|
+
}
|
|
1360
|
+
skipSeparationSpace(e, true, -1);
|
|
1361
|
+
w = e.input.charCodeAt(e.position);
|
|
1362
|
+
}
|
|
1363
|
+
if ((e.line === a || e.lineIndent > t) && 0 !== w) throwError(e, "bad indentation of a mapping entry");
|
|
1364
|
+
else if (e.lineIndent < t) break;
|
|
1365
|
+
}
|
|
1366
|
+
if (g) storeMappingPair(e, f, p, d, h, null, o, l, s);
|
|
1367
|
+
if (v) {
|
|
1368
|
+
e.tag = c;
|
|
1369
|
+
e.anchor = u;
|
|
1370
|
+
e.kind = "mapping";
|
|
1371
|
+
e.result = f;
|
|
1372
|
+
}
|
|
1373
|
+
return v;
|
|
1374
|
+
}
|
|
1375
|
+
function readTagProperty(e) {
|
|
1376
|
+
var t, r = false, i = false, n, a, o;
|
|
1377
|
+
o = e.input.charCodeAt(e.position);
|
|
1378
|
+
if (33 !== o) return false;
|
|
1379
|
+
if (null !== e.tag) throwError(e, "duplication of a tag property");
|
|
1380
|
+
o = e.input.charCodeAt(++e.position);
|
|
1381
|
+
if (60 === o) {
|
|
1382
|
+
r = true;
|
|
1383
|
+
o = e.input.charCodeAt(++e.position);
|
|
1384
|
+
} else if (33 === o) {
|
|
1385
|
+
i = true;
|
|
1386
|
+
n = "!!";
|
|
1387
|
+
o = e.input.charCodeAt(++e.position);
|
|
1388
|
+
} else n = "!";
|
|
1389
|
+
t = e.position;
|
|
1390
|
+
if (r) {
|
|
1391
|
+
do o = e.input.charCodeAt(++e.position);
|
|
1392
|
+
while (0 !== o && 62 !== o);
|
|
1393
|
+
if (e.position < e.length) {
|
|
1394
|
+
a = e.input.slice(t, e.position);
|
|
1395
|
+
o = e.input.charCodeAt(++e.position);
|
|
1396
|
+
} else throwError(e, "unexpected end of the stream within a verbatim tag");
|
|
1397
|
+
} else {
|
|
1398
|
+
while(0 !== o && !is_WS_OR_EOL(o)){
|
|
1399
|
+
if (33 === o) if (i) throwError(e, "tag suffix cannot contain exclamation marks");
|
|
1400
|
+
else {
|
|
1401
|
+
n = e.input.slice(t - 1, e.position + 1);
|
|
1402
|
+
if (!z.test(n)) throwError(e, "named tag handle cannot contain such characters");
|
|
1403
|
+
i = true;
|
|
1404
|
+
t = e.position + 1;
|
|
1405
|
+
}
|
|
1406
|
+
o = e.input.charCodeAt(++e.position);
|
|
1407
|
+
}
|
|
1408
|
+
a = e.input.slice(t, e.position);
|
|
1409
|
+
if (J.test(a)) throwError(e, "tag suffix cannot contain flow indicator characters");
|
|
1410
|
+
}
|
|
1411
|
+
if (a && !X.test(a)) throwError(e, "tag name cannot contain such characters: " + a);
|
|
1412
|
+
try {
|
|
1413
|
+
a = decodeURIComponent(a);
|
|
1414
|
+
} catch (t) {
|
|
1415
|
+
throwError(e, "tag name is malformed: " + a);
|
|
1416
|
+
}
|
|
1417
|
+
if (r) e.tag = a;
|
|
1418
|
+
else if (R.call(e.tagMap, n)) e.tag = e.tagMap[n] + a;
|
|
1419
|
+
else if ("!" === n) e.tag = "!" + a;
|
|
1420
|
+
else if ("!!" === n) e.tag = "tag:yaml.org,2002:" + a;
|
|
1421
|
+
else throwError(e, 'undeclared tag handle "' + n + '"');
|
|
1422
|
+
return true;
|
|
1423
|
+
}
|
|
1424
|
+
function readAnchorProperty(e) {
|
|
1425
|
+
var t, r;
|
|
1426
|
+
r = e.input.charCodeAt(e.position);
|
|
1427
|
+
if (38 !== r) return false;
|
|
1428
|
+
if (null !== e.anchor) throwError(e, "duplication of an anchor property");
|
|
1429
|
+
r = e.input.charCodeAt(++e.position);
|
|
1430
|
+
t = e.position;
|
|
1431
|
+
while(0 !== r && !is_WS_OR_EOL(r) && !is_FLOW_INDICATOR(r))r = e.input.charCodeAt(++e.position);
|
|
1432
|
+
if (e.position === t) throwError(e, "name of an anchor node must contain at least one character");
|
|
1433
|
+
e.anchor = e.input.slice(t, e.position);
|
|
1434
|
+
return true;
|
|
1435
|
+
}
|
|
1436
|
+
function readAlias(e) {
|
|
1437
|
+
var t, r, i;
|
|
1438
|
+
i = e.input.charCodeAt(e.position);
|
|
1439
|
+
if (42 !== i) return false;
|
|
1440
|
+
i = e.input.charCodeAt(++e.position);
|
|
1441
|
+
t = e.position;
|
|
1442
|
+
while(0 !== i && !is_WS_OR_EOL(i) && !is_FLOW_INDICATOR(i))i = e.input.charCodeAt(++e.position);
|
|
1443
|
+
if (e.position === t) throwError(e, "name of an alias node must contain at least one character");
|
|
1444
|
+
r = e.input.slice(t, e.position);
|
|
1445
|
+
if (!R.call(e.anchorMap, r)) throwError(e, 'unidentified alias "' + r + '"');
|
|
1446
|
+
e.result = e.anchorMap[r];
|
|
1447
|
+
skipSeparationSpace(e, true, -1);
|
|
1448
|
+
return true;
|
|
1449
|
+
}
|
|
1450
|
+
function composeNode(e, t, r, i, n) {
|
|
1451
|
+
var a, o, l, s = 1, c = false, u = false, f, p, d, h, m, g;
|
|
1452
|
+
if (null !== e.listener) e.listener("open", e);
|
|
1453
|
+
e.tag = null;
|
|
1454
|
+
e.anchor = null;
|
|
1455
|
+
e.kind = null;
|
|
1456
|
+
e.result = null;
|
|
1457
|
+
a = o = l = U === r || $ === r;
|
|
1458
|
+
if (i) {
|
|
1459
|
+
if (skipSeparationSpace(e, true, -1)) {
|
|
1460
|
+
c = true;
|
|
1461
|
+
if (e.lineIndent > t) s = 1;
|
|
1462
|
+
else if (e.lineIndent === t) s = 0;
|
|
1463
|
+
else if (e.lineIndent < t) s = -1;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
if (1 === s) while(readTagProperty(e) || readAnchorProperty(e))if (skipSeparationSpace(e, true, -1)) {
|
|
1467
|
+
c = true;
|
|
1468
|
+
l = a;
|
|
1469
|
+
if (e.lineIndent > t) s = 1;
|
|
1470
|
+
else if (e.lineIndent === t) s = 0;
|
|
1471
|
+
else if (e.lineIndent < t) s = -1;
|
|
1472
|
+
} else l = false;
|
|
1473
|
+
if (l) l = c || n;
|
|
1474
|
+
if (1 === s || U === r) {
|
|
1475
|
+
m = q === r || H === r ? t : t + 1;
|
|
1476
|
+
g = e.position - e.lineStart;
|
|
1477
|
+
if (1 === s) if (l && (readBlockSequence(e, g) || readBlockMapping(e, g, m)) || readFlowCollection(e, m)) u = true;
|
|
1478
|
+
else {
|
|
1479
|
+
if (o && readBlockScalar(e, m) || readSingleQuotedScalar(e, m) || readDoubleQuotedScalar(e, m)) u = true;
|
|
1480
|
+
else if (readAlias(e)) {
|
|
1481
|
+
u = true;
|
|
1482
|
+
if (null !== e.tag || null !== e.anchor) throwError(e, "alias node should not have any properties");
|
|
1483
|
+
} else if (readPlainScalar(e, m, q === r)) {
|
|
1484
|
+
u = true;
|
|
1485
|
+
if (null === e.tag) e.tag = "?";
|
|
1486
|
+
}
|
|
1487
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = e.result;
|
|
1488
|
+
}
|
|
1489
|
+
else if (0 === s) u = l && readBlockSequence(e, g);
|
|
1490
|
+
}
|
|
1491
|
+
if (null === e.tag) {
|
|
1492
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = e.result;
|
|
1493
|
+
} else if ("?" === e.tag) {
|
|
1494
|
+
if (null !== e.result && "scalar" !== e.kind) throwError(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"');
|
|
1495
|
+
for(f = 0, p = e.implicitTypes.length; f < p; f += 1){
|
|
1496
|
+
h = e.implicitTypes[f];
|
|
1497
|
+
if (h.resolve(e.result)) {
|
|
1498
|
+
e.result = h.construct(e.result);
|
|
1499
|
+
e.tag = h.tag;
|
|
1500
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = e.result;
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
} else if ("!" !== e.tag) {
|
|
1505
|
+
if (R.call(e.typeMap[e.kind || "fallback"], e.tag)) h = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1506
|
+
else {
|
|
1507
|
+
h = null;
|
|
1508
|
+
d = e.typeMap.multi[e.kind || "fallback"];
|
|
1509
|
+
for(f = 0, p = d.length; f < p; f += 1)if (e.tag.slice(0, d[f].tag.length) === d[f].tag) {
|
|
1510
|
+
h = d[f];
|
|
1511
|
+
break;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
if (!h) throwError(e, "unknown tag !<" + e.tag + ">");
|
|
1515
|
+
if (null !== e.result && h.kind !== e.kind) throwError(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + h.kind + '", not "' + e.kind + '"');
|
|
1516
|
+
if (h.resolve(e.result, e.tag)) {
|
|
1517
|
+
e.result = h.construct(e.result, e.tag);
|
|
1518
|
+
if (null !== e.anchor) e.anchorMap[e.anchor] = e.result;
|
|
1519
|
+
} else throwError(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1520
|
+
}
|
|
1521
|
+
if (null !== e.listener) e.listener("close", e);
|
|
1522
|
+
return null !== e.tag || null !== e.anchor || u;
|
|
1523
|
+
}
|
|
1524
|
+
function readDocument(e) {
|
|
1525
|
+
var t = e.position, r, i, n, a = false, o;
|
|
1526
|
+
e.version = null;
|
|
1527
|
+
e.checkLineBreaks = e.legacy;
|
|
1528
|
+
e.tagMap = Object.create(null);
|
|
1529
|
+
e.anchorMap = Object.create(null);
|
|
1530
|
+
while(0 !== (o = e.input.charCodeAt(e.position))){
|
|
1531
|
+
skipSeparationSpace(e, true, -1);
|
|
1532
|
+
o = e.input.charCodeAt(e.position);
|
|
1533
|
+
if (e.lineIndent > 0 || 37 !== o) break;
|
|
1534
|
+
a = true;
|
|
1535
|
+
o = e.input.charCodeAt(++e.position);
|
|
1536
|
+
r = e.position;
|
|
1537
|
+
while(0 !== o && !is_WS_OR_EOL(o))o = e.input.charCodeAt(++e.position);
|
|
1538
|
+
i = e.input.slice(r, e.position);
|
|
1539
|
+
n = [];
|
|
1540
|
+
if (i.length < 1) throwError(e, "directive name must not be less than one character in length");
|
|
1541
|
+
while(0 !== o){
|
|
1542
|
+
while(is_WHITE_SPACE(o))o = e.input.charCodeAt(++e.position);
|
|
1543
|
+
if (35 === o) {
|
|
1544
|
+
do o = e.input.charCodeAt(++e.position);
|
|
1545
|
+
while (0 !== o && !is_EOL(o));
|
|
1546
|
+
break;
|
|
1547
|
+
}
|
|
1548
|
+
if (is_EOL(o)) break;
|
|
1549
|
+
r = e.position;
|
|
1550
|
+
while(0 !== o && !is_WS_OR_EOL(o))o = e.input.charCodeAt(++e.position);
|
|
1551
|
+
n.push(e.input.slice(r, e.position));
|
|
1552
|
+
}
|
|
1553
|
+
if (0 !== o) readLineBreak(e);
|
|
1554
|
+
if (R.call(ie, i)) ie[i](e, i, n);
|
|
1555
|
+
else throwWarning(e, 'unknown document directive "' + i + '"');
|
|
1556
|
+
}
|
|
1557
|
+
skipSeparationSpace(e, true, -1);
|
|
1558
|
+
if (0 === e.lineIndent && 45 === e.input.charCodeAt(e.position) && 45 === e.input.charCodeAt(e.position + 1) && 45 === e.input.charCodeAt(e.position + 2)) {
|
|
1559
|
+
e.position += 3;
|
|
1560
|
+
skipSeparationSpace(e, true, -1);
|
|
1561
|
+
} else if (a) throwError(e, "directives end mark is expected");
|
|
1562
|
+
composeNode(e, e.lineIndent - 1, U, false, true);
|
|
1563
|
+
skipSeparationSpace(e, true, -1);
|
|
1564
|
+
if (e.checkLineBreaks && V.test(e.input.slice(t, e.position))) throwWarning(e, "non-ASCII line breaks are interpreted as content");
|
|
1565
|
+
e.documents.push(e.result);
|
|
1566
|
+
if (e.position === e.lineStart && testDocumentSeparator(e)) {
|
|
1567
|
+
if (46 === e.input.charCodeAt(e.position)) {
|
|
1568
|
+
e.position += 3;
|
|
1569
|
+
skipSeparationSpace(e, true, -1);
|
|
1570
|
+
}
|
|
1571
|
+
return;
|
|
1572
|
+
}
|
|
1573
|
+
if (!(e.position < e.length - 1)) return;
|
|
1574
|
+
throwError(e, "end of the stream or a document separator is expected");
|
|
1575
|
+
}
|
|
1576
|
+
function loadDocuments(e, t) {
|
|
1577
|
+
e = String(e);
|
|
1578
|
+
t = t || {};
|
|
1579
|
+
if (0 !== e.length) {
|
|
1580
|
+
if (10 !== e.charCodeAt(e.length - 1) && 13 !== e.charCodeAt(e.length - 1)) e += "\n";
|
|
1581
|
+
if (65279 === e.charCodeAt(0)) e = e.slice(1);
|
|
1582
|
+
}
|
|
1583
|
+
var r = new State$1(e, t);
|
|
1584
|
+
var i = e.indexOf("\0");
|
|
1585
|
+
if (-1 !== i) {
|
|
1586
|
+
r.position = i;
|
|
1587
|
+
throwError(r, "null byte is not allowed in input");
|
|
1588
|
+
}
|
|
1589
|
+
r.input += "\0";
|
|
1590
|
+
while(32 === r.input.charCodeAt(r.position)){
|
|
1591
|
+
r.lineIndent += 1;
|
|
1592
|
+
r.position += 1;
|
|
1593
|
+
}
|
|
1594
|
+
while(r.position < r.length - 1)readDocument(r);
|
|
1595
|
+
return r.documents;
|
|
1596
|
+
}
|
|
1597
|
+
function loadAll$1(e, t, r) {
|
|
1598
|
+
if (null !== t && "object" == typeof t && void 0 === r) {
|
|
1599
|
+
r = t;
|
|
1600
|
+
t = null;
|
|
1601
|
+
}
|
|
1602
|
+
var i = loadDocuments(e, r);
|
|
1603
|
+
if ("function" != typeof t) return i;
|
|
1604
|
+
for(var n = 0, a = i.length; n < a; n += 1)t(i[n]);
|
|
1605
|
+
}
|
|
1606
|
+
function load$1(e, t) {
|
|
1607
|
+
var r = loadDocuments(e, t);
|
|
1608
|
+
if (0 === r.length) return;
|
|
1609
|
+
if (1 === r.length) return r[0];
|
|
1610
|
+
throw new c("expected a single document in the stream, but found more");
|
|
1611
|
+
}
|
|
1612
|
+
var ne = loadAll$1;
|
|
1613
|
+
var ae = load$1;
|
|
1614
|
+
var oe = {
|
|
1615
|
+
loadAll: ne,
|
|
1616
|
+
load: ae
|
|
1617
|
+
};
|
|
1618
|
+
var le = Object.prototype.toString;
|
|
1619
|
+
var se = Object.prototype.hasOwnProperty;
|
|
1620
|
+
var ce = 65279;
|
|
1621
|
+
var ue = 9;
|
|
1622
|
+
var fe = 10;
|
|
1623
|
+
var pe = 13;
|
|
1624
|
+
var de = 32;
|
|
1625
|
+
var he = 33;
|
|
1626
|
+
var me = 34;
|
|
1627
|
+
var ge = 35;
|
|
1628
|
+
var ve = 37;
|
|
1629
|
+
var we = 38;
|
|
1630
|
+
var ye = 39;
|
|
1631
|
+
var Se = 42;
|
|
1632
|
+
var Ae = 44;
|
|
1633
|
+
var be = 45;
|
|
1634
|
+
var Ee = 58;
|
|
1635
|
+
var ke = 61;
|
|
1636
|
+
var Oe = 62;
|
|
1637
|
+
var Ce = 63;
|
|
1638
|
+
var _e = 64;
|
|
1639
|
+
var Ie = 91;
|
|
1640
|
+
var xe = 93;
|
|
1641
|
+
var Le = 96;
|
|
1642
|
+
var Ne = 123;
|
|
1643
|
+
var Te = 124;
|
|
1644
|
+
var Fe = 125;
|
|
1645
|
+
var Me = {};
|
|
1646
|
+
Me[0] = "\\0";
|
|
1647
|
+
Me[7] = "\\a";
|
|
1648
|
+
Me[8] = "\\b";
|
|
1649
|
+
Me[9] = "\\t";
|
|
1650
|
+
Me[10] = "\\n";
|
|
1651
|
+
Me[11] = "\\v";
|
|
1652
|
+
Me[12] = "\\f";
|
|
1653
|
+
Me[13] = "\\r";
|
|
1654
|
+
Me[27] = "\\e";
|
|
1655
|
+
Me[34] = '\\"';
|
|
1656
|
+
Me[92] = "\\\\";
|
|
1657
|
+
Me[133] = "\\N";
|
|
1658
|
+
Me[160] = "\\_";
|
|
1659
|
+
Me[8232] = "\\L";
|
|
1660
|
+
Me[8233] = "\\P";
|
|
1661
|
+
var je = [
|
|
1662
|
+
"y",
|
|
1663
|
+
"Y",
|
|
1664
|
+
"yes",
|
|
1665
|
+
"Yes",
|
|
1666
|
+
"YES",
|
|
1667
|
+
"on",
|
|
1668
|
+
"On",
|
|
1669
|
+
"ON",
|
|
1670
|
+
"n",
|
|
1671
|
+
"N",
|
|
1672
|
+
"no",
|
|
1673
|
+
"No",
|
|
1674
|
+
"NO",
|
|
1675
|
+
"off",
|
|
1676
|
+
"Off",
|
|
1677
|
+
"OFF"
|
|
1678
|
+
];
|
|
1679
|
+
var Ye = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1680
|
+
function compileStyleMap(e, t) {
|
|
1681
|
+
var r, i, n, a, o, l, s;
|
|
1682
|
+
if (null === t) return {};
|
|
1683
|
+
r = {};
|
|
1684
|
+
i = Object.keys(t);
|
|
1685
|
+
for(n = 0, a = i.length; n < a; n += 1){
|
|
1686
|
+
o = i[n];
|
|
1687
|
+
l = String(t[o]);
|
|
1688
|
+
if ("!!" === o.slice(0, 2)) o = "tag:yaml.org,2002:" + o.slice(2);
|
|
1689
|
+
s = e.compiledTypeMap["fallback"][o];
|
|
1690
|
+
if (s && se.call(s.styleAliases, l)) l = s.styleAliases[l];
|
|
1691
|
+
r[o] = l;
|
|
1692
|
+
}
|
|
1693
|
+
return r;
|
|
1694
|
+
}
|
|
1695
|
+
function encodeHex(e) {
|
|
1696
|
+
var t, r, i;
|
|
1697
|
+
t = e.toString(16).toUpperCase();
|
|
1698
|
+
if (e <= 255) {
|
|
1699
|
+
r = "x";
|
|
1700
|
+
i = 2;
|
|
1701
|
+
} else if (e <= 65535) {
|
|
1702
|
+
r = "u";
|
|
1703
|
+
i = 4;
|
|
1704
|
+
} else if (e <= 4294967295) {
|
|
1705
|
+
r = "U";
|
|
1706
|
+
i = 8;
|
|
1707
|
+
} else throw new c("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1708
|
+
return "\\" + r + s.repeat("0", i - t.length) + t;
|
|
1709
|
+
}
|
|
1710
|
+
var Pe = 1, We = 2;
|
|
1711
|
+
function State(e) {
|
|
1712
|
+
this.schema = e["schema"] || B;
|
|
1713
|
+
this.indent = Math.max(1, e["indent"] || 2);
|
|
1714
|
+
this.noArrayIndent = e["noArrayIndent"] || false;
|
|
1715
|
+
this.skipInvalid = e["skipInvalid"] || false;
|
|
1716
|
+
this.flowLevel = s.isNothing(e["flowLevel"]) ? -1 : e["flowLevel"];
|
|
1717
|
+
this.styleMap = compileStyleMap(this.schema, e["styles"] || null);
|
|
1718
|
+
this.sortKeys = e["sortKeys"] || false;
|
|
1719
|
+
this.lineWidth = e["lineWidth"] || 80;
|
|
1720
|
+
this.noRefs = e["noRefs"] || false;
|
|
1721
|
+
this.noCompatMode = e["noCompatMode"] || false;
|
|
1722
|
+
this.condenseFlow = e["condenseFlow"] || false;
|
|
1723
|
+
this.quotingType = '"' === e["quotingType"] ? We : Pe;
|
|
1724
|
+
this.forceQuotes = e["forceQuotes"] || false;
|
|
1725
|
+
this.replacer = "function" == typeof e["replacer"] ? e["replacer"] : null;
|
|
1726
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
1727
|
+
this.explicitTypes = this.schema.compiledExplicit;
|
|
1728
|
+
this.tag = null;
|
|
1729
|
+
this.result = "";
|
|
1730
|
+
this.duplicates = [];
|
|
1731
|
+
this.usedDuplicates = null;
|
|
1732
|
+
}
|
|
1733
|
+
function indentString(e, t) {
|
|
1734
|
+
var r = s.repeat(" ", t), i = 0, n = -1, a = "", o, l = e.length;
|
|
1735
|
+
while(i < l){
|
|
1736
|
+
n = e.indexOf("\n", i);
|
|
1737
|
+
if (-1 === n) {
|
|
1738
|
+
o = e.slice(i);
|
|
1739
|
+
i = l;
|
|
1740
|
+
} else {
|
|
1741
|
+
o = e.slice(i, n + 1);
|
|
1742
|
+
i = n + 1;
|
|
1743
|
+
}
|
|
1744
|
+
if (o.length && "\n" !== o) a += r;
|
|
1745
|
+
a += o;
|
|
1746
|
+
}
|
|
1747
|
+
return a;
|
|
1748
|
+
}
|
|
1749
|
+
function generateNextLine(e, t) {
|
|
1750
|
+
return "\n" + s.repeat(" ", e.indent * t);
|
|
1751
|
+
}
|
|
1752
|
+
function testImplicitResolving(e, t) {
|
|
1753
|
+
var r, i, n;
|
|
1754
|
+
for(r = 0, i = e.implicitTypes.length; r < i; r += 1){
|
|
1755
|
+
n = e.implicitTypes[r];
|
|
1756
|
+
if (n.resolve(t)) return true;
|
|
1757
|
+
}
|
|
1758
|
+
return false;
|
|
1759
|
+
}
|
|
1760
|
+
function isWhitespace(e) {
|
|
1761
|
+
return e === de || e === ue;
|
|
1762
|
+
}
|
|
1763
|
+
function isPrintable(e) {
|
|
1764
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && 8232 !== e && 8233 !== e || 57344 <= e && e <= 65533 && e !== ce || 65536 <= e && e <= 1114111;
|
|
1765
|
+
}
|
|
1766
|
+
function isNsCharOrWhitespace(e) {
|
|
1767
|
+
return isPrintable(e) && e !== ce && e !== pe && e !== fe;
|
|
1768
|
+
}
|
|
1769
|
+
function isPlainSafe(e, t, r) {
|
|
1770
|
+
var i = isNsCharOrWhitespace(e);
|
|
1771
|
+
var n = i && !isWhitespace(e);
|
|
1772
|
+
return (r ? i : i && e !== Ae && e !== Ie && e !== xe && e !== Ne && e !== Fe) && e !== ge && !(t === Ee && !n) || isNsCharOrWhitespace(t) && !isWhitespace(t) && e === ge || t === Ee && n;
|
|
1773
|
+
}
|
|
1774
|
+
function isPlainSafeFirst(e) {
|
|
1775
|
+
return isPrintable(e) && e !== ce && !isWhitespace(e) && e !== be && e !== Ce && e !== Ee && e !== Ae && e !== Ie && e !== xe && e !== Ne && e !== Fe && e !== ge && e !== we && e !== Se && e !== he && e !== Te && e !== ke && e !== Oe && e !== ye && e !== me && e !== ve && e !== _e && e !== Le;
|
|
1776
|
+
}
|
|
1777
|
+
function isPlainSafeLast(e) {
|
|
1778
|
+
return !isWhitespace(e) && e !== Ee;
|
|
1779
|
+
}
|
|
1780
|
+
function codePointAt(e, t) {
|
|
1781
|
+
var r = e.charCodeAt(t), i;
|
|
1782
|
+
if (r >= 55296 && r <= 56319 && t + 1 < e.length) {
|
|
1783
|
+
i = e.charCodeAt(t + 1);
|
|
1784
|
+
if (i >= 56320 && i <= 57343) return (r - 55296) * 1024 + i - 56320 + 65536;
|
|
1785
|
+
}
|
|
1786
|
+
return r;
|
|
1787
|
+
}
|
|
1788
|
+
function needIndentIndicator(e) {
|
|
1789
|
+
var t = /^\n* /;
|
|
1790
|
+
return t.test(e);
|
|
1791
|
+
}
|
|
1792
|
+
var De = 1, Be = 2, Re = 3, qe = 4, He = 5;
|
|
1793
|
+
function chooseScalarStyle(e, t, r, i, n, a, o, l) {
|
|
1794
|
+
var s;
|
|
1795
|
+
var c = 0;
|
|
1796
|
+
var u = null;
|
|
1797
|
+
var f = false;
|
|
1798
|
+
var p = false;
|
|
1799
|
+
var d = -1 !== i;
|
|
1800
|
+
var h = -1;
|
|
1801
|
+
var m = isPlainSafeFirst(codePointAt(e, 0)) && isPlainSafeLast(codePointAt(e, e.length - 1));
|
|
1802
|
+
if (t || o) for(s = 0; s < e.length; c >= 65536 ? s += 2 : s++){
|
|
1803
|
+
c = codePointAt(e, s);
|
|
1804
|
+
if (!isPrintable(c)) return He;
|
|
1805
|
+
m = m && isPlainSafe(c, u, l);
|
|
1806
|
+
u = c;
|
|
1807
|
+
}
|
|
1808
|
+
else {
|
|
1809
|
+
for(s = 0; s < e.length; c >= 65536 ? s += 2 : s++){
|
|
1810
|
+
c = codePointAt(e, s);
|
|
1811
|
+
if (c === fe) {
|
|
1812
|
+
f = true;
|
|
1813
|
+
if (d) {
|
|
1814
|
+
p = p || s - h - 1 > i && " " !== e[h + 1];
|
|
1815
|
+
h = s;
|
|
1816
|
+
}
|
|
1817
|
+
} else if (!isPrintable(c)) return He;
|
|
1818
|
+
m = m && isPlainSafe(c, u, l);
|
|
1819
|
+
u = c;
|
|
1820
|
+
}
|
|
1821
|
+
p = p || d && s - h - 1 > i && " " !== e[h + 1];
|
|
1822
|
+
}
|
|
1823
|
+
if (!f && !p) {
|
|
1824
|
+
if (m && !o && !n(e)) return De;
|
|
1825
|
+
return a === We ? He : Be;
|
|
1826
|
+
}
|
|
1827
|
+
if (r > 9 && needIndentIndicator(e)) return He;
|
|
1828
|
+
if (!o) return p ? qe : Re;
|
|
1829
|
+
return a === We ? He : Be;
|
|
1830
|
+
}
|
|
1831
|
+
function writeScalar(e, t, r, i, n) {
|
|
1832
|
+
e.dump = function() {
|
|
1833
|
+
if (0 === t.length) return e.quotingType === We ? '""' : "''";
|
|
1834
|
+
if (!e.noCompatMode) {
|
|
1835
|
+
if (-1 !== je.indexOf(t) || Ye.test(t)) return e.quotingType === We ? '"' + t + '"' : "'" + t + "'";
|
|
1836
|
+
}
|
|
1837
|
+
var a = e.indent * Math.max(1, r);
|
|
1838
|
+
var o = -1 === e.lineWidth ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a);
|
|
1839
|
+
var l = i || e.flowLevel > -1 && r >= e.flowLevel;
|
|
1840
|
+
function testAmbiguity(t) {
|
|
1841
|
+
return testImplicitResolving(e, t);
|
|
1842
|
+
}
|
|
1843
|
+
switch(chooseScalarStyle(t, l, e.indent, o, testAmbiguity, e.quotingType, e.forceQuotes && !i, n)){
|
|
1844
|
+
case De:
|
|
1845
|
+
return t;
|
|
1846
|
+
case Be:
|
|
1847
|
+
return "'" + t.replace(/'/g, "''") + "'";
|
|
1848
|
+
case Re:
|
|
1849
|
+
return "|" + blockHeader(t, e.indent) + dropEndingNewline(indentString(t, a));
|
|
1850
|
+
case qe:
|
|
1851
|
+
return ">" + blockHeader(t, e.indent) + dropEndingNewline(indentString(foldString(t, o), a));
|
|
1852
|
+
case He:
|
|
1853
|
+
return '"' + escapeString(t) + '"';
|
|
1854
|
+
default:
|
|
1855
|
+
throw new c("impossible error: invalid scalar style");
|
|
1856
|
+
}
|
|
1857
|
+
}();
|
|
1858
|
+
}
|
|
1859
|
+
function blockHeader(e, t) {
|
|
1860
|
+
var r = needIndentIndicator(e) ? String(t) : "";
|
|
1861
|
+
var i = "\n" === e[e.length - 1];
|
|
1862
|
+
var n = i && ("\n" === e[e.length - 2] || "\n" === e);
|
|
1863
|
+
var a = n ? "+" : i ? "" : "-";
|
|
1864
|
+
return r + a + "\n";
|
|
1865
|
+
}
|
|
1866
|
+
function dropEndingNewline(e) {
|
|
1867
|
+
return "\n" === e[e.length - 1] ? e.slice(0, -1) : e;
|
|
1868
|
+
}
|
|
1869
|
+
function foldString(e, t) {
|
|
1870
|
+
var r = /(\n+)([^\n]*)/g;
|
|
1871
|
+
var i = function() {
|
|
1872
|
+
var i = e.indexOf("\n");
|
|
1873
|
+
i = -1 !== i ? i : e.length;
|
|
1874
|
+
r.lastIndex = i;
|
|
1875
|
+
return foldLine(e.slice(0, i), t);
|
|
1876
|
+
}();
|
|
1877
|
+
var n = "\n" === e[0] || " " === e[0];
|
|
1878
|
+
var a;
|
|
1879
|
+
var o;
|
|
1880
|
+
while(o = r.exec(e)){
|
|
1881
|
+
var l = o[1], s = o[2];
|
|
1882
|
+
a = " " === s[0];
|
|
1883
|
+
i += l + (n || a || "" === s ? "" : "\n") + foldLine(s, t);
|
|
1884
|
+
n = a;
|
|
1885
|
+
}
|
|
1886
|
+
return i;
|
|
1887
|
+
}
|
|
1888
|
+
function foldLine(e, t) {
|
|
1889
|
+
if ("" === e || " " === e[0]) return e;
|
|
1890
|
+
var r = / [^ ]/g;
|
|
1891
|
+
var i;
|
|
1892
|
+
var n = 0, a, o = 0, l = 0;
|
|
1893
|
+
var s = "";
|
|
1894
|
+
while(i = r.exec(e)){
|
|
1895
|
+
l = i.index;
|
|
1896
|
+
if (l - n > t) {
|
|
1897
|
+
a = o > n ? o : l;
|
|
1898
|
+
s += "\n" + e.slice(n, a);
|
|
1899
|
+
n = a + 1;
|
|
1900
|
+
}
|
|
1901
|
+
o = l;
|
|
1902
|
+
}
|
|
1903
|
+
s += "\n";
|
|
1904
|
+
if (e.length - n > t && o > n) s += e.slice(n, o) + "\n" + e.slice(o + 1);
|
|
1905
|
+
else s += e.slice(n);
|
|
1906
|
+
return s.slice(1);
|
|
1907
|
+
}
|
|
1908
|
+
function escapeString(e) {
|
|
1909
|
+
var t = "";
|
|
1910
|
+
var r = 0;
|
|
1911
|
+
var i;
|
|
1912
|
+
for(var n = 0; n < e.length; r >= 65536 ? n += 2 : n++){
|
|
1913
|
+
r = codePointAt(e, n);
|
|
1914
|
+
i = Me[r];
|
|
1915
|
+
if (!i && isPrintable(r)) {
|
|
1916
|
+
t += e[n];
|
|
1917
|
+
if (r >= 65536) t += e[n + 1];
|
|
1918
|
+
} else t += i || encodeHex(r);
|
|
1919
|
+
}
|
|
1920
|
+
return t;
|
|
1921
|
+
}
|
|
1922
|
+
function writeFlowSequence(e, t, r) {
|
|
1923
|
+
var i = "", n = e.tag, a, o, l;
|
|
1924
|
+
for(a = 0, o = r.length; a < o; a += 1){
|
|
1925
|
+
l = r[a];
|
|
1926
|
+
if (e.replacer) l = e.replacer.call(r, String(a), l);
|
|
1927
|
+
if (writeNode(e, t, l, false, false) || void 0 === l && writeNode(e, t, null, false, false)) {
|
|
1928
|
+
if ("" !== i) i += "," + (e.condenseFlow ? "" : " ");
|
|
1929
|
+
i += e.dump;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
e.tag = n;
|
|
1933
|
+
e.dump = "[" + i + "]";
|
|
1934
|
+
}
|
|
1935
|
+
function writeBlockSequence(e, t, r, i) {
|
|
1936
|
+
var n = "", a = e.tag, o, l, s;
|
|
1937
|
+
for(o = 0, l = r.length; o < l; o += 1){
|
|
1938
|
+
s = r[o];
|
|
1939
|
+
if (e.replacer) s = e.replacer.call(r, String(o), s);
|
|
1940
|
+
if (writeNode(e, t + 1, s, true, true, false, true) || void 0 === s && writeNode(e, t + 1, null, true, true, false, true)) {
|
|
1941
|
+
if (!i || "" !== n) n += generateNextLine(e, t);
|
|
1942
|
+
if (e.dump && fe === e.dump.charCodeAt(0)) n += "-";
|
|
1943
|
+
else n += "- ";
|
|
1944
|
+
n += e.dump;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
e.tag = a;
|
|
1948
|
+
e.dump = n || "[]";
|
|
1949
|
+
}
|
|
1950
|
+
function writeFlowMapping(e, t, r) {
|
|
1951
|
+
var i = "", n = e.tag, a = Object.keys(r), o, l, s, c, u;
|
|
1952
|
+
for(o = 0, l = a.length; o < l; o += 1){
|
|
1953
|
+
u = "";
|
|
1954
|
+
if ("" !== i) u += ", ";
|
|
1955
|
+
if (e.condenseFlow) u += '"';
|
|
1956
|
+
s = a[o];
|
|
1957
|
+
c = r[s];
|
|
1958
|
+
if (e.replacer) c = e.replacer.call(r, s, c);
|
|
1959
|
+
if (writeNode(e, t, s, false, false)) {
|
|
1960
|
+
if (e.dump.length > 1024) u += "? ";
|
|
1961
|
+
u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " ");
|
|
1962
|
+
if (writeNode(e, t, c, false, false)) {
|
|
1963
|
+
u += e.dump;
|
|
1964
|
+
i += u;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
e.tag = n;
|
|
1969
|
+
e.dump = "{" + i + "}";
|
|
1970
|
+
}
|
|
1971
|
+
function writeBlockMapping(e, t, r, i) {
|
|
1972
|
+
var n = "", a = e.tag, o = Object.keys(r), l, s, u, f, p, d;
|
|
1973
|
+
if (true === e.sortKeys) o.sort();
|
|
1974
|
+
else if ("function" == typeof e.sortKeys) o.sort(e.sortKeys);
|
|
1975
|
+
else if (e.sortKeys) throw new c("sortKeys must be a boolean or a function");
|
|
1976
|
+
for(l = 0, s = o.length; l < s; l += 1){
|
|
1977
|
+
d = "";
|
|
1978
|
+
if (!i || "" !== n) d += generateNextLine(e, t);
|
|
1979
|
+
u = o[l];
|
|
1980
|
+
f = r[u];
|
|
1981
|
+
if (e.replacer) f = e.replacer.call(r, u, f);
|
|
1982
|
+
if (writeNode(e, t + 1, u, true, true, true)) {
|
|
1983
|
+
p = null !== e.tag && "?" !== e.tag || e.dump && e.dump.length > 1024;
|
|
1984
|
+
if (p) if (e.dump && fe === e.dump.charCodeAt(0)) d += "?";
|
|
1985
|
+
else d += "? ";
|
|
1986
|
+
d += e.dump;
|
|
1987
|
+
if (p) d += generateNextLine(e, t);
|
|
1988
|
+
if (writeNode(e, t + 1, f, true, p)) {
|
|
1989
|
+
if (e.dump && fe === e.dump.charCodeAt(0)) d += ":";
|
|
1990
|
+
else d += ": ";
|
|
1991
|
+
d += e.dump;
|
|
1992
|
+
n += d;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
e.tag = a;
|
|
1997
|
+
e.dump = n || "{}";
|
|
1998
|
+
}
|
|
1999
|
+
function detectType(e, t, r) {
|
|
2000
|
+
var i, n, a, o, l, s;
|
|
2001
|
+
n = r ? e.explicitTypes : e.implicitTypes;
|
|
2002
|
+
for(a = 0, o = n.length; a < o; a += 1){
|
|
2003
|
+
l = n[a];
|
|
2004
|
+
if ((l.instanceOf || l.predicate) && (!l.instanceOf || "object" == typeof t && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2005
|
+
if (r) if (l.multi && l.representName) e.tag = l.representName(t);
|
|
2006
|
+
else e.tag = l.tag;
|
|
2007
|
+
else e.tag = "?";
|
|
2008
|
+
if (l.represent) {
|
|
2009
|
+
s = e.styleMap[l.tag] || l.defaultStyle;
|
|
2010
|
+
if ("[object Function]" === le.call(l.represent)) i = l.represent(t, s);
|
|
2011
|
+
else if (se.call(l.represent, s)) i = l.represent[s](t, s);
|
|
2012
|
+
else throw new c("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
2013
|
+
e.dump = i;
|
|
2014
|
+
}
|
|
2015
|
+
return true;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
return false;
|
|
2019
|
+
}
|
|
2020
|
+
function writeNode(e, t, r, i, n, a, o) {
|
|
2021
|
+
e.tag = null;
|
|
2022
|
+
e.dump = r;
|
|
2023
|
+
if (!detectType(e, r, false)) detectType(e, r, true);
|
|
2024
|
+
var l = le.call(e.dump);
|
|
2025
|
+
var s = i;
|
|
2026
|
+
var u;
|
|
2027
|
+
if (i) i = e.flowLevel < 0 || e.flowLevel > t;
|
|
2028
|
+
var f = "[object Object]" === l || "[object Array]" === l, p, d;
|
|
2029
|
+
if (f) {
|
|
2030
|
+
p = e.duplicates.indexOf(r);
|
|
2031
|
+
d = -1 !== p;
|
|
2032
|
+
}
|
|
2033
|
+
if (null !== e.tag && "?" !== e.tag || d || 2 !== e.indent && t > 0) n = false;
|
|
2034
|
+
if (d && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
2035
|
+
else {
|
|
2036
|
+
if (f && d && !e.usedDuplicates[p]) e.usedDuplicates[p] = true;
|
|
2037
|
+
if ("[object Object]" === l) if (i && 0 !== Object.keys(e.dump).length) {
|
|
2038
|
+
writeBlockMapping(e, t, e.dump, n);
|
|
2039
|
+
if (d) e.dump = "&ref_" + p + e.dump;
|
|
2040
|
+
} else {
|
|
2041
|
+
writeFlowMapping(e, t, e.dump);
|
|
2042
|
+
if (d) e.dump = "&ref_" + p + " " + e.dump;
|
|
2043
|
+
}
|
|
2044
|
+
else if ("[object Array]" === l) if (i && 0 !== e.dump.length) {
|
|
2045
|
+
e.noArrayIndent && !o && t > 0 ? writeBlockSequence(e, t - 1, e.dump, n) : writeBlockSequence(e, t, e.dump, n);
|
|
2046
|
+
if (d) e.dump = "&ref_" + p + e.dump;
|
|
2047
|
+
} else {
|
|
2048
|
+
writeFlowSequence(e, t, e.dump);
|
|
2049
|
+
if (d) e.dump = "&ref_" + p + " " + e.dump;
|
|
2050
|
+
}
|
|
2051
|
+
else if ("[object String]" === l) {
|
|
2052
|
+
if ("?" !== e.tag) writeScalar(e, e.dump, t, a, s);
|
|
2053
|
+
} else {
|
|
2054
|
+
if ("[object Undefined]" === l) return false;
|
|
2055
|
+
if (e.skipInvalid) return false;
|
|
2056
|
+
throw new c("unacceptable kind of an object to dump " + l);
|
|
2057
|
+
}
|
|
2058
|
+
if (null !== e.tag && "?" !== e.tag) {
|
|
2059
|
+
u = encodeURI("!" === e.tag[0] ? e.tag.slice(1) : e.tag).replace(/!/g, "%21");
|
|
2060
|
+
u = "!" === e.tag[0] ? "!" + u : "tag:yaml.org,2002:" === u.slice(0, 18) ? "!!" + u.slice(18) : "!<" + u + ">";
|
|
2061
|
+
e.dump = u + " " + e.dump;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
return true;
|
|
2065
|
+
}
|
|
2066
|
+
function getDuplicateReferences(e, t) {
|
|
2067
|
+
var r = [], i = [], n, a;
|
|
2068
|
+
inspectNode(e, r, i);
|
|
2069
|
+
for(n = 0, a = i.length; n < a; n += 1)t.duplicates.push(r[i[n]]);
|
|
2070
|
+
t.usedDuplicates = new Array(a);
|
|
2071
|
+
}
|
|
2072
|
+
function inspectNode(e, t, r) {
|
|
2073
|
+
var i, n, a;
|
|
2074
|
+
if (null !== e && "object" == typeof e) {
|
|
2075
|
+
n = t.indexOf(e);
|
|
2076
|
+
if (-1 !== n) {
|
|
2077
|
+
if (-1 === r.indexOf(n)) r.push(n);
|
|
2078
|
+
} else {
|
|
2079
|
+
t.push(e);
|
|
2080
|
+
if (Array.isArray(e)) for(n = 0, a = e.length; n < a; n += 1)inspectNode(e[n], t, r);
|
|
2081
|
+
else {
|
|
2082
|
+
i = Object.keys(e);
|
|
2083
|
+
for(n = 0, a = i.length; n < a; n += 1)inspectNode(e[i[n]], t, r);
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
function dump$1(e, t) {
|
|
2089
|
+
t = t || {};
|
|
2090
|
+
var r = new State(t);
|
|
2091
|
+
if (!r.noRefs) getDuplicateReferences(e, r);
|
|
2092
|
+
var i = e;
|
|
2093
|
+
if (r.replacer) i = r.replacer.call({
|
|
2094
|
+
"": i
|
|
2095
|
+
}, "", i);
|
|
2096
|
+
if (writeNode(r, 0, i, true, true)) return r.dump + "\n";
|
|
2097
|
+
return "";
|
|
2098
|
+
}
|
|
2099
|
+
var $e = dump$1;
|
|
2100
|
+
var Ue = {
|
|
2101
|
+
dump: $e
|
|
2102
|
+
};
|
|
2103
|
+
function renamed(e, t) {
|
|
2104
|
+
return function() {
|
|
2105
|
+
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
var Ke = d;
|
|
2109
|
+
var Qe = h;
|
|
2110
|
+
var Ze = w;
|
|
2111
|
+
var Ge = O;
|
|
2112
|
+
var Ve = C;
|
|
2113
|
+
var Je = B;
|
|
2114
|
+
var ze = oe.load;
|
|
2115
|
+
var Xe = oe.loadAll;
|
|
2116
|
+
var et = Ue.dump;
|
|
2117
|
+
var tt = c;
|
|
2118
|
+
var rt = {
|
|
2119
|
+
binary: T,
|
|
2120
|
+
float: k,
|
|
2121
|
+
map: v,
|
|
2122
|
+
null: y,
|
|
2123
|
+
pairs: P,
|
|
2124
|
+
set: D,
|
|
2125
|
+
timestamp: x,
|
|
2126
|
+
bool: S,
|
|
2127
|
+
int: A,
|
|
2128
|
+
merge: L,
|
|
2129
|
+
omap: j,
|
|
2130
|
+
seq: g,
|
|
2131
|
+
str: m
|
|
2132
|
+
};
|
|
2133
|
+
var it = renamed("safeLoad", "load");
|
|
2134
|
+
var nt = renamed("safeLoadAll", "loadAll");
|
|
2135
|
+
var at = renamed("safeDump", "dump");
|
|
2136
|
+
var ot = {
|
|
2137
|
+
Type: Ke,
|
|
2138
|
+
Schema: Qe,
|
|
2139
|
+
FAILSAFE_SCHEMA: Ze,
|
|
2140
|
+
JSON_SCHEMA: Ge,
|
|
2141
|
+
CORE_SCHEMA: Ve,
|
|
2142
|
+
DEFAULT_SCHEMA: Je,
|
|
2143
|
+
load: ze,
|
|
2144
|
+
loadAll: Xe,
|
|
2145
|
+
dump: et,
|
|
2146
|
+
YAMLException: tt,
|
|
2147
|
+
types: rt,
|
|
2148
|
+
safeLoad: it,
|
|
2149
|
+
safeLoadAll: nt,
|
|
2150
|
+
safeDump: at
|
|
2151
|
+
};
|
|
2152
|
+
var lt = t.OU;
|
|
2153
|
+
var st = t.my;
|
|
2154
|
+
var ct = t.uH;
|
|
2155
|
+
var ut = t.rQ;
|
|
2156
|
+
var ft = t.Sj;
|
|
2157
|
+
var pt = t.ZU;
|
|
2158
|
+
var dt = t.tB;
|
|
2159
|
+
var ht = t.Ay;
|
|
2160
|
+
var mt = t.Bh;
|
|
2161
|
+
var gt = t.Hh;
|
|
2162
|
+
var vt = t.gh;
|
|
2163
|
+
var wt = t.bk;
|
|
2164
|
+
var yt = t.Qd;
|
|
2165
|
+
var St = t.N5;
|
|
2166
|
+
var At = t.gK;
|
|
2167
|
+
export { lt as CORE_SCHEMA, st as DEFAULT_SCHEMA, ct as FAILSAFE_SCHEMA, ut as JSON_SCHEMA, ft as Schema, pt as Type, dt as YAMLException, ht as default, mt as dump, gt as load, vt as loadAll, wt as safeDump, yt as safeLoad, St as safeLoadAll, At as types };
|