cdk-common 0.0.67 → 2.0.2
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/.gitattributes +23 -21
- package/.jsii +2662 -552
- package/API.md +27 -64
- package/README.md +19 -2
- package/lib/integ-default.d.ts +3 -3
- package/lib/integ-default.js +6 -5
- package/lib/main.d.ts +4 -4
- package/lib/main.js +7 -6
- package/node_modules/@aws-cdk/assert/BUILD.md +15 -0
- package/node_modules/@aws-cdk/assert/LICENSE +201 -0
- package/node_modules/@aws-cdk/assert/NOTICE +2 -0
- package/node_modules/@aws-cdk/assert/README.md +229 -0
- package/node_modules/@aws-cdk/assert/clone.sh +29 -0
- package/node_modules/@aws-cdk/assert/jest.d.ts +14 -0
- package/node_modules/@aws-cdk/assert/jest.js +57 -0
- package/node_modules/@aws-cdk/assert/lib/assertion.d.ts +17 -0
- package/node_modules/@aws-cdk/assert/lib/assertion.js +31 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.d.ts +10 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.js +21 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.d.ts +10 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.js +54 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/exist.d.ts +3 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/exist.js +18 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-output.d.ts +29 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-output.js +78 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.d.ts +123 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.js +404 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.d.ts +69 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.js +131 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-type.d.ts +3 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/have-type.js +22 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/match-template.d.ts +19 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/match-template.js +98 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.d.ts +8 -0
- package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.js +18 -0
- package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.d.ts +11 -0
- package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.js +70 -0
- package/node_modules/@aws-cdk/assert/lib/expect.d.ts +4 -0
- package/node_modules/@aws-cdk/assert/lib/expect.js +16 -0
- package/node_modules/@aws-cdk/assert/lib/index.d.ts +14 -0
- package/node_modules/@aws-cdk/assert/lib/index.js +27 -0
- package/node_modules/@aws-cdk/assert/lib/inspector.d.ts +31 -0
- package/node_modules/@aws-cdk/assert/lib/inspector.js +69 -0
- package/node_modules/@aws-cdk/assert/lib/synth-utils.d.ts +30 -0
- package/node_modules/@aws-cdk/assert/lib/synth-utils.js +93 -0
- package/node_modules/@aws-cdk/assert/package.json +77 -0
- package/node_modules/@aws-cdk/cfnspec/CHANGELOG.md +9353 -0
- package/node_modules/@aws-cdk/cfnspec/LICENSE +201 -0
- package/node_modules/@aws-cdk/cfnspec/NOTICE +2 -0
- package/node_modules/@aws-cdk/cfnspec/README.md +14 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/build.d.ts +1 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/build.js +83 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.d.ts +6 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.js +308 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.d.ts +14 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.js +130 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.d.ts +12 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.js +85 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.d.ts +1 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.js +237 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/template/LICENSE +201 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/template/NOTICE +2 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/update-cfnlint.sh +18 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/update-metrics.sh +13 -0
- package/node_modules/@aws-cdk/cfnspec/build-tools/update.sh +81 -0
- package/node_modules/@aws-cdk/cfnspec/cfn.version +1 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/base.css +224 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/block-navigation.js +79 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/index.html +126 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/massage-spec.ts.html +443 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/scrutiny.ts.html +344 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/favicon.png +0 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/index.html +156 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/junit.xml +31181 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/base.css +224 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/block-navigation.js +79 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/index.html +126 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/massage-spec.ts.html +443 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/scrutiny.ts.html +344 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/favicon.png +0 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/index.html +156 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/index.html +111 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics.ts.html +440 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.html +126 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.ts.html +557 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/augmentation.ts.html +371 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/base-types.ts.html +167 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.html +186 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.ts.html +98 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/property.ts.html +965 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/resource-type.ts.html +572 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/specification.ts.html +248 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.css +1 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.js +2 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sorter.js +170 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lcov.info +709 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/index.html +111 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics.ts.html +440 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.html +126 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.ts.html +557 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/augmentation.ts.html +371 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/base-types.ts.html +167 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.html +186 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.ts.html +98 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/property.ts.html +965 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/resource-type.ts.html +572 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/specification.ts.html +248 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/prettify.css +1 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/prettify.js +2 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/sort-arrow-sprite.png +0 -0
- package/node_modules/@aws-cdk/cfnspec/coverage/sorter.js +170 -0
- package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.d.ts +24 -0
- package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.js +3 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_EC2_VPNConnection.json +27 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_Lambda_Function.json +27 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBCluster.json +70 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBInstance.json +37 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SNS_Topic.json +52 -0
- package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SQS_Queue.json +53 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/README.md +163 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.d.ts +60 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.js +12 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/services.json +22175 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.d.ts +41 -0
- package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.js +77 -0
- package/node_modules/@aws-cdk/cfnspec/lib/index.d.ts +55 -0
- package/node_modules/@aws-cdk/cfnspec/lib/index.js +171 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.d.ts +87 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.js +28 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.d.ts +14 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.js +29 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.d.ts +13 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.js +3 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/index.d.ts +6 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/index.js +19 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/property.d.ts +174 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/property.js +161 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.d.ts +117 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.js +99 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.d.ts +56 -0
- package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.js +11 -0
- package/node_modules/@aws-cdk/cfnspec/package.json +61 -0
- package/node_modules/@aws-cdk/cfnspec/spec/cfn-lint.json +34 -0
- package/node_modules/@aws-cdk/cfnspec/spec/specification.json +110800 -0
- package/node_modules/@aws-cdk/cfnspec/tsconfig.json +24 -0
- package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +4584 -0
- package/node_modules/@aws-cdk/cloudformation-diff/LICENSE +201 -0
- package/node_modules/@aws-cdk/cloudformation-diff/NOTICE +2 -0
- package/node_modules/@aws-cdk/cloudformation-diff/README.md +12 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.d.ts +9 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.js +94 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.d.ts +326 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.js +456 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.d.ts +41 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js +165 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.d.ts +21 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js +166 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.d.ts +22 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.js +47 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.d.ts +6 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.js +109 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/format.d.ts +23 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/format.js +414 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.d.ts +62 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.js +246 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.d.ts +18 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.js +29 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.d.ts +127 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.js +266 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/index.d.ts +4 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/index.js +18 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.d.ts +32 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.js +95 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.d.ts +50 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.js +91 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.d.ts +21 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.js +79 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/util.d.ts +7 -0
- package/node_modules/@aws-cdk/cloudformation-diff/lib/util.js +63 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +16 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/assert.d.ts +99 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/async_hooks.d.ts +144 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +19 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +16 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +369 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/cluster.d.ts +260 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +3 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +449 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +613 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +97 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dns.d.ts +366 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +16 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +30 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/fs.d.ts +2302 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +1066 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +274 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http2.d.ts +859 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +51 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +41 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/inspector.d.ts +3162 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +3 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/net.d.ts +251 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +254 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/package.json +181 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +159 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/perf_hooks.d.ts +169 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +3 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/punycode.d.ts +68 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +17 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/readline.d.ts +143 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/repl.d.ts +380 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/stream.d.ts +313 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +9 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +16 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +459 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/trace_events.d.ts +61 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +73 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +54 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +6 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +17 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +104 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/util.d.ts +187 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +28 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +81 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +124 -0
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/zlib.d.ts +327 -0
- package/node_modules/@aws-cdk/cloudformation-diff/package.json +61 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/astral-regex/index.d.ts +28 -0
- package/node_modules/astral-regex/index.js +6 -0
- package/node_modules/astral-regex/license +9 -0
- package/node_modules/astral-regex/package.json +33 -0
- package/node_modules/astral-regex/readme.md +46 -0
- package/node_modules/at-least-node/LICENSE +6 -0
- package/node_modules/at-least-node/README.md +25 -0
- package/node_modules/at-least-node/index.js +5 -0
- package/node_modules/at-least-node/package.json +32 -0
- package/node_modules/charenc/LICENSE.mkd +27 -0
- package/node_modules/charenc/README.js +1 -0
- package/node_modules/charenc/charenc.js +33 -0
- package/node_modules/charenc/package.json +24 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +48 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +28 -0
- package/node_modules/colors/LICENSE +25 -0
- package/node_modules/colors/README.md +221 -0
- package/node_modules/colors/examples/normal-usage.js +82 -0
- package/node_modules/colors/examples/safe-string.js +79 -0
- package/node_modules/colors/index.d.ts +136 -0
- package/node_modules/colors/lib/colors.js +211 -0
- package/node_modules/colors/lib/custom/trap.js +46 -0
- package/node_modules/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/colors/lib/index.js +13 -0
- package/node_modules/colors/lib/maps/america.js +10 -0
- package/node_modules/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/colors/lib/maps/random.js +11 -0
- package/node_modules/colors/lib/maps/zebra.js +5 -0
- package/node_modules/colors/lib/styles.js +95 -0
- package/node_modules/colors/lib/system/has-flag.js +35 -0
- package/node_modules/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/colors/package.json +45 -0
- package/node_modules/colors/safe.d.ts +48 -0
- package/node_modules/colors/safe.js +10 -0
- package/node_modules/colors/themes/generic-logging.js +12 -0
- package/node_modules/crypt/LICENSE.mkd +27 -0
- package/node_modules/crypt/README.mkd +1 -0
- package/node_modules/crypt/crypt.js +96 -0
- package/node_modules/crypt/package.json +22 -0
- package/node_modules/diff/CONTRIBUTING.md +39 -0
- package/node_modules/diff/LICENSE +31 -0
- package/node_modules/diff/README.md +208 -0
- package/node_modules/diff/dist/diff.js +1582 -0
- package/node_modules/diff/lib/convert/dmp.js +32 -0
- package/node_modules/diff/lib/convert/xml.js +42 -0
- package/node_modules/diff/lib/diff/array.js +45 -0
- package/node_modules/diff/lib/diff/base.js +304 -0
- package/node_modules/diff/lib/diff/character.js +37 -0
- package/node_modules/diff/lib/diff/css.js +41 -0
- package/node_modules/diff/lib/diff/json.js +163 -0
- package/node_modules/diff/lib/diff/line.js +89 -0
- package/node_modules/diff/lib/diff/sentence.js +41 -0
- package/node_modules/diff/lib/diff/word.js +108 -0
- package/node_modules/diff/lib/index.es6.js +1553 -0
- package/node_modules/diff/lib/index.js +216 -0
- package/node_modules/diff/lib/index.mjs +1553 -0
- package/node_modules/diff/lib/patch/apply.js +238 -0
- package/node_modules/diff/lib/patch/create.js +267 -0
- package/node_modules/diff/lib/patch/merge.js +613 -0
- package/node_modules/diff/lib/patch/parse.js +167 -0
- package/node_modules/diff/lib/util/array.js +32 -0
- package/node_modules/diff/lib/util/distance-iterator.js +57 -0
- package/node_modules/diff/lib/util/params.js +24 -0
- package/node_modules/diff/package.json +87 -0
- package/node_modules/diff/release-notes.md +303 -0
- package/node_modules/diff/runtime.js +3 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fs-extra/CHANGELOG.md +902 -0
- package/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/fs-extra/README.md +264 -0
- package/node_modules/fs-extra/lib/copy/copy.js +232 -0
- package/node_modules/fs-extra/lib/copy/index.js +6 -0
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +166 -0
- package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
- package/node_modules/fs-extra/lib/empty/index.js +48 -0
- package/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/fs-extra/lib/ensure/link.js +61 -0
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
- package/node_modules/fs-extra/lib/fs/index.js +130 -0
- package/node_modules/fs-extra/lib/index.js +27 -0
- package/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/fs-extra/lib/mkdirs/make-dir.js +141 -0
- package/node_modules/fs-extra/lib/move/index.js +6 -0
- package/node_modules/fs-extra/lib/move/move.js +65 -0
- package/node_modules/fs-extra/lib/move-sync/index.js +5 -0
- package/node_modules/fs-extra/lib/move-sync/move-sync.js +47 -0
- package/node_modules/fs-extra/lib/output/index.js +40 -0
- package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/fs-extra/lib/remove/index.js +9 -0
- package/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
- package/node_modules/fs-extra/lib/util/stat.js +139 -0
- package/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/node_modules/fs-extra/package.json +70 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +429 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +50 -0
- package/node_modules/graceful-fs/polyfills.js +346 -0
- package/node_modules/is-buffer/LICENSE +21 -0
- package/node_modules/is-buffer/README.md +53 -0
- package/node_modules/is-buffer/index.js +21 -0
- package/node_modules/is-buffer/package.json +51 -0
- package/node_modules/is-buffer/test/basic.js +24 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/jsonfile/CHANGELOG.md +171 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +230 -0
- package/node_modules/jsonfile/index.js +88 -0
- package/node_modules/jsonfile/package.json +40 -0
- package/node_modules/jsonfile/utils.js +14 -0
- package/node_modules/lodash.truncate/LICENSE +47 -0
- package/node_modules/lodash.truncate/README.md +18 -0
- package/node_modules/lodash.truncate/index.js +632 -0
- package/node_modules/lodash.truncate/package.json +17 -0
- package/node_modules/md5/.travis.yml +7 -0
- package/node_modules/md5/LICENSE +27 -0
- package/node_modules/md5/README.md +111 -0
- package/node_modules/md5/demo/index.html +48 -0
- package/node_modules/md5/dist/md5.min.js +7 -0
- package/node_modules/md5/md5.js +160 -0
- package/node_modules/md5/package.json +38 -0
- package/node_modules/md5/test.js +75 -0
- package/node_modules/md5/webpack.config.js +13 -0
- package/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/node_modules/punycode/README.md +122 -0
- package/node_modules/punycode/package.json +58 -0
- package/node_modules/punycode/punycode.es6.js +441 -0
- package/node_modules/punycode/punycode.js +440 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/slice-ansi/index.js +103 -0
- package/node_modules/slice-ansi/license +10 -0
- package/node_modules/slice-ansi/package.json +52 -0
- package/node_modules/slice-ansi/readme.md +66 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/table/LICENSE +24 -0
- package/node_modules/table/README.md +759 -0
- package/node_modules/table/dist/src/alignString.d.ts +6 -0
- package/node_modules/table/dist/src/alignString.js +60 -0
- package/node_modules/table/dist/src/alignTableData.d.ts +2 -0
- package/node_modules/table/dist/src/alignTableData.js +14 -0
- package/node_modules/table/dist/src/calculateCellHeight.d.ts +4 -0
- package/node_modules/table/dist/src/calculateCellHeight.js +12 -0
- package/node_modules/table/dist/src/calculateCellWidths.d.ts +5 -0
- package/node_modules/table/dist/src/calculateCellWidths.js +17 -0
- package/node_modules/table/dist/src/calculateColumnWidths.d.ts +6 -0
- package/node_modules/table/dist/src/calculateColumnWidths.js +17 -0
- package/node_modules/table/dist/src/calculateRowHeights.d.ts +5 -0
- package/node_modules/table/dist/src/calculateRowHeights.js +19 -0
- package/node_modules/table/dist/src/createStream.d.ts +2 -0
- package/node_modules/table/dist/src/createStream.js +73 -0
- package/node_modules/table/dist/src/drawBorder.d.ts +26 -0
- package/node_modules/table/dist/src/drawBorder.js +101 -0
- package/node_modules/table/dist/src/drawContent.d.ts +9 -0
- package/node_modules/table/dist/src/drawContent.js +27 -0
- package/node_modules/table/dist/src/drawHeader.d.ts +2 -0
- package/node_modules/table/dist/src/drawHeader.js +30 -0
- package/node_modules/table/dist/src/drawRow.d.ts +6 -0
- package/node_modules/table/dist/src/drawRow.js +21 -0
- package/node_modules/table/dist/src/drawTable.d.ts +2 -0
- package/node_modules/table/dist/src/drawTable.js +39 -0
- package/node_modules/table/dist/src/generated/validators.d.ts +13 -0
- package/node_modules/table/dist/src/generated/validators.js +2171 -0
- package/node_modules/table/dist/src/getBorderCharacters.d.ts +2 -0
- package/node_modules/table/dist/src/getBorderCharacters.js +89 -0
- package/node_modules/table/dist/src/index.d.ts +5 -0
- package/node_modules/table/dist/src/index.js +21 -0
- package/node_modules/table/dist/src/makeStreamConfig.d.ts +7 -0
- package/node_modules/table/dist/src/makeStreamConfig.js +43 -0
- package/node_modules/table/dist/src/makeTableConfig.d.ts +7 -0
- package/node_modules/table/dist/src/makeTableConfig.js +65 -0
- package/node_modules/table/dist/src/mapDataUsingRowHeights.d.ts +2 -0
- package/node_modules/table/dist/src/mapDataUsingRowHeights.js +45 -0
- package/node_modules/table/dist/src/padTableData.d.ts +3 -0
- package/node_modules/table/dist/src/padTableData.js +17 -0
- package/node_modules/table/dist/src/stringifyTableData.d.ts +2 -0
- package/node_modules/table/dist/src/stringifyTableData.js +13 -0
- package/node_modules/table/dist/src/table.d.ts +2 -0
- package/node_modules/table/dist/src/table.js +27 -0
- package/node_modules/table/dist/src/truncateTableData.d.ts +6 -0
- package/node_modules/table/dist/src/truncateTableData.js +24 -0
- package/node_modules/table/dist/src/types/api.d.ts +114 -0
- package/node_modules/table/dist/src/types/api.js +3 -0
- package/node_modules/table/dist/src/types/internal.d.ts +1 -0
- package/node_modules/table/dist/src/types/internal.js +3 -0
- package/node_modules/table/dist/src/utils.d.ts +1 -0
- package/node_modules/table/dist/src/utils.js +93 -0
- package/node_modules/table/dist/src/validateConfig.d.ts +2 -0
- package/node_modules/table/dist/src/validateConfig.js +27 -0
- package/node_modules/table/dist/src/validateTableData.d.ts +1 -0
- package/node_modules/table/dist/src/validateTableData.js +32 -0
- package/node_modules/table/dist/src/wrapCell.d.ts +8 -0
- package/node_modules/table/dist/src/wrapCell.js +33 -0
- package/node_modules/table/dist/src/wrapString.d.ts +9 -0
- package/node_modules/table/dist/src/wrapString.js +27 -0
- package/node_modules/table/dist/src/wrapWord.d.ts +1 -0
- package/node_modules/table/dist/src/wrapWord.js +42 -0
- package/node_modules/table/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/table/node_modules/ajv/LICENSE +22 -0
- package/node_modules/table/node_modules/ajv/README.md +192 -0
- package/node_modules/table/node_modules/ajv/dist/2019.d.ts +17 -0
- package/node_modules/table/node_modules/ajv/dist/2019.js +55 -0
- package/node_modules/table/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/2020.d.ts +17 -0
- package/node_modules/table/node_modules/ajv/dist/2020.js +49 -0
- package/node_modules/table/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/ajv.d.ts +16 -0
- package/node_modules/table/node_modules/ajv/dist/ajv.js +44 -0
- package/node_modules/table/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js +147 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/table/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/table/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/table/node_modules/ajv/dist/compile/index.js +243 -0
- package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/table/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/table/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.js +153 -0
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/table/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/table/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/table/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/table/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js +510 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/core.d.ts +171 -0
- package/node_modules/table/node_modules/ajv/dist/core.js +614 -0
- package/node_modules/table/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/jtd.d.ts +45 -0
- package/node_modules/table/node_modules/ajv/dist/jtd.js +66 -0
- package/node_modules/table/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/table/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js +184 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/index.js +83 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/table/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +177 -0
- package/node_modules/table/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/table/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
- package/node_modules/table/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/table/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/table/node_modules/ajv/lib/2019.ts +78 -0
- package/node_modules/table/node_modules/ajv/lib/2020.ts +72 -0
- package/node_modules/table/node_modules/ajv/lib/ajv.ts +67 -0
- package/node_modules/table/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
- package/node_modules/table/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
- package/node_modules/table/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/table/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/table/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/table/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
- package/node_modules/table/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/table/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/table/node_modules/ajv/lib/compile/ref_error.ts +12 -0
- package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +146 -0
- package/node_modules/table/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/table/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/index.ts +573 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/table/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/table/node_modules/ajv/lib/core.ts +880 -0
- package/node_modules/table/node_modules/ajv/lib/jtd.ts +129 -0
- package/node_modules/table/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/table/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/table/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/table/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/table/node_modules/ajv/lib/standalone/index.ts +93 -0
- package/node_modules/table/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/table/node_modules/ajv/lib/types/index.ts +233 -0
- package/node_modules/table/node_modules/ajv/lib/types/json-schema.ts +189 -0
- package/node_modules/table/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/table/node_modules/ajv/package.json +124 -0
- package/node_modules/table/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/table/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/table/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/table/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/table/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/table/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/table/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/table/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/table/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/table/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/table/package.json +78 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +24 -0
- package/node_modules/universalify/package.json +34 -0
- package/node_modules/uri-js/LICENSE +11 -0
- package/node_modules/uri-js/README.md +203 -0
- package/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
- package/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
- package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
- package/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
- package/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
- package/node_modules/uri-js/dist/esnext/index.js +17 -0
- package/node_modules/uri-js/dist/esnext/index.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
- package/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
- package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
- package/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
- package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
- package/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
- package/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
- package/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
- package/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
- package/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
- package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
- package/node_modules/uri-js/dist/esnext/uri.js +480 -0
- package/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
- package/node_modules/uri-js/dist/esnext/util.js +36 -0
- package/node_modules/uri-js/dist/esnext/util.js.map +1 -0
- package/node_modules/uri-js/package.json +77 -0
- package/node_modules/uri-js/yarn.lock +2558 -0
- package/package.json +11 -19
|
@@ -0,0 +1,1443 @@
|
|
|
1
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
2
|
+
(function (global, factory) {
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
+
(factory((global.URI = global.URI || {})));
|
|
6
|
+
}(this, (function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
function merge() {
|
|
9
|
+
for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
|
|
10
|
+
sets[_key] = arguments[_key];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (sets.length > 1) {
|
|
14
|
+
sets[0] = sets[0].slice(0, -1);
|
|
15
|
+
var xl = sets.length - 1;
|
|
16
|
+
for (var x = 1; x < xl; ++x) {
|
|
17
|
+
sets[x] = sets[x].slice(1, -1);
|
|
18
|
+
}
|
|
19
|
+
sets[xl] = sets[xl].slice(1);
|
|
20
|
+
return sets.join('');
|
|
21
|
+
} else {
|
|
22
|
+
return sets[0];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function subexp(str) {
|
|
26
|
+
return "(?:" + str + ")";
|
|
27
|
+
}
|
|
28
|
+
function typeOf(o) {
|
|
29
|
+
return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
|
|
30
|
+
}
|
|
31
|
+
function toUpperCase(str) {
|
|
32
|
+
return str.toUpperCase();
|
|
33
|
+
}
|
|
34
|
+
function toArray(obj) {
|
|
35
|
+
return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
|
|
36
|
+
}
|
|
37
|
+
function assign(target, source) {
|
|
38
|
+
var obj = target;
|
|
39
|
+
if (source) {
|
|
40
|
+
for (var key in source) {
|
|
41
|
+
obj[key] = source[key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return obj;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function buildExps(isIRI) {
|
|
48
|
+
var ALPHA$$ = "[A-Za-z]",
|
|
49
|
+
CR$ = "[\\x0D]",
|
|
50
|
+
DIGIT$$ = "[0-9]",
|
|
51
|
+
DQUOTE$$ = "[\\x22]",
|
|
52
|
+
HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"),
|
|
53
|
+
//case-insensitive
|
|
54
|
+
LF$$ = "[\\x0A]",
|
|
55
|
+
SP$$ = "[\\x20]",
|
|
56
|
+
PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)),
|
|
57
|
+
//expanded
|
|
58
|
+
GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
|
|
59
|
+
SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
|
|
60
|
+
RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
|
|
61
|
+
UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]",
|
|
62
|
+
//subset, excludes bidi control characters
|
|
63
|
+
IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
|
|
64
|
+
//subset
|
|
65
|
+
UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
|
|
66
|
+
SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
|
|
67
|
+
USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
|
|
68
|
+
DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
|
|
69
|
+
DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
|
|
70
|
+
//relaxed parsing rules
|
|
71
|
+
IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
|
|
72
|
+
H16$ = subexp(HEXDIG$$ + "{1,4}"),
|
|
73
|
+
LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
|
|
74
|
+
IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$),
|
|
75
|
+
// 6( h16 ":" ) ls32
|
|
76
|
+
IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$),
|
|
77
|
+
// "::" 5( h16 ":" ) ls32
|
|
78
|
+
IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$),
|
|
79
|
+
//[ h16 ] "::" 4( h16 ":" ) ls32
|
|
80
|
+
IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$),
|
|
81
|
+
//[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
|
|
82
|
+
IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$),
|
|
83
|
+
//[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
|
|
84
|
+
IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$),
|
|
85
|
+
//[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
|
|
86
|
+
IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$),
|
|
87
|
+
//[ *4( h16 ":" ) h16 ] "::" ls32
|
|
88
|
+
IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$),
|
|
89
|
+
//[ *5( h16 ":" ) h16 ] "::" h16
|
|
90
|
+
IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
|
|
91
|
+
//[ *6( h16 ":" ) h16 ] "::"
|
|
92
|
+
IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
|
|
93
|
+
ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
|
|
94
|
+
//RFC 6874
|
|
95
|
+
IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$),
|
|
96
|
+
//RFC 6874
|
|
97
|
+
IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$),
|
|
98
|
+
//RFC 6874, with relaxed parsing rules
|
|
99
|
+
IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
|
|
100
|
+
IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"),
|
|
101
|
+
//RFC 6874
|
|
102
|
+
REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
|
|
103
|
+
HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
|
|
104
|
+
PORT$ = subexp(DIGIT$$ + "*"),
|
|
105
|
+
AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
|
|
106
|
+
PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
|
|
107
|
+
SEGMENT$ = subexp(PCHAR$ + "*"),
|
|
108
|
+
SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
|
|
109
|
+
SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
|
|
110
|
+
PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
|
|
111
|
+
PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"),
|
|
112
|
+
//simplified
|
|
113
|
+
PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),
|
|
114
|
+
//simplified
|
|
115
|
+
PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),
|
|
116
|
+
//simplified
|
|
117
|
+
PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
|
|
118
|
+
PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
|
|
119
|
+
QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
|
|
120
|
+
FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
|
|
121
|
+
HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
|
|
122
|
+
URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
|
|
123
|
+
RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
|
|
124
|
+
RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
|
|
125
|
+
URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
|
|
126
|
+
ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
|
|
127
|
+
GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
128
|
+
RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
129
|
+
ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
|
|
130
|
+
SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
131
|
+
AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
|
|
132
|
+
return {
|
|
133
|
+
NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
|
|
134
|
+
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
135
|
+
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
136
|
+
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
137
|
+
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
138
|
+
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
139
|
+
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
140
|
+
ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
141
|
+
UNRESERVED: new RegExp(UNRESERVED$$, "g"),
|
|
142
|
+
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
|
|
143
|
+
PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
|
|
144
|
+
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
145
|
+
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
var URI_PROTOCOL = buildExps(false);
|
|
149
|
+
|
|
150
|
+
var IRI_PROTOCOL = buildExps(true);
|
|
151
|
+
|
|
152
|
+
var slicedToArray = function () {
|
|
153
|
+
function sliceIterator(arr, i) {
|
|
154
|
+
var _arr = [];
|
|
155
|
+
var _n = true;
|
|
156
|
+
var _d = false;
|
|
157
|
+
var _e = undefined;
|
|
158
|
+
|
|
159
|
+
try {
|
|
160
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
161
|
+
_arr.push(_s.value);
|
|
162
|
+
|
|
163
|
+
if (i && _arr.length === i) break;
|
|
164
|
+
}
|
|
165
|
+
} catch (err) {
|
|
166
|
+
_d = true;
|
|
167
|
+
_e = err;
|
|
168
|
+
} finally {
|
|
169
|
+
try {
|
|
170
|
+
if (!_n && _i["return"]) _i["return"]();
|
|
171
|
+
} finally {
|
|
172
|
+
if (_d) throw _e;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return _arr;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return function (arr, i) {
|
|
180
|
+
if (Array.isArray(arr)) {
|
|
181
|
+
return arr;
|
|
182
|
+
} else if (Symbol.iterator in Object(arr)) {
|
|
183
|
+
return sliceIterator(arr, i);
|
|
184
|
+
} else {
|
|
185
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}();
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
var toConsumableArray = function (arr) {
|
|
203
|
+
if (Array.isArray(arr)) {
|
|
204
|
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
205
|
+
|
|
206
|
+
return arr2;
|
|
207
|
+
} else {
|
|
208
|
+
return Array.from(arr);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/** Highest positive signed 32-bit float value */
|
|
213
|
+
|
|
214
|
+
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
215
|
+
|
|
216
|
+
/** Bootstring parameters */
|
|
217
|
+
var base = 36;
|
|
218
|
+
var tMin = 1;
|
|
219
|
+
var tMax = 26;
|
|
220
|
+
var skew = 38;
|
|
221
|
+
var damp = 700;
|
|
222
|
+
var initialBias = 72;
|
|
223
|
+
var initialN = 128; // 0x80
|
|
224
|
+
var delimiter = '-'; // '\x2D'
|
|
225
|
+
|
|
226
|
+
/** Regular expressions */
|
|
227
|
+
var regexPunycode = /^xn--/;
|
|
228
|
+
var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
|
|
229
|
+
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
230
|
+
|
|
231
|
+
/** Error messages */
|
|
232
|
+
var errors = {
|
|
233
|
+
'overflow': 'Overflow: input needs wider integers to process',
|
|
234
|
+
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
|
235
|
+
'invalid-input': 'Invalid input'
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** Convenience shortcuts */
|
|
239
|
+
var baseMinusTMin = base - tMin;
|
|
240
|
+
var floor = Math.floor;
|
|
241
|
+
var stringFromCharCode = String.fromCharCode;
|
|
242
|
+
|
|
243
|
+
/*--------------------------------------------------------------------------*/
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* A generic error utility function.
|
|
247
|
+
* @private
|
|
248
|
+
* @param {String} type The error type.
|
|
249
|
+
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
250
|
+
*/
|
|
251
|
+
function error$1(type) {
|
|
252
|
+
throw new RangeError(errors[type]);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* A generic `Array#map` utility function.
|
|
257
|
+
* @private
|
|
258
|
+
* @param {Array} array The array to iterate over.
|
|
259
|
+
* @param {Function} callback The function that gets called for every array
|
|
260
|
+
* item.
|
|
261
|
+
* @returns {Array} A new array of values returned by the callback function.
|
|
262
|
+
*/
|
|
263
|
+
function map(array, fn) {
|
|
264
|
+
var result = [];
|
|
265
|
+
var length = array.length;
|
|
266
|
+
while (length--) {
|
|
267
|
+
result[length] = fn(array[length]);
|
|
268
|
+
}
|
|
269
|
+
return result;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
|
274
|
+
* addresses.
|
|
275
|
+
* @private
|
|
276
|
+
* @param {String} domain The domain name or email address.
|
|
277
|
+
* @param {Function} callback The function that gets called for every
|
|
278
|
+
* character.
|
|
279
|
+
* @returns {Array} A new string of characters returned by the callback
|
|
280
|
+
* function.
|
|
281
|
+
*/
|
|
282
|
+
function mapDomain(string, fn) {
|
|
283
|
+
var parts = string.split('@');
|
|
284
|
+
var result = '';
|
|
285
|
+
if (parts.length > 1) {
|
|
286
|
+
// In email addresses, only the domain name should be punycoded. Leave
|
|
287
|
+
// the local part (i.e. everything up to `@`) intact.
|
|
288
|
+
result = parts[0] + '@';
|
|
289
|
+
string = parts[1];
|
|
290
|
+
}
|
|
291
|
+
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
|
292
|
+
string = string.replace(regexSeparators, '\x2E');
|
|
293
|
+
var labels = string.split('.');
|
|
294
|
+
var encoded = map(labels, fn).join('.');
|
|
295
|
+
return result + encoded;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Creates an array containing the numeric code points of each Unicode
|
|
300
|
+
* character in the string. While JavaScript uses UCS-2 internally,
|
|
301
|
+
* this function will convert a pair of surrogate halves (each of which
|
|
302
|
+
* UCS-2 exposes as separate characters) into a single code point,
|
|
303
|
+
* matching UTF-16.
|
|
304
|
+
* @see `punycode.ucs2.encode`
|
|
305
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
306
|
+
* @memberOf punycode.ucs2
|
|
307
|
+
* @name decode
|
|
308
|
+
* @param {String} string The Unicode input string (UCS-2).
|
|
309
|
+
* @returns {Array} The new array of code points.
|
|
310
|
+
*/
|
|
311
|
+
function ucs2decode(string) {
|
|
312
|
+
var output = [];
|
|
313
|
+
var counter = 0;
|
|
314
|
+
var length = string.length;
|
|
315
|
+
while (counter < length) {
|
|
316
|
+
var value = string.charCodeAt(counter++);
|
|
317
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
318
|
+
// It's a high surrogate, and there is a next character.
|
|
319
|
+
var extra = string.charCodeAt(counter++);
|
|
320
|
+
if ((extra & 0xFC00) == 0xDC00) {
|
|
321
|
+
// Low surrogate.
|
|
322
|
+
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
323
|
+
} else {
|
|
324
|
+
// It's an unmatched surrogate; only append this code unit, in case the
|
|
325
|
+
// next code unit is the high surrogate of a surrogate pair.
|
|
326
|
+
output.push(value);
|
|
327
|
+
counter--;
|
|
328
|
+
}
|
|
329
|
+
} else {
|
|
330
|
+
output.push(value);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return output;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Creates a string based on an array of numeric code points.
|
|
338
|
+
* @see `punycode.ucs2.decode`
|
|
339
|
+
* @memberOf punycode.ucs2
|
|
340
|
+
* @name encode
|
|
341
|
+
* @param {Array} codePoints The array of numeric code points.
|
|
342
|
+
* @returns {String} The new Unicode string (UCS-2).
|
|
343
|
+
*/
|
|
344
|
+
var ucs2encode = function ucs2encode(array) {
|
|
345
|
+
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Converts a basic code point into a digit/integer.
|
|
350
|
+
* @see `digitToBasic()`
|
|
351
|
+
* @private
|
|
352
|
+
* @param {Number} codePoint The basic numeric code point value.
|
|
353
|
+
* @returns {Number} The numeric value of a basic code point (for use in
|
|
354
|
+
* representing integers) in the range `0` to `base - 1`, or `base` if
|
|
355
|
+
* the code point does not represent a value.
|
|
356
|
+
*/
|
|
357
|
+
var basicToDigit = function basicToDigit(codePoint) {
|
|
358
|
+
if (codePoint - 0x30 < 0x0A) {
|
|
359
|
+
return codePoint - 0x16;
|
|
360
|
+
}
|
|
361
|
+
if (codePoint - 0x41 < 0x1A) {
|
|
362
|
+
return codePoint - 0x41;
|
|
363
|
+
}
|
|
364
|
+
if (codePoint - 0x61 < 0x1A) {
|
|
365
|
+
return codePoint - 0x61;
|
|
366
|
+
}
|
|
367
|
+
return base;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Converts a digit/integer into a basic code point.
|
|
372
|
+
* @see `basicToDigit()`
|
|
373
|
+
* @private
|
|
374
|
+
* @param {Number} digit The numeric value of a basic code point.
|
|
375
|
+
* @returns {Number} The basic code point whose value (when used for
|
|
376
|
+
* representing integers) is `digit`, which needs to be in the range
|
|
377
|
+
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
|
378
|
+
* used; else, the lowercase form is used. The behavior is undefined
|
|
379
|
+
* if `flag` is non-zero and `digit` has no uppercase form.
|
|
380
|
+
*/
|
|
381
|
+
var digitToBasic = function digitToBasic(digit, flag) {
|
|
382
|
+
// 0..25 map to ASCII a..z or A..Z
|
|
383
|
+
// 26..35 map to ASCII 0..9
|
|
384
|
+
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
389
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
390
|
+
* @private
|
|
391
|
+
*/
|
|
392
|
+
var adapt = function adapt(delta, numPoints, firstTime) {
|
|
393
|
+
var k = 0;
|
|
394
|
+
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
395
|
+
delta += floor(delta / numPoints);
|
|
396
|
+
for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
397
|
+
delta = floor(delta / baseMinusTMin);
|
|
398
|
+
}
|
|
399
|
+
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
404
|
+
* symbols.
|
|
405
|
+
* @memberOf punycode
|
|
406
|
+
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
407
|
+
* @returns {String} The resulting string of Unicode symbols.
|
|
408
|
+
*/
|
|
409
|
+
var decode = function decode(input) {
|
|
410
|
+
// Don't use UCS-2.
|
|
411
|
+
var output = [];
|
|
412
|
+
var inputLength = input.length;
|
|
413
|
+
var i = 0;
|
|
414
|
+
var n = initialN;
|
|
415
|
+
var bias = initialBias;
|
|
416
|
+
|
|
417
|
+
// Handle the basic code points: let `basic` be the number of input code
|
|
418
|
+
// points before the last delimiter, or `0` if there is none, then copy
|
|
419
|
+
// the first basic code points to the output.
|
|
420
|
+
|
|
421
|
+
var basic = input.lastIndexOf(delimiter);
|
|
422
|
+
if (basic < 0) {
|
|
423
|
+
basic = 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
for (var j = 0; j < basic; ++j) {
|
|
427
|
+
// if it's not a basic code point
|
|
428
|
+
if (input.charCodeAt(j) >= 0x80) {
|
|
429
|
+
error$1('not-basic');
|
|
430
|
+
}
|
|
431
|
+
output.push(input.charCodeAt(j));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// Main decoding loop: start just after the last delimiter if any basic code
|
|
435
|
+
// points were copied; start at the beginning otherwise.
|
|
436
|
+
|
|
437
|
+
for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{
|
|
438
|
+
|
|
439
|
+
// `index` is the index of the next character to be consumed.
|
|
440
|
+
// Decode a generalized variable-length integer into `delta`,
|
|
441
|
+
// which gets added to `i`. The overflow checking is easier
|
|
442
|
+
// if we increase `i` as we go, then subtract off its starting
|
|
443
|
+
// value at the end to obtain `delta`.
|
|
444
|
+
var oldi = i;
|
|
445
|
+
for (var w = 1, k = base;; /* no condition */k += base) {
|
|
446
|
+
|
|
447
|
+
if (index >= inputLength) {
|
|
448
|
+
error$1('invalid-input');
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
var digit = basicToDigit(input.charCodeAt(index++));
|
|
452
|
+
|
|
453
|
+
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
454
|
+
error$1('overflow');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
i += digit * w;
|
|
458
|
+
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
459
|
+
|
|
460
|
+
if (digit < t) {
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
var baseMinusT = base - t;
|
|
465
|
+
if (w > floor(maxInt / baseMinusT)) {
|
|
466
|
+
error$1('overflow');
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
w *= baseMinusT;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
var out = output.length + 1;
|
|
473
|
+
bias = adapt(i - oldi, out, oldi == 0);
|
|
474
|
+
|
|
475
|
+
// `i` was supposed to wrap around from `out` to `0`,
|
|
476
|
+
// incrementing `n` each time, so we'll fix that now:
|
|
477
|
+
if (floor(i / out) > maxInt - n) {
|
|
478
|
+
error$1('overflow');
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
n += floor(i / out);
|
|
482
|
+
i %= out;
|
|
483
|
+
|
|
484
|
+
// Insert `n` at position `i` of the output.
|
|
485
|
+
output.splice(i++, 0, n);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
return String.fromCodePoint.apply(String, output);
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
493
|
+
* Punycode string of ASCII-only symbols.
|
|
494
|
+
* @memberOf punycode
|
|
495
|
+
* @param {String} input The string of Unicode symbols.
|
|
496
|
+
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
497
|
+
*/
|
|
498
|
+
var encode = function encode(input) {
|
|
499
|
+
var output = [];
|
|
500
|
+
|
|
501
|
+
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
502
|
+
input = ucs2decode(input);
|
|
503
|
+
|
|
504
|
+
// Cache the length.
|
|
505
|
+
var inputLength = input.length;
|
|
506
|
+
|
|
507
|
+
// Initialize the state.
|
|
508
|
+
var n = initialN;
|
|
509
|
+
var delta = 0;
|
|
510
|
+
var bias = initialBias;
|
|
511
|
+
|
|
512
|
+
// Handle the basic code points.
|
|
513
|
+
var _iteratorNormalCompletion = true;
|
|
514
|
+
var _didIteratorError = false;
|
|
515
|
+
var _iteratorError = undefined;
|
|
516
|
+
|
|
517
|
+
try {
|
|
518
|
+
for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
519
|
+
var _currentValue2 = _step.value;
|
|
520
|
+
|
|
521
|
+
if (_currentValue2 < 0x80) {
|
|
522
|
+
output.push(stringFromCharCode(_currentValue2));
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
} catch (err) {
|
|
526
|
+
_didIteratorError = true;
|
|
527
|
+
_iteratorError = err;
|
|
528
|
+
} finally {
|
|
529
|
+
try {
|
|
530
|
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
531
|
+
_iterator.return();
|
|
532
|
+
}
|
|
533
|
+
} finally {
|
|
534
|
+
if (_didIteratorError) {
|
|
535
|
+
throw _iteratorError;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
var basicLength = output.length;
|
|
541
|
+
var handledCPCount = basicLength;
|
|
542
|
+
|
|
543
|
+
// `handledCPCount` is the number of code points that have been handled;
|
|
544
|
+
// `basicLength` is the number of basic code points.
|
|
545
|
+
|
|
546
|
+
// Finish the basic string with a delimiter unless it's empty.
|
|
547
|
+
if (basicLength) {
|
|
548
|
+
output.push(delimiter);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// Main encoding loop:
|
|
552
|
+
while (handledCPCount < inputLength) {
|
|
553
|
+
|
|
554
|
+
// All non-basic code points < n have been handled already. Find the next
|
|
555
|
+
// larger one:
|
|
556
|
+
var m = maxInt;
|
|
557
|
+
var _iteratorNormalCompletion2 = true;
|
|
558
|
+
var _didIteratorError2 = false;
|
|
559
|
+
var _iteratorError2 = undefined;
|
|
560
|
+
|
|
561
|
+
try {
|
|
562
|
+
for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
563
|
+
var currentValue = _step2.value;
|
|
564
|
+
|
|
565
|
+
if (currentValue >= n && currentValue < m) {
|
|
566
|
+
m = currentValue;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
571
|
+
// but guard against overflow.
|
|
572
|
+
} catch (err) {
|
|
573
|
+
_didIteratorError2 = true;
|
|
574
|
+
_iteratorError2 = err;
|
|
575
|
+
} finally {
|
|
576
|
+
try {
|
|
577
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
578
|
+
_iterator2.return();
|
|
579
|
+
}
|
|
580
|
+
} finally {
|
|
581
|
+
if (_didIteratorError2) {
|
|
582
|
+
throw _iteratorError2;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
var handledCPCountPlusOne = handledCPCount + 1;
|
|
588
|
+
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
589
|
+
error$1('overflow');
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
delta += (m - n) * handledCPCountPlusOne;
|
|
593
|
+
n = m;
|
|
594
|
+
|
|
595
|
+
var _iteratorNormalCompletion3 = true;
|
|
596
|
+
var _didIteratorError3 = false;
|
|
597
|
+
var _iteratorError3 = undefined;
|
|
598
|
+
|
|
599
|
+
try {
|
|
600
|
+
for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
601
|
+
var _currentValue = _step3.value;
|
|
602
|
+
|
|
603
|
+
if (_currentValue < n && ++delta > maxInt) {
|
|
604
|
+
error$1('overflow');
|
|
605
|
+
}
|
|
606
|
+
if (_currentValue == n) {
|
|
607
|
+
// Represent delta as a generalized variable-length integer.
|
|
608
|
+
var q = delta;
|
|
609
|
+
for (var k = base;; /* no condition */k += base) {
|
|
610
|
+
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
611
|
+
if (q < t) {
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
var qMinusT = q - t;
|
|
615
|
+
var baseMinusT = base - t;
|
|
616
|
+
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
|
|
617
|
+
q = floor(qMinusT / baseMinusT);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
621
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
622
|
+
delta = 0;
|
|
623
|
+
++handledCPCount;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
} catch (err) {
|
|
627
|
+
_didIteratorError3 = true;
|
|
628
|
+
_iteratorError3 = err;
|
|
629
|
+
} finally {
|
|
630
|
+
try {
|
|
631
|
+
if (!_iteratorNormalCompletion3 && _iterator3.return) {
|
|
632
|
+
_iterator3.return();
|
|
633
|
+
}
|
|
634
|
+
} finally {
|
|
635
|
+
if (_didIteratorError3) {
|
|
636
|
+
throw _iteratorError3;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
++delta;
|
|
642
|
+
++n;
|
|
643
|
+
}
|
|
644
|
+
return output.join('');
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Converts a Punycode string representing a domain name or an email address
|
|
649
|
+
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
650
|
+
* it doesn't matter if you call it on a string that has already been
|
|
651
|
+
* converted to Unicode.
|
|
652
|
+
* @memberOf punycode
|
|
653
|
+
* @param {String} input The Punycoded domain name or email address to
|
|
654
|
+
* convert to Unicode.
|
|
655
|
+
* @returns {String} The Unicode representation of the given Punycode
|
|
656
|
+
* string.
|
|
657
|
+
*/
|
|
658
|
+
var toUnicode = function toUnicode(input) {
|
|
659
|
+
return mapDomain(input, function (string) {
|
|
660
|
+
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
|
|
661
|
+
});
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Converts a Unicode string representing a domain name or an email address to
|
|
666
|
+
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
667
|
+
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
668
|
+
* ASCII.
|
|
669
|
+
* @memberOf punycode
|
|
670
|
+
* @param {String} input The domain name or email address to convert, as a
|
|
671
|
+
* Unicode string.
|
|
672
|
+
* @returns {String} The Punycode representation of the given domain name or
|
|
673
|
+
* email address.
|
|
674
|
+
*/
|
|
675
|
+
var toASCII = function toASCII(input) {
|
|
676
|
+
return mapDomain(input, function (string) {
|
|
677
|
+
return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
|
|
678
|
+
});
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
/*--------------------------------------------------------------------------*/
|
|
682
|
+
|
|
683
|
+
/** Define the public API */
|
|
684
|
+
var punycode = {
|
|
685
|
+
/**
|
|
686
|
+
* A string representing the current Punycode.js version number.
|
|
687
|
+
* @memberOf punycode
|
|
688
|
+
* @type String
|
|
689
|
+
*/
|
|
690
|
+
'version': '2.1.0',
|
|
691
|
+
/**
|
|
692
|
+
* An object of methods to convert from JavaScript's internal character
|
|
693
|
+
* representation (UCS-2) to Unicode code points, and back.
|
|
694
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
695
|
+
* @memberOf punycode
|
|
696
|
+
* @type Object
|
|
697
|
+
*/
|
|
698
|
+
'ucs2': {
|
|
699
|
+
'decode': ucs2decode,
|
|
700
|
+
'encode': ucs2encode
|
|
701
|
+
},
|
|
702
|
+
'decode': decode,
|
|
703
|
+
'encode': encode,
|
|
704
|
+
'toASCII': toASCII,
|
|
705
|
+
'toUnicode': toUnicode
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* URI.js
|
|
710
|
+
*
|
|
711
|
+
* @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
|
|
712
|
+
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
|
713
|
+
* @see http://github.com/garycourt/uri-js
|
|
714
|
+
*/
|
|
715
|
+
/**
|
|
716
|
+
* Copyright 2011 Gary Court. All rights reserved.
|
|
717
|
+
*
|
|
718
|
+
* Redistribution and use in source and binary forms, with or without modification, are
|
|
719
|
+
* permitted provided that the following conditions are met:
|
|
720
|
+
*
|
|
721
|
+
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
722
|
+
* conditions and the following disclaimer.
|
|
723
|
+
*
|
|
724
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
725
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
726
|
+
* provided with the distribution.
|
|
727
|
+
*
|
|
728
|
+
* THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
729
|
+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
730
|
+
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
|
|
731
|
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
732
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
733
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
734
|
+
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
735
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
736
|
+
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
737
|
+
*
|
|
738
|
+
* The views and conclusions contained in the software and documentation are those of the
|
|
739
|
+
* authors and should not be interpreted as representing official policies, either expressed
|
|
740
|
+
* or implied, of Gary Court.
|
|
741
|
+
*/
|
|
742
|
+
var SCHEMES = {};
|
|
743
|
+
function pctEncChar(chr) {
|
|
744
|
+
var c = chr.charCodeAt(0);
|
|
745
|
+
var e = void 0;
|
|
746
|
+
if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
747
|
+
return e;
|
|
748
|
+
}
|
|
749
|
+
function pctDecChars(str) {
|
|
750
|
+
var newStr = "";
|
|
751
|
+
var i = 0;
|
|
752
|
+
var il = str.length;
|
|
753
|
+
while (i < il) {
|
|
754
|
+
var c = parseInt(str.substr(i + 1, 2), 16);
|
|
755
|
+
if (c < 128) {
|
|
756
|
+
newStr += String.fromCharCode(c);
|
|
757
|
+
i += 3;
|
|
758
|
+
} else if (c >= 194 && c < 224) {
|
|
759
|
+
if (il - i >= 6) {
|
|
760
|
+
var c2 = parseInt(str.substr(i + 4, 2), 16);
|
|
761
|
+
newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
|
|
762
|
+
} else {
|
|
763
|
+
newStr += str.substr(i, 6);
|
|
764
|
+
}
|
|
765
|
+
i += 6;
|
|
766
|
+
} else if (c >= 224) {
|
|
767
|
+
if (il - i >= 9) {
|
|
768
|
+
var _c = parseInt(str.substr(i + 4, 2), 16);
|
|
769
|
+
var c3 = parseInt(str.substr(i + 7, 2), 16);
|
|
770
|
+
newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
|
|
771
|
+
} else {
|
|
772
|
+
newStr += str.substr(i, 9);
|
|
773
|
+
}
|
|
774
|
+
i += 9;
|
|
775
|
+
} else {
|
|
776
|
+
newStr += str.substr(i, 3);
|
|
777
|
+
i += 3;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return newStr;
|
|
781
|
+
}
|
|
782
|
+
function _normalizeComponentEncoding(components, protocol) {
|
|
783
|
+
function decodeUnreserved(str) {
|
|
784
|
+
var decStr = pctDecChars(str);
|
|
785
|
+
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
786
|
+
}
|
|
787
|
+
if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
788
|
+
if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
789
|
+
if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
790
|
+
if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
791
|
+
if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
792
|
+
if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
793
|
+
return components;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function _stripLeadingZeros(str) {
|
|
797
|
+
return str.replace(/^0*(.*)/, "$1") || "0";
|
|
798
|
+
}
|
|
799
|
+
function _normalizeIPv4(host, protocol) {
|
|
800
|
+
var matches = host.match(protocol.IPV4ADDRESS) || [];
|
|
801
|
+
|
|
802
|
+
var _matches = slicedToArray(matches, 2),
|
|
803
|
+
address = _matches[1];
|
|
804
|
+
|
|
805
|
+
if (address) {
|
|
806
|
+
return address.split(".").map(_stripLeadingZeros).join(".");
|
|
807
|
+
} else {
|
|
808
|
+
return host;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
function _normalizeIPv6(host, protocol) {
|
|
812
|
+
var matches = host.match(protocol.IPV6ADDRESS) || [];
|
|
813
|
+
|
|
814
|
+
var _matches2 = slicedToArray(matches, 3),
|
|
815
|
+
address = _matches2[1],
|
|
816
|
+
zone = _matches2[2];
|
|
817
|
+
|
|
818
|
+
if (address) {
|
|
819
|
+
var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),
|
|
820
|
+
_address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),
|
|
821
|
+
last = _address$toLowerCase$2[0],
|
|
822
|
+
first = _address$toLowerCase$2[1];
|
|
823
|
+
|
|
824
|
+
var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
|
|
825
|
+
var lastFields = last.split(":").map(_stripLeadingZeros);
|
|
826
|
+
var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
|
|
827
|
+
var fieldCount = isLastFieldIPv4Address ? 7 : 8;
|
|
828
|
+
var lastFieldsStart = lastFields.length - fieldCount;
|
|
829
|
+
var fields = Array(fieldCount);
|
|
830
|
+
for (var x = 0; x < fieldCount; ++x) {
|
|
831
|
+
fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
|
|
832
|
+
}
|
|
833
|
+
if (isLastFieldIPv4Address) {
|
|
834
|
+
fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
|
|
835
|
+
}
|
|
836
|
+
var allZeroFields = fields.reduce(function (acc, field, index) {
|
|
837
|
+
if (!field || field === "0") {
|
|
838
|
+
var lastLongest = acc[acc.length - 1];
|
|
839
|
+
if (lastLongest && lastLongest.index + lastLongest.length === index) {
|
|
840
|
+
lastLongest.length++;
|
|
841
|
+
} else {
|
|
842
|
+
acc.push({ index: index, length: 1 });
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return acc;
|
|
846
|
+
}, []);
|
|
847
|
+
var longestZeroFields = allZeroFields.sort(function (a, b) {
|
|
848
|
+
return b.length - a.length;
|
|
849
|
+
})[0];
|
|
850
|
+
var newHost = void 0;
|
|
851
|
+
if (longestZeroFields && longestZeroFields.length > 1) {
|
|
852
|
+
var newFirst = fields.slice(0, longestZeroFields.index);
|
|
853
|
+
var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
|
|
854
|
+
newHost = newFirst.join(":") + "::" + newLast.join(":");
|
|
855
|
+
} else {
|
|
856
|
+
newHost = fields.join(":");
|
|
857
|
+
}
|
|
858
|
+
if (zone) {
|
|
859
|
+
newHost += "%" + zone;
|
|
860
|
+
}
|
|
861
|
+
return newHost;
|
|
862
|
+
} else {
|
|
863
|
+
return host;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
|
|
867
|
+
var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined;
|
|
868
|
+
function parse(uriString) {
|
|
869
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
870
|
+
|
|
871
|
+
var components = {};
|
|
872
|
+
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
873
|
+
if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
874
|
+
var matches = uriString.match(URI_PARSE);
|
|
875
|
+
if (matches) {
|
|
876
|
+
if (NO_MATCH_IS_UNDEFINED) {
|
|
877
|
+
//store each component
|
|
878
|
+
components.scheme = matches[1];
|
|
879
|
+
components.userinfo = matches[3];
|
|
880
|
+
components.host = matches[4];
|
|
881
|
+
components.port = parseInt(matches[5], 10);
|
|
882
|
+
components.path = matches[6] || "";
|
|
883
|
+
components.query = matches[7];
|
|
884
|
+
components.fragment = matches[8];
|
|
885
|
+
//fix port number
|
|
886
|
+
if (isNaN(components.port)) {
|
|
887
|
+
components.port = matches[5];
|
|
888
|
+
}
|
|
889
|
+
} else {
|
|
890
|
+
//IE FIX for improper RegExp matching
|
|
891
|
+
//store each component
|
|
892
|
+
components.scheme = matches[1] || undefined;
|
|
893
|
+
components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined;
|
|
894
|
+
components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined;
|
|
895
|
+
components.port = parseInt(matches[5], 10);
|
|
896
|
+
components.path = matches[6] || "";
|
|
897
|
+
components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined;
|
|
898
|
+
components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined;
|
|
899
|
+
//fix port number
|
|
900
|
+
if (isNaN(components.port)) {
|
|
901
|
+
components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (components.host) {
|
|
905
|
+
//normalize IP hosts
|
|
906
|
+
components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
|
|
907
|
+
}
|
|
908
|
+
//determine reference type
|
|
909
|
+
if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
|
|
910
|
+
components.reference = "same-document";
|
|
911
|
+
} else if (components.scheme === undefined) {
|
|
912
|
+
components.reference = "relative";
|
|
913
|
+
} else if (components.fragment === undefined) {
|
|
914
|
+
components.reference = "absolute";
|
|
915
|
+
} else {
|
|
916
|
+
components.reference = "uri";
|
|
917
|
+
}
|
|
918
|
+
//check for reference errors
|
|
919
|
+
if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
|
|
920
|
+
components.error = components.error || "URI is not a " + options.reference + " reference.";
|
|
921
|
+
}
|
|
922
|
+
//find scheme handler
|
|
923
|
+
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
924
|
+
//check if scheme can't handle IRIs
|
|
925
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
926
|
+
//if host component is a domain name
|
|
927
|
+
if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
|
|
928
|
+
//convert Unicode IDN -> ASCII IDN
|
|
929
|
+
try {
|
|
930
|
+
components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
|
|
931
|
+
} catch (e) {
|
|
932
|
+
components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
//convert IRI -> URI
|
|
936
|
+
_normalizeComponentEncoding(components, URI_PROTOCOL);
|
|
937
|
+
} else {
|
|
938
|
+
//normalize encodings
|
|
939
|
+
_normalizeComponentEncoding(components, protocol);
|
|
940
|
+
}
|
|
941
|
+
//perform scheme specific parsing
|
|
942
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
943
|
+
schemeHandler.parse(components, options);
|
|
944
|
+
}
|
|
945
|
+
} else {
|
|
946
|
+
components.error = components.error || "URI can not be parsed.";
|
|
947
|
+
}
|
|
948
|
+
return components;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
function _recomposeAuthority(components, options) {
|
|
952
|
+
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
953
|
+
var uriTokens = [];
|
|
954
|
+
if (components.userinfo !== undefined) {
|
|
955
|
+
uriTokens.push(components.userinfo);
|
|
956
|
+
uriTokens.push("@");
|
|
957
|
+
}
|
|
958
|
+
if (components.host !== undefined) {
|
|
959
|
+
//normalize IP hosts, add brackets and escape zone separator for IPv6
|
|
960
|
+
uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {
|
|
961
|
+
return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
|
|
962
|
+
}));
|
|
963
|
+
}
|
|
964
|
+
if (typeof components.port === "number" || typeof components.port === "string") {
|
|
965
|
+
uriTokens.push(":");
|
|
966
|
+
uriTokens.push(String(components.port));
|
|
967
|
+
}
|
|
968
|
+
return uriTokens.length ? uriTokens.join("") : undefined;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
var RDS1 = /^\.\.?\//;
|
|
972
|
+
var RDS2 = /^\/\.(\/|$)/;
|
|
973
|
+
var RDS3 = /^\/\.\.(\/|$)/;
|
|
974
|
+
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
975
|
+
function removeDotSegments(input) {
|
|
976
|
+
var output = [];
|
|
977
|
+
while (input.length) {
|
|
978
|
+
if (input.match(RDS1)) {
|
|
979
|
+
input = input.replace(RDS1, "");
|
|
980
|
+
} else if (input.match(RDS2)) {
|
|
981
|
+
input = input.replace(RDS2, "/");
|
|
982
|
+
} else if (input.match(RDS3)) {
|
|
983
|
+
input = input.replace(RDS3, "/");
|
|
984
|
+
output.pop();
|
|
985
|
+
} else if (input === "." || input === "..") {
|
|
986
|
+
input = "";
|
|
987
|
+
} else {
|
|
988
|
+
var im = input.match(RDS5);
|
|
989
|
+
if (im) {
|
|
990
|
+
var s = im[0];
|
|
991
|
+
input = input.slice(s.length);
|
|
992
|
+
output.push(s);
|
|
993
|
+
} else {
|
|
994
|
+
throw new Error("Unexpected dot segment condition");
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
return output.join("");
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
function serialize(components) {
|
|
1002
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1003
|
+
|
|
1004
|
+
var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
1005
|
+
var uriTokens = [];
|
|
1006
|
+
//find scheme handler
|
|
1007
|
+
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
1008
|
+
//perform scheme specific serialization
|
|
1009
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
|
|
1010
|
+
if (components.host) {
|
|
1011
|
+
//if host component is an IPv6 address
|
|
1012
|
+
if (protocol.IPV6ADDRESS.test(components.host)) {}
|
|
1013
|
+
//TODO: normalize IPv6 address as per RFC 5952
|
|
1014
|
+
|
|
1015
|
+
//if host component is a domain name
|
|
1016
|
+
else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
1017
|
+
//convert IDN via punycode
|
|
1018
|
+
try {
|
|
1019
|
+
components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
|
|
1020
|
+
} catch (e) {
|
|
1021
|
+
components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
//normalize encoding
|
|
1026
|
+
_normalizeComponentEncoding(components, protocol);
|
|
1027
|
+
if (options.reference !== "suffix" && components.scheme) {
|
|
1028
|
+
uriTokens.push(components.scheme);
|
|
1029
|
+
uriTokens.push(":");
|
|
1030
|
+
}
|
|
1031
|
+
var authority = _recomposeAuthority(components, options);
|
|
1032
|
+
if (authority !== undefined) {
|
|
1033
|
+
if (options.reference !== "suffix") {
|
|
1034
|
+
uriTokens.push("//");
|
|
1035
|
+
}
|
|
1036
|
+
uriTokens.push(authority);
|
|
1037
|
+
if (components.path && components.path.charAt(0) !== "/") {
|
|
1038
|
+
uriTokens.push("/");
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
if (components.path !== undefined) {
|
|
1042
|
+
var s = components.path;
|
|
1043
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
1044
|
+
s = removeDotSegments(s);
|
|
1045
|
+
}
|
|
1046
|
+
if (authority === undefined) {
|
|
1047
|
+
s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
|
|
1048
|
+
}
|
|
1049
|
+
uriTokens.push(s);
|
|
1050
|
+
}
|
|
1051
|
+
if (components.query !== undefined) {
|
|
1052
|
+
uriTokens.push("?");
|
|
1053
|
+
uriTokens.push(components.query);
|
|
1054
|
+
}
|
|
1055
|
+
if (components.fragment !== undefined) {
|
|
1056
|
+
uriTokens.push("#");
|
|
1057
|
+
uriTokens.push(components.fragment);
|
|
1058
|
+
}
|
|
1059
|
+
return uriTokens.join(""); //merge tokens into a string
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
function resolveComponents(base, relative) {
|
|
1063
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1064
|
+
var skipNormalization = arguments[3];
|
|
1065
|
+
|
|
1066
|
+
var target = {};
|
|
1067
|
+
if (!skipNormalization) {
|
|
1068
|
+
base = parse(serialize(base, options), options); //normalize base components
|
|
1069
|
+
relative = parse(serialize(relative, options), options); //normalize relative components
|
|
1070
|
+
}
|
|
1071
|
+
options = options || {};
|
|
1072
|
+
if (!options.tolerant && relative.scheme) {
|
|
1073
|
+
target.scheme = relative.scheme;
|
|
1074
|
+
//target.authority = relative.authority;
|
|
1075
|
+
target.userinfo = relative.userinfo;
|
|
1076
|
+
target.host = relative.host;
|
|
1077
|
+
target.port = relative.port;
|
|
1078
|
+
target.path = removeDotSegments(relative.path || "");
|
|
1079
|
+
target.query = relative.query;
|
|
1080
|
+
} else {
|
|
1081
|
+
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
1082
|
+
//target.authority = relative.authority;
|
|
1083
|
+
target.userinfo = relative.userinfo;
|
|
1084
|
+
target.host = relative.host;
|
|
1085
|
+
target.port = relative.port;
|
|
1086
|
+
target.path = removeDotSegments(relative.path || "");
|
|
1087
|
+
target.query = relative.query;
|
|
1088
|
+
} else {
|
|
1089
|
+
if (!relative.path) {
|
|
1090
|
+
target.path = base.path;
|
|
1091
|
+
if (relative.query !== undefined) {
|
|
1092
|
+
target.query = relative.query;
|
|
1093
|
+
} else {
|
|
1094
|
+
target.query = base.query;
|
|
1095
|
+
}
|
|
1096
|
+
} else {
|
|
1097
|
+
if (relative.path.charAt(0) === "/") {
|
|
1098
|
+
target.path = removeDotSegments(relative.path);
|
|
1099
|
+
} else {
|
|
1100
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
1101
|
+
target.path = "/" + relative.path;
|
|
1102
|
+
} else if (!base.path) {
|
|
1103
|
+
target.path = relative.path;
|
|
1104
|
+
} else {
|
|
1105
|
+
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
1106
|
+
}
|
|
1107
|
+
target.path = removeDotSegments(target.path);
|
|
1108
|
+
}
|
|
1109
|
+
target.query = relative.query;
|
|
1110
|
+
}
|
|
1111
|
+
//target.authority = base.authority;
|
|
1112
|
+
target.userinfo = base.userinfo;
|
|
1113
|
+
target.host = base.host;
|
|
1114
|
+
target.port = base.port;
|
|
1115
|
+
}
|
|
1116
|
+
target.scheme = base.scheme;
|
|
1117
|
+
}
|
|
1118
|
+
target.fragment = relative.fragment;
|
|
1119
|
+
return target;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
function resolve(baseURI, relativeURI, options) {
|
|
1123
|
+
var schemelessOptions = assign({ scheme: 'null' }, options);
|
|
1124
|
+
return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
function normalize(uri, options) {
|
|
1128
|
+
if (typeof uri === "string") {
|
|
1129
|
+
uri = serialize(parse(uri, options), options);
|
|
1130
|
+
} else if (typeOf(uri) === "object") {
|
|
1131
|
+
uri = parse(serialize(uri, options), options);
|
|
1132
|
+
}
|
|
1133
|
+
return uri;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
function equal(uriA, uriB, options) {
|
|
1137
|
+
if (typeof uriA === "string") {
|
|
1138
|
+
uriA = serialize(parse(uriA, options), options);
|
|
1139
|
+
} else if (typeOf(uriA) === "object") {
|
|
1140
|
+
uriA = serialize(uriA, options);
|
|
1141
|
+
}
|
|
1142
|
+
if (typeof uriB === "string") {
|
|
1143
|
+
uriB = serialize(parse(uriB, options), options);
|
|
1144
|
+
} else if (typeOf(uriB) === "object") {
|
|
1145
|
+
uriB = serialize(uriB, options);
|
|
1146
|
+
}
|
|
1147
|
+
return uriA === uriB;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
function escapeComponent(str, options) {
|
|
1151
|
+
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function unescapeComponent(str, options) {
|
|
1155
|
+
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
var handler = {
|
|
1159
|
+
scheme: "http",
|
|
1160
|
+
domainHost: true,
|
|
1161
|
+
parse: function parse(components, options) {
|
|
1162
|
+
//report missing host
|
|
1163
|
+
if (!components.host) {
|
|
1164
|
+
components.error = components.error || "HTTP URIs must have a host.";
|
|
1165
|
+
}
|
|
1166
|
+
return components;
|
|
1167
|
+
},
|
|
1168
|
+
serialize: function serialize(components, options) {
|
|
1169
|
+
var secure = String(components.scheme).toLowerCase() === "https";
|
|
1170
|
+
//normalize the default port
|
|
1171
|
+
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
1172
|
+
components.port = undefined;
|
|
1173
|
+
}
|
|
1174
|
+
//normalize the empty path
|
|
1175
|
+
if (!components.path) {
|
|
1176
|
+
components.path = "/";
|
|
1177
|
+
}
|
|
1178
|
+
//NOTE: We do not parse query strings for HTTP URIs
|
|
1179
|
+
//as WWW Form Url Encoded query strings are part of the HTML4+ spec,
|
|
1180
|
+
//and not the HTTP spec.
|
|
1181
|
+
return components;
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
var handler$1 = {
|
|
1186
|
+
scheme: "https",
|
|
1187
|
+
domainHost: handler.domainHost,
|
|
1188
|
+
parse: handler.parse,
|
|
1189
|
+
serialize: handler.serialize
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
function isSecure(wsComponents) {
|
|
1193
|
+
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
|
1194
|
+
}
|
|
1195
|
+
//RFC 6455
|
|
1196
|
+
var handler$2 = {
|
|
1197
|
+
scheme: "ws",
|
|
1198
|
+
domainHost: true,
|
|
1199
|
+
parse: function parse(components, options) {
|
|
1200
|
+
var wsComponents = components;
|
|
1201
|
+
//indicate if the secure flag is set
|
|
1202
|
+
wsComponents.secure = isSecure(wsComponents);
|
|
1203
|
+
//construct resouce name
|
|
1204
|
+
wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');
|
|
1205
|
+
wsComponents.path = undefined;
|
|
1206
|
+
wsComponents.query = undefined;
|
|
1207
|
+
return wsComponents;
|
|
1208
|
+
},
|
|
1209
|
+
serialize: function serialize(wsComponents, options) {
|
|
1210
|
+
//normalize the default port
|
|
1211
|
+
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
1212
|
+
wsComponents.port = undefined;
|
|
1213
|
+
}
|
|
1214
|
+
//ensure scheme matches secure flag
|
|
1215
|
+
if (typeof wsComponents.secure === 'boolean') {
|
|
1216
|
+
wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws';
|
|
1217
|
+
wsComponents.secure = undefined;
|
|
1218
|
+
}
|
|
1219
|
+
//reconstruct path from resource name
|
|
1220
|
+
if (wsComponents.resourceName) {
|
|
1221
|
+
var _wsComponents$resourc = wsComponents.resourceName.split('?'),
|
|
1222
|
+
_wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
|
1223
|
+
path = _wsComponents$resourc2[0],
|
|
1224
|
+
query = _wsComponents$resourc2[1];
|
|
1225
|
+
|
|
1226
|
+
wsComponents.path = path && path !== '/' ? path : undefined;
|
|
1227
|
+
wsComponents.query = query;
|
|
1228
|
+
wsComponents.resourceName = undefined;
|
|
1229
|
+
}
|
|
1230
|
+
//forbid fragment component
|
|
1231
|
+
wsComponents.fragment = undefined;
|
|
1232
|
+
return wsComponents;
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
var handler$3 = {
|
|
1237
|
+
scheme: "wss",
|
|
1238
|
+
domainHost: handler$2.domainHost,
|
|
1239
|
+
parse: handler$2.parse,
|
|
1240
|
+
serialize: handler$2.serialize
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
var O = {};
|
|
1244
|
+
var isIRI = true;
|
|
1245
|
+
//RFC 3986
|
|
1246
|
+
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
|
|
1247
|
+
var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
|
|
1248
|
+
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
|
|
1249
|
+
//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
|
|
1250
|
+
//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
|
|
1251
|
+
//const WSP$$ = "[\\x20\\x09]";
|
|
1252
|
+
//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
|
|
1253
|
+
//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
|
|
1254
|
+
//const VCHAR$$ = "[\\x21-\\x7E]";
|
|
1255
|
+
//const WSP$$ = "[\\x20\\x09]";
|
|
1256
|
+
//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
|
|
1257
|
+
//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
|
|
1258
|
+
//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
|
|
1259
|
+
//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
|
|
1260
|
+
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
|
|
1261
|
+
var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
|
|
1262
|
+
var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
|
|
1263
|
+
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
|
|
1264
|
+
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
|
|
1265
|
+
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
|
|
1266
|
+
var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
|
|
1267
|
+
var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
|
|
1268
|
+
var NOT_HFVALUE = NOT_HFNAME;
|
|
1269
|
+
function decodeUnreserved(str) {
|
|
1270
|
+
var decStr = pctDecChars(str);
|
|
1271
|
+
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
1272
|
+
}
|
|
1273
|
+
var handler$4 = {
|
|
1274
|
+
scheme: "mailto",
|
|
1275
|
+
parse: function parse$$1(components, options) {
|
|
1276
|
+
var mailtoComponents = components;
|
|
1277
|
+
var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
|
|
1278
|
+
mailtoComponents.path = undefined;
|
|
1279
|
+
if (mailtoComponents.query) {
|
|
1280
|
+
var unknownHeaders = false;
|
|
1281
|
+
var headers = {};
|
|
1282
|
+
var hfields = mailtoComponents.query.split("&");
|
|
1283
|
+
for (var x = 0, xl = hfields.length; x < xl; ++x) {
|
|
1284
|
+
var hfield = hfields[x].split("=");
|
|
1285
|
+
switch (hfield[0]) {
|
|
1286
|
+
case "to":
|
|
1287
|
+
var toAddrs = hfield[1].split(",");
|
|
1288
|
+
for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
|
|
1289
|
+
to.push(toAddrs[_x]);
|
|
1290
|
+
}
|
|
1291
|
+
break;
|
|
1292
|
+
case "subject":
|
|
1293
|
+
mailtoComponents.subject = unescapeComponent(hfield[1], options);
|
|
1294
|
+
break;
|
|
1295
|
+
case "body":
|
|
1296
|
+
mailtoComponents.body = unescapeComponent(hfield[1], options);
|
|
1297
|
+
break;
|
|
1298
|
+
default:
|
|
1299
|
+
unknownHeaders = true;
|
|
1300
|
+
headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
if (unknownHeaders) mailtoComponents.headers = headers;
|
|
1305
|
+
}
|
|
1306
|
+
mailtoComponents.query = undefined;
|
|
1307
|
+
for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
|
|
1308
|
+
var addr = to[_x2].split("@");
|
|
1309
|
+
addr[0] = unescapeComponent(addr[0]);
|
|
1310
|
+
if (!options.unicodeSupport) {
|
|
1311
|
+
//convert Unicode IDN -> ASCII IDN
|
|
1312
|
+
try {
|
|
1313
|
+
addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
|
|
1314
|
+
} catch (e) {
|
|
1315
|
+
mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
1316
|
+
}
|
|
1317
|
+
} else {
|
|
1318
|
+
addr[1] = unescapeComponent(addr[1], options).toLowerCase();
|
|
1319
|
+
}
|
|
1320
|
+
to[_x2] = addr.join("@");
|
|
1321
|
+
}
|
|
1322
|
+
return mailtoComponents;
|
|
1323
|
+
},
|
|
1324
|
+
serialize: function serialize$$1(mailtoComponents, options) {
|
|
1325
|
+
var components = mailtoComponents;
|
|
1326
|
+
var to = toArray(mailtoComponents.to);
|
|
1327
|
+
if (to) {
|
|
1328
|
+
for (var x = 0, xl = to.length; x < xl; ++x) {
|
|
1329
|
+
var toAddr = String(to[x]);
|
|
1330
|
+
var atIdx = toAddr.lastIndexOf("@");
|
|
1331
|
+
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
|
|
1332
|
+
var domain = toAddr.slice(atIdx + 1);
|
|
1333
|
+
//convert IDN via punycode
|
|
1334
|
+
try {
|
|
1335
|
+
domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
|
|
1336
|
+
} catch (e) {
|
|
1337
|
+
components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
1338
|
+
}
|
|
1339
|
+
to[x] = localPart + "@" + domain;
|
|
1340
|
+
}
|
|
1341
|
+
components.path = to.join(",");
|
|
1342
|
+
}
|
|
1343
|
+
var headers = mailtoComponents.headers = mailtoComponents.headers || {};
|
|
1344
|
+
if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
|
|
1345
|
+
if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
|
|
1346
|
+
var fields = [];
|
|
1347
|
+
for (var name in headers) {
|
|
1348
|
+
if (headers[name] !== O[name]) {
|
|
1349
|
+
fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
if (fields.length) {
|
|
1353
|
+
components.query = fields.join("&");
|
|
1354
|
+
}
|
|
1355
|
+
return components;
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
1360
|
+
//RFC 2141
|
|
1361
|
+
var handler$5 = {
|
|
1362
|
+
scheme: "urn",
|
|
1363
|
+
parse: function parse$$1(components, options) {
|
|
1364
|
+
var matches = components.path && components.path.match(URN_PARSE);
|
|
1365
|
+
var urnComponents = components;
|
|
1366
|
+
if (matches) {
|
|
1367
|
+
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
1368
|
+
var nid = matches[1].toLowerCase();
|
|
1369
|
+
var nss = matches[2];
|
|
1370
|
+
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
1371
|
+
var schemeHandler = SCHEMES[urnScheme];
|
|
1372
|
+
urnComponents.nid = nid;
|
|
1373
|
+
urnComponents.nss = nss;
|
|
1374
|
+
urnComponents.path = undefined;
|
|
1375
|
+
if (schemeHandler) {
|
|
1376
|
+
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
1377
|
+
}
|
|
1378
|
+
} else {
|
|
1379
|
+
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
1380
|
+
}
|
|
1381
|
+
return urnComponents;
|
|
1382
|
+
},
|
|
1383
|
+
serialize: function serialize$$1(urnComponents, options) {
|
|
1384
|
+
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
1385
|
+
var nid = urnComponents.nid;
|
|
1386
|
+
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
1387
|
+
var schemeHandler = SCHEMES[urnScheme];
|
|
1388
|
+
if (schemeHandler) {
|
|
1389
|
+
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
1390
|
+
}
|
|
1391
|
+
var uriComponents = urnComponents;
|
|
1392
|
+
var nss = urnComponents.nss;
|
|
1393
|
+
uriComponents.path = (nid || options.nid) + ":" + nss;
|
|
1394
|
+
return uriComponents;
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
1399
|
+
//RFC 4122
|
|
1400
|
+
var handler$6 = {
|
|
1401
|
+
scheme: "urn:uuid",
|
|
1402
|
+
parse: function parse(urnComponents, options) {
|
|
1403
|
+
var uuidComponents = urnComponents;
|
|
1404
|
+
uuidComponents.uuid = uuidComponents.nss;
|
|
1405
|
+
uuidComponents.nss = undefined;
|
|
1406
|
+
if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
|
|
1407
|
+
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
1408
|
+
}
|
|
1409
|
+
return uuidComponents;
|
|
1410
|
+
},
|
|
1411
|
+
serialize: function serialize(uuidComponents, options) {
|
|
1412
|
+
var urnComponents = uuidComponents;
|
|
1413
|
+
//normalize UUID
|
|
1414
|
+
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
1415
|
+
return urnComponents;
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
SCHEMES[handler.scheme] = handler;
|
|
1420
|
+
SCHEMES[handler$1.scheme] = handler$1;
|
|
1421
|
+
SCHEMES[handler$2.scheme] = handler$2;
|
|
1422
|
+
SCHEMES[handler$3.scheme] = handler$3;
|
|
1423
|
+
SCHEMES[handler$4.scheme] = handler$4;
|
|
1424
|
+
SCHEMES[handler$5.scheme] = handler$5;
|
|
1425
|
+
SCHEMES[handler$6.scheme] = handler$6;
|
|
1426
|
+
|
|
1427
|
+
exports.SCHEMES = SCHEMES;
|
|
1428
|
+
exports.pctEncChar = pctEncChar;
|
|
1429
|
+
exports.pctDecChars = pctDecChars;
|
|
1430
|
+
exports.parse = parse;
|
|
1431
|
+
exports.removeDotSegments = removeDotSegments;
|
|
1432
|
+
exports.serialize = serialize;
|
|
1433
|
+
exports.resolveComponents = resolveComponents;
|
|
1434
|
+
exports.resolve = resolve;
|
|
1435
|
+
exports.normalize = normalize;
|
|
1436
|
+
exports.equal = equal;
|
|
1437
|
+
exports.escapeComponent = escapeComponent;
|
|
1438
|
+
exports.unescapeComponent = unescapeComponent;
|
|
1439
|
+
|
|
1440
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1441
|
+
|
|
1442
|
+
})));
|
|
1443
|
+
//# sourceMappingURL=uri.all.js.map
|