@powerlines/plugin-env 0.16.59 → 0.16.61
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/README.md +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -3
- package/dist/_virtual/{rolldown_runtime.mjs → _rolldown/runtime.mjs} +2 -3
- package/dist/babel/index.cjs +1 -0
- package/dist/babel/plugin.cjs +20 -19
- package/dist/babel/plugin.d.cts +0 -1
- package/dist/babel/plugin.d.cts.map +1 -1
- package/dist/babel/plugin.d.mts +0 -1
- package/dist/babel/plugin.d.mts.map +1 -1
- package/dist/babel/plugin.mjs +3 -3
- package/dist/babel/plugin.mjs.map +1 -1
- package/dist/components/docs.cjs +26 -25
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs +1 -1
- package/dist/components/env-builtin.cjs +155 -153
- package/dist/components/env-builtin.d.cts +0 -1
- package/dist/components/env-builtin.d.cts.map +1 -1
- package/dist/components/env-builtin.d.mts +0 -1
- package/dist/components/env-builtin.d.mts.map +1 -1
- package/dist/components/env-builtin.mjs +1 -1
- package/dist/components/index.cjs +1 -0
- package/dist/helpers/automd-generator.cjs +4 -3
- package/dist/helpers/automd-generator.d.cts +2 -3
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts +2 -3
- package/dist/helpers/automd-generator.d.mts.map +1 -1
- package/dist/helpers/automd-generator.mjs +1 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/create-reflection-resource.cjs +1 -0
- package/dist/helpers/create-reflection-resource.d.cts +0 -1
- package/dist/helpers/create-reflection-resource.d.cts.map +1 -1
- package/dist/helpers/create-reflection-resource.d.mts +0 -1
- package/dist/helpers/create-reflection-resource.d.mts.map +1 -1
- package/dist/helpers/create-reflection-resource.mjs.map +1 -1
- package/dist/helpers/docs-helper.cjs +4 -2
- package/dist/helpers/docs-helper.d.cts +0 -1
- package/dist/helpers/docs-helper.d.cts.map +1 -1
- package/dist/helpers/docs-helper.d.mts +0 -1
- package/dist/helpers/docs-helper.d.mts.map +1 -1
- package/dist/helpers/docs-helper.mjs +1 -1
- package/dist/helpers/docs-helper.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/load.cjs +19 -17
- package/dist/helpers/load.d.cts +0 -1
- package/dist/helpers/load.d.cts.map +1 -1
- package/dist/helpers/load.d.mts +0 -1
- package/dist/helpers/load.d.mts.map +1 -1
- package/dist/helpers/load.mjs +2 -2
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +59 -58
- package/dist/helpers/persistence.d.cts +0 -1
- package/dist/helpers/persistence.d.cts.map +1 -1
- package/dist/helpers/persistence.d.mts +0 -1
- package/dist/helpers/persistence.d.mts.map +1 -1
- package/dist/helpers/persistence.mjs +15 -15
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/reflect.cjs +40 -39
- package/dist/helpers/reflect.d.cts.map +1 -1
- package/dist/helpers/reflect.d.mts.map +1 -1
- package/dist/helpers/reflect.mjs +2 -2
- package/dist/helpers/reflect.mjs.map +1 -1
- package/dist/helpers/source-file-env.cjs +8 -7
- package/dist/helpers/source-file-env.d.cts.map +1 -1
- package/dist/helpers/source-file-env.d.mts.map +1 -1
- package/dist/helpers/source-file-env.mjs.map +1 -1
- package/dist/helpers/template-helpers.cjs +6 -5
- package/dist/helpers/template-helpers.d.cts +0 -1
- package/dist/helpers/template-helpers.d.cts.map +1 -1
- package/dist/helpers/template-helpers.d.mts +0 -1
- package/dist/helpers/template-helpers.d.mts.map +1 -1
- package/dist/helpers/template-helpers.mjs.map +1 -1
- package/dist/index.cjs +49 -49
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +7 -7
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +6 -6
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +6 -6
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +6 -6
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +655 -655
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +655 -655
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +179 -179
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +179 -179
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +188 -188
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +188 -188
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +297 -297
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +297 -297
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +8 -8
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +8 -8
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +4 -4
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +5 -5
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +4 -4
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +2 -2
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +1 -1
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +18 -18
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +2 -2
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +1308 -1311
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +1294 -1297
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +2194 -2194
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +2193 -2193
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +3 -3
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +3 -3
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +34 -34
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +33 -33
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +221 -223
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +220 -222
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +1 -1
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +3 -3
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +5 -5
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +1 -1
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +6 -6
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +5 -5
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +10 -10
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +16 -16
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +412 -412
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +189 -189
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/plugin.cjs +20 -19
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/plugin.mjs.map +1 -1
- package/dist/types/runtime.cjs +1 -0
- package/dist/types/runtime.d.cts.map +1 -1
- package/dist/types/runtime.d.mts.map +1 -1
- package/dist/types/runtime.mjs.map +1 -1
- package/package.json +45 -26
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -38
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -7
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -20
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -64
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -17
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -33
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.cjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs +0 -29
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.cjs +0 -122
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs +0 -123
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs +0 -9
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs.map +0 -1
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +0 -1
package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
|
|
3
3
|
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
4
|
-
function e(e
|
|
5
|
-
return e
|
|
4
|
+
function e(e) {
|
|
5
|
+
return e == null;
|
|
6
6
|
}
|
|
7
|
-
function t(e
|
|
8
|
-
return typeof e
|
|
7
|
+
function t(e) {
|
|
8
|
+
return typeof e == `object` && !!e;
|
|
9
9
|
}
|
|
10
|
-
function n(t
|
|
11
|
-
return Array.isArray(t
|
|
10
|
+
function n(t) {
|
|
11
|
+
return Array.isArray(t) ? t : e(t) ? [] : [t];
|
|
12
12
|
}
|
|
13
|
-
function r(e
|
|
14
|
-
var n
|
|
15
|
-
if (t
|
|
16
|
-
return e
|
|
13
|
+
function r(e, t) {
|
|
14
|
+
var n, r, i, a;
|
|
15
|
+
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
16
|
+
return e;
|
|
17
17
|
}
|
|
18
|
-
function i(e
|
|
19
|
-
var n
|
|
20
|
-
for (r
|
|
21
|
-
return n
|
|
18
|
+
function i(e, t) {
|
|
19
|
+
var n = ``, r;
|
|
20
|
+
for (r = 0; r < t; r += 1) n += e;
|
|
21
|
+
return n;
|
|
22
22
|
}
|
|
23
|
-
function a(e
|
|
24
|
-
return e
|
|
23
|
+
function a(e) {
|
|
24
|
+
return e === 0 && 1 / e == -Infinity;
|
|
25
25
|
}
|
|
26
26
|
var o = {
|
|
27
27
|
isNothing: e,
|
|
@@ -31,42 +31,42 @@ var o = {
|
|
|
31
31
|
isNegativeZero: a,
|
|
32
32
|
extend: r
|
|
33
33
|
};
|
|
34
|
-
function s(e
|
|
35
|
-
var n
|
|
36
|
-
return e
|
|
34
|
+
function s(e, t) {
|
|
35
|
+
var n = ``, r = e.reason || `(unknown reason)`;
|
|
36
|
+
return e.mark ? (e.mark.name && (n += `in "` + e.mark.name + `" `), n += `(` + (e.mark.line + 1) + `:` + (e.mark.column + 1) + `)`, !t && e.mark.snippet && (n += `
|
|
37
37
|
|
|
38
|
-
` + e
|
|
38
|
+
` + e.mark.snippet), r + ` ` + n) : r;
|
|
39
39
|
}
|
|
40
|
-
function c(e
|
|
41
|
-
Error.call(this), this.name = `YAMLException`, this.reason = e
|
|
40
|
+
function c(e, t) {
|
|
41
|
+
Error.call(this), this.name = `YAMLException`, this.reason = e, this.mark = t, this.message = s(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack || ``;
|
|
42
42
|
}
|
|
43
|
-
c.prototype = Object.create(Error.prototype), c.prototype.constructor = c, c.prototype.toString = function(e
|
|
44
|
-
return this.name + `: ` + s(this, e
|
|
43
|
+
c.prototype = Object.create(Error.prototype), c.prototype.constructor = c, c.prototype.toString = function(e) {
|
|
44
|
+
return this.name + `: ` + s(this, e);
|
|
45
45
|
};
|
|
46
46
|
var l = c;
|
|
47
|
-
function u(e
|
|
48
|
-
var a
|
|
49
|
-
return r
|
|
50
|
-
str: a
|
|
51
|
-
pos: r
|
|
47
|
+
function u(e, t, n, r, i) {
|
|
48
|
+
var a = ``, o = ``, s = Math.floor(i / 2) - 1;
|
|
49
|
+
return r - t > s && (a = ` ... `, t = r - s + a.length), n - r > s && (o = ` ...`, n = r + s - o.length), {
|
|
50
|
+
str: a + e.slice(t, n).replace(/\t/g, `→`) + o,
|
|
51
|
+
pos: r - t + a.length
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function d(e
|
|
55
|
-
return o.repeat(` `, t
|
|
56
|
-
}
|
|
57
|
-
function f(e
|
|
58
|
-
if (t
|
|
59
|
-
t
|
|
60
|
-
for (var n
|
|
61
|
-
s
|
|
62
|
-
var c
|
|
63
|
-
for (l
|
|
64
|
-
` + c
|
|
65
|
-
for (f
|
|
66
|
-
`, c
|
|
67
|
-
`, l
|
|
54
|
+
function d(e, t) {
|
|
55
|
+
return o.repeat(` `, t - e.length) + e;
|
|
56
|
+
}
|
|
57
|
+
function f(e, t) {
|
|
58
|
+
if (t = Object.create(t || null), !e.buffer) return null;
|
|
59
|
+
t.maxLength ||= 79, typeof t.indent != `number` && (t.indent = 1), typeof t.linesBefore != `number` && (t.linesBefore = 3), typeof t.linesAfter != `number` && (t.linesAfter = 2);
|
|
60
|
+
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, s = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && s < 0 && (s = r.length - 2);
|
|
61
|
+
s < 0 && (s = r.length - 1);
|
|
62
|
+
var c = ``, l, f, p = Math.min(e.line + t.linesAfter, i.length).toString().length, m = t.maxLength - (t.indent + p + 3);
|
|
63
|
+
for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) f = u(e.buffer, r[s - l], i[s - l], e.position - (r[s] - r[s - l]), m), c = o.repeat(` `, t.indent) + d((e.line - l + 1).toString(), p) + ` | ` + f.str + `
|
|
64
|
+
` + c;
|
|
65
|
+
for (f = u(e.buffer, r[s], i[s], e.position, m), c += o.repeat(` `, t.indent) + d((e.line + 1).toString(), p) + ` | ` + f.str + `
|
|
66
|
+
`, c += o.repeat(`-`, t.indent + p + 3 + f.pos) + `^
|
|
67
|
+
`, l = 1; l <= t.linesAfter && !(s + l >= i.length); l++) f = u(e.buffer, r[s + l], i[s + l], e.position - (r[s] - r[s + l]), m), c += o.repeat(` `, t.indent) + d((e.line + l + 1).toString(), p) + ` | ` + f.str + `
|
|
68
68
|
`;
|
|
69
|
-
return c
|
|
69
|
+
return c.replace(/\n$/, ``);
|
|
70
70
|
}
|
|
71
71
|
var p = f, m = [
|
|
72
72
|
`kind`,
|
|
@@ -84,35 +84,35 @@ var p = f, m = [
|
|
|
84
84
|
`sequence`,
|
|
85
85
|
`mapping`
|
|
86
86
|
];
|
|
87
|
-
function g(e
|
|
88
|
-
var t
|
|
89
|
-
return e
|
|
90
|
-
e
|
|
91
|
-
t
|
|
87
|
+
function g(e) {
|
|
88
|
+
var t = {};
|
|
89
|
+
return e !== null && Object.keys(e).forEach(function(n) {
|
|
90
|
+
e[n].forEach(function(e) {
|
|
91
|
+
t[String(e)] = n;
|
|
92
92
|
});
|
|
93
|
-
}), t
|
|
93
|
+
}), t;
|
|
94
94
|
}
|
|
95
|
-
function _(e
|
|
96
|
-
if (t
|
|
97
|
-
if (m.indexOf(t
|
|
98
|
-
}), this.options = t
|
|
95
|
+
function _(e, t) {
|
|
96
|
+
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
97
|
+
if (m.indexOf(t) === -1) throw new l(`Unknown option "` + t + `" is met in definition of "` + e + `" YAML type.`);
|
|
98
|
+
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
99
99
|
return !0;
|
|
100
|
-
}, this.construct = t
|
|
101
|
-
return e
|
|
102
|
-
}, this.instanceOf = t
|
|
100
|
+
}, this.construct = t.construct || function(e) {
|
|
101
|
+
return e;
|
|
102
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = g(t.styleAliases || null), h.indexOf(this.kind) === -1) throw new l(`Unknown kind "` + this.kind + `" is specified for "` + e + `" YAML type.`);
|
|
103
103
|
}
|
|
104
104
|
var v = _;
|
|
105
|
-
function ee(e
|
|
106
|
-
var n
|
|
107
|
-
return e
|
|
108
|
-
var t
|
|
109
|
-
n
|
|
110
|
-
n
|
|
111
|
-
}), n
|
|
112
|
-
}), n
|
|
105
|
+
function ee(e, t) {
|
|
106
|
+
var n = [];
|
|
107
|
+
return e[t].forEach(function(e) {
|
|
108
|
+
var t = n.length;
|
|
109
|
+
n.forEach(function(n, r) {
|
|
110
|
+
n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
|
|
111
|
+
}), n[t] = e;
|
|
112
|
+
}), n;
|
|
113
113
|
}
|
|
114
114
|
function te() {
|
|
115
|
-
var e
|
|
115
|
+
var e = {
|
|
116
116
|
scalar: {},
|
|
117
117
|
sequence: {},
|
|
118
118
|
mapping: {},
|
|
@@ -123,62 +123,62 @@ function te() {
|
|
|
123
123
|
mapping: [],
|
|
124
124
|
fallback: []
|
|
125
125
|
}
|
|
126
|
-
}, t
|
|
127
|
-
function r
|
|
128
|
-
t
|
|
126
|
+
}, t, n;
|
|
127
|
+
function r(t) {
|
|
128
|
+
t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
|
|
129
129
|
}
|
|
130
|
-
for (t
|
|
131
|
-
return e
|
|
130
|
+
for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
131
|
+
return e;
|
|
132
132
|
}
|
|
133
|
-
function y(e
|
|
134
|
-
return this.extend(e
|
|
133
|
+
function y(e) {
|
|
134
|
+
return this.extend(e);
|
|
135
135
|
}
|
|
136
|
-
y.prototype.extend = function(e
|
|
137
|
-
var t
|
|
138
|
-
if (e
|
|
139
|
-
else if (Array.isArray(e
|
|
140
|
-
else if (e
|
|
136
|
+
y.prototype.extend = function(e) {
|
|
137
|
+
var t = [], n = [];
|
|
138
|
+
if (e instanceof v) n.push(e);
|
|
139
|
+
else if (Array.isArray(e)) n = n.concat(e);
|
|
140
|
+
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
141
141
|
else throw new l(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);
|
|
142
|
-
t
|
|
143
|
-
if (!(e
|
|
144
|
-
if (e
|
|
145
|
-
if (e
|
|
146
|
-
}), n
|
|
147
|
-
if (!(e
|
|
142
|
+
t.forEach(function(e) {
|
|
143
|
+
if (!(e instanceof v)) throw new l(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);
|
|
144
|
+
if (e.loadKind && e.loadKind !== `scalar`) throw new l(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);
|
|
145
|
+
if (e.multi) throw new l(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`);
|
|
146
|
+
}), n.forEach(function(e) {
|
|
147
|
+
if (!(e instanceof v)) throw new l(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);
|
|
148
148
|
});
|
|
149
|
-
var r
|
|
150
|
-
return r
|
|
149
|
+
var r = Object.create(y.prototype);
|
|
150
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = ee(r, `implicit`), r.compiledExplicit = ee(r, `explicit`), r.compiledTypeMap = te(r.compiledImplicit, r.compiledExplicit), r;
|
|
151
151
|
};
|
|
152
152
|
var ne = new y({ explicit: [
|
|
153
153
|
new v(`tag:yaml.org,2002:str`, {
|
|
154
154
|
kind: `scalar`,
|
|
155
|
-
construct: function(e
|
|
156
|
-
return e
|
|
155
|
+
construct: function(e) {
|
|
156
|
+
return e === null ? `` : e;
|
|
157
157
|
}
|
|
158
158
|
}),
|
|
159
159
|
new v(`tag:yaml.org,2002:seq`, {
|
|
160
160
|
kind: `sequence`,
|
|
161
|
-
construct: function(e
|
|
162
|
-
return e
|
|
161
|
+
construct: function(e) {
|
|
162
|
+
return e === null ? [] : e;
|
|
163
163
|
}
|
|
164
164
|
}),
|
|
165
165
|
new v(`tag:yaml.org,2002:map`, {
|
|
166
166
|
kind: `mapping`,
|
|
167
|
-
construct: function(e
|
|
168
|
-
return e
|
|
167
|
+
construct: function(e) {
|
|
168
|
+
return e === null ? {} : e;
|
|
169
169
|
}
|
|
170
170
|
})
|
|
171
171
|
] });
|
|
172
|
-
function re(e
|
|
173
|
-
if (e
|
|
174
|
-
var t
|
|
175
|
-
return t
|
|
172
|
+
function re(e) {
|
|
173
|
+
if (e === null) return !0;
|
|
174
|
+
var t = e.length;
|
|
175
|
+
return t === 1 && e === `~` || t === 4 && (e === `null` || e === `Null` || e === `NULL`);
|
|
176
176
|
}
|
|
177
177
|
function ie() {
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
180
|
-
function ae(e
|
|
181
|
-
return e
|
|
180
|
+
function ae(e) {
|
|
181
|
+
return e === null;
|
|
182
182
|
}
|
|
183
183
|
var oe = new v(`tag:yaml.org,2002:null`, {
|
|
184
184
|
kind: `scalar`,
|
|
@@ -204,16 +204,16 @@ var oe = new v(`tag:yaml.org,2002:null`, {
|
|
|
204
204
|
},
|
|
205
205
|
defaultStyle: `lowercase`
|
|
206
206
|
});
|
|
207
|
-
function se(e
|
|
208
|
-
if (e
|
|
209
|
-
var t
|
|
210
|
-
return t
|
|
207
|
+
function se(e) {
|
|
208
|
+
if (e === null) return !1;
|
|
209
|
+
var t = e.length;
|
|
210
|
+
return t === 4 && (e === `true` || e === `True` || e === `TRUE`) || t === 5 && (e === `false` || e === `False` || e === `FALSE`);
|
|
211
211
|
}
|
|
212
|
-
function ce(e
|
|
213
|
-
return e
|
|
212
|
+
function ce(e) {
|
|
213
|
+
return e === `true` || e === `True` || e === `TRUE`;
|
|
214
214
|
}
|
|
215
|
-
function le(e
|
|
216
|
-
return Object.prototype.toString.call(e
|
|
215
|
+
function le(e) {
|
|
216
|
+
return Object.prototype.toString.call(e) === `[object Boolean]`;
|
|
217
217
|
}
|
|
218
218
|
var ue = new v(`tag:yaml.org,2002:bool`, {
|
|
219
219
|
kind: `scalar`,
|
|
@@ -221,74 +221,74 @@ var ue = new v(`tag:yaml.org,2002:bool`, {
|
|
|
221
221
|
construct: ce,
|
|
222
222
|
predicate: le,
|
|
223
223
|
represent: {
|
|
224
|
-
lowercase: function(e
|
|
225
|
-
return e
|
|
224
|
+
lowercase: function(e) {
|
|
225
|
+
return e ? `true` : `false`;
|
|
226
226
|
},
|
|
227
|
-
uppercase: function(e
|
|
228
|
-
return e
|
|
227
|
+
uppercase: function(e) {
|
|
228
|
+
return e ? `TRUE` : `FALSE`;
|
|
229
229
|
},
|
|
230
|
-
camelcase: function(e
|
|
231
|
-
return e
|
|
230
|
+
camelcase: function(e) {
|
|
231
|
+
return e ? `True` : `False`;
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
defaultStyle: `lowercase`
|
|
235
235
|
});
|
|
236
|
-
function de(e
|
|
237
|
-
return 48 <= e
|
|
238
|
-
}
|
|
239
|
-
function fe(e
|
|
240
|
-
return 48 <= e
|
|
241
|
-
}
|
|
242
|
-
function pe(e
|
|
243
|
-
return 48 <= e
|
|
244
|
-
}
|
|
245
|
-
function me(e
|
|
246
|
-
if (e
|
|
247
|
-
var t
|
|
248
|
-
if (!t
|
|
249
|
-
if (i
|
|
250
|
-
if (n
|
|
251
|
-
if (i
|
|
252
|
-
for (n
|
|
253
|
-
if (i
|
|
254
|
-
r
|
|
236
|
+
function de(e) {
|
|
237
|
+
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
238
|
+
}
|
|
239
|
+
function fe(e) {
|
|
240
|
+
return 48 <= e && e <= 55;
|
|
241
|
+
}
|
|
242
|
+
function pe(e) {
|
|
243
|
+
return 48 <= e && e <= 57;
|
|
244
|
+
}
|
|
245
|
+
function me(e) {
|
|
246
|
+
if (e === null) return !1;
|
|
247
|
+
var t = e.length, n = 0, r = !1, i;
|
|
248
|
+
if (!t) return !1;
|
|
249
|
+
if (i = e[n], (i === `-` || i === `+`) && (i = e[++n]), i === `0`) {
|
|
250
|
+
if (n + 1 === t) return !0;
|
|
251
|
+
if (i = e[++n], i === `b`) {
|
|
252
|
+
for (n++; n < t; n++) if (i = e[n], i !== `_`) {
|
|
253
|
+
if (i !== `0` && i !== `1`) return !1;
|
|
254
|
+
r = !0;
|
|
255
255
|
}
|
|
256
|
-
return r
|
|
256
|
+
return r && i !== `_`;
|
|
257
257
|
}
|
|
258
|
-
if (i
|
|
259
|
-
for (n
|
|
260
|
-
if (!de(e
|
|
261
|
-
r
|
|
258
|
+
if (i === `x`) {
|
|
259
|
+
for (n++; n < t; n++) if (i = e[n], i !== `_`) {
|
|
260
|
+
if (!de(e.charCodeAt(n))) return !1;
|
|
261
|
+
r = !0;
|
|
262
262
|
}
|
|
263
|
-
return r
|
|
263
|
+
return r && i !== `_`;
|
|
264
264
|
}
|
|
265
|
-
if (i
|
|
266
|
-
for (n
|
|
267
|
-
if (!fe(e
|
|
268
|
-
r
|
|
265
|
+
if (i === `o`) {
|
|
266
|
+
for (n++; n < t; n++) if (i = e[n], i !== `_`) {
|
|
267
|
+
if (!fe(e.charCodeAt(n))) return !1;
|
|
268
|
+
r = !0;
|
|
269
269
|
}
|
|
270
|
-
return r
|
|
270
|
+
return r && i !== `_`;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
if (i
|
|
274
|
-
for (; n
|
|
275
|
-
if (!pe(e
|
|
276
|
-
r
|
|
273
|
+
if (i === `_`) return !1;
|
|
274
|
+
for (; n < t; n++) if (i = e[n], i !== `_`) {
|
|
275
|
+
if (!pe(e.charCodeAt(n))) return !1;
|
|
276
|
+
r = !0;
|
|
277
277
|
}
|
|
278
|
-
return !(!r
|
|
279
|
-
}
|
|
280
|
-
function he(e
|
|
281
|
-
var t
|
|
282
|
-
if (t
|
|
283
|
-
if (r
|
|
284
|
-
if (t
|
|
285
|
-
if (t
|
|
286
|
-
if (t
|
|
278
|
+
return !(!r || i === `_`);
|
|
279
|
+
}
|
|
280
|
+
function he(e) {
|
|
281
|
+
var t = e, n = 1, r;
|
|
282
|
+
if (t.indexOf(`_`) !== -1 && (t = t.replace(/_/g, ``)), r = t[0], (r === `-` || r === `+`) && (r === `-` && (n = -1), t = t.slice(1), r = t[0]), t === `0`) return 0;
|
|
283
|
+
if (r === `0`) {
|
|
284
|
+
if (t[1] === `b`) return n * parseInt(t.slice(2), 2);
|
|
285
|
+
if (t[1] === `x`) return n * parseInt(t.slice(2), 16);
|
|
286
|
+
if (t[1] === `o`) return n * parseInt(t.slice(2), 8);
|
|
287
287
|
}
|
|
288
|
-
return n
|
|
288
|
+
return n * parseInt(t, 10);
|
|
289
289
|
}
|
|
290
|
-
function ge(e
|
|
291
|
-
return Object.prototype.toString.call(e
|
|
290
|
+
function ge(e) {
|
|
291
|
+
return Object.prototype.toString.call(e) === `[object Number]` && e % 1 == 0 && !o.isNegativeZero(e);
|
|
292
292
|
}
|
|
293
293
|
var _e = new v(`tag:yaml.org,2002:int`, {
|
|
294
294
|
kind: `scalar`,
|
|
@@ -296,17 +296,17 @@ var _e = new v(`tag:yaml.org,2002:int`, {
|
|
|
296
296
|
construct: he,
|
|
297
297
|
predicate: ge,
|
|
298
298
|
represent: {
|
|
299
|
-
binary: function(e
|
|
300
|
-
return e
|
|
299
|
+
binary: function(e) {
|
|
300
|
+
return e >= 0 ? `0b` + e.toString(2) : `-0b` + e.toString(2).slice(1);
|
|
301
301
|
},
|
|
302
|
-
octal: function(e
|
|
303
|
-
return e
|
|
302
|
+
octal: function(e) {
|
|
303
|
+
return e >= 0 ? `0o` + e.toString(8) : `-0o` + e.toString(8).slice(1);
|
|
304
304
|
},
|
|
305
|
-
decimal: function(e
|
|
306
|
-
return e
|
|
305
|
+
decimal: function(e) {
|
|
306
|
+
return e.toString(10);
|
|
307
307
|
},
|
|
308
|
-
hexadecimal: function(e
|
|
309
|
-
return e
|
|
308
|
+
hexadecimal: function(e) {
|
|
309
|
+
return e >= 0 ? `0x` + e.toString(16).toUpperCase() : `-0x` + e.toString(16).toUpperCase().slice(1);
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
defaultStyle: `decimal`,
|
|
@@ -317,36 +317,36 @@ var _e = new v(`tag:yaml.org,2002:int`, {
|
|
|
317
317
|
hexadecimal: [16, `hex`]
|
|
318
318
|
}
|
|
319
319
|
}), ve = RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);
|
|
320
|
-
function ye(e
|
|
321
|
-
return !(e
|
|
320
|
+
function ye(e) {
|
|
321
|
+
return !(e === null || !ve.test(e) || e[e.length - 1] === `_`);
|
|
322
322
|
}
|
|
323
|
-
function be(e
|
|
324
|
-
var t
|
|
325
|
-
return `+-`.indexOf(t
|
|
323
|
+
function be(e) {
|
|
324
|
+
var t = e.replace(/_/g, ``).toLowerCase(), n = t[0] === `-` ? -1 : 1;
|
|
325
|
+
return `+-`.indexOf(t[0]) >= 0 && (t = t.slice(1)), t === `.inf` ? n === 1 ? Infinity : -Infinity : t === `.nan` ? NaN : n * parseFloat(t, 10);
|
|
326
326
|
}
|
|
327
327
|
var xe = /^[-+]?[0-9]+e/;
|
|
328
|
-
function Se(e
|
|
329
|
-
var n
|
|
330
|
-
if (isNaN(e
|
|
328
|
+
function Se(e, t) {
|
|
329
|
+
var n;
|
|
330
|
+
if (isNaN(e)) switch (t) {
|
|
331
331
|
case `lowercase`: return `.nan`;
|
|
332
332
|
case `uppercase`: return `.NAN`;
|
|
333
333
|
case `camelcase`: return `.NaN`;
|
|
334
334
|
}
|
|
335
|
-
else if (e
|
|
335
|
+
else if (e === Infinity) switch (t) {
|
|
336
336
|
case `lowercase`: return `.inf`;
|
|
337
337
|
case `uppercase`: return `.INF`;
|
|
338
338
|
case `camelcase`: return `.Inf`;
|
|
339
339
|
}
|
|
340
|
-
else if (e
|
|
340
|
+
else if (e === -Infinity) switch (t) {
|
|
341
341
|
case `lowercase`: return `-.inf`;
|
|
342
342
|
case `uppercase`: return `-.INF`;
|
|
343
343
|
case `camelcase`: return `-.Inf`;
|
|
344
344
|
}
|
|
345
|
-
else if (o.isNegativeZero(e
|
|
346
|
-
return n
|
|
345
|
+
else if (o.isNegativeZero(e)) return `-0.0`;
|
|
346
|
+
return n = e.toString(10), xe.test(n) ? n.replace(`e`, `.e`) : n;
|
|
347
347
|
}
|
|
348
|
-
function Ce(e
|
|
349
|
-
return Object.prototype.toString.call(e
|
|
348
|
+
function Ce(e) {
|
|
349
|
+
return Object.prototype.toString.call(e) === `[object Number]` && (e % 1 != 0 || o.isNegativeZero(e));
|
|
350
350
|
}
|
|
351
351
|
var we = new v(`tag:yaml.org,2002:float`, {
|
|
352
352
|
kind: `scalar`,
|
|
@@ -361,21 +361,21 @@ var we = new v(`tag:yaml.org,2002:float`, {
|
|
|
361
361
|
_e,
|
|
362
362
|
we
|
|
363
363
|
] }), Ee = RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`), De = 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]))?))?$`);
|
|
364
|
-
function Oe(e
|
|
365
|
-
return e
|
|
366
|
-
}
|
|
367
|
-
function ke(e
|
|
368
|
-
var t
|
|
369
|
-
if (t
|
|
370
|
-
if (n
|
|
371
|
-
if (a
|
|
372
|
-
for (c
|
|
373
|
-
c
|
|
364
|
+
function Oe(e) {
|
|
365
|
+
return e === null ? !1 : Ee.exec(e) !== null || De.exec(e) !== null;
|
|
366
|
+
}
|
|
367
|
+
function ke(e) {
|
|
368
|
+
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
369
|
+
if (t = Ee.exec(e), t === null && (t = De.exec(e)), t === null) throw Error(`Date resolve error`);
|
|
370
|
+
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
371
|
+
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
372
|
+
for (c = t[7].slice(0, 3); c.length < 3;) c += `0`;
|
|
373
|
+
c = +c;
|
|
374
374
|
}
|
|
375
|
-
return t
|
|
375
|
+
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === `-` && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
376
376
|
}
|
|
377
|
-
function Ae(e
|
|
378
|
-
return e
|
|
377
|
+
function Ae(e) {
|
|
378
|
+
return e.toISOString();
|
|
379
379
|
}
|
|
380
380
|
var je = new v(`tag:yaml.org,2002:timestamp`, {
|
|
381
381
|
kind: `scalar`,
|
|
@@ -384,35 +384,35 @@ var je = new v(`tag:yaml.org,2002:timestamp`, {
|
|
|
384
384
|
instanceOf: Date,
|
|
385
385
|
represent: Ae
|
|
386
386
|
});
|
|
387
|
-
function Me(e
|
|
388
|
-
return e
|
|
387
|
+
function Me(e) {
|
|
388
|
+
return e === `<<` || e === null;
|
|
389
389
|
}
|
|
390
390
|
var Ne = new v(`tag:yaml.org,2002:merge`, {
|
|
391
391
|
kind: `scalar`,
|
|
392
392
|
resolve: Me
|
|
393
393
|
}), b = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
394
394
|
\r`;
|
|
395
|
-
function Pe(e
|
|
396
|
-
if (e
|
|
397
|
-
var t
|
|
398
|
-
for (n
|
|
399
|
-
if (t
|
|
400
|
-
r
|
|
395
|
+
function Pe(e) {
|
|
396
|
+
if (e === null) return !1;
|
|
397
|
+
var t, n, r = 0, i = e.length, a = b;
|
|
398
|
+
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
399
|
+
if (t < 0) return !1;
|
|
400
|
+
r += 6;
|
|
401
401
|
}
|
|
402
|
-
return r
|
|
402
|
+
return r % 8 == 0;
|
|
403
403
|
}
|
|
404
|
-
function Fe(e
|
|
405
|
-
var t
|
|
406
|
-
for (t
|
|
407
|
-
return n
|
|
404
|
+
function Fe(e) {
|
|
405
|
+
var t, n, r = e.replace(/[\r\n=]/g, ``), i = r.length, a = b, o = 0, s = [];
|
|
406
|
+
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
407
|
+
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
408
408
|
}
|
|
409
|
-
function Ie(e
|
|
410
|
-
var t
|
|
411
|
-
for (r
|
|
412
|
-
return i
|
|
409
|
+
function Ie(e) {
|
|
410
|
+
var t = ``, n = 0, r, i, a = e.length, o = b;
|
|
411
|
+
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
412
|
+
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
413
413
|
}
|
|
414
|
-
function Le(e
|
|
415
|
-
return Object.prototype.toString.call(e
|
|
414
|
+
function Le(e) {
|
|
415
|
+
return Object.prototype.toString.call(e) === `[object Uint8Array]`;
|
|
416
416
|
}
|
|
417
417
|
var Re = new v(`tag:yaml.org,2002:binary`, {
|
|
418
418
|
kind: `scalar`,
|
|
@@ -421,55 +421,55 @@ var Re = new v(`tag:yaml.org,2002:binary`, {
|
|
|
421
421
|
predicate: Le,
|
|
422
422
|
represent: Ie
|
|
423
423
|
}), ze = Object.prototype.hasOwnProperty, Be = Object.prototype.toString;
|
|
424
|
-
function Ve(e
|
|
425
|
-
if (e
|
|
426
|
-
var t
|
|
427
|
-
for (n
|
|
428
|
-
if (i
|
|
429
|
-
for (a
|
|
424
|
+
function Ve(e) {
|
|
425
|
+
if (e === null) return !0;
|
|
426
|
+
var t = [], n, r, i, a, o, s = e;
|
|
427
|
+
for (n = 0, r = s.length; n < r; n += 1) {
|
|
428
|
+
if (i = s[n], o = !1, Be.call(i) !== `[object Object]`) return !1;
|
|
429
|
+
for (a in i) if (ze.call(i, a)) if (!o) o = !0;
|
|
430
430
|
else return !1;
|
|
431
|
-
if (!o
|
|
432
|
-
if (t
|
|
431
|
+
if (!o) return !1;
|
|
432
|
+
if (t.indexOf(a) === -1) t.push(a);
|
|
433
433
|
else return !1;
|
|
434
434
|
}
|
|
435
435
|
return !0;
|
|
436
436
|
}
|
|
437
|
-
function He(e
|
|
438
|
-
return e
|
|
437
|
+
function He(e) {
|
|
438
|
+
return e === null ? [] : e;
|
|
439
439
|
}
|
|
440
440
|
var Ue = new v(`tag:yaml.org,2002:omap`, {
|
|
441
441
|
kind: `sequence`,
|
|
442
442
|
resolve: Ve,
|
|
443
443
|
construct: He
|
|
444
444
|
}), We = Object.prototype.toString;
|
|
445
|
-
function Ge(e
|
|
446
|
-
if (e
|
|
447
|
-
var t
|
|
448
|
-
for (a
|
|
449
|
-
if (r
|
|
450
|
-
a
|
|
445
|
+
function Ge(e) {
|
|
446
|
+
if (e === null) return !0;
|
|
447
|
+
var t, n, r, i, a, o = e;
|
|
448
|
+
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
449
|
+
if (r = o[t], We.call(r) !== `[object Object]` || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
450
|
+
a[t] = [i[0], r[i[0]]];
|
|
451
451
|
}
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
|
-
function Ke(e
|
|
455
|
-
if (e
|
|
456
|
-
var t
|
|
457
|
-
for (a
|
|
458
|
-
return a
|
|
454
|
+
function Ke(e) {
|
|
455
|
+
if (e === null) return [];
|
|
456
|
+
var t, n, r, i, a, o = e;
|
|
457
|
+
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
458
|
+
return a;
|
|
459
459
|
}
|
|
460
460
|
var qe = new v(`tag:yaml.org,2002:pairs`, {
|
|
461
461
|
kind: `sequence`,
|
|
462
462
|
resolve: Ge,
|
|
463
463
|
construct: Ke
|
|
464
464
|
}), Je = Object.prototype.hasOwnProperty;
|
|
465
|
-
function Ye(e
|
|
466
|
-
if (e
|
|
467
|
-
var t
|
|
468
|
-
for (t
|
|
465
|
+
function Ye(e) {
|
|
466
|
+
if (e === null) return !0;
|
|
467
|
+
var t, n = e;
|
|
468
|
+
for (t in n) if (Je.call(n, t) && n[t] !== null) return !1;
|
|
469
469
|
return !0;
|
|
470
470
|
}
|
|
471
|
-
function Xe(e
|
|
472
|
-
return e
|
|
471
|
+
function Xe(e) {
|
|
472
|
+
return e === null ? {} : e;
|
|
473
473
|
}
|
|
474
474
|
var Ze = new v(`tag:yaml.org,2002:set`, {
|
|
475
475
|
kind: `mapping`,
|
|
@@ -484,343 +484,343 @@ var Ze = new v(`tag:yaml.org,2002:set`, {
|
|
|
484
484
|
Ze
|
|
485
485
|
]
|
|
486
486
|
}), x = Object.prototype.hasOwnProperty, S = 1, $e = 2, et = 3, C = 4, w = 1, tt = 2, nt = 3, rt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, it = /[\x85\u2028\u2029]/, at = /[,\[\]\{\}]/, ot = /^(?:!|!!|![a-z\-]+!)$/i, st = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
487
|
-
function ct(e
|
|
488
|
-
return Object.prototype.toString.call(e
|
|
487
|
+
function ct(e) {
|
|
488
|
+
return Object.prototype.toString.call(e);
|
|
489
489
|
}
|
|
490
|
-
function T(e
|
|
491
|
-
return e
|
|
490
|
+
function T(e) {
|
|
491
|
+
return e === 10 || e === 13;
|
|
492
492
|
}
|
|
493
|
-
function E(e
|
|
494
|
-
return e
|
|
493
|
+
function E(e) {
|
|
494
|
+
return e === 9 || e === 32;
|
|
495
495
|
}
|
|
496
|
-
function D(e
|
|
497
|
-
return e
|
|
496
|
+
function D(e) {
|
|
497
|
+
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
498
498
|
}
|
|
499
|
-
function O(e
|
|
500
|
-
return e
|
|
499
|
+
function O(e) {
|
|
500
|
+
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
501
501
|
}
|
|
502
|
-
function lt(e
|
|
503
|
-
var t
|
|
504
|
-
return 48 <= e
|
|
502
|
+
function lt(e) {
|
|
503
|
+
var t;
|
|
504
|
+
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
505
505
|
}
|
|
506
|
-
function ut(e
|
|
507
|
-
return e
|
|
506
|
+
function ut(e) {
|
|
507
|
+
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
508
508
|
}
|
|
509
|
-
function dt(e
|
|
510
|
-
return 48 <= e
|
|
509
|
+
function dt(e) {
|
|
510
|
+
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
511
511
|
}
|
|
512
|
-
function ft(e
|
|
513
|
-
return e
|
|
514
|
-
` : e
|
|
512
|
+
function ft(e) {
|
|
513
|
+
return e === 48 ? `\0` : e === 97 ? `\x07` : e === 98 ? `\b` : e === 116 || e === 9 ? ` ` : e === 110 ? `
|
|
514
|
+
` : e === 118 ? `\v` : e === 102 ? `\f` : e === 114 ? `\r` : e === 101 ? `\x1B` : e === 32 ? ` ` : e === 34 ? `"` : e === 47 ? `/` : e === 92 ? `\\` : e === 78 ? `
` : e === 95 ? `\xA0` : e === 76 ? `\u2028` : e === 80 ? `\u2029` : ``;
|
|
515
515
|
}
|
|
516
|
-
function pt(e
|
|
517
|
-
return e
|
|
516
|
+
function pt(e) {
|
|
517
|
+
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
518
518
|
}
|
|
519
|
-
function mt(e
|
|
520
|
-
t
|
|
519
|
+
function mt(e, t, n) {
|
|
520
|
+
t === `__proto__` ? Object.defineProperty(e, t, {
|
|
521
521
|
configurable: !0,
|
|
522
522
|
enumerable: !0,
|
|
523
523
|
writable: !0,
|
|
524
|
-
value: n
|
|
525
|
-
}) : e
|
|
524
|
+
value: n
|
|
525
|
+
}) : e[t] = n;
|
|
526
526
|
}
|
|
527
527
|
for (var ht = Array(256), gt = Array(256), k = 0; k < 256; k++) ht[k] = ft(k) ? 1 : 0, gt[k] = ft(k);
|
|
528
|
-
function _t(e
|
|
529
|
-
this.input = e
|
|
530
|
-
}
|
|
531
|
-
function vt(e
|
|
532
|
-
var n
|
|
533
|
-
name: e
|
|
534
|
-
buffer: e
|
|
535
|
-
position: e
|
|
536
|
-
line: e
|
|
537
|
-
column: e
|
|
528
|
+
function _t(e, t) {
|
|
529
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Qe, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
530
|
+
}
|
|
531
|
+
function vt(e, t) {
|
|
532
|
+
var n = {
|
|
533
|
+
name: e.filename,
|
|
534
|
+
buffer: e.input.slice(0, -1),
|
|
535
|
+
position: e.position,
|
|
536
|
+
line: e.line,
|
|
537
|
+
column: e.position - e.lineStart
|
|
538
538
|
};
|
|
539
|
-
return n
|
|
539
|
+
return n.snippet = p(n), new l(t, n);
|
|
540
540
|
}
|
|
541
|
-
function A(e
|
|
542
|
-
throw vt(e
|
|
541
|
+
function A(e, t) {
|
|
542
|
+
throw vt(e, t);
|
|
543
543
|
}
|
|
544
|
-
function j(e
|
|
545
|
-
e
|
|
544
|
+
function j(e, t) {
|
|
545
|
+
e.onWarning && e.onWarning.call(null, vt(e, t));
|
|
546
546
|
}
|
|
547
547
|
var yt = {
|
|
548
|
-
YAML: function(e
|
|
549
|
-
var r
|
|
550
|
-
e
|
|
548
|
+
YAML: function(e, t, n) {
|
|
549
|
+
var r, i, a;
|
|
550
|
+
e.version !== null && A(e, `duplication of %YAML directive`), n.length !== 1 && A(e, `YAML directive accepts exactly one argument`), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && A(e, `ill-formed argument of the YAML directive`), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && A(e, `unacceptable YAML version of the document`), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && j(e, `unsupported YAML version of the document`);
|
|
551
551
|
},
|
|
552
|
-
TAG: function(e
|
|
553
|
-
var r
|
|
554
|
-
n
|
|
552
|
+
TAG: function(e, t, n) {
|
|
553
|
+
var r, i;
|
|
554
|
+
n.length !== 2 && A(e, `TAG directive accepts exactly two arguments`), r = n[0], i = n[1], ot.test(r) || A(e, `ill-formed tag handle (first argument) of the TAG directive`), x.call(e.tagMap, r) && A(e, `there is a previously declared suffix for "` + r + `" tag handle`), st.test(i) || A(e, `ill-formed tag prefix (second argument) of the TAG directive`);
|
|
555
555
|
try {
|
|
556
|
-
i
|
|
556
|
+
i = decodeURIComponent(i);
|
|
557
557
|
} catch {
|
|
558
|
-
A(e
|
|
558
|
+
A(e, `tag prefix is malformed: ` + i);
|
|
559
559
|
}
|
|
560
|
-
e
|
|
560
|
+
e.tagMap[r] = i;
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
|
-
function M(e
|
|
564
|
-
var i
|
|
565
|
-
if (t
|
|
566
|
-
if (s
|
|
567
|
-
else rt.test(s
|
|
568
|
-
e
|
|
563
|
+
function M(e, t, n, r) {
|
|
564
|
+
var i, a, o, s;
|
|
565
|
+
if (t < n) {
|
|
566
|
+
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || A(e, `expected valid JSON character`);
|
|
567
|
+
else rt.test(s) && A(e, `the stream contains non-printable characters`);
|
|
568
|
+
e.result += s;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
function bt(e
|
|
572
|
-
var i
|
|
573
|
-
for (o.isObject(n
|
|
574
|
-
}
|
|
575
|
-
function N(e
|
|
576
|
-
var l
|
|
577
|
-
if (Array.isArray(i
|
|
578
|
-
if (typeof i
|
|
579
|
-
else bt(e
|
|
580
|
-
else !e
|
|
581
|
-
return t
|
|
582
|
-
}
|
|
583
|
-
function P(e
|
|
584
|
-
var t
|
|
585
|
-
t
|
|
586
|
-
}
|
|
587
|
-
function F(e
|
|
588
|
-
for (var r
|
|
589
|
-
for (; E(i
|
|
590
|
-
if (t
|
|
591
|
-
i
|
|
592
|
-
while (i
|
|
593
|
-
if (T(i
|
|
571
|
+
function bt(e, t, n, r) {
|
|
572
|
+
var i, a, s, c;
|
|
573
|
+
for (o.isObject(n) || A(e, `cannot merge mappings; the provided source object is unacceptable`), i = Object.keys(n), s = 0, c = i.length; s < c; s += 1) a = i[s], x.call(t, a) || (mt(t, a, n[a]), r[a] = !0);
|
|
574
|
+
}
|
|
575
|
+
function N(e, t, n, r, i, a, o, s, c) {
|
|
576
|
+
var l, u;
|
|
577
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && A(e, `nested arrays are not supported inside keys`), typeof i == `object` && ct(i[l]) === `[object Object]` && (i[l] = `[object Object]`);
|
|
578
|
+
if (typeof i == `object` && ct(i) === `[object Object]` && (i = `[object Object]`), i = String(i), t === null && (t = {}), r === `tag:yaml.org,2002:merge`) if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) bt(e, t, a[l], n);
|
|
579
|
+
else bt(e, t, a, n);
|
|
580
|
+
else !e.json && !x.call(n, i) && x.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, A(e, `duplicated mapping key`)), mt(t, i, a), delete n[i];
|
|
581
|
+
return t;
|
|
582
|
+
}
|
|
583
|
+
function P(e) {
|
|
584
|
+
var t = e.input.charCodeAt(e.position);
|
|
585
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, `a line break is expected`), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
586
|
+
}
|
|
587
|
+
function F(e, t, n) {
|
|
588
|
+
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
589
|
+
for (; E(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
590
|
+
if (t && i === 35) do
|
|
591
|
+
i = e.input.charCodeAt(++e.position);
|
|
592
|
+
while (i !== 10 && i !== 13 && i !== 0);
|
|
593
|
+
if (T(i)) for (P(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
594
594
|
else break;
|
|
595
595
|
}
|
|
596
|
-
return n
|
|
597
|
-
}
|
|
598
|
-
function I(e
|
|
599
|
-
var t
|
|
600
|
-
return !!((n
|
|
601
|
-
}
|
|
602
|
-
function L(e
|
|
603
|
-
t
|
|
604
|
-
`, t
|
|
605
|
-
}
|
|
606
|
-
function xt(e
|
|
607
|
-
var r
|
|
608
|
-
if (D(p
|
|
609
|
-
for (e
|
|
610
|
-
if (p
|
|
611
|
-
if (i
|
|
612
|
-
} else if (p
|
|
613
|
-
if (r
|
|
614
|
-
} else if (e
|
|
615
|
-
else if (T(p
|
|
616
|
-
s
|
|
596
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && j(e, `deficient indentation`), r;
|
|
597
|
+
}
|
|
598
|
+
function I(e) {
|
|
599
|
+
var t = e.position, n = e.input.charCodeAt(t);
|
|
600
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || D(n)));
|
|
601
|
+
}
|
|
602
|
+
function L(e, t) {
|
|
603
|
+
t === 1 ? e.result += ` ` : t > 1 && (e.result += o.repeat(`
|
|
604
|
+
`, t - 1));
|
|
605
|
+
}
|
|
606
|
+
function xt(e, t, n) {
|
|
607
|
+
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
608
|
+
if (D(p) || O(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), D(i) || n && O(i))) return !1;
|
|
609
|
+
for (e.kind = `scalar`, e.result = ``, a = o = e.position, s = !1; p !== 0;) {
|
|
610
|
+
if (p === 58) {
|
|
611
|
+
if (i = e.input.charCodeAt(e.position + 1), D(i) || n && O(i)) break;
|
|
612
|
+
} else if (p === 35) {
|
|
613
|
+
if (r = e.input.charCodeAt(e.position - 1), D(r)) break;
|
|
614
|
+
} else if (e.position === e.lineStart && I(e) || n && O(p)) break;
|
|
615
|
+
else if (T(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, F(e, !1, -1), e.lineIndent >= t) {
|
|
616
|
+
s = !0, p = e.input.charCodeAt(e.position);
|
|
617
617
|
continue;
|
|
618
618
|
} else {
|
|
619
|
-
e
|
|
619
|
+
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
620
620
|
break;
|
|
621
621
|
}
|
|
622
|
-
s
|
|
622
|
+
s &&= (M(e, a, o, !1), L(e, e.line - c), a = o = e.position, !1), E(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
623
623
|
}
|
|
624
|
-
return M(e
|
|
624
|
+
return M(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
625
625
|
}
|
|
626
|
-
function St(e
|
|
627
|
-
var n
|
|
628
|
-
if (n
|
|
629
|
-
for (e
|
|
626
|
+
function St(e, t) {
|
|
627
|
+
var n = e.input.charCodeAt(e.position), r, i;
|
|
628
|
+
if (n !== 39) return !1;
|
|
629
|
+
for (e.kind = `scalar`, e.result = ``, e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (M(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
630
630
|
else return !0;
|
|
631
|
-
else T(n
|
|
632
|
-
A(e
|
|
633
|
-
}
|
|
634
|
-
function Ct(e
|
|
635
|
-
var n
|
|
636
|
-
if (s
|
|
637
|
-
for (e
|
|
638
|
-
else if (s
|
|
639
|
-
if (M(e
|
|
640
|
-
else if (s
|
|
641
|
-
else if ((o
|
|
642
|
-
for (i
|
|
643
|
-
e
|
|
644
|
-
} else A(e
|
|
645
|
-
n
|
|
646
|
-
} else T(s
|
|
647
|
-
A(e
|
|
648
|
-
}
|
|
649
|
-
function wt(e
|
|
650
|
-
var n
|
|
651
|
-
if (v
|
|
652
|
-
else if (v
|
|
631
|
+
else T(n) ? (M(e, r, i, !0), L(e, F(e, !1, t)), r = i = e.position) : e.position === e.lineStart && I(e) ? A(e, `unexpected end of the document within a single quoted scalar`) : (e.position++, i = e.position);
|
|
632
|
+
A(e, `unexpected end of the stream within a single quoted scalar`);
|
|
633
|
+
}
|
|
634
|
+
function Ct(e, t) {
|
|
635
|
+
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
636
|
+
if (s !== 34) return !1;
|
|
637
|
+
for (e.kind = `scalar`, e.result = ``, e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return M(e, n, e.position, !0), e.position++, !0;
|
|
638
|
+
else if (s === 92) {
|
|
639
|
+
if (M(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), T(s)) F(e, !1, t);
|
|
640
|
+
else if (s < 256 && ht[s]) e.result += gt[s], e.position++;
|
|
641
|
+
else if ((o = ut(s)) > 0) {
|
|
642
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = lt(s)) >= 0 ? a = (a << 4) + o : A(e, `expected hexadecimal character`);
|
|
643
|
+
e.result += pt(a), e.position++;
|
|
644
|
+
} else A(e, `unknown escape sequence`);
|
|
645
|
+
n = r = e.position;
|
|
646
|
+
} else T(s) ? (M(e, n, r, !0), L(e, F(e, !1, t)), n = r = e.position) : e.position === e.lineStart && I(e) ? A(e, `unexpected end of the document within a double quoted scalar`) : (e.position++, r = e.position);
|
|
647
|
+
A(e, `unexpected end of the stream within a double quoted scalar`);
|
|
648
|
+
}
|
|
649
|
+
function wt(e, t) {
|
|
650
|
+
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
651
|
+
if (v === 91) u = 93, p = !1, s = [];
|
|
652
|
+
else if (v === 123) u = 125, p = !0, s = {};
|
|
653
653
|
else return !1;
|
|
654
|
-
for (e
|
|
655
|
-
if (F(e
|
|
656
|
-
n
|
|
654
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
655
|
+
if (F(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? `mapping` : `sequence`, e.result = s, !0;
|
|
656
|
+
n ? v === 44 && A(e, `expected the node content, but found ','`) : A(e, `missed comma between flow collection entries`), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), D(l) && (d = f = !0, e.position++, F(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, R(e, t, S, !1, !0), g = e.tag, h = e.result, F(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), F(e, !0, t), R(e, t, S, !1, !0), _ = e.result), p ? N(e, s, m, g, h, _, r, i, a) : d ? s.push(N(e, null, m, g, h, _, r, i, a)) : s.push(h), F(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
657
657
|
}
|
|
658
|
-
A(e
|
|
658
|
+
A(e, `unexpected end of the stream within a flow collection`);
|
|
659
659
|
}
|
|
660
|
-
function Tt(e
|
|
661
|
-
var n
|
|
662
|
-
if (f
|
|
663
|
-
else if (f
|
|
660
|
+
function Tt(e, t) {
|
|
661
|
+
var n, r, i = w, a = !1, s = !1, c = t, l = 0, u = !1, d, f = e.input.charCodeAt(e.position);
|
|
662
|
+
if (f === 124) r = !1;
|
|
663
|
+
else if (f === 62) r = !0;
|
|
664
664
|
else return !1;
|
|
665
|
-
for (e
|
|
666
|
-
else if ((d
|
|
665
|
+
for (e.kind = `scalar`, e.result = ``; f !== 0;) if (f = e.input.charCodeAt(++e.position), f === 43 || f === 45) w === i ? i = f === 43 ? nt : tt : A(e, `repeat of a chomping mode identifier`);
|
|
666
|
+
else if ((d = dt(f)) >= 0) d === 0 ? A(e, `bad explicit indentation width of a block scalar; it cannot be less than one`) : s ? A(e, `repeat of an indentation width identifier`) : (c = t + d - 1, s = !0);
|
|
667
667
|
else break;
|
|
668
|
-
if (E(f
|
|
668
|
+
if (E(f)) {
|
|
669
669
|
do
|
|
670
|
-
f
|
|
671
|
-
while (E(f
|
|
672
|
-
if (f
|
|
673
|
-
f
|
|
674
|
-
while (!T(f
|
|
670
|
+
f = e.input.charCodeAt(++e.position);
|
|
671
|
+
while (E(f));
|
|
672
|
+
if (f === 35) do
|
|
673
|
+
f = e.input.charCodeAt(++e.position);
|
|
674
|
+
while (!T(f) && f !== 0);
|
|
675
675
|
}
|
|
676
|
-
for (; f
|
|
677
|
-
for (P(e
|
|
678
|
-
if (!s
|
|
679
|
-
l
|
|
676
|
+
for (; f !== 0;) {
|
|
677
|
+
for (P(e), e.lineIndent = 0, f = e.input.charCodeAt(e.position); (!s || e.lineIndent < c) && f === 32;) e.lineIndent++, f = e.input.charCodeAt(++e.position);
|
|
678
|
+
if (!s && e.lineIndent > c && (c = e.lineIndent), T(f)) {
|
|
679
|
+
l++;
|
|
680
680
|
continue;
|
|
681
681
|
}
|
|
682
|
-
if (e
|
|
683
|
-
i
|
|
684
|
-
`, a
|
|
682
|
+
if (e.lineIndent < c) {
|
|
683
|
+
i === nt ? e.result += o.repeat(`
|
|
684
|
+
`, a ? 1 + l : l) : i === w && a && (e.result += `
|
|
685
685
|
`);
|
|
686
686
|
break;
|
|
687
687
|
}
|
|
688
|
-
for (r
|
|
689
|
-
`, a
|
|
690
|
-
`, l
|
|
691
|
-
`, l
|
|
692
|
-
`, a
|
|
693
|
-
M(e
|
|
688
|
+
for (r ? E(f) ? (u = !0, e.result += o.repeat(`
|
|
689
|
+
`, a ? 1 + l : l)) : u ? (u = !1, e.result += o.repeat(`
|
|
690
|
+
`, l + 1)) : l === 0 ? a && (e.result += ` `) : e.result += o.repeat(`
|
|
691
|
+
`, l) : e.result += o.repeat(`
|
|
692
|
+
`, a ? 1 + l : l), a = !0, s = !0, l = 0, n = e.position; !T(f) && f !== 0;) f = e.input.charCodeAt(++e.position);
|
|
693
|
+
M(e, n, e.position, !1);
|
|
694
694
|
}
|
|
695
695
|
return !0;
|
|
696
696
|
}
|
|
697
|
-
function Et(e
|
|
698
|
-
var n
|
|
699
|
-
if (e
|
|
700
|
-
for (e
|
|
701
|
-
if (s
|
|
702
|
-
a
|
|
697
|
+
function Et(e, t) {
|
|
698
|
+
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
699
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
700
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, `tab characters must not be used in indentation`)), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !D(o))));) {
|
|
701
|
+
if (s = !0, e.position++, F(e, !0, -1) && e.lineIndent <= t) {
|
|
702
|
+
a.push(null), c = e.input.charCodeAt(e.position);
|
|
703
703
|
continue;
|
|
704
704
|
}
|
|
705
|
-
if (n
|
|
706
|
-
else if (e
|
|
705
|
+
if (n = e.line, R(e, t, et, !1, !0), a.push(e.result), F(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) A(e, `bad indentation of a sequence entry`);
|
|
706
|
+
else if (e.lineIndent < t) break;
|
|
707
707
|
}
|
|
708
|
-
return s
|
|
708
|
+
return s ? (e.tag = r, e.anchor = i, e.kind = `sequence`, e.result = a, !0) : !1;
|
|
709
709
|
}
|
|
710
|
-
function Dt(e
|
|
711
|
-
var r
|
|
712
|
-
if (e
|
|
713
|
-
for (e
|
|
714
|
-
if (!g
|
|
710
|
+
function Dt(e, t, n) {
|
|
711
|
+
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
712
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
713
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
714
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, `tab characters must not be used in indentation`)), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && D(r)) v === 63 ? (g && (N(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : A(e, `incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`), e.position += 1, v = r;
|
|
715
715
|
else {
|
|
716
|
-
if (o
|
|
717
|
-
if (e
|
|
718
|
-
for (v
|
|
719
|
-
if (v
|
|
720
|
-
else if (_
|
|
721
|
-
else return e
|
|
722
|
-
} else if (_
|
|
723
|
-
else return e
|
|
716
|
+
if (o = e.line, s = e.lineStart, c = e.position, !R(e, n, $e, !1, !0)) break;
|
|
717
|
+
if (e.line === a) {
|
|
718
|
+
for (v = e.input.charCodeAt(e.position); E(v);) v = e.input.charCodeAt(++e.position);
|
|
719
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), D(v) || A(e, `a whitespace character is expected after the key-value separator within a block mapping`), g && (N(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
720
|
+
else if (_) A(e, `can not read an implicit mapping pair; a colon is missed`);
|
|
721
|
+
else return e.tag = l, e.anchor = u, !0;
|
|
722
|
+
} else if (_) A(e, `can not read a block mapping entry; a multiline key may not be an implicit key`);
|
|
723
|
+
else return e.tag = l, e.anchor = u, !0;
|
|
724
724
|
}
|
|
725
|
-
if ((e
|
|
726
|
-
else if (e
|
|
725
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), R(e, t, C, !0, i) && (g ? m = e.result : h = e.result), g || (N(e, d, f, p, m, h, o, s, c), p = m = h = null), F(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) A(e, `bad indentation of a mapping entry`);
|
|
726
|
+
else if (e.lineIndent < t) break;
|
|
727
727
|
}
|
|
728
|
-
return g
|
|
728
|
+
return g && N(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = `mapping`, e.result = d), _;
|
|
729
729
|
}
|
|
730
|
-
function Ot(e
|
|
731
|
-
var t
|
|
732
|
-
if (o
|
|
733
|
-
if (e
|
|
730
|
+
function Ot(e) {
|
|
731
|
+
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
732
|
+
if (o !== 33) return !1;
|
|
733
|
+
if (e.tag !== null && A(e, `duplication of a tag property`), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = `!!`, o = e.input.charCodeAt(++e.position)) : i = `!`, t = e.position, n) {
|
|
734
734
|
do
|
|
735
|
-
o
|
|
736
|
-
while (o
|
|
737
|
-
e
|
|
735
|
+
o = e.input.charCodeAt(++e.position);
|
|
736
|
+
while (o !== 0 && o !== 62);
|
|
737
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : A(e, `unexpected end of the stream within a verbatim tag`);
|
|
738
738
|
} else {
|
|
739
|
-
for (; o
|
|
740
|
-
a
|
|
739
|
+
for (; o !== 0 && !D(o);) o === 33 && (r ? A(e, `tag suffix cannot contain exclamation marks`) : (i = e.input.slice(t - 1, e.position + 1), ot.test(i) || A(e, `named tag handle cannot contain such characters`), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
740
|
+
a = e.input.slice(t, e.position), at.test(a) && A(e, `tag suffix cannot contain flow indicator characters`);
|
|
741
741
|
}
|
|
742
|
-
a
|
|
742
|
+
a && !st.test(a) && A(e, `tag name cannot contain such characters: ` + a);
|
|
743
743
|
try {
|
|
744
|
-
a
|
|
744
|
+
a = decodeURIComponent(a);
|
|
745
745
|
} catch {
|
|
746
|
-
A(e
|
|
746
|
+
A(e, `tag name is malformed: ` + a);
|
|
747
747
|
}
|
|
748
|
-
return n
|
|
749
|
-
}
|
|
750
|
-
function kt(e
|
|
751
|
-
var t
|
|
752
|
-
if (n
|
|
753
|
-
for (e
|
|
754
|
-
return e
|
|
755
|
-
}
|
|
756
|
-
function At(e
|
|
757
|
-
var t
|
|
758
|
-
if (r
|
|
759
|
-
for (r
|
|
760
|
-
return e
|
|
761
|
-
}
|
|
762
|
-
function R(e
|
|
763
|
-
var a
|
|
764
|
-
if (e
|
|
765
|
-
if (s
|
|
766
|
-
else if (e
|
|
767
|
-
for (e
|
|
768
|
-
e
|
|
748
|
+
return n ? e.tag = a : x.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === `!` ? e.tag = `!` + a : i === `!!` ? e.tag = `tag:yaml.org,2002:` + a : A(e, `undeclared tag handle "` + i + `"`), !0;
|
|
749
|
+
}
|
|
750
|
+
function kt(e) {
|
|
751
|
+
var t, n = e.input.charCodeAt(e.position);
|
|
752
|
+
if (n !== 38) return !1;
|
|
753
|
+
for (e.anchor !== null && A(e, `duplication of an anchor property`), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !D(n) && !O(n);) n = e.input.charCodeAt(++e.position);
|
|
754
|
+
return e.position === t && A(e, `name of an anchor node must contain at least one character`), e.anchor = e.input.slice(t, e.position), !0;
|
|
755
|
+
}
|
|
756
|
+
function At(e) {
|
|
757
|
+
var t, n, r = e.input.charCodeAt(e.position);
|
|
758
|
+
if (r !== 42) return !1;
|
|
759
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !D(r) && !O(r);) r = e.input.charCodeAt(++e.position);
|
|
760
|
+
return e.position === t && A(e, `name of an alias node must contain at least one character`), n = e.input.slice(t, e.position), x.call(e.anchorMap, n) || A(e, `unidentified alias "` + n + `"`), e.result = e.anchorMap[n], F(e, !0, -1), !0;
|
|
761
|
+
}
|
|
762
|
+
function R(e, t, n, r, i) {
|
|
763
|
+
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
764
|
+
if (e.listener !== null && e.listener(`open`, e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = C === n || et === n, r && F(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Ot(e) || kt(e);) F(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
765
|
+
if (s &&= l || i, (c === 1 || C === n) && (h = S === n || $e === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (Et(e, g) || Dt(e, g, h)) || wt(e, h) ? u = !0 : (o && Tt(e, h) || St(e, h) || Ct(e, h) ? u = !0 : At(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && A(e, `alias node should not have any properties`)) : xt(e, h, S === n) && (u = !0, e.tag === null && (e.tag = `?`)), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && Et(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
766
|
+
else if (e.tag === `?`) {
|
|
767
|
+
for (e.result !== null && e.kind !== `scalar` && A(e, `unacceptable node kind for !<?> tag; it should be "scalar", not "` + e.kind + `"`), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
768
|
+
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
769
769
|
break;
|
|
770
770
|
}
|
|
771
|
-
} else if (e
|
|
772
|
-
if (x.call(e
|
|
773
|
-
else for (m
|
|
774
|
-
m
|
|
771
|
+
} else if (e.tag !== `!`) {
|
|
772
|
+
if (x.call(e.typeMap[e.kind || `fallback`], e.tag)) m = e.typeMap[e.kind || `fallback`][e.tag];
|
|
773
|
+
else for (m = null, p = e.typeMap.multi[e.kind || `fallback`], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
774
|
+
m = p[d];
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
777
|
-
m
|
|
777
|
+
m || A(e, `unknown tag !<` + e.tag + `>`), e.result !== null && m.kind !== e.kind && A(e, `unacceptable node kind for !<` + e.tag + `> tag; it should be "` + m.kind + `", not "` + e.kind + `"`), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : A(e, `cannot resolve a node with !<` + e.tag + `> explicit tag`);
|
|
778
778
|
}
|
|
779
|
-
return e
|
|
780
|
-
}
|
|
781
|
-
function jt(e
|
|
782
|
-
var t
|
|
783
|
-
for (e
|
|
784
|
-
for (a
|
|
785
|
-
for (r
|
|
786
|
-
for (; E(o
|
|
787
|
-
if (o
|
|
779
|
+
return e.listener !== null && e.listener(`close`, e), e.tag !== null || e.anchor !== null || u;
|
|
780
|
+
}
|
|
781
|
+
function jt(e) {
|
|
782
|
+
var t = e.position, n, r, i, a = !1, o;
|
|
783
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (F(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
784
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !D(o);) o = e.input.charCodeAt(++e.position);
|
|
785
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && A(e, `directive name must not be less than one character in length`); o !== 0;) {
|
|
786
|
+
for (; E(o);) o = e.input.charCodeAt(++e.position);
|
|
787
|
+
if (o === 35) {
|
|
788
788
|
do
|
|
789
|
-
o
|
|
790
|
-
while (o
|
|
789
|
+
o = e.input.charCodeAt(++e.position);
|
|
790
|
+
while (o !== 0 && !T(o));
|
|
791
791
|
break;
|
|
792
792
|
}
|
|
793
|
-
if (T(o
|
|
794
|
-
for (n
|
|
795
|
-
i
|
|
793
|
+
if (T(o)) break;
|
|
794
|
+
for (n = e.position; o !== 0 && !D(o);) o = e.input.charCodeAt(++e.position);
|
|
795
|
+
i.push(e.input.slice(n, e.position));
|
|
796
796
|
}
|
|
797
|
-
o
|
|
797
|
+
o !== 0 && P(e), x.call(yt, r) ? yt[r](e, r, i) : j(e, `unknown document directive "` + r + `"`);
|
|
798
798
|
}
|
|
799
|
-
if (F(e
|
|
800
|
-
e
|
|
799
|
+
if (F(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, F(e, !0, -1)) : a && A(e, `directives end mark is expected`), R(e, e.lineIndent - 1, C, !1, !0), F(e, !0, -1), e.checkLineBreaks && it.test(e.input.slice(t, e.position)) && j(e, `non-ASCII line breaks are interpreted as content`), e.documents.push(e.result), e.position === e.lineStart && I(e)) {
|
|
800
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, F(e, !0, -1));
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
|
-
if (e
|
|
803
|
+
if (e.position < e.length - 1) A(e, `end of the stream or a document separator is expected`);
|
|
804
804
|
else return;
|
|
805
805
|
}
|
|
806
|
-
function Mt(e
|
|
807
|
-
e
|
|
808
|
-
`), e
|
|
809
|
-
var n
|
|
810
|
-
for (r
|
|
811
|
-
for (; n
|
|
812
|
-
return n
|
|
813
|
-
}
|
|
814
|
-
function Nt(e
|
|
815
|
-
typeof t
|
|
816
|
-
var r
|
|
817
|
-
if (typeof t
|
|
818
|
-
for (var i
|
|
819
|
-
}
|
|
820
|
-
function Pt(e
|
|
821
|
-
var n
|
|
822
|
-
if (n
|
|
823
|
-
if (n
|
|
806
|
+
function Mt(e, t) {
|
|
807
|
+
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
808
|
+
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
809
|
+
var n = new _t(e, t), r = e.indexOf(`\0`);
|
|
810
|
+
for (r !== -1 && (n.position = r, A(n, `null byte is not allowed in input`)), n.input += `\0`; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
811
|
+
for (; n.position < n.length - 1;) jt(n);
|
|
812
|
+
return n.documents;
|
|
813
|
+
}
|
|
814
|
+
function Nt(e, t, n) {
|
|
815
|
+
typeof t == `object` && t && n === void 0 && (n = t, t = null);
|
|
816
|
+
var r = Mt(e, n);
|
|
817
|
+
if (typeof t != `function`) return r;
|
|
818
|
+
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
819
|
+
}
|
|
820
|
+
function Pt(e, t) {
|
|
821
|
+
var n = Mt(e, t);
|
|
822
|
+
if (n.length !== 0) {
|
|
823
|
+
if (n.length === 1) return n[0];
|
|
824
824
|
throw new l(`expected a single document in the stream, but found more`);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -847,209 +847,209 @@ var on = [
|
|
|
847
847
|
`Off`,
|
|
848
848
|
`OFF`
|
|
849
849
|
], sn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
850
|
-
function cn(e
|
|
851
|
-
var n
|
|
852
|
-
if (t
|
|
853
|
-
for (n
|
|
854
|
-
return n
|
|
855
|
-
}
|
|
856
|
-
function ln(e
|
|
857
|
-
var t
|
|
858
|
-
if (e
|
|
859
|
-
else if (e
|
|
860
|
-
else if (e
|
|
850
|
+
function cn(e, t) {
|
|
851
|
+
var n, r, i, a, o, s, c;
|
|
852
|
+
if (t === null) return {};
|
|
853
|
+
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === `!!` && (o = `tag:yaml.org,2002:` + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Lt.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
854
|
+
return n;
|
|
855
|
+
}
|
|
856
|
+
function ln(e) {
|
|
857
|
+
var t = e.toString(16).toUpperCase(), n, r;
|
|
858
|
+
if (e <= 255) n = `x`, r = 2;
|
|
859
|
+
else if (e <= 65535) n = `u`, r = 4;
|
|
860
|
+
else if (e <= 4294967295) n = `U`, r = 8;
|
|
861
861
|
else throw new l(`code point within a string may not be greater than 0xFFFFFFFF`);
|
|
862
|
-
return `\\` + n
|
|
862
|
+
return `\\` + n + o.repeat(`0`, r - t.length) + t;
|
|
863
863
|
}
|
|
864
864
|
var un = 1, W = 2;
|
|
865
|
-
function dn(e
|
|
866
|
-
this.schema = e
|
|
865
|
+
function dn(e) {
|
|
866
|
+
this.schema = e.schema || Qe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = o.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = cn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === `"` ? W : un, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == `function` ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = ``, this.duplicates = [], this.usedDuplicates = null;
|
|
867
867
|
}
|
|
868
|
-
function fn(e
|
|
869
|
-
for (var n
|
|
870
|
-
`, r
|
|
871
|
-
` && (a
|
|
872
|
-
return a
|
|
868
|
+
function fn(e, t) {
|
|
869
|
+
for (var n = o.repeat(` `, t), r = 0, i = -1, a = ``, s, c = e.length; r < c;) i = e.indexOf(`
|
|
870
|
+
`, r), i === -1 ? (s = e.slice(r), r = c) : (s = e.slice(r, i + 1), r = i + 1), s.length && s !== `
|
|
871
|
+
` && (a += n), a += s;
|
|
872
|
+
return a;
|
|
873
873
|
}
|
|
874
|
-
function G(e
|
|
874
|
+
function G(e, t) {
|
|
875
875
|
return `
|
|
876
|
-
` + o.repeat(` `, e
|
|
876
|
+
` + o.repeat(` `, e.indent * t);
|
|
877
877
|
}
|
|
878
|
-
function pn(e
|
|
879
|
-
var n
|
|
880
|
-
for (n
|
|
878
|
+
function pn(e, t) {
|
|
879
|
+
var n, r, i;
|
|
880
|
+
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
881
881
|
return !1;
|
|
882
882
|
}
|
|
883
|
-
function K(e
|
|
884
|
-
return e
|
|
883
|
+
function K(e) {
|
|
884
|
+
return e === Bt || e === Rt;
|
|
885
885
|
}
|
|
886
|
-
function q(e
|
|
887
|
-
return 32 <= e
|
|
886
|
+
function q(e) {
|
|
887
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== z || 65536 <= e && e <= 1114111;
|
|
888
888
|
}
|
|
889
|
-
function mn(e
|
|
890
|
-
return q(e
|
|
889
|
+
function mn(e) {
|
|
890
|
+
return q(e) && e !== z && e !== zt && e !== B;
|
|
891
891
|
}
|
|
892
|
-
function hn(e
|
|
893
|
-
var r
|
|
894
|
-
return (n
|
|
892
|
+
function hn(e, t, n) {
|
|
893
|
+
var r = mn(e), i = r && !K(e);
|
|
894
|
+
return (n ? r : r && e !== qt && e !== $t && e !== en && e !== nn && e !== an) && e !== V && !(t === H && !i) || mn(t) && !K(t) && e === V || t === H && i;
|
|
895
895
|
}
|
|
896
|
-
function gn(e
|
|
897
|
-
return q(e
|
|
896
|
+
function gn(e) {
|
|
897
|
+
return q(e) && e !== z && !K(e) && e !== Jt && e !== Zt && e !== H && e !== qt && e !== $t && e !== en && e !== nn && e !== an && e !== V && e !== Wt && e !== Kt && e !== Vt && e !== rn && e !== Yt && e !== Xt && e !== Gt && e !== Ht && e !== Ut && e !== Qt && e !== tn;
|
|
898
898
|
}
|
|
899
|
-
function _n(e
|
|
900
|
-
return !K(e
|
|
899
|
+
function _n(e) {
|
|
900
|
+
return !K(e) && e !== H;
|
|
901
901
|
}
|
|
902
|
-
function J(e
|
|
903
|
-
var n
|
|
904
|
-
return n
|
|
902
|
+
function J(e, t) {
|
|
903
|
+
var n = e.charCodeAt(t), r;
|
|
904
|
+
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
905
905
|
}
|
|
906
|
-
function vn(e
|
|
907
|
-
return /^\n* /.test(e
|
|
906
|
+
function vn(e) {
|
|
907
|
+
return /^\n* /.test(e);
|
|
908
908
|
}
|
|
909
909
|
var yn = 1, Y = 2, bn = 3, xn = 4, X = 5;
|
|
910
|
-
function Sn(e
|
|
911
|
-
var c
|
|
912
|
-
if (t
|
|
913
|
-
if (l
|
|
914
|
-
h
|
|
910
|
+
function Sn(e, t, n, r, i, a, o, s) {
|
|
911
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = gn(J(e, 0)) && _n(J(e, e.length - 1));
|
|
912
|
+
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
913
|
+
if (l = J(e, c), !q(l)) return X;
|
|
914
|
+
h &&= hn(l, u, s), u = l;
|
|
915
915
|
}
|
|
916
916
|
else {
|
|
917
|
-
for (c
|
|
918
|
-
if (l
|
|
919
|
-
else if (!q(l
|
|
920
|
-
h
|
|
917
|
+
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
918
|
+
if (l = J(e, c), l === B) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== ` `, m = c);
|
|
919
|
+
else if (!q(l)) return X;
|
|
920
|
+
h &&= hn(l, u, s), u = l;
|
|
921
921
|
}
|
|
922
|
-
f
|
|
922
|
+
f ||= p && c - m - 1 > r && e[m + 1] !== ` `;
|
|
923
923
|
}
|
|
924
|
-
return !d
|
|
925
|
-
}
|
|
926
|
-
function Cn(e
|
|
927
|
-
e
|
|
928
|
-
if (t
|
|
929
|
-
if (!e
|
|
930
|
-
var a
|
|
931
|
-
function c
|
|
932
|
-
return pn(e
|
|
924
|
+
return !d && !f ? h && !o && !i(e) ? yn : a === W ? X : Y : n > 9 && vn(e) ? X : o ? a === W ? X : Y : f ? xn : bn;
|
|
925
|
+
}
|
|
926
|
+
function Cn(e, t, n, r, i) {
|
|
927
|
+
e.dump = function() {
|
|
928
|
+
if (t.length === 0) return e.quotingType === W ? `""` : `''`;
|
|
929
|
+
if (!e.noCompatMode && (on.indexOf(t) !== -1 || sn.test(t))) return e.quotingType === W ? `"` + t + `"` : `'` + t + `'`;
|
|
930
|
+
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
931
|
+
function c(t) {
|
|
932
|
+
return pn(e, t);
|
|
933
933
|
}
|
|
934
|
-
switch (Sn(t
|
|
935
|
-
case yn: return t
|
|
936
|
-
case Y: return `'` + t
|
|
937
|
-
case bn: return `|` + wn(t
|
|
938
|
-
case xn: return `>` + wn(t
|
|
939
|
-
case X: return `"` + Dn(t
|
|
934
|
+
switch (Sn(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
|
|
935
|
+
case yn: return t;
|
|
936
|
+
case Y: return `'` + t.replace(/'/g, `''`) + `'`;
|
|
937
|
+
case bn: return `|` + wn(t, e.indent) + Tn(fn(t, a));
|
|
938
|
+
case xn: return `>` + wn(t, e.indent) + Tn(fn(En(t, o), a));
|
|
939
|
+
case X: return `"` + Dn(t) + `"`;
|
|
940
940
|
default: throw new l(`impossible error: invalid scalar style`);
|
|
941
941
|
}
|
|
942
942
|
}();
|
|
943
943
|
}
|
|
944
|
-
function wn(e
|
|
945
|
-
var n
|
|
944
|
+
function wn(e, t) {
|
|
945
|
+
var n = vn(e) ? String(t) : ``, r = e[e.length - 1] === `
|
|
946
946
|
`;
|
|
947
|
-
return n
|
|
948
|
-
` || e
|
|
949
|
-
`) ? `+` : r
|
|
947
|
+
return n + (r && (e[e.length - 2] === `
|
|
948
|
+
` || e === `
|
|
949
|
+
`) ? `+` : r ? `` : `-`) + `
|
|
950
950
|
`;
|
|
951
951
|
}
|
|
952
|
-
function Tn(e
|
|
953
|
-
return e
|
|
954
|
-
` ? e
|
|
952
|
+
function Tn(e) {
|
|
953
|
+
return e[e.length - 1] === `
|
|
954
|
+
` ? e.slice(0, -1) : e;
|
|
955
955
|
}
|
|
956
|
-
function En(e
|
|
957
|
-
for (var n
|
|
958
|
-
var r
|
|
956
|
+
function En(e, t) {
|
|
957
|
+
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
958
|
+
var r = e.indexOf(`
|
|
959
959
|
`);
|
|
960
|
-
return r
|
|
961
|
-
}(), i
|
|
962
|
-
` || e
|
|
963
|
-
var s
|
|
964
|
-
a
|
|
965
|
-
` : ``) + Z(c
|
|
960
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, Z(e.slice(0, r), t);
|
|
961
|
+
}(), i = e[0] === `
|
|
962
|
+
` || e[0] === ` `, a, o; o = n.exec(e);) {
|
|
963
|
+
var s = o[1], c = o[2];
|
|
964
|
+
a = c[0] === ` `, r += s + (!i && !a && c !== `` ? `
|
|
965
|
+
` : ``) + Z(c, t), i = a;
|
|
966
966
|
}
|
|
967
|
-
return r
|
|
968
|
-
}
|
|
969
|
-
function Z(e
|
|
970
|
-
if (e
|
|
971
|
-
for (var n
|
|
972
|
-
` + e
|
|
973
|
-
return c
|
|
974
|
-
`, e
|
|
975
|
-
` + e
|
|
976
|
-
}
|
|
977
|
-
function Dn(e
|
|
978
|
-
for (var t
|
|
979
|
-
return t
|
|
980
|
-
}
|
|
981
|
-
function On(e
|
|
982
|
-
var r
|
|
983
|
-
for (a
|
|
984
|
-
e
|
|
985
|
-
}
|
|
986
|
-
function kn(e
|
|
987
|
-
var i
|
|
988
|
-
for (o
|
|
989
|
-
e
|
|
990
|
-
}
|
|
991
|
-
function An(e
|
|
992
|
-
var r
|
|
993
|
-
for (o
|
|
994
|
-
e
|
|
995
|
-
}
|
|
996
|
-
function jn(e
|
|
997
|
-
var i
|
|
998
|
-
if (e
|
|
999
|
-
else if (typeof e
|
|
1000
|
-
else if (e
|
|
1001
|
-
for (s
|
|
1002
|
-
e
|
|
1003
|
-
}
|
|
1004
|
-
function Mn(e
|
|
1005
|
-
var r
|
|
1006
|
-
for (a
|
|
1007
|
-
if (n
|
|
1008
|
-
if (c
|
|
1009
|
-
else if (Lt.call(s
|
|
1010
|
-
else throw new l(`!<` + s
|
|
1011
|
-
e
|
|
967
|
+
return r;
|
|
968
|
+
}
|
|
969
|
+
function Z(e, t) {
|
|
970
|
+
if (e === `` || e[0] === ` `) return e;
|
|
971
|
+
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ``; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += `
|
|
972
|
+
` + e.slice(i, a), i = a + 1), o = s;
|
|
973
|
+
return c += `
|
|
974
|
+
`, e.length - i > t && o > i ? c += e.slice(i, o) + `
|
|
975
|
+
` + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
976
|
+
}
|
|
977
|
+
function Dn(e) {
|
|
978
|
+
for (var t = ``, n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = J(e, i), r = U[n], !r && q(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || ln(n);
|
|
979
|
+
return t;
|
|
980
|
+
}
|
|
981
|
+
function On(e, t, n) {
|
|
982
|
+
var r = ``, i = e.tag, a, o, s;
|
|
983
|
+
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== `` && (r += `,` + (e.condenseFlow ? `` : ` `)), r += e.dump);
|
|
984
|
+
e.tag = i, e.dump = `[` + r + `]`;
|
|
985
|
+
}
|
|
986
|
+
function kn(e, t, n, r) {
|
|
987
|
+
var i = ``, a = e.tag, o, s, c;
|
|
988
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== ``) && (i += G(e, t)), e.dump && B === e.dump.charCodeAt(0) ? i += `-` : i += `- `, i += e.dump);
|
|
989
|
+
e.tag = a, e.dump = i || `[]`;
|
|
990
|
+
}
|
|
991
|
+
function An(e, t, n) {
|
|
992
|
+
var r = ``, i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
993
|
+
for (o = 0, s = a.length; o < s; o += 1) u = ``, r !== `` && (u += `, `), e.condenseFlow && (u += `"`), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += `? `), u += e.dump + (e.condenseFlow ? `"` : ``) + `:` + (e.condenseFlow ? `` : ` `), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
994
|
+
e.tag = i, e.dump = `{` + r + `}`;
|
|
995
|
+
}
|
|
996
|
+
function jn(e, t, n, r) {
|
|
997
|
+
var i = ``, a = e.tag, o = Object.keys(n), s, c, u, d, f, p;
|
|
998
|
+
if (e.sortKeys === !0) o.sort();
|
|
999
|
+
else if (typeof e.sortKeys == `function`) o.sort(e.sortKeys);
|
|
1000
|
+
else if (e.sortKeys) throw new l(`sortKeys must be a boolean or a function`);
|
|
1001
|
+
for (s = 0, c = o.length; s < c; s += 1) p = ``, (!r || i !== ``) && (p += G(e, t)), u = o[s], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), Q(e, t + 1, u, !0, !0, !0) && (f = e.tag !== null && e.tag !== `?` || e.dump && e.dump.length > 1024, f && (e.dump && B === e.dump.charCodeAt(0) ? p += `?` : p += `? `), p += e.dump, f && (p += G(e, t)), Q(e, t + 1, d, !0, f) && (e.dump && B === e.dump.charCodeAt(0) ? p += `:` : p += `: `, p += e.dump, i += p));
|
|
1002
|
+
e.tag = a, e.dump = i || `{}`;
|
|
1003
|
+
}
|
|
1004
|
+
function Mn(e, t, n) {
|
|
1005
|
+
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
1006
|
+
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == `object` && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
1007
|
+
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = `?`, s.represent) {
|
|
1008
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, It.call(s.represent) === `[object Function]`) r = s.represent(t, c);
|
|
1009
|
+
else if (Lt.call(s.represent, c)) r = s.represent[c](t, c);
|
|
1010
|
+
else throw new l(`!<` + s.tag + `> tag resolver accepts not "` + c + `" style`);
|
|
1011
|
+
e.dump = r;
|
|
1012
1012
|
}
|
|
1013
1013
|
return !0;
|
|
1014
1014
|
}
|
|
1015
1015
|
return !1;
|
|
1016
1016
|
}
|
|
1017
|
-
function Q(e
|
|
1018
|
-
e
|
|
1019
|
-
var s
|
|
1020
|
-
r
|
|
1021
|
-
var d
|
|
1022
|
-
if (d
|
|
1017
|
+
function Q(e, t, n, r, i, a, o) {
|
|
1018
|
+
e.tag = null, e.dump = n, Mn(e, n, !1) || Mn(e, n, !0);
|
|
1019
|
+
var s = It.call(e.dump), c = r, u;
|
|
1020
|
+
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
1021
|
+
var d = s === `[object Object]` || s === `[object Array]`, f, p;
|
|
1022
|
+
if (d && (f = e.duplicates.indexOf(n), p = f !== -1), (e.tag !== null && e.tag !== `?` || p || e.indent !== 2 && t > 0) && (i = !1), p && e.usedDuplicates[f]) e.dump = `*ref_` + f;
|
|
1023
1023
|
else {
|
|
1024
|
-
if (d
|
|
1025
|
-
else if (s
|
|
1026
|
-
else if (s
|
|
1027
|
-
else if (s
|
|
1024
|
+
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), s === `[object Object]`) r && Object.keys(e.dump).length !== 0 ? (jn(e, t, e.dump, i), p && (e.dump = `&ref_` + f + e.dump)) : (An(e, t, e.dump), p && (e.dump = `&ref_` + f + ` ` + e.dump));
|
|
1025
|
+
else if (s === `[object Array]`) r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? kn(e, t - 1, e.dump, i) : kn(e, t, e.dump, i), p && (e.dump = `&ref_` + f + e.dump)) : (On(e, t, e.dump), p && (e.dump = `&ref_` + f + ` ` + e.dump));
|
|
1026
|
+
else if (s === `[object String]`) e.tag !== `?` && Cn(e, e.dump, t, a, c);
|
|
1027
|
+
else if (s === `[object Undefined]`) return !1;
|
|
1028
1028
|
else {
|
|
1029
|
-
if (e
|
|
1030
|
-
throw new l(`unacceptable kind of an object to dump ` + s
|
|
1029
|
+
if (e.skipInvalid) return !1;
|
|
1030
|
+
throw new l(`unacceptable kind of an object to dump ` + s);
|
|
1031
1031
|
}
|
|
1032
|
-
e
|
|
1032
|
+
e.tag !== null && e.tag !== `?` && (u = encodeURI(e.tag[0] === `!` ? e.tag.slice(1) : e.tag).replace(/!/g, `%21`), u = e.tag[0] === `!` ? `!` + u : u.slice(0, 18) === `tag:yaml.org,2002:` ? `!!` + u.slice(18) : `!<` + u + `>`, e.dump = u + ` ` + e.dump);
|
|
1033
1033
|
}
|
|
1034
1034
|
return !0;
|
|
1035
1035
|
}
|
|
1036
|
-
function Nn(e
|
|
1037
|
-
var n
|
|
1038
|
-
for ($(e
|
|
1039
|
-
t
|
|
1040
|
-
}
|
|
1041
|
-
function $(e
|
|
1042
|
-
var r
|
|
1043
|
-
if (typeof e
|
|
1044
|
-
else if (t
|
|
1045
|
-
else for (r
|
|
1046
|
-
}
|
|
1047
|
-
function Pn(e
|
|
1048
|
-
t
|
|
1049
|
-
var n
|
|
1050
|
-
n
|
|
1051
|
-
var r
|
|
1052
|
-
return n
|
|
1036
|
+
function Nn(e, t) {
|
|
1037
|
+
var n = [], r = [], i, a;
|
|
1038
|
+
for ($(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
1039
|
+
t.usedDuplicates = Array(a);
|
|
1040
|
+
}
|
|
1041
|
+
function $(e, t, n) {
|
|
1042
|
+
var r, i, a;
|
|
1043
|
+
if (typeof e == `object` && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
1044
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) $(e[i], t, n);
|
|
1045
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) $(e[r[i]], t, n);
|
|
1046
|
+
}
|
|
1047
|
+
function Pn(e, t) {
|
|
1048
|
+
t ||= {};
|
|
1049
|
+
var n = new dn(t);
|
|
1050
|
+
n.noRefs || Nn(e, n);
|
|
1051
|
+
var r = e;
|
|
1052
|
+
return n.replacer && (r = n.replacer.call({ "": r }, ``, r)), Q(n, 0, r, !0, !0) ? n.dump + `
|
|
1053
1053
|
` : ``;
|
|
1054
1054
|
}
|
|
1055
1055
|
var Fn = { dump: Pn }, In = Ft.load;
|